Fix some build warnings
[jlayton/glibc.git] / ChangeLog
1 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
4         unused.
5         * posix/regex_internal.h (__attribute): Remove.
6         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
7         (re_string_context_at): Likewise.
8         (bitset_not): Use __attribute__ and mark function as possibly
9         unused.
10         (bitset_merge): Likewise.
11         (bitset_mask): Likewise.
12         (re_string_char_size_at): Likewise.
13         (re_string_wchar_at): Likewise.
14         (re_string_elem_size_at): Likewise.
15
16 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17
18         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
19         code.
20         (cc32): Likewise.
21
22         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
23         (__acr): Likewise.
24         (__cpy): Likewise.
25         (norm): Likewise.
26         (denorm): Likewise.
27         (__dbl_mp): Likewise.
28         (add_magnitudes): Likewise.
29         (sub_magnitudes): Likewise.
30         (__mul): Likewise.
31         (__inv): Likewise.
32
33         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
34         style.
35
36         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
37         style.
38
39         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
40         code.
41
42         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
43         up changes with default code.
44         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
45         Likewise.
46
47 2013-02-24  Allan McRae  <allan@archlinux.org>
48
49         * manual/socket.texi (The Internet Namespace): Order menu items
50         to match that in the file.
51
52         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
53         node listing of the info page menu.
54
55 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
56
57         [BZ #13550]
58         * sysdeps/i386/bp-asm.h: Remove file.
59         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
60         (PARMS): Do not use macros from bp-asm.h.
61         (S1): Likewise.
62         (S2): Likewise.
63         (SIZE): Likewise.
64         (__mpn_add_n): Do not use BP_SYM
65         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
66         "bp-asm.h".
67         (PARMS): Do not use macros from bp-asm.h.
68         (S1): Likewise.
69         (SIZE): Likewise.
70         (__mpn_addmul_1): Do not use BP_SYM
71         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
72         "bp-asm.h".
73         (PARMS): Do not use macros from bp-asm.h.
74         (SIGMSK): Likewise.
75         (_setjmp): Likewise.  Do not use BP_SYM.
76         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
77         "bp-asm.h".
78         (PARMS): Do not use macros from bp-asm.h.
79         (SIGMSK): Likewise.
80         (setjmp): Likewise.  Do not use BP_SYM.
81         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
82         "bp-asm.h".
83         (PARMS): Do not use macros from bp-asm.h.
84         (__frexp): Do not use BP_SYM.
85         (frexp): Likewise.
86         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
87         "bp-asm.h".
88         (PARMS): Do not use macros from bp-asm.h.
89         (__frexpf): Do not use BP_SYM.
90         (frexpf): Likewise.
91         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
92         "bp-asm.h".
93         (PARMS): Do not use macros from bp-asm.h.
94         (__frexpl): Do not use BP_SYM.
95         (frexpl): Likewise.
96         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
97         "bp-asm.h".
98         (PARMS): Do not use macros from bp-asm.h.
99         (__remquo): Do not use BP_SYM.
100         (remquo): Likewise.
101         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
102         "bp-asm.h".
103         (PARMS): Do not use macros from bp-asm.h.
104         (__remquof): Do not use BP_SYM.
105         (remquof): Likewise.
106         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
107         "bp-asm.h".
108         (PARMS): Do not use macros from bp-asm.h.
109         (__remquol): Do not use BP_SYM.
110         (remquol): Likewise.
111         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
112         "bp-asm.h".
113         (PARMS): Do not use macros from bp-asm.h.
114         (DEST): Likewise.
115         (SRC): Likewise.
116         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
117         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
118         "bp-asm.h".
119         (PARMS): Do not use macros from bp-asm.h.
120         (strlen): Do not use BP_SYM.
121         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
122         "bp-asm.h".
123         (PARMS): Do not use macros from bp-asm.h.
124         (S1): Likewise.
125         (S2): Likewise.
126         (SIZE): Likewise.
127         (__mpn_add_n): Do not use BP_SYM.
128         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
129         "bp-asm.h".
130         (PARMS): Do not use macros from bp-asm.h.
131         (S1): Likewise.
132         (SIZE): Likewise.
133         (__mpn_addmul_1): Do not use BP_SYM.
134         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
135         weak_alias.
136         (bzero): Likewise.
137         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
138         "bp-asm.h".
139         (PARMS): Do not use macros from bp-asm.h.
140         (S): Likewise.
141         (SIZE): Likewise.
142         (__mpn_lshift): Do not use BP_SYM.
143         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
144         "bp-asm.h".
145         (PARMS): Do not use macros from bp-asm.h.
146         (DEST): Likewise.
147         (SRC): Likewise.
148         (LEN): Likewise.
149         (memcpy): Likewise.  Do not use BP_SYM.
150         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
151         libc_hidden_def and weak_alias.
152         (mempcpy): Do not use BP_SYM in weak_alias.
153         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
154         "bp-asm.h".
155         (PARMS): Do not use macros from bp-asm.h.
156         (DEST): Likewise.
157         (LEN): Likewise.
158         [!BZERO_P] (CHR): Likewise.
159         (memset): Likewise.  Do not use BP_SYM.
160         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
161         "bp-asm.h".
162         (PARMS): Do not use macros from bp-asm.h.
163         (S1): Likewise.
164         (SIZE): Likewise.
165         (__mpn_mul_1): Do not use BP_SYM.
166         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
167         "bp-asm.h".
168         (PARMS): Do not use macros from bp-asm.h.
169         (S): Likewise.
170         (SIZE): Likewise.
171         (__mpn_rshift): Do not use BP_SYM.
172         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
173         "bp-asm.h".
174         (PARMS): Do not use macros from bp-asm.h.
175         (STR): Likewise.
176         (CHR): Likewise.
177         (strchr): Likewise.  Do not use BP_SYM.
178         (index): Do not use BP_SYM in weak_alias.
179         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
180         "bp-asm.h".
181         (PARMS): Do not use macros from bp-asm.h.
182         (DEST): Likewise.
183         (SRC): Likewise.
184         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
185         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
186         "bp-asm.h".
187         (PARMS): Do not use macros from bp-asm.h.
188         (strlen): Do not use BP_SYM.
189         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
190         "bp-asm.h".
191         (PARMS): Do not use macros from bp-asm.h.
192         (S1): Likewise.
193         (S2): Likewise.
194         (SIZE): Likewise.
195         (__mpn_sub_n): Do not use BP_SYM.
196         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
197         "bp-asm.h".
198         (PARMS): Do not use macros from bp-asm.h.
199         (S1): Likewise.
200         (SIZE): Likewise.
201         (__mpn_submul_1): Do not use BP_SYM.
202         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
203         "bp-asm.h".
204         (PARMS): Do not use macros from bp-asm.h.
205         (S1): Likewise.
206         (S2): Likewise.
207         (SIZE): Likewise.
208         (__mpn_add_n): Do not use BP_SYM.
209         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
210         weak_alias.
211         (bzero): Likewise.
212         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
213         "bp-asm.h".
214         (PARMS): Do not use macros from bp-asm.h.
215         (BLK2): Likewise.
216         (LEN): Likewise.
217         (memcmp): Do not use BP_SYM.
218         (bcmp): Do not use BP_SYM in weak_alias.
219         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
220         "bp-asm.h".
221         (PARMS): Do not use macros from bp-asm.h.
222         (DEST): Likewise.
223         (SRC): Likewise.
224         (LEN): Likewise.
225         (memcpy): Likewise.  Do not use BP_SYM.
226         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
227         "bp-asm.h".
228         (PARMS): Do not use macros from bp-asm.h.
229         (DEST): Likewise.
230         (SRC): Likewise.
231         (LEN): Likewise.
232         (memmove): Likewise.  Do not use BP_SYM.
233         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
234         "bp-asm.h".
235         (PARMS): Do not use macros from bp-asm.h.
236         (DEST): Likewise.
237         (SRC): Likewise.
238         (LEN): Likewise.
239         (__mempcpy): Likewise.  Do not use BP_SYM.
240         (mempcpy): Do not use BP_SYM in weak_alias.
241         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
242         "bp-asm.h".
243         (PARMS): Do not use macros from bp-asm.h.
244         (DEST): Likewise.
245         (LEN): Likewise.
246         [!BZERO_P] (CHR): Likewise.
247         (memset): Likewise.  Do not use BP_SYM.
248         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
249         "bp-asm.h".
250         (PARMS): Do not use macros from bp-asm.h.
251         (STR2): Likewise.
252         (strcmp): Do not use BP_SYM.
253         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
254         "bp-asm.h".
255         (PARMS): Do not use macros from bp-asm.h.
256         (STR): Likewise.
257         (DELIM): Likewise.
258         [USE_AS_STRTOK_R] (SAVE): Likewise.
259         (FUNCTION): Likewise.  Do not use BP_SYM.
260         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
261         aliases.
262         (strtok_r): Likewise.
263         (__GI___strtok_r): Likewise.
264         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
265         (PARMS): Do not use macros from bp-asm.h.
266         (S): Likewise.
267         (SIZE): Likewise.
268         (__mpn_lshift): Do not use BP_SYM.
269         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
270         (PARMS): Do not use macros from bp-asm.h.
271         (STR): Likewise.
272         (CHR): Likewise.
273         (__memchr): Do not use BP_SYM.
274         (memchr): Do not use BP_SYM in weak_alias.
275         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
276         (PARMS): Do not use macros from bp-asm.h.
277         (BLK2): Likewise.
278         (LEN): Likewise.
279         (memcmp): Do not use BP_SYM.
280         (bcmp): Do not use BP_SYM in weak_alias.
281         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
282         (PARMS): Do not use macros from bp-asm.h.
283         (S1): Likewise.
284         (SIZE): Likewise.
285         (__mpn_mul_1): Do not use BP_SYM.
286         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
287         "bp-asm.h".
288         (PARMS): Do not use macros from bp-asm.h.
289         (STR): Likewise.
290         (CHR): Likewise.
291         (__rawmemchr): Do not use BP_SYM.
292         (rawmemchr): Do not use BP_SYM in weak_alias.
293         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
294         (PARMS): Do not use macros from bp-asm.h.
295         (S): Likewise.
296         (SIZE): Likewise.
297         (__mpn_rshift): Do not use BP_SYM.
298         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
299         (PARMS): Do not use macros from bp-asm.h.
300         (SIGMSK): Likewise.
301         (__sigsetjmp): Likewise.  Do not use BP_SYM.
302         * sysdeps/i386/start.S: Do not include "bp-sym.h".
303         (_start): Do not use BP_SYM.
304         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
305         (PARMS): Do not use macros from bp-asm.h.
306         (DEST): Likewise.
307         (SRC): Likewise.
308         (__stpcpy): Likewise.  Do not use BP_SYM.
309         (stpcpy): Do not use BP_SYM in weak_alias.
310         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
311         "bp-asm.h".
312         (PARMS): Do not use macros from bp-asm.h.
313         (DEST): Likewise.
314         (SRC): Likewise.
315         (LEN): Likewise.
316         (__stpncpy): Likewise.  Do not use BP_SYM.
317         (stpncpy): Do not use BP_SYM in weak_alias.
318         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
319         (PARMS): Do not use macros from bp-asm.h.
320         (STR): Likewise.
321         (CHR): Likewise.
322         (strchr): Likewise.  Do not use BP_SYM.
323         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
324         "bp-asm.h".
325         (PARMS): Do not use macros from bp-asm.h.
326         (STR): Likewise.
327         (CHR): Likewise.
328         (__strchrnul): Likewise.  Do not use BP_SYM.
329         (strchrnul): Do not use BP_SYM in weak_alias.
330         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
331         "bp-asm.h".
332         (PARMS): Do not use macros from bp-asm.h.
333         (STOP): Likewise.
334         (strcspn): Do not use BP_SYM.
335         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
336         "bp-asm.h".
337         (PARMS): Do not use macros from bp-asm.h.
338         (STR): Likewise.
339         (STOP): Likewise.
340         (strpbrk): Likewise.  Do not use BP_SYM.
341         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
342         "bp-asm.h".
343         (PARMS): Do not use macros from bp-asm.h.
344         (STR): Likewise.
345         (CHR): Likewise.
346         (strrchr): Likewise.  Do not use BP_SYM.
347         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
348         (PARMS): Do not use macros from bp-asm.h.
349         (SKIP): Likewise.
350         (strspn): Do not use BP_SYM.
351         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
352         (PARMS): Do not use macros from bp-asm.h.
353         (STR): Likewise.
354         (DELIM): Likewise.
355         (SAVE): Likewise.
356         (FUNCTION): Likewise.  Do not use BP_SYM.
357         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
358         aliases.
359         (strtok_r): Likewise.
360         (__GI___strtok_r): Likewise.
361         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
362         (PARMS): Do not use macros from bp-asm.h.
363         (S1): Likewise.
364         (S2): Likewise.
365         (SIZE): Likewise.
366         (__mpn_sub_n): Do not use BP_SYM.
367         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
368         "bp-asm.h".
369         (PARMS): Do not use macros from bp-asm.h.
370         (S1): Likewise.
371         (SIZE): Likewise.
372         (__mpn_submul_1): Do not use BP_SYM.
373         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
374         <bp-sym.h>.
375         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
376         and <bp-asm.h>.
377         (PARMS): Do not use macros from bp-asm.h.
378         (FLAGS): Likewise.
379         (PTID): Likewise.
380         (TLS): Likewise.
381         (CTID): Likewise.
382         (__clone): Do not use BP_SYM.
383         (clone): Do not use BP_SYM in weak_alias.
384         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
385         and <bp-asm.h>.
386         (PARMS): Do not use macros from bp-asm.h.
387         (LEN): Likewise.
388         (__mmap64): Do not use BP_SYM.
389         (mmap64): Do not use BP_SYM in weak_alias.
390         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
391         <bp-sym.h> and <bp-asm.h>.
392         (PARMS): Do not use macros from bp-asm.h.
393         (__posix_fadvise64_l64): Do not use BP_SYM.
394         * sysdeps/unix/sysv/linux/i386/semtimedop.S
395         (PARMS): Do not use macros from bp-asm.h.
396         (NSOPS): Likewise.
397         (semtimedop): Do not use BP_SYM.
398         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
399         and <bp-asm.h>.
400
401 2013-02-21  Allan McRae  <allan@archlinux.org>
402
403         * manual/message.texi (Charset conversion in gettext):
404         Move @end statement to beginning of line.
405
406 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
407
408         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
409         static.
410         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
411         Likewise.
412
413         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
414         (denorm): Likewise.
415         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
416         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
417
418 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
419
420         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
421         tail-call to the resolved function if pltexit isn't needed.
422
423 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
424
425         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
426         or Y being zero as being unlikely.
427         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
428         Likewise.
429
430 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
431
432         * manual/nss.texi (System Databases and Name Service Switch):
433         Remove frobnicate @pxref.
434
435 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
436
437         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
438         __attribute__ ((unused)) to __attribute__ ((__unused__)).
439
440 2013-02-20  Petr Machata  <pmachata@redhat.com>
441
442         * elf/elf.h (R_ARM_TARGET1): New macro.
443         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
444         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
445         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
446         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
447         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
448         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
449         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
450         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
451         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
452         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
453         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
454         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
455         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
456         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
457         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
458         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
459         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
460         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
461         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
462         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
463         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
464         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
465         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
466         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
467         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
468         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
469         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
470         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
471         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
472         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
473         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
474         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
475         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
476         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
477         (R_ARM_THM_GOT_BREL12): Likewise.
478         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
479         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
480         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
481         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
482         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
483         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
484         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
485         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
486         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
487
488 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
489
490         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
491         __attribute_used__ to __attribute__ ((unused)).
492
493 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
494
495         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
496         powerpc mpa.c.
497         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
498         comment formatting.
499         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
500
501 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
502
503         [BZ #13550]
504         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
505         Remove macro.
506         (ENTER): Remove both macro definitions.
507         (LEAVE): Likewise.
508         (CHECK_BOUNDS_LOW): Likewise.
509         (CHECK_BOUNDS_HIGH): Likewise.
510         (CHECK_BOUNDS_BOTH): Likewise.
511         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
512         (RETURN_BOUNDED_POINTER): Likewise.
513         (RETURN_NULL_BOUNDED_POINTER): Likewise.
514         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
515         (POP_ERRNO_LOCATION_RETURN): Likewise.
516         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
517         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
518         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
519         macros.
520         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
521         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
522         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
523         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
524         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
525         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
526         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
527         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
528         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
529         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
530         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
531         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
532         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
533         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
534         removed macros.
535         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
536         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
537         macros.
538         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
539         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
540         * sysdeps/i386/i586/memset.S (memset): Likewise.
541         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
542         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
543         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
544         macros.
545         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
546         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
547         Change uses of L(2) to L(out).
548         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
549         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
550         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
551         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
552         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
553         removed macros.
554         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
555         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
556         macros.
557         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
558         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
559         (RETURN): Do not use macro LEAVE.
560         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
561         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
562         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
563         * sysdeps/i386/i686/memset.S (memset): Likewise.
564         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
565         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
566         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
567         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
568         Likewise.
569         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
570         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
571         L(1_2) and L(1_3) into L(1).
572         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
573         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
574         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
575         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
576         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
577         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
578         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
579         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
580         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
581         macros.
582         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
583         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
584         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
585         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
586         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
587         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
588         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
589         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
590         * sysdeps/i386/strcspn.S (strcspn): Likewise.
591         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
592         * sysdeps/i386/strrchr.S (strrchr): Likewise.
593         * sysdeps/i386/strspn.S (strspn): Likewise.
594         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
595         conditional code.
596         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
597         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
598         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
599         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
600         L(1_3) into L(1_1).
601         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
602         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
603         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
604         macros.
605         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
606
607 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
608
609         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
610         macro.
611
612 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
613
614         * math/atest-exp.c (exp_mpn): Remove ROUND.
615         * math/atest-exp2.c (exp_mpn): Likewise.
616         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
617
618         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
619         * stdlib/tst-tls-atexit-lib.c: Likewise.
620         * stdlib/tst-tls-atexit.c: Likewise.
621
622 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
623
624         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
625         and __attribute_alloc_size__.
626
627 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
628
629         * include/programs/xmalloc.h: Change __attribute_alloc_size to
630         __attribute_alloc_size__.
631         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
632         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
633
634 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
635
636         * include/programs/xmalloc.h: New file.
637         * catgets/gencat.c: Include it.
638         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
639         * elf/pldd.c: Likewise.
640         * iconv/iconv_charmap.c: Likewise.
641         * iconv/iconvconfig.c: Likewise.
642         * iconv/strtab.c: Likewise.
643         * locale/programs/locale.c: Likewise.
644         * locale/programs/localedef.h: Likewise.
645         * locale/programs/simple-hash.c: Likewise.
646         * nscd/nscd.h: Likewise.
647         * nss/makedb.c: Likewise.
648         * sysdeps/generic/ldconfig.h: Likewise.
649
650 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
651
652         * Versions.def: Add GLIBC_2.18.
653         * include/link.h (struct link_map): New member l_tls_dtor_count.
654         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
655         (__call_tls_dtors): Likewise.
656         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
657         __cxa_thread_atexit_impl.
658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
659         Likewise.
660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
661         Likewise.
662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
663         Likewise.
664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
665         Likewise.
666         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
667         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
668         Likewise.
669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
670         Likewise.
671         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
672         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
673         Likewise.
674         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
675         (tests): Add test case tst-tls-atexit.
676         (modules-names): Add shared library for tst-tls-atexit.
677         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
678         (GLIBC_PRIVATE): Add __call_tls_dtors.
679         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
680         for libstdc++.
681         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
682         * stdlib/tst-tls-atexit.c: New test case.
683         * stdlib/tst-tls-atexit-lib.c: New test case.
684
685         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
686
687         * elf/Versions (ld): Add _dl_find_dso_for_object.
688         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
689         * elf/dl-open.c (_dl_find_dso_for_object): New function.
690         (dl_open_worker): Use _dl_find_dso_for_object.
691         * elf/dl-sym.c (do_sym): Likewise.
692         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
693
694 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
695
696         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
697         Syntactic changes only.
698         (_dl_runtime_profile): Do a tail-call to the resolved function.
699
700 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
701
702         [BZ #13550]
703         * sysdeps/x86_64/bp-asm.h: Remove file.
704         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
705         <bp-sym.h> and <bp-asm.h>.
706         (__clone): Do not use BP_SYM.
707         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
708         <bp-sym.h> and <bp-asm.h>.
709         * sysdeps/unix/x86_64/sysdep.S: Likewise.
710         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
711         "bp-asm.h".
712         (_setjmp): Do not use BP_SYM.
713         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
714         "bp-asm.h".
715         (setjmp): Do not use BP_SYM.
716         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
717         libc_hidden_def.
718         (mempcpy): Do not use BP_SYM in weak_alias.
719         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
720         "bp-asm.h".
721         (strchr): Do not use BP_SYM.
722         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
723         "bp-asm.h".
724         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
725         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
726         (_start): Do not use BP_SYM.
727         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
728         "bp-asm.h".
729         (strcat): Do not use BP_SYM.
730         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
731         "bp-asm.h".
732         (STRCMP): Do not use BP_SYM.
733         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
734         "bp-asm.h".
735         (STRCPY): Do not use BP_SYM.
736         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
737         "bp-asm.h".
738         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
739         "bp-asm.h".
740         (FUNCTION): Do not use BP_SYM.
741         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
742         weak_alias.
743         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
744
745 2013-02-17  Andreas Jaeger  <aj@suse.de>
746
747         * time/Versions: Sort entries.
748         * string/Versions: Likewise.
749         * resolv/Versions: Likewise.
750         * posix/Versions: Likewise.
751         * iconv/Versions: Likewise.
752         * elf/Versions: Likewise.
753         * wcsmbs/Versions: Likewise.
754
755 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
756
757         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
758         loop termination condition.
759
760         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
761         variable to calculate EZ.
762         (__sqr): Likewise.
763
764         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
765         the lower precision input.
766
767 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
768
769         [BZ #13550]
770         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
771         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
772         (run-via-rtld-prefix): Do not handle %-bp tests.
773         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
774         (all-object-suffixes): Remove .ob.
775         (bppfx): Remove variable.
776         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
777         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
778         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
779         [$(build-bounded) = yes] (libtype.ob): Likewise.
780         * Makerules (elide-routines.ob): Remove variable.
781         (do-tests-clean): Do not handle *-bp.out.
782         (common-mostlyclean): Do not handle *-bp and *-bp.out.
783         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
784         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
785         (tests): Do not include $(tests-bp.out).
786         (xtests): Do not include $(xtests-bp.out).
787         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
788         [$(build-bounded) = yes] ($(addprefix
789         $(objpfx),$(binaries-bounded))): Remove rule.
790         ($(objpfx)%-bp.out): Remove rule.
791         * config.make.in (build-bounded): Remove variable.
792         * crypt/Makefile [$(build-bounded) = yes]
793         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
794         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
795         append to variable.
796         [$(build-bounded) = yes] (install-lib): Likewise.
797         [$(build-bounded) = yes] (generated): Likewise.
798         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
799         Remove rule.
800         * intl/Makefile [$(build-bounded) = yes]
801         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
802         * math/Makefile [$(build-bounded) = yes]
803         ($(tests:%=$(objpfx)%-bp): Likewise.
804         * misc/Makefile [$(build-bounded) = yes]
805         ($(objpfx)tst-tsearch-bp): Likewise.
806         * nptl/Makeconfig (bounded-thread-library): Remove variable.
807         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
808         Remove dependency.
809         * string/Makefile (o-objects.ob): Remove variable.
810         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
811         (CFLAGS-.ob): Remove variable.
812         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
813         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
814         both definitions of variable.
815         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
816         (ASFLAGS-.ob): Remove variable.
817
818 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
819
820         [BZ #13550]
821         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
822         Remove __BOUNDED_POINTERS__ from condition.
823         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
824         * string/bits/string2.h [!__NO_STRING_INLINES &&
825         !__BOUNDED_POINTERS__]: Likewise.
826         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
827         Likewise.
828         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
829         Remove conditional code.
830         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
831         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
832         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
833         condition.
834
835         [BZ #13550]
836         * csu/libc-start.c: Do not include <bp-sym.h>.
837         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
838         * elf/dl-open.c: Do not include <bp-sym.h>.
839         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
840         * math/fegetenv.c: Do not include <bp-sym.h>.
841         (fegetenv): Do not use BP_SYM in versioned symbols.
842         * nptl/sysdeps/pthread/bits/libc-lockP.h
843         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
844         <bp-sym.h>.
845         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
846         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
847         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
848         (__pthread_mutex_destroy): Likewise.
849         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
850         (__pthread_mutex_lock): Likewise.
851         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
852         (__pthread_mutex_trylock): Likewise.
853         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
854         (__pthread_mutex_unlock): Likewise.
855         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
856         (__pthread_mutexattr_init): Likewise.
857         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
858         (__pthread_mutexattr_destroy): Likewise.
859         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
860         (__pthread_mutexattr_settype): Likewise.
861         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
862         (__pthread_rwlock_init): Likewise.
863         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
864         (__pthread_rwlock_destroy): Likewise.
865         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
866         (__pthread_rwlock_rdlock): Likewise.
867         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
868         (__pthread_rwlock_tryrdlock): Likewise.
869         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
870         (__pthread_rwlock_wrlock): Likewise.
871         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
872         (__pthread_rwlock_trywrlock): Likewise.
873         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
874         (__pthread_rwlock_unlock): Likewise.
875         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
876         (__pthread_key_create): Likewise.
877         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
878         (__pthread_setspecific): Likewise.
879         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
880         (__pthread_getspecific): Likewise.
881         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
882         Likewise.
883         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
884         (_pthread_cleanup_push_defer): Likewise.
885         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
886         (_pthread_cleanup_pop_restore): Likewise.
887         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
888         (pthread_setcancelstate): Likewise.
889         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
890         <bp-sym.h>.
891         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
892         (memchr): Do not use BP_SYM in weak_alias.
893         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
894         (fegetenv): Do not use BP_SYM in versioned symbols.
895         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
896         (fesetenv): Do not use BP_SYM in versioned symbols.
897         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
898         (feupdateenv): Do not use BP_SYM in versioned symbols.
899         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
900         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
901         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
902         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
903         (open64): Do not use BP_SYM in weak_alias.
904         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
905         (fegetenv): Do not use BP_SYM in versioned symbols.
906         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
907         (fesetenv): Do not use BP_SYM in versioned symbols.
908         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
909         (feupdateenv): Do not use BP_SYM in versioned symbols.
910         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
911         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
912         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
913         (feraiseexcept): Do not use BP_SYM in versioned symbols.
914         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
915         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
916         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
917         <bp-sym.h>.
918         (__libc_start_main): Do not use BP_SYM.
919
920 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
921
922         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
923         redundant return line.
924         (norm): Likewise.
925         (denorm): Likewise.
926         (dbl_mp): Likewise.
927         (sub_magnitudes): Likewise.
928         (__add): Likewise.
929         (__sub): Likewise.
930         (__mul): Likewise.
931         (__inv): Likewise.
932         (__dvd): Likewise.
933         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
934         (norm): Likewise.
935         (denorm): Likewise.
936         (dbl_mp): Likewise.
937         (sub_magnitudes): Likewise.
938         (__add): Likewise.
939         (__sub): Likewise.
940         (__mul): Likewise.
941         (__inv): Likewise.
942         (__dvd): Likewise.
943
944         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
945         instead of __mul.
946         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
947         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
948         (cc32): Likewise.
949
950         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
951         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
952         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
953         of __mul for squares.
954         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
955         function
956         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
957         Likewise.
958         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
959         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
960
961 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
962
963         [BZ #13550]
964         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
965         code.
966         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
967         prototype or function definition.  Rename ubp_* variables and
968         parameters.  Remove argv definitions conditional on
969         [__BOUNDED_POINTERS__].
970         * debug/backtrace.c (__backtrace): Do not use __unbounded.
971         * elf/dl-runtime.c (_dl_fixup): Likewise.
972         * include/set-hooks.h (RUN_HOOK): Likewise.
973         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
974         definition.
975         * string/strcpy.c (strcpy): Do not use __unbounded.
976         * sysdeps/generic/frame.h (struct layout): Likewise.
977         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
978         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
979         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
980         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
981         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
982         (__backtrace): Likewise.
983         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
984         use __ptrvalue.
985         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
986         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
987         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
988         Likewise.
989         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
990         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
991         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
992         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
993         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
994         Do not use __unbounded.
995         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
996         Rename __unboundedrlimits parameter to rlimits in prototype.
997         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
998         Do not use __unbounded.
999         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
1000         not use __ptrvalue.
1001         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1002         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
1003         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1004         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
1005         __ptrvalue or __unbounded.
1006         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
1007         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
1008         use __unbounded.
1009         (__new_msgctl): Do not use __ptrvalue.
1010         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
1011         __unbounded.
1012         (__libc_msgrcv): Do not use __ptrvalue.
1013         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
1014         startup_info): Do not use __unbounded.
1015         (__libc_start_main): Likewise.  Rename ubp_* variables and
1016         parameters.  Remove argv definitions conditional on
1017         [__BOUNDED_POINTERS__].
1018         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
1019         __ptrvalue.
1020         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
1021         use __unbounded.
1022         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
1023         or __ptrvalue.
1024         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
1025         use __unbounded.
1026         (__new_shmctl): Do not use __ptrvalue.
1027         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
1028         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
1029         Likewise.
1030         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
1031         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
1032         (__libc_sigaction): Likewise.
1033         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1034         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
1035         Likewise.
1036         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1037
1038 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
1039
1040         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
1041
1042         * string/mempcpy.c: Implement by calling memcpy.
1043
1044 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1045
1046         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
1047
1048         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
1049         evaluation.
1050
1051         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
1052         values in the mantissa.
1053
1054         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
1055         minimize writes to Z.
1056         (sub_magnitudes): Simplify code a bit.
1057
1058 2013-02-12  Roland McGrath  <roland@hack.frob.com>
1059
1060         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
1061         from the message.  The linker prefixes all warnings with that already.
1062
1063 2013-02-12  Andreas Schwab  <schwab@suse.de>
1064
1065         [BZ #15078]
1066         * posix/regexec.c (extend_buffers): Add parameter min_len.
1067         (check_matching): Pass minimum needed length.
1068         (clean_state_log_if_needed): Likewise.
1069         (get_subexp): Likewise.
1070         * posix/Makefile (tests): Add bug-regex34.
1071         (bug-regex34-ENV): Define.
1072         * posix/bug-regex34.c: New file.
1073
1074         [BZ #11561]
1075         * posix/regcomp.c (parse_bracket_exp): When looking up collating
1076         elements compare against the byte sequence of it, not its name.
1077         * posix/Makefile (tests): Add bug-regex35.
1078         (bug-regex35-ENV): Define.
1079         * posix/bug-regex35.c: New file.
1080
1081 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1082
1083         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
1084         comment.
1085         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
1086         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
1087         (CHECK_EOL): Add undef.
1088
1089 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
1090
1091         * bits/stdlib-bsearch.h: New file.
1092         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
1093         * stdlib/stdlib.h: Likewise.
1094
1095 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1096
1097         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
1098         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
1099         declaration.
1100         * manual/search.texi (Array Search Function): Add missing const in
1101         lfind prototype.
1102         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
1103         declaration to use rlim_t.
1104         (Basic Scheduling Functions): Remove erroneous const from
1105         sched_getparam prototype.  Remove erroneous * from
1106         sched_get_priority_max and sched_get_priority_min prototypes.
1107         (Resource Usage): Fix summary @comment on vtimes to refer to
1108         sys/vtimes.h rather than vtimes.h.
1109         Add missing *s in vtimes prototype.
1110         (Limits on Resources): Fix ulimit prototype to return long int.
1111         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
1112         prototypes to use long int rather than double.
1113         (BSD Random): Fix initstate and setstate to use char *, not void *.
1114         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
1115         prototype to make second argument 'struct aiocb64 *const[]'.
1116         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
1117         (Status of AIO Operations): Remove erroneous const in aio_return and
1118         aio_return64 prototypes.
1119         (Synchronizing I/O): Fix sync prototype to return void.
1120         * manual/startup.texi (Suboptions): Remove an erroneous const in
1121         getsubopt prototype.
1122         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
1123         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
1124         use size_t rather than int.
1125         (Scanning All Users): Likewise for getpwent_r.
1126         (Setting Groups): Add missing const to setgroups prototype.
1127         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
1128         * manual/socket.texi (Host Names): Fix gethostbyaddr and
1129         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
1130         'const void *' rather than 'const char *'.
1131         (Host Address Functions): Likewise for inet_ntop.
1132         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
1133         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
1134         ssize_t for return value.
1135         (Sending Data): Likewise for send, sendto, sendmsg.
1136         (Socket Option Functions): Add a missing const in setsockopt prototype.
1137         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
1138         use wchar_t for the argument.
1139         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
1140         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
1141         take no arguments.
1142         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
1143         double/float/long double for second argument.
1144         Fix return types of significand, significandf, significandl.
1145         * manual/filesys.texi (Setting Permissions): Use mode_t for second
1146         argument in fchmod prototype.
1147         (File Owner): Use uid_t and gid_t in fchown prototype.
1148         (File Times): Add const to utimes, futimes, and lutimes prototypes.
1149         (Making Special Files): Use mode_t and dev_t in mknod prototype.
1150         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
1151         use 'const struct dirent **' as argument types to CMP function pointer
1152         argument.
1153         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
1154         (File Times): Fix summary magic @comment for struct utimbuf and utime
1155         to refer to utime.h, not time.h.
1156         * manual/string.texi (Argz Functions): Add missing const in
1157         argz_extract and argz_next prototypes.
1158         (Finding Tokens in a String): Likewise for basename.
1159         (String/Array Comparison): Fix typo in wcscasecmp prototype.
1160         (Copying and Concatenation): Fix typo in wmemmove prototype.
1161         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
1162         (Signal Stack): Remove erroneous const in sigstack prototype.
1163         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
1164         prototype.
1165         (Simple Calendar Time): Likewise for stime.
1166         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
1167         prototype.
1168         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
1169         say sys/sysctl.h instead.
1170         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
1171         and vsyslog prototypes.
1172
1173 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1174
1175         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
1176         Remove.
1177
1178 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1179
1180         * misc/sys/mman.h: Fix typo in mremap comment.
1181
1182 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1183
1184         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
1185         the '\0' terminator.
1186
1187 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1188
1189         [BZ #13550]
1190         * debug/segfault.c: Don't include <bp-checks.h>.
1191         * sysdeps/generic/bp-checks.h: Remove file.
1192         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
1193         (__GETDENTS): Don't use CHECK_N.
1194         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
1195         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1196         (__getgroups): Don't use CHECK_N.
1197         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1198         (setgroups): Don't use CHECK_N.
1199         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
1200         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1201         (__libc_msgrcv): Don't use CHECK_N.
1202         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
1203         (__libc_msgsnd): Don't use CHECK_N.
1204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
1205         <bp-checks.h>.
1206         (__libc_pread): Don't use CHECK_N.
1207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
1208         include <bp-checks.h>.
1209         (__libc_pread64): Don't use CHECK_N.
1210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
1211         include <bp-checks.h>.
1212         (__libc_pwrite): Don't use CHECK_N.
1213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
1214         include <bp-checks.h>.
1215         (__libc_pwrite64): Don't use CHECK_N.
1216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
1217         <bp-checks.h>.
1218         (__libc_pread): Don't use CHECK_N.
1219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
1220         include <bp-checks.h>.
1221         (__libc_pread64): Don't use CHECK_N.
1222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
1223         include <bp-checks.h>.
1224         (__libc_pwrite): Don't use CHECK_N.
1225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
1226         include <bp-checks.h>.
1227         (__libc_pwrite64): Don't use CHECK_N.
1228         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
1229         (do_pread): Don't use CHECK_N.
1230         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
1231         (do_pread64): Don't use CHECK_N.
1232         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
1233         (do_pwrite): Don't use CHECK_N.
1234         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
1235         (do_pwrite64): Don't use CHECK_N.
1236         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
1237         (__libc_readv): Don't use CHECK_N.
1238         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
1239         (semop): Don't use CHECK_N.
1240         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
1241         <bp-checks.h>.
1242         (semtimedop): Don't use CHECK_N.
1243         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
1244         (__libc_pread): Don't use CHECK_N.
1245         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
1246         <bp-checks.h>.
1247         (__libc_pread64): Don't use CHECK_N.
1248         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
1249         <bp-checks.h>.
1250         (__libc_pwrite): Don't use CHECK_N.
1251         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
1252         <bp-checks.h>.
1253         (__libc_pwrite64): Don't use CHECK_N.
1254         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
1255         <bp-checks.h>.
1256         (__libc_msgrcv): Don't use CHECK_N.
1257         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
1258         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
1259         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
1260         (__libc_writev): Don't use CHECK_N.
1261
1262 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1263
1264         * string/strcpy.c: Removed unused variable.
1265
1266         * Makeconfig (+sysdep-includes): Define with := rather than =.
1267         Use an existing include/ subdir of each sysdeps dir before it.
1268
1269 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1270
1271         * nscd/connection.c (register_traced_file): Comment function.
1272         [HAVE_INOTIFY] (union __inev): Define.
1273         [HAVE_INOTIFY] (inotify_check_files): New function.
1274         [HAVE_INOTIFY] (clear_db_cache): Likewise.
1275         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
1276         clear_db_cache.
1277         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
1278
1279 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1280
1281         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
1282         loaded if not already and that a failure is permanent.
1283
1284 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1285
1286         [BZ #15006]
1287         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
1288         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
1289
1290 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1291
1292         [BZ #13550]
1293         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
1294         (CHECK_1_NULL_OK): Likewise.
1295         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
1296         (__fxstat): Do not use CHECK_1.
1297         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
1298         <bp-checks.h>.
1299         (___fxstat64): Do not use CHECK_1.
1300         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
1301         <bp-checks.h>.
1302         (__fxstatat): Do not use CHECK_1.
1303         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
1304         <bp-checks.h>.
1305         (__fxstatat64): Do not use CHECK_1.
1306         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
1307         <bp-checks.h>.
1308         (__fxstat): Do not use CHECK_1.
1309         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
1310         <bp-checks.h>.
1311         (__fxstatat): Do not use CHECK_1.
1312         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1313         <bp-checks.h>.
1314         (__getresgid): Do not use CHECK_1.
1315         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1316         <bp-checks.h>.
1317         (__getresuid): Do not use CHECK_1.
1318         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
1319         <bp-checks.h>.
1320         (__lxstat): Do not use CHECK_1.
1321         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1322         <bp-checks.h>.
1323         (__old_msgctl): Do not use CHECK_1.
1324         (__new_msgctl): Likewise.
1325         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
1326         <bp-checks.h>.
1327         (__new_setrlimit): Do not use CHECK_1.
1328         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1329         <bp-checks.h>.
1330         (__old_shmctl): Do not use CHECK_1.
1331         (__new_shmctl): Likewise.
1332         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
1333         <bp-checks.h>.
1334         (__xstat): Do not use CHECK_1.
1335         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
1336         (__lxstat): Do not use CHECK_1.
1337         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
1338         <bp-checks.h>.
1339         (___lxstat64): Do not use CHECK_1.
1340         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
1341         (__old_msgctl): Do not use CHECK_1.
1342         (__new_msgctl): Likewise.
1343         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
1344         <bp-checks.h>.
1345         (__gettimeofday): Do not use CHECK_1.
1346         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
1347         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
1348         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
1349         <bp-checks.h>.
1350         (__gettimeofday): Do not use CHECK_1.
1351         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
1352         (__old_shmctl): Do not use CHECK_1_NULL_OK.
1353         (__new_shmctl): Do not use CHECK_1.
1354         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
1355         <bp-checks.h>.
1356         (do_sigtimedwait): Do not use CHECK_1.
1357         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
1358         <bp-checks.h>.
1359         (do_sigwaitinfo): Do not use CHECK_1.
1360         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
1361         <bp-checks.h>.
1362         (msgctl): Do not use CHECK_1.
1363         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
1364         <bp-checks.h>.
1365         (shmctl): Do not use CHECK_1.
1366         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
1367         (ustat): Do not use CHECK_1.
1368         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
1369         <bp-checks.h>.
1370         (__fxstat): Do not use CHECK_1.
1371         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
1372         <bp-checks.h>.
1373         (__fxstatat): Do not use CHECK_1.
1374         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
1375         <bp-checks.h>.
1376         (__lxstat): Do not use CHECK_1.
1377         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
1378         <bp-checks.h>.
1379         (__xstat): Do not use CHECK_1.
1380         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
1381         (__xstat): Do not use CHECK_1.
1382         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
1383         (___xstat64): Do not use CHECK_1.
1384
1385         [BZ #13550]
1386         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
1387         definitions.
1388         (CHECK_BOUNDS_HIGH): Likewise.
1389         * string/strcpy.c: Do not include <bp-checks.h>.
1390         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
1391
1392 2013-02-07  Roland McGrath  <roland@hack.frob.com>
1393
1394         * nscd/nscd-client.h (__nscd_drop_map_ref):
1395         Add __attribute__ ((unused)).
1396         * nis/nss-nisplus.h (niserr2nss): Likewise.
1397
1398         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
1399         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
1400
1401         * csu/libc-tls.c (init_static_tls, init_slotinfo):
1402         Remove inline keyword.
1403         * include/rounding-mode.h (round_away): Likewise.
1404         * libio/wfileops.c (adjust_wide_data): Likewise.
1405         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
1406         (__m128i_strloadu_tolower): Likewise.
1407         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
1408         (__m128i_strloadu_tolower): Likewise.
1409         * time/mktime.c (ydhms_diff): Likewise.
1410         * locale/elem-hash.h (elem_hash): Likewise.
1411         * locale/setlocale.c (setdata): Likewise.
1412         * posix/regex_internal.h (re_string_char_size_at): Likewise.
1413         (re_string_wchar_at): Likewise.
1414         (bitset_not, bitset_merge, bitset_mask): Likewise.
1415         [!(__GNUC__ > 3)] (inline): Remove macro.
1416         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
1417         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
1418         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
1419         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1420         * string/memcmp.c (memcmp_bytes): Likewise.
1421         * locale/programs/locarchive.c (compute_hashval): Likewise.
1422         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
1423         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
1424         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
1425         * nss/getent.c (print_rpc, print_protocols): Likewise.
1426         (print_passwd, print_group, print_aliases): Likewise.
1427         * nis/nss-nisplus.h (niserr2nss): Likewise.
1428         * nscd/connections.c (restart_p): Likewise.
1429         Change return type to bool.
1430
1431 2013-02-05  Roland McGrath  <roland@hack.frob.com>
1432
1433         * Makeconfig (all-Depend-files): Add existing
1434         $(sorted-subdirs:=/Depend) files.
1435         (all-subdirs): Remove nss.
1436         * sysdeps/unix/inet/Subdirs: Add it here instead.
1437         * hesiod/Depend: New file.
1438
1439         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
1440         instead of calling alloca.
1441
1442         * io/lseek.c (__lseek): Rename to __libc_lseek.
1443         Define __lseek as an alias.
1444
1445         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
1446
1447 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
1448
1449         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
1450         else clause and remove check for non-standard endianness.
1451
1452 2013-02-04  David S. Miller  <davem@davemloft.net>
1453
1454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1455
1456 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
1457
1458         [BZ #13550]
1459         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
1460         (__ubp_memchr): Remove prototype.
1461         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
1462         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1463         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
1464         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1465         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
1466         Remove alias.
1467         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
1468         (__ubp_memchr): Likewise.
1469         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
1470         (__ubp_memchr): Likewise.
1471         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
1472         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
1473         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
1474         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
1475         CHECK_STRING.
1476         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
1477         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
1478         (__getcwd): Do not use CHECK_STRING.
1479         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1480         <bp-checks.h>.
1481         (__real_chown): Do not use CHECK_STRING.
1482         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
1483         <bp-checks.h>.
1484         (fchownat): Do not use CHECK_STRING.
1485         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
1486         CHECK_STRING.
1487         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1488         <bp-checks.h>.
1489         (__lchown): Do not use CHECK_STRING.
1490         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1491         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1492         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1493         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
1494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1495         include <bp-checks.h>.
1496         (truncate64): Do not use CHECK_STRING.
1497         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
1498         <bp-checks.h>.
1499         (__real_chown): Do not use CHECK_STRING.
1500         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
1501         <bp-checks.h>.
1502         (__lchown): Do not use CHECK_STRING.
1503         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
1504         <bp-checks.h>.
1505         (__chown): Do not use CHECK_STRING.
1506         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
1507         <bp-checks.h>.
1508         (truncate64): Do not use CHECK_STRING.
1509         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
1510         Likewise.
1511         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
1512         (__xmknod): Do not use CHECK_STRING.
1513         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
1514         <bp-checks.h>.
1515         (__xmknodat): Do not use CHECK_STRING.
1516         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1517         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
1518
1519 2013-02-04  Andreas Schwab  <schwab@suse.de>
1520
1521         [BZ #14142]
1522         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
1523         * include/netdb.h: Likewise for h_errno.
1524         * elf/tst-stackguard1.c: Include <tls.h>.
1525
1526 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1527
1528         * elf/link.h (struct link_map): Extend the l_addr comment.
1529         * include/link.h (struct link_map): Likewise.
1530
1531 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
1532
1533         [BZ #13550]
1534         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
1535         (BOUNDED_1): Remove macro.
1536         * debug/backtrace.c: Don't include <bp-checks.h>.
1537         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
1538         (__backtrace): Likewise.
1539         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
1540         <bp-checks.h>.
1541         (__backtrace): Don't use BOUNDED_1.
1542         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
1543         <bp-checks.h>.
1544         (__backtrace): Don't use BOUNDED_1.
1545         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
1546         (__backtrace): Don't use BOUNDED_1.
1547         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
1548         (shmat): Don't use BOUNDED_N.
1549
1550 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
1551
1552         [BZ #13550]
1553         * sysdeps/generic/bp-start.h: Remove file.
1554         * csu/libc-start.c: Don't include <bp-start.h>.
1555         (LIBC_START_MAIN): Set up __environ directly instead of using
1556         INIT_ARGV_and_ENVIRON.
1557         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
1558         <bp-start.h>.
1559
1560         [BZ #13550]
1561         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
1562         definitions.
1563         (CHECK_FCNTL): Likewise.
1564         (CHECK_N_PAGES): Likewise.
1565
1566         [BZ #13550]
1567         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
1568         definitions.
1569         (CHECK_SIGSET_NULL_OK): Likewise.
1570         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
1571         <bp-checks.h>.
1572         (sigpending): Don't use CHECK_SIGSET.
1573         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
1574         <bp-checks.h>.
1575         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1576         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
1577         <bp-checks.h>.
1578         (do_sigsuspend): Don't use CHECK_SIGSET.
1579         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
1580         use CHECK_SIGSET.
1581         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
1582         (do_sigwait): Don't use CHECK_SIGSET.
1583         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
1584         use CHECK_SIGSET.
1585         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
1586         include <bp-checks.h>.
1587         (sigpending): Don't use CHECK_SIGSET.
1588         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
1589         include <bp-checks.h>.
1590         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1591         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
1592         <bp-checks.h>.
1593         (sigpending): Don't use CHECK_SIGSET.
1594         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
1595         <bp-checks.h>.
1596         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1597
1598         [BZ #13550]
1599         * sysdeps/generic/bp-semctl.h: Remove file.
1600         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
1601         <bp-checks.h> and <bp-semctl.h>.
1602         (__old_semctl): Don't use CHECK_SEMCTL.
1603         (__new_semctl): Likewise.
1604         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
1605         and <bp-semctl.h>.
1606         (__old_semctl): Don't use CHECK_SEMCTL.
1607         (__new_semctl): Likewise.
1608         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
1609         <bp-checks.h> and <bp-semctl.h>.
1610         (__old_semctl): Don't use CHECK_SEMCTL.
1611         (__new_semctl): Likewise.
1612         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
1613         <bp-checks.h> and <bp-semctl.h>.
1614         (semctl): Don't use CHECK_SEMCTL.
1615
1616         [BZ #13550]
1617         * Makerules (elide-bp-thunks): Remove variable.
1618         (elide-routines.oS): Don't use $(elide-bp-thunks).
1619         (elide-routines.os): Likewise.
1620         (elide-routines.o): Likewise.
1621         (elide-routines.op): Likewise.
1622         (elide-routines.og): Likewise.
1623         (objects): Don't use $(bp-thunks).
1624         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
1625         include.
1626         (common-generated): Do not add s-proto-bp.d.
1627         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
1628         (int): Likewise.
1629         (typ): Likewise.
1630         Do not generate makefile rules for bounded-pointer thunks.
1631         * sysdeps/generic/bp-thunks.h: Remove file.
1632         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1633         * sysdeps/unix/s-proto-bp.S: Likewise.
1634
1635         [BZ #15062]
1636         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
1637         parts of result separately when argument is not close to line from
1638         -i to i and one part of argument is small.
1639         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1640         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1641         * math/libm-test.inc (cacos_test): Add more tests.
1642         (casin_test): Likewise.
1643         (casinh_test): Likewise.
1644         * sysdeps/i386/fpu/libm-test-ulps: Update.
1645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1646
1647 2013-01-31  David S. Miller  <davem@davemloft.net>
1648
1649         * po/de.po: Update from translation team.
1650
1651 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
1652
1653         * time/tzfile.c: Include stdint.h for SIZE_MAX.
1654
1655 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
1656
1657         * configure.in (_AC_PROG_CC_C89): New definition.
1658         * configure: Regenerate.
1659
1660         * configure.in (AC_PROG_CPP): New definition.
1661         * configure: Regenerate.
1662
1663 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
1664
1665         * debug/tst-backtrace.h: New file.
1666         * debug/tst-backtrace2.c: Include tst-backtrace.h.
1667         (ret): Remove variable.
1668         (x): Likewise.
1669         (FAIL): Remove macro.
1670         (NO_INLINE): Likewise.
1671         (fn1): Use match function instead of strstr.
1672         * debug/tst-backtrace3.c: Include tst-backtrace.h.
1673         (ret): Remove variable.
1674         (x): Likewise.
1675         (FAIL): Remove macro.
1676         (NO_INLINE): Likewise.
1677         (fn): Use match function instead of strstr.
1678         * debug/tst-backtrace4.c: Include tst-backtrace.h.
1679         (ret): Remove variable.
1680         (x): Likewise.
1681         (FAIL): Remove macro.
1682         (NO_INLINE): Likewise.
1683         (handle_signal): Use match function instead of strstr.
1684         * debug/tst-backtrace5.c: Include tst-backtrace.h.
1685         (ret): Remove variable.
1686         (x): Likewise.
1687         (FAIL): Remove macro.
1688         (NO_INLINE): Likewise.
1689         (handle_signal): Use match function instead of strstr.
1690
1691 2013-01-23  Roland McGrath  <roland@hack.frob.com>
1692
1693         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
1694
1695 2013-01-23  David S. Miller  <davem@davemloft.net>
1696
1697         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1698         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
1699         argument of CAS if possible.
1700         * sysdeps/sparc/sparc64/bits/atomic.h
1701         (__arch_compare_and_exchange_val_32_acq): Likewise.
1702         (__arch_compare_and_exchange_val_64_acq): Likewise.
1703
1704 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
1705
1706         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
1707         * sysdeps/posix/ulimit.c: ... this.
1708         Include <limits.h>.
1709         * sysdeps/unix/bsd/ulimit.c: Remove file.
1710
1711 2013-01-23  Adam Conrad  <adconrad@0c3.net>
1712
1713         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
1714         (LDFLAGS-tst-array5): Likewise.
1715
1716 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
1717
1718         [BZ #15036]
1719         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
1720         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
1721         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
1722         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
1723
1724 2013-01-21  David S. Miller  <davem@davemloft.net>
1725
1726         * sysdeps/sparc/backtrace.c: New file.
1727         * sysdeps/sparc/sparc32/backtrace.h: New file.
1728         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
1729         * sysdeps/sparc/sparc64/backtrace.h: New file.
1730         * sysdeps/sparc/sparc64/backtrace.c: Delete.
1731         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
1732         -funwind-tables.
1733
1734 2013-01-21  Andreas Schwab  <schwab@suse.de>
1735
1736         [BZ #15020]
1737         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
1738         closed its stdout.
1739
1740 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
1741
1742         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
1743         "mpa2.h".
1744         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1745
1746 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
1747             Mark Mitchell  <mark@codesourcery.com>
1748             Tom de Vries  <tom@codesourcery.com>
1749             Paul Pluzhnikov  <ppluzhnikov@google.com>
1750
1751         * debug/tst-backtrace2.c: New file.
1752         * debug/tst-backtrace3.c: Likewise.
1753         * debug/tst-backtrace4.c: Likewise.
1754         * debug/tst-backtrace5.c: Likewise.
1755         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
1756         (CFLAGS-tst-backtrace3.c): Likewise.
1757         (CFLAGS-tst-backtrace4.c): Likewise.
1758         (CFLAGS-tst-backtrace5.c): Likewise.
1759         (LDFLAGS-tst-backtrace2): Likewise.
1760         (LDFLAGS-tst-backtrace3): Likewise.
1761         (LDFLAGS-tst-backtrace4): Likewise.
1762         (LDFLAGS-tst-backtrace5): Likewise.
1763         (tests): Add new tests tst-backtrace2, tst-backtrace3,
1764         tst-backtrace4 and tst-backtrace5.
1765
1766 2013-01-18  Anton Blanchard  <anton@samba.org>
1767             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1768
1769         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
1770         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
1771         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
1772         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
1773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1774         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
1775         "+r" and remove output regs list as redundant.  Add explicit inline
1776         asm to specify register of return val to work around compiler codegen
1777         bug.  Remove (int) cast on return value.  Add return type parameter to
1778         use in macro so that this macro does not truncate return value for
1779         64-bit values.
1780         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
1781         pass to INTERNAL_VSYSCALL_NCS.
1782         (INLINE_VSYSCALL): Add 'long int' as return type to
1783         INTERNAL_VSYSCALL_NCS macro invocation.
1784         (INTERNAL_VSYSCALL): Add 'long int' as return type to
1785         INTERNAL_VSYSCALL_NCS macro invocation.
1786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1787
1788 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1789
1790         [BZ #14496]
1791         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
1792         Fix application of SIMD FP exception mask.
1793
1794         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
1795         mp_no from a power of two.
1796         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
1797         __mpexp_twomm1.  Use __pow_mp.
1798
1799         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
1800         multiplication.
1801
1802 2013-01-17  David S. Miller  <davem@davemloft.net>
1803
1804         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1805
1806 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1807
1808         [BZ #15023]
1809         * include/complex.h: Condition contents on [!_COMPLEX_H].
1810         (__kernel_casinhf): New prototype.
1811         (__kernel_casinh): Likewise.
1812         (__kernel_casinhl): Likewise.
1813         * math/Makefile (libm_calls): Add k_casinh.
1814         * math/k_casinh.c: New file.
1815         * math/k_casinhf.c: Likewise.
1816         * math/k_casinhl.c: Likewise.
1817         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
1818         finite nonzero arguments.
1819         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
1820         finite nonzero arguments.
1821         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
1822         finite nonzero arguments.
1823         * math/s_casinh.c: Do not include <float.h>.
1824         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
1825         * math/s_casinhf.c: Do not include <float.h>.
1826         (__casinhf): Move code for finite nonzero arguments to
1827         k_casinhf.c.
1828         * math/s_casinhl.c: Do not include <float.h>.
1829         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
1830         redefine.
1831         (__casinhl): Move code for finite nonzero arguments to
1832         k_casinhl.c.
1833         * math/libm-test.inc (cacos_test): Add more tests.
1834         * sysdeps/i386/fpu/libm-test-ulps: Update.
1835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1836
1837 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
1838
1839         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
1840         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
1841         [!HAVE_MREMAP]: Remove [defined linux] case.
1842         * malloc/arena.c: Do not include <malloc-sysdep.h>.
1843
1844 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1845
1846         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
1847
1848 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1849
1850         * elf/elf.h (R_386_SIZE32): New relocation.
1851         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
1852         R_386_SIZE32.
1853         (elf_machine_rela): Likewise.
1854         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1855         R_X86_64_SIZE64 and R_X86_64_SIZE32.
1856
1857 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1858
1859         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
1860         (FP_FAST_FMA): Do not define.
1861         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
1862         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
1863         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
1864         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
1865         !_SOFT_FLOAT]: Likewise.
1866         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
1867         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
1868         value.
1869         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
1870         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
1871         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
1872         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
1873         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
1874         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
1875         file.
1876
1877 2013-01-16  Andreas Schwab  <schwab@suse.de>
1878
1879         [BZ #14327]
1880         * include/stdlib.h (__mktemp): Add declaration.
1881         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
1882         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
1883
1884 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1885
1886         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
1887         definitions.
1888         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1889         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
1890         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
1891         definitions here.
1892         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
1893         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
1894         definitions.
1895         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
1896         and ONE.
1897         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
1898         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
1899         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
1900         definitions.
1901         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
1902         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
1903         definitions.
1904         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1905
1906         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
1907
1908 2013-01-15  David S. Miller  <davem@davemloft.net>
1909
1910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1911         trunc{,f} to libm-sysdep_routes.
1912         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
1914         file.
1915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
1916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
1917         file.
1918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
1919         file.
1920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
1921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
1922         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
1923         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
1924         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
1925         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
1926         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
1927         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
1928
1929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1930         nearbyint{,f} to libm-sysdep_routes.
1931         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
1933         New file.
1934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
1935         file.
1936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
1937         New file.
1938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
1939         file.
1940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
1941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
1942         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
1943         file.
1944         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
1945         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
1946         file.
1947         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
1948         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
1949         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
1950
1951         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
1952         libc_feholdexcept and libc_fesetenv.
1953
1954 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
1955
1956         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
1957
1958 2013-01-14  David S. Miller  <davem@davemloft.net>
1959
1960         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
1961         (SPARC_ASM_VIS2_IFUNC): Likewise.
1962         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
1963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
1964         use of 'siam' instruction.
1965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
1966         Likewise.
1967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
1968         Likewise.
1969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
1970         Likewise.
1971         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
1972         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
1973         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
1974         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
1975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
1976         file.
1977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
1978         file.
1979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
1980         file.
1981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
1982         file.
1983         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
1984         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
1985         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
1986         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
1987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
1988         new VIS2 routines.
1989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1992         Likewise.
1993         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1994         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1995         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1996         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
1998         routines to libm-sysdep_routines.
1999         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2000
2001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2002         fdim/fdimf to libm-sysdep_routines.
2003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
2004         file.
2005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
2006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
2007         file.
2008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
2009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
2010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
2011         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
2012         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
2013         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
2014         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
2015
2016 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2017
2018         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
2019         to optimize copies.
2020
2021         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
2022         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2023         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2024
2025         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
2026         local variable MPTWO.
2027         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2028         Likewise.
2029
2030 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2031
2032         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
2033         GLOB_NOESCAPE.
2034
2035 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2036
2037         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
2038
2039 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2040
2041         * manual/pattern.texi (glob_t): Document gl_flags.
2042         (glob64_t): Likewise.
2043
2044 2013-01-11  David S. Miller  <davem@davemloft.net>
2045
2046         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
2047         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
2048         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
2049         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
2050         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
2051         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
2052         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
2053         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
2054         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
2055         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
2056         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
2057         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
2058         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
2059
2060         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2061         sparc V9 rather than using V8 code.
2062         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2063         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2064
2065         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2066         Move to...
2067         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
2068         Here.
2069
2070 2013-01-11  Roland McGrath  <roland@hack.frob.com>
2071
2072         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
2073         not in the main loop.
2074         * configure: Regenerated.
2075
2076 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
2077
2078         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
2079         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
2080         to just #else.
2081         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
2082         [!__GLIBC_HAVE_LONG_LONG] case.
2083         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
2084         condition to just #else.
2085         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
2086         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
2087         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
2088         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
2089         unconditional.
2090         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
2091         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2092         #elif condition to just #else.
2093         * sysdeps/unix/sysv/linux/sys/sysmacros.h
2094         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
2095         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2096         #elif condition to just #else.
2097
2098 2013-01-11  Steve Ellcey  <sellcey@mips.com>
2099
2100         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
2101         (EF_MIPS_ARCH_64): Fix value.
2102         (EF_MIPS_ARCH_32R2): New.
2103         (EF_MIPS_ARCH_64R2): New.
2104
2105 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
2106
2107         * Makeconfig (+link-pie-before-libc): New.
2108         (+link-pie-after-libc): Likewise.
2109         (+link-pie-tests): Likewise.
2110         (+link-pie): Rewritten.
2111         (link-before-libc): Remove $(config-LDFLAGS).
2112         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
2113         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
2114         (config-LDFLAGS): Renamed to ...
2115         (rtld-LDFLAGS): This.
2116         (rtld-tests-LDFLAGS): New macro.
2117         (link-libc-rpath-link): Likewise.
2118         (link-libc-tests-rpath-link): Likewise.
2119         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
2120         (link-libc): Prepand $(link-libc-rpath-link).
2121         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
2122         (test-program-prefix): New macro.
2123         (test-via-rtld-prefix): Likewise.
2124         (test-program-cmd): Likewise.
2125         (host-test-program-cmd): Likewise.
2126         * Makefile ($(common-objpfx)testrun.sh): Replace
2127         $(run-program-prefix) with $(test-program-prefix).
2128         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
2129         $(rtld-LDFLAGS).
2130         ($(common-objpfx)shlib.lds): Likewise.
2131         (build-module-helper): Likewise.
2132         ($(common-objpfx)format.lds): Likewise.
2133         * Rules (binaries-pie-tests): New.
2134         (binaries-pie-notests): Likewise.
2135         (binaries-pie): Rewritten.
2136         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
2137         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
2138         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
2139         (make-test-out): Replace $(host-built-program-cmd) with
2140         $(host-test-program-cmd).
2141         * config.make.in (build-hardcoded-path-in-tests): New variable.
2142         * configure.in (--enable-hardcoded-path-in-tests): New configure
2143         option.
2144         (hardcoded_path_in_tests): New AC_SUBST.
2145         * configure: Regenerated.
2146         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
2147         $(built-program-cmd) with $(test-program-cmd).
2148         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
2149         (test_program_cmd): This.
2150         * elf/Makefile ($(objpfx)order.out): Run test with
2151         $(test-program-prefix).
2152         ($(objpfx)order2.out): Likewise.
2153         ($(objpfx)tst-initorder.out): Likewise.
2154         ($(objpfx)tst-initorder2.out): Likewise.
2155         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
2156         $(test-program-cmd).
2157         ($(objpfx)tst-array1-static.out): Likewise.
2158         ($(objpfx)tst-array2.out): Likewise.
2159         ($(objpfx)tst-array3.out): Likewise.
2160         ($(objpfx)tst-array4.out): Likewise.
2161         ($(objpfx)tst-array5.out): Likewise.
2162         ($(objpfx)tst-array5-static.out): Likewise.
2163         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
2164         $(test-program-cmd).
2165         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
2166         $(run-program-prefix) with $(test-program-prefix).
2167         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
2168         (test_program_prefix): This.
2169         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
2170         $(run-program-prefix) with $(test-program-prefix).
2171         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
2172         (test_program_prefix): This.
2173         * iconvdata/tst-tables.sh: Likewise.
2174         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
2175         $(run-program-prefix) with $(test-program-prefix).
2176         ($(objpfx)tst-translit.out): Likewise.
2177         ($(objpfx)tst-gettext2.out): Likewise.
2178         ($(objpfx)tst-gettext4.out): Likewise.
2179         ($(objpfx)tst-gettext6.out): Likewise.
2180         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
2181         (test_program_prefix): This.
2182         * intl/tst-gettext2.sh: Likewise.
2183         * intl/tst-gettext4.sh  Likewise.
2184         * intl/tst-gettext6.sh: Likewise.
2185         * intl/tst-translit.sh: Likewise.
2186         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
2187         with $(test-program-cmd).
2188         * libio/Makefile ($(objpfx)test-freopen.out): Replace
2189         $(run-program-prefix) with $(test-program-prefix).
2190         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
2191         (test_program_prefix): This.
2192         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
2193         $(run-program-prefix) with $(test-program-prefix).
2194         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
2195         (test_program_prefix): This.
2196         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
2197         * posix/Makefile ($(objpfx)globtest.out): Replace
2198         $(run-via-rtld-prefix) and $(test-wrapper) with
2199         $(test-program-prefix) and $(test-via-rtld-prefix).
2200         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
2201         $(test-program-prefix).
2202         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
2203         $(host-test-program-cmd).
2204         (tst-spawn-ARGS): Likewise.
2205         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
2206         $(test-program-prefix).
2207         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
2208         (test_via_rtld_prefix): This.
2209         (test_wrapper): Renamed to ...
2210         (test_program_prefix): This.
2211         (run_program_prefix): Replaced by test_program_prefix.
2212         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
2213         (test_program_prefix): This.
2214         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
2215         with $(host-test-program-cmd).
2216         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
2217         $(run-program-prefix) with $(test-program-prefix).
2218         ($(objpfx)tst-printf.out): Likewise.
2219         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
2220         $(test-program-cmd).
2221         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
2222         (test_program_prefix): This.
2223         * stdio-common/tst-unbputc.sh: Likewise.
2224         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
2225         $(run-program-prefix) with $(test-program-prefix).
2226         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
2227         (test_program_prefix): This.
2228         * string/Makefile ($(objpfx)tst-svc.out):  Replace
2229         $(built-program-cmd) with $(test-program-cmd).
2230
2231 2013-01-11  Andreas Jaeger  <aj@suse.de>
2232
2233         [BZ #15003]
2234         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
2235         value. Sync with Linux 3.7.
2236
2237 2013-01-10  David S. Miller  <davem@davemloft.net>
2238
2239         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
2240         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2241         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2242
2243 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2244
2245         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
2246         never set.
2247         * configure: Regenerated.
2248
2249 2013-01-10  David S. Miller  <davem@davemloft.net>
2250
2251         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2252         sparc V9 rather than using V8 code.
2253         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2254         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2255
2256 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2257
2258         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
2259         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
2260         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
2261         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
2262         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
2263         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
2264         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
2265         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
2266         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
2267         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
2268         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
2269         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
2270         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
2271         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
2272         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
2273         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
2274         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
2275         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
2276         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
2277         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
2278         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
2279         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
2280         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
2281         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
2282         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
2283         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
2284         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
2285
2286 2013-01-10  David S. Miller  <davem@davemloft.net>
2287
2288         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2289
2290 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2291
2292         * posix/Makefile (tests-static): New variable.
2293         (tests): Add $(tests-static).
2294         (tst-exec-static-ARGS): New variable.
2295         (tst-spawn-static-ARGS): Likewise.
2296         * posix/tst-exec-static.c: New file.
2297         * posix/tst-spawn-static.c: Likewise.
2298         * posix/tst-exec.c: Support run directly.
2299         * posix/tst-spawn.c: Likewise.
2300
2301 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
2302
2303         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
2304         long.
2305         * math/bits/mathcalls.h (llrint): Likewise.
2306         (llround): Likewise.
2307         * stdlib/stdlib.h (struct drand48_data): Likewise.
2308         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
2309         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
2310         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
2311         Likewise.
2312         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
2313         Likewise.
2314         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
2315         (elf_greg_t): Likewise.
2316         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
2317         (__jmp_buf): Likewise.
2318         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
2319         definitions.
2320         (llrint): Likewise, for all definitions.
2321         (llrintl): Likewise.
2322
2323         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
2324         Remove [__GNUC__] condition.
2325         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
2326         condition to just [__USE_ISOC99].
2327         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
2328
2329 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2330
2331         [BZ #14200]
2332         * sysdeps/unix/sysv/linux/x86/bits/environments.h
2333         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
2334         defined.
2335         (_POSIX_V6_ILP32_OFF32): Likewise.
2336         (_XBS5_ILP32_OFF32): Likewise.
2337         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
2338         (__ILP32_OFFBIG_LDFLAGS): Likewise.
2339
2340 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2341
2342         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
2343
2344         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
2345         doubles __mpexp_twomm1.  Adjust usage.
2346         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
2347         Remove.
2348
2349 2013-01-10  Andreas Schwab  <schwab@suse.de>
2350
2351         [BZ #14964]
2352         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
2353         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
2354
2355 2013-01-09  David S. Miller  <davem@davemloft.net>
2356
2357         [BZ #15003]
2358         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
2359         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
2360         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
2361         TCP_FASTOPEN): Define.
2362         (tcp_repair_opt): New structure.
2363         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
2364         enum values.
2365         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
2366         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
2367         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
2368         (tcp_cookie_transactions): New structure.
2369
2370 2013-01-09  Anton Blanchard  <anton@samba.org>
2371
2372         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
2373         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
2374         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
2375         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
2376
2377 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
2378
2379         * include/features.h (__USE_ANSI): Remove.
2380
2381 2013-01-09  Roland McGrath  <roland@hack.frob.com>
2382
2383         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
2384
2385         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
2386
2387 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
2388
2389         * sysdeps/s390/fpu/libm-test-ulps: Update.
2390
2391         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2392
2393         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
2394         (__acr): Likewise.
2395         (__cpy): Likewise.
2396         (norm): Likewise.
2397         (denorm): Likewise.
2398         (__mp_dbl): Likewise.
2399         (__dbl_mp): Likewise.
2400         (add_magnitudes): Likewise.
2401         (sub_magnitudes): Likewise.
2402         (__add): Likewise.
2403         (__sub): Likewise.
2404         (__mul): Likewise.
2405         (__inv): Likewise.
2406         (__dvd): Likewise.
2407         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
2408         (__acr): Likewise.
2409         (__cpy): Likewise.
2410         (norm): Likewise.
2411         (denorm): Likewise.
2412         (__mp_dbl): Likewise.
2413         (__dbl_mp): Likewise.
2414         (add_magnitudes): Likewise.
2415         (sub_magnitudes): Likewise.
2416         (__add): Likewise.
2417         (__sub): Likewise.
2418         (__mul): Likewise.
2419         (__inv): Likewise.
2420         (__dvd): Likewise.
2421         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
2422         (__acr): Likewise.
2423         (__cpy): Likewise.
2424         (norm): Likewise.
2425         (denorm): Likewise.
2426         (__mp_dbl): Likewise.
2427         (__dbl_mp): Likewise.
2428         (add_magnitudes): Likewise.
2429         (sub_magnitudes): Likewise.
2430         (__add): Likewise.
2431         (__sub): Likewise.
2432         (__mul): Likewise.
2433         (__inv): Likewise.
2434         (__dvd): Likewise.
2435
2436 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
2437
2438         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
2439         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
2440         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
2441         2 && __USE_EXTERN_INLINES]: Likewise.
2442
2443 2013-01-08  Andreas Jaeger  <aj@suse.de>
2444
2445         [BZ# 14985]
2446         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
2447         Remove.
2448         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2449         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2450
2451 2013-01-07  Anton Blanchard  <anton@samba.org>
2452
2453         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
2454         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2455         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
2456         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
2457         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2458         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2459         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2460         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2461         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2462         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2463         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2464         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2465         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2466         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2467         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
2468         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2469         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2470         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2471         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
2472         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2473         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
2474         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
2475         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
2476         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
2477         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
2478         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2479         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2480         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
2481         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
2482         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2483         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
2484         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2485         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2486         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2487         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2488         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
2489         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2490         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2491         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
2492         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
2493         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
2494         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
2495         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2496
2497 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
2498
2499         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
2500         (__MALLOC_PMT): Likewise.
2501         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
2502         [__GNUC__], only on [_LIBC].
2503         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
2504         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
2505         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
2506         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
2507         forward declaration.
2508         (realloc_hook_ini): Likewise.
2509         (memalign_hook_ini): Likewise.
2510         (__libc_memalign): Do not use __MALLOC_PMT in variable
2511         declaration.
2512         (__libc_valloc): Likewise.
2513         (__libc_pvalloc): Likewise.
2514         (__libc_calloc): Likewise.
2515         (__posix_memalign): Likewise.
2516
2517         [BZ #14996]
2518         * math/s_casinh.c: Include <float.h>.
2519         (__casinh): Do not do computation with squaring and square root
2520         for large arguments.
2521         * math/s_casinhf.c: Include <float.h>.
2522         (__casinhf): Do not do computation with squaring and square root
2523         for large arguments.
2524         * math/s_casinhl.c: Include <float.h>.
2525         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
2526         (__casinhl): Do not do computation with squaring and square root
2527         for large arguments.
2528         * math/libm-test.inc (casin_test): Add more tests.
2529         (casinh_test): Likewise.
2530         * sysdeps/i386/fpu/libm-test-ulps: Update.
2531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2532
2533 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2534
2535         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
2536         (__x86_64_raw_data_cache_size): Likewise.
2537         (__x86_64_data_cache_size_half): Likewise.
2538         (__x86_64_raw_data_cache_size_half): Likewise.
2539         (__x86_64_shared_cache_size): Likewise.
2540         (__x86_64_raw_shared_cache_size): Likewise.
2541         (__x86_64_shared_cache_size_half): Likewise.
2542         (__x86_64_raw_shared_cache_size_half): Likewise.
2543         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
2544         to ...
2545         (__x86_data_cache_size): This.
2546         (__x86_64_raw_data_cache_size): Renamed to ...
2547         (__x86_raw_data_cache_size): This.
2548         (__x86_64_data_cache_size_half): Renamed to ...
2549         (__x86_data_cache_size_half): This.
2550         (__x86_64_raw_data_cache_size_half): Renamed to ...
2551         (__x86_raw_data_cache_size_half): This.
2552         (__x86_64_shared_cache_size): Renamed to ...
2553         (__x86_shared_cache_size): This.
2554         (__x86_64_raw_shared_cache_size): Renamed to ...
2555         (__x86_raw_shared_cache_size): This.
2556         (__x86_64_shared_cache_size_half): Renamed to ...
2557         (__x86_shared_cache_size_half): This.
2558         (__x86_64_raw_shared_cache_size_half): Renamed to ...
2559         (__x86_raw_shared_cache_size_half): This.
2560         * sysdeps/x86_64/memcpy.S: Updated.
2561         * sysdeps/x86_64/memset.S: Likewise.
2562         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2563         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
2564         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2565
2566 2013-01-04  David S. Miller  <davem@davemloft.net>
2567
2568         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2569
2570 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
2571
2572         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
2573         1 to avoid redefinition warning.
2574         (__USE_GNU): Don't define.
2575         (init_signaling_nan): Protoize.
2576
2577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2578
2579 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2580
2581         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
2582         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
2583         (__cpymn): Likewise.
2584         (norm): Remove commented code.
2585         (denorm): Likewise.
2586         (__mp_dbl): Likewise.
2587         (__inv): Likewise.
2588         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
2589         (__cpymn): Likewise.
2590         (norm): Remove commented code.
2591         (denorm): Likewise.
2592         (__mp_dbl): Likewise.
2593         (__inv): Likewise.
2594
2595         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
2596         mp_no value for 1.0 and 2.0.
2597         (norm): Use RADIXI instead of radixi.d.
2598         (denorm): Likewise.
2599         (__mul): Use 0.0 instead of zero.d.
2600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
2601         mp_no value for 1.0 and 2.0.
2602         (norm): Use RADIXI instead of radixi.d.
2603         (denorm): Likewise.
2604         (__mul): Use 0.0 instead of zero.d.
2605
2606 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
2607
2608         [BZ #14994]
2609         * math/s_casinh.c (__casinh): Reduce finite argument to first
2610         quadrant then set signs of results at the end.
2611         * math/s_casinhf.c (__casinhf): Likewise.
2612         * math/s_casinhl.c (__casinhl): Likewise.
2613         * math/libm-test.inc (casin_test): Add more tests.
2614         (casinh_test): Likewise.
2615         * sysdeps/i386/fpu/libm-test-ulps: Update.
2616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2617
2618 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2619
2620         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
2621
2622         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
2623
2624         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
2625         declarations.
2626         (denorm): Likewise.
2627         (__mp_dbl): Likewise.
2628         (__inv): Likewise.
2629
2630         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
2631         and adjust the header comment.
2632
2633         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
2634         variable name from declaration.
2635
2636 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2637
2638         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2639         Initialize COMMON_CPUID_INDEX_7 element.
2640         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
2641         (CPUID_RTM): Likewise.
2642         (HAS_RTM): Likewise.
2643         (COMMON_CPUID_INDEX_7): New enum.
2644
2645 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
2646
2647         [BZ #14981]
2648         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
2649         size is zero, record memory as freed.
2650
2651 2013-01-03  Andreas Jaeger  <aj@suse.de>
2652
2653         * po/ia.po: Add new Interlingua translation.
2654
2655 2012-01-03  Allan McRae  <allan@archlinux.org>
2656
2657         * locale/programs/localedef.c: Fix description of '--posix' flag.
2658
2659 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
2660
2661         * NEWS: Update dates in second copyright notice.
2662         * README: Update copyright dates in example.
2663         * manual/libc.texinfo: Update copyright dates.
2664         * scripts/test-installation.pl: Update copyright date in --version
2665         output.
2666
2667         * hurd/ctty-input.c: Fix copyright notice formatting.
2668         * hurd/ctty-output.c: Likewise.
2669         * hurd/dtable.c: Likewise.
2670         * hurd/hurd-raise.c: Likewise.
2671         * hurd/hurdprio.c: Likewise.
2672         * hurd/msgportdemux.c: Likewise.
2673         * misc/sys/file.h: Likewise.
2674         * misc/sys/ioctl.h: Likewise.
2675         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2676         * sysdeps/mach/hurd/chdir.c: Likewise.
2677         * sysdeps/mach/hurd/fchdir.c: Likewise.
2678         * sysdeps/mach/hurd/rename.c: Likewise.
2679         * sysdeps/mach/hurd/rmdir.c: Likewise.
2680         * sysdeps/mach/hurd/seekdir.c: Likewise.
2681         * sysdeps/mach/hurd/setsid.c: Likewise.
2682         * sysdeps/posix/wait3.c: Likewise.
2683
2684         * All files with FSF copyright notices: Update copyright dates
2685         using scripts/update-copyrights.
2686         * intl/plural.c: Regenerated.
2687         * locale/programs/charmap-kw.h: Likewise.
2688         * locale/programs/locfile-kw.h: Likewise.
2689
2690 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2691
2692         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
2693         four values.
2694
2695         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
2696         calculation loop and add branch prediction.
2697
2698         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
2699         check access beyond bounds of m1np.
2700
2701         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2702         MPTWO.
2703         (__inv): Remove local variable MPTWO to use the global
2704         constant.
2705         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
2706         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2707         variable MPTWO.
2708         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
2709         MP3HALFS static const.
2710
2711 2013-01-01  David S. Miller  <davem@davemloft.net>
2712
2713         * po/ca.po: Update from translation team.
2714
2715 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
2716
2717         * scripts/update-copyrights: New file.
2718         * Makeconfig: Reformat copyright notice.
2719         * ctype/ctype.h: Likewise.
2720         * debug/swprintf_chk.c: Likewise.
2721         * elf/dl-cache.c: Likewise.
2722         * elf/dl-debug.c: Likewise.
2723         * elf/dl-object.c: Likewise.
2724         * grp/initgroups.c: Likewise.
2725         * hurd/Makefile: Likewise.
2726         * hurd/hurd/signal.h: Likewise.
2727         * hurd/hurdfault.c: Likewise.
2728         * hurd/hurdioctl.c: Likewise.
2729         * hurd/hurdlookup.c: Likewise.
2730         * hurd/intr-msg.c: Likewise.
2731         * iconv/gconv_open.c: Likewise.
2732         * libio/swprintf.c: Likewise.
2733         * locale/lc-ctype.c: Likewise.
2734         * locale/nl_langinfo.c: Likewise.
2735         * mach/Machrules: Likewise.
2736         * mach/Makefile: Likewise.
2737         * malloc/obstack.h: Likewise.
2738         * manual/Makefile: Likewise.
2739         * manual/tsort.awk: Likewise.
2740         * misc/bits/stab.def: Likewise.
2741         * nis/nis_print_group_entry.c: Likewise.
2742         * nis/nis_table.c: Likewise.
2743         * nis/nss_compat/compat-pwd.c: Likewise.
2744         * nis/nss_compat/compat-spwd.c: Likewise.
2745         * po/Makefile: Likewise.
2746         * posix/fnmatch.c: Likewise.
2747         * posix/regex.h: Likewise.
2748         * resolv/Makefile: Likewise.
2749         * resolv/nss_dns/dns-network.c: Likewise.
2750         * resolv/res_hconf.c: Likewise.
2751         * scripts/gen-sorted.awk: Likewise.
2752         * soft-fp/soft-fp.h: Likewise.
2753         * stdio-common/printf.h: Likewise.
2754         * stdlib/monetary.h: Likewise.
2755         * stdlib/random.c: Likewise.
2756         * stdlib/random_r.c: Likewise.
2757         * sysdeps/generic/Makefile: Likewise.
2758         * sysdeps/gnu/Makefile: Likewise.
2759         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2760         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2761         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2762         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2763         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2764         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2765         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2766         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2767         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2768         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2769         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2770         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2771         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2772         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2773         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2774         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2775         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2776         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2777         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2778         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2779         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2780         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2781         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2782         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
2783         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
2784         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
2785         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
2786         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
2787         * sysdeps/mach/hurd/errnos.awk: Likewise.
2788         * sysdeps/mach/hurd/fork.c: Likewise.
2789         * sysdeps/mach/hurd/getcwd.c: Likewise.
2790         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2791         * sysdeps/mach/hurd/mmap.c: Likewise.
2792         * sysdeps/mach/hurd/utimes.c: Likewise.
2793         * sysdeps/mach/hurd/xmknod.c: Likewise.
2794         * sysdeps/posix/profil.c: Likewise.
2795         * sysdeps/posix/readdir_r.c: Likewise.
2796         * sysdeps/powerpc/bits/mathdef.h: Likewise.
2797         * sysdeps/powerpc/bits/setjmp.h: Likewise.
2798         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
2799         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2800         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2801         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2802         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2803         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2804         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2805         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2806         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2807         * sysdeps/pthread/lio_listio.c: Likewise.
2808         * sysdeps/sparc/dl-procinfo.h: Likewise.
2809         * sysdeps/unix/i386/sysdep.S: Likewise.
2810         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2811         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
2812         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2813         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2815         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
2816         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2817         * sysdeps/unix/sysv/linux/speed.c: Likewise.
2818         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
2819         * sysdeps/wordsize-32/divdi3.c: Likewise.
2820         * time/sys/time.h: Likewise.
2821         * wcsmbs/Makefile: Likewise.
2822
2823 2013-01-01  David S. Miller  <davem@davemloft.net>
2824
2825         * po/fr.po: Update from translation team.
2826
2827         * catgets/gencat.c: Update copyright year.
2828         * csu/version.c: Likewise.
2829         * debug/catchsegv.sh: Likewise.
2830         * debug/pcprofiledump.c: Likewise.
2831         * debug/xtrace.sh: Likewise.
2832         * elf/ldconfig.c: Likewise.
2833         * elf/ldd.bash.in: Likewise.
2834         * elf/pldd.c: Likewise.
2835         * elf/sotruss.ksh: Likewise.
2836         * elf/sprof.c: Likewise.
2837         * iconv/iconv_prog.c: Likewise.
2838         * iconv/iconvconfig.c: Likewise.
2839         * locale/programs/locale.c: Likewise.
2840         * locale/programs/localedef.c: Likewise.
2841         * login/programs/pt_chown.c: Likewise.
2842         * malloc/memusage.sh: Likewise.
2843         * malloc/memusagestat.c: Likewise.
2844         * malloc/mtrace.pl: Likewise.
2845         * nscd/nscd.c: Likewise.
2846         * nss/getent.c: Likewise.
2847         * nss/makedb.c: Likewise.
2848         * posix/getconf.c: Likewise.
2849
2850 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2851
2852         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
2853         numbers.
2854
2855 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
2856
2857         * math/bits/mathcalls.h (modf): Use __nonnull.
2858
2859 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2860
2861         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
2862         (split): Use macro CN instead of the bare value.
2863         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
2864         could be used.
2865         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
2866         instead of the bare value.
2867         (power1): Likewise.
2868
2869 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2870
2871         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
2872         __ATAN_TWOM.
2873         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2874
2875         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
2876         their values.
2877         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2878         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2879         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2880         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2881
2882 2012-12-28  Andreas Jaeger  <aj@suse.de>
2883
2884         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
2885         values are from Linux 3.7.
2886
2887         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
2888         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
2889
2890 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2891
2892         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
2893         TRUE case.
2894
2895         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
2896         (norm): Likewise.
2897         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
2898         variables with preprocessor constants.
2899         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2900         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2901         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2902
2903 2012-12-27  Bruno Haible  <bruno@clisp.org>
2904
2905         [BZ #14317]
2906         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
2907         only if needed.
2908
2909 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2910
2911         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
2912         and use variable directly.
2913         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
2914
2915         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2916         MPONE.
2917         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
2918         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2919         variable MPONE.
2920         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2921         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2922         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
2923         include directive.  Remove local variable MPONE.
2924         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
2925         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
2926         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2927
2928 2012-12-25  David S. Miller  <davem@davemloft.net>
2929
2930         * version.h (RELEASE): Set to "development".
2931         (VERSION): Set to "2.17.90".
2932         * NEWS: Add 2.18 section.
2933
2934 2012-12-21  David S. Miller  <davem@davemloft.net>
2935
2936         * po/hr.po: Update from translation team.
2937
2938 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2939
2940         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
2941
2942 2012-12-19  Steve Ellcey  <sellcey@mips.com>
2943
2944         * NEWS:  Mention new memcpy for MIPS.
2945
2946 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2947
2948         * manual/contrib.texi (Contributors): Spelling correction.
2949
2950 2012-12-15  David S. Miller  <davem@davemloft.net>
2951
2952         * po/ru.po: Update from translation team.
2953
2954 2012-12-13  David S. Miller  <davem@davemloft.net>
2955
2956         * NEWS: Mention IFUNC testsuite enhancements.
2957
2958         * po/pl.po: Update from translation team.
2959         * po/bg.po: Likewise.
2960
2961         * manual/contrib.texi (Contributors): Update entries for Hongjiu
2962         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
2963
2964 2012-12-11  David S. Miller  <davem@davemloft.net>
2965
2966         * po/sv.po: Update from translation team.
2967
2968         * po/vi.po: Update from translation team.
2969
2970         * po/cs.po: Update from translation team.
2971
2972         * po/de.po: Update from translation team.
2973         * po/eo.po: Likewise.
2974         * po/nl.po: Likewise.
2975
2976 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2977
2978         [BZ #14246]
2979         * manual/argp.texi (Argp Helper Functions): Move node to follow
2980         Argp Parsing State.
2981
2982         [BZ #14872]
2983         * manual/conf.texi (Limits on File System Capacity): Mention if
2984         terminating null is included in the max size.
2985
2986 2012-12-10  Andreas Jaeger  <aj@suse.de>
2987
2988         * po/cs.po: Update from translation team.
2989
2990 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2991
2992         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
2993         void pointer and cast to uintptr_t.
2994         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
2995         path.
2996         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2997         * sysdeps/s390/s390-64/memset.S: Likewise.
2998
2999 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
3000
3001         [BZ #14833]
3002         * menual/message.texi (Message Translation): Fix typos.
3003         (Helper programs for gettext): Likewise.
3004
3005 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
3006
3007         [BZ #14898]
3008         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
3009         Change to -1.
3010
3011 2012-12-07  David S. Miller  <davem@davemloft.net>
3012
3013         * po/libc.pot: Update.
3014
3015 2012-12-07  Richard Henderson  <rth@redhat.com>
3016
3017         [BZ #10114]
3018         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
3019         normal/normal case to before the switch.
3020         (_FP_DIV): Likewise.
3021
3022 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
3023             Mike Frysinger  <vapier@gentoo.org>
3024
3025         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
3026         check for __NR_fadvise64_64.
3027
3028 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
3029
3030         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
3031         0, not just to plain "0" as a statement.
3032         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
3033         with cw.
3034
3035 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
3036
3037         * NEWS: Use sourceware.org in Bugzilla URL.
3038
3039 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3040
3041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3042         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3043
3044         * stdio-common/tst-put-error.c (do_test): Add newline to the
3045         padded test to ensure flush.
3046
3047 2012-12-05  Jeff Law  <law@redhat.com>
3048
3049         * sunrpc/etc.rpc (fedfs_admin): Add entry.
3050
3051 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
3052
3053         * README: Don't refer to ports add-on as distributed separately.
3054         Mention AArch64 in list of systems supported in the ports add-on.
3055
3056         * LICENSES: Add more non-FSF copyright and license notices.
3057
3058         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
3059         ((unused)).
3060
3061         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
3062
3063         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
3064         10000 as width of padded output.
3065
3066 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
3069
3070         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
3071         variable LX with __attribute__ ((unused)).
3072         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3073         Likewise.
3074         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
3075         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3076         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
3077         with __attribute__ ((unused)).
3078
3079 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
3080
3081         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
3082
3083 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3084
3085         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
3086         (CFLAGS-nldbl-acos.c): New variable.
3087         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
3088         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
3089         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
3090         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
3091         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
3092         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
3093         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
3094         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
3095         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
3096         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
3097         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
3098         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
3099         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
3100         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
3101         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
3102         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
3103         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
3104         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
3105         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
3106         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
3107         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
3108         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
3109         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
3110         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
3111         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
3112         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
3113         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
3114         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
3115         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
3116         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
3117         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
3118         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
3119         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
3120         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
3121         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
3122         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
3123         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
3124         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
3125         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
3126         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
3127         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
3128         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
3129         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
3130         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
3131         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
3132         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
3133         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
3134         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
3135         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
3136         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
3137         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
3138         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
3139         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
3140         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
3141         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
3142         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
3143         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
3144         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
3145         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
3146         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
3147         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
3148         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
3149         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
3150         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
3151         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
3152         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
3153         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
3154         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
3155         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
3156         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
3157         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
3158         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
3159         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
3160         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
3161         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
3162         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
3163         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
3164         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
3165         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
3166         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
3167         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
3168         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
3169         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
3170         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
3171         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
3172         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
3173         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
3174         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
3175         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
3176         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
3177         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
3178         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
3179         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
3180         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
3181         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
3182         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
3183         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
3184
3185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3186         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3187
3188         [BZ #14914]
3189         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
3190         whole low double instead of just low 47 bits when splitting values
3191         into two parts.
3192
3193 2012-12-03  Allan McRae  <allan@archlinux.org>
3194
3195         * manual/stdio.texi (Predefined Printf Handlers): Remove
3196         @hsep and @vsep usage.
3197
3198 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
3199
3200         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
3201         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
3202
3203 2012-12-03  Jeff Law  <law@redhat.com>
3204
3205         * time/sys/time.h (settimeofday): Do not mark TV argument
3206         as __nonnull.
3207
3208 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
3209
3210         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
3211         when currently writing and seek to current position when not.
3212         * libio/Makefile (tests): Remove bug-fclose1.
3213         * libio/bug-fclose1.c: Delete.
3214
3215 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * manual/arith.texi (feenableexcept): Fix typo.
3218         (fedisableexcept): Likewise.
3219
3220 2012-11-30  Roland McGrath  <roland@hack.frob.com>
3221
3222         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
3223         second, differently-typed declaration, rather than a cast.
3224
3225 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3226
3227         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
3228         * include/rpc/svc.h: ... here.
3229
3230 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
3231
3232         [BZ #13013]
3233         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
3234         depending n and resplen2 to catch cases where answer
3235         equals answerp2.
3236
3237 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
3238
3239         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
3240         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
3241
3242 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
3243
3244         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
3245
3246 2012-11-29  Roland McGrath  <roland@hack.frob.com>
3247
3248         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
3249
3250 2012-11-28  Jeff Law  <law@redhat.com>
3251
3252         [BZ #13761]
3253         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
3254         dataset_temporary.  Track alloca usage into alloca_used.
3255         If dataset is large allocate and release it via malloc/free.
3256
3257 2012-06-04  Florian Weimer  <fweimer@redhat.com>
3258
3259         [BZ #14197]
3260         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
3261
3262 2012-11-28  David S. Miller  <davem@davemloft.net>
3263
3264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3265
3266 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3267
3268         [BZ #14803]
3269         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
3270         of pi/2 rounded to nearest to 64 bits.
3271         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
3272         nearest to 64 bits.
3273         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
3274         bits.
3275
3276 2012-11-28  Jeff Law <law@redhat.com>
3277             Martin Osvald <mosvald@redhat.com>
3278
3279         [BZ #14889]
3280         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
3281         * sunrpc/svc.c: Include time.h.
3282         (__svc_accept_failed): New function.
3283         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
3284         any reason other than EINTR, call __svc_accept_failed.
3285         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
3286         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
3287
3288 2012-11-28  Andreas Schwab  <schwab@suse.de>
3289
3290         * scripts/abilist.awk: Also handle indirect functions in .opd
3291         section.
3292
3293 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3294
3295         [BZ #13881]
3296         * sysdeps/x86/fpu/powl_helper.c: New file.
3297         * sysdeps/x86/fpu/Makefile: Likewise.
3298         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
3299         (p3): New object.
3300         (__ieee754_powl): Use __powl_helper for finite arguments except
3301         integer exponents below 8.
3302         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
3303         (p3): New object.
3304         (__ieee754_powl): Use __powl_helper for finite arguments except
3305         integer exponents below 8.
3306         * math/libm-test.inc (pow_test): Add more tests and enable some
3307         previously disabled tests.
3308         * sysdeps/i386/fpu/libm-test-ulps: Update.
3309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3310
3311 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3312             Carlos O'Donell  <carlos_odonell@mentor.com>
3313
3314         * nss/makedb.c (is_prime): Assert that input is odd and greater
3315         than 4.  Note that fact in a comment too.
3316         (next_prime): Add 4 to input.
3317
3318 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3319
3320         [BZ #11741]
3321         * libio/Makefile (tests): Add test case tst-fwrite-error.
3322         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
3323         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3324         * libio/tst-fwrite-error.c: New test case.
3325
3326 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
3327
3328         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
3329         before casting to void *.
3330         * include/libc-internal.h (__pointer_type): New macro.
3331         (__integer_if_pointer_type_sub): Likewise.
3332         (__integer_if_pointer_type): Likewise.
3333         (cast_to_integer): Likewise.
3334         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
3335         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
3336         before casting to atomic64_t.
3337         (atomic_exchange_acq): Likewise.
3338         (__arch_exchange_and_add_body): Likewise.
3339         (__arch_add_body): Likewise.
3340         (atomic_add_negative): Likewise.
3341         (atomic_add_zero): Likewise.
3342
3343 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
3344
3345         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
3346         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
3347         (add_fdes): Likewise.
3348         (linear_search_fdes): Likewise.
3349         (binary_search_unencoded_fdes): Likewise.
3350
3351 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
3352
3353         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
3354
3355 2012-11-24  Adam Conrad  <adconrad@0c3.net>
3356
3357         * configure.in: Autodetect C++ header directories.
3358         * configure: Regenerated.
3359
3360 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
3361
3362         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
3363
3364 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
3365
3366         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3367
3368 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
3369
3370         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
3371         LDBL_MANT_DIG == 106]: Disable some tests.
3372         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
3373         Likewise.
3374         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
3375         Likewise.
3376
3377         [BZ #14871]
3378         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
3379         input for small inputs.  Return +/- pi/2 for large inputs.
3380         * math/libm-test.inc (atan_test): Add more tests.
3381
3382         * sysdeps/generic/unwind-dw2-fde-glibc.c
3383         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
3384         __attribute__ ((unused)).
3385
3386         [BZ #14645]
3387         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
3388         x * y if x and y are nonzero and z is zero.
3389
3390         [BZ #14811]
3391         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
3392         nonzero exponents with absolute value below 0x1p-117 to +/-
3393         0x1p-117.
3394
3395         [BZ #14869]
3396         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
3397         up arguments below 2**-450, not just those below 2**-500.
3398         * math/libm-test.inc (hypot_test): Add another test.
3399
3400         [BZ #14868]
3401         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
3402         Return a+b for ratio over 2**120, not 2**60.
3403         * math/libm-test.inc (hypot_test): Add another test.
3404
3405         * math/libm-test.inc (clog_test): Use
3406         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
3407         (clog10_test): Likewise.
3408
3409         [BZ #6778]
3410         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
3411
3412 2012-11-22  Andreas Schwab  <schwab@suse.de>
3413
3414         * sysdeps/i386/fpu/libm-test-ulps: Update.
3415
3416 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
3417
3418         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
3419         printf output with newline.
3420
3421 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
3422
3423         [BZ #14865]
3424         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
3425         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
3426         -z nodlopen, -z initfirst and -z execstack support.
3427         * configure: Regenerated.
3428
3429         * elf/elf.h (DF_1_NODIRECT): New macro.
3430         (DF_1_IGNMULDEF): Likewise.
3431         (DF_1_NOKSYMS): Likewise.
3432         (DF_1_NOHDR): Likewise.
3433         (DF_1_EDITED): Likewise.
3434         (DF_1_NORELOC): Likewise.
3435         (DF_1_SYMINTPOSE): Likewise.
3436         (DF_1_GLOBAUDIT): Likewise.
3437         (DF_1_SINGLETON): Likewise.
3438         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
3439         DT_1_SUPPORTED_MASK bits.
3440         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
3441
3442 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
3443
3444         * sysdeps/unix/make-syscalls.sh: Document prefixes.
3445
3446 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
3447
3448         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
3449         macro.
3450
3451         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
3452         (sendmmsg): Move declarations...
3453         * socket/sys/socket.h: ... here.
3454         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
3455         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
3456         include it from...
3457         * socket/recvmmsg.c: ... this new file.
3458         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
3459         (sendmmsg): Rename to __sendmmsg, create weak alias and make
3460         definition of __sendmmsg hidden.
3461         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
3462         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
3463         Move ENOSYS stub into and include it from...
3464         * socket/sendmmsg.c: ... this new file.
3465         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
3466         (sysdep_routines): Move recvmmsg and sendmmsg...
3467         * socket/Makefile (routines): ... here.
3468         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
3469         (GLIBC_PRIVATE): Add __sendmmsg.
3470         * include/sys/socket.h (__sendmmsg): Add declarations.
3471         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
3472         sendmmsg.
3473
3474 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
3475
3476         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
3477         variable I1 with __attribute__ ((unused)).
3478         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3479
3480 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
3481
3482         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
3483         DUMMY variables with __attribute__ ((unused)).
3484
3485         * bits/byteswap.h: Include <bits/types.h>.
3486         (__bswap_64): Use __uint64_t instead of unsigned long long int.
3487
3488 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
3489
3490         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
3491         string_t.  Do not manually set errno.
3492         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
3493         length with __strnlen.  Make sure to both set errno and return it on
3494         failure.
3495
3496 2012-11-19  David S. Miller  <davem@davemloft.net>
3497
3498         With help from Joseph Myers.
3499         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
3500         very large arguments properly.
3501         * math/libm-test.inc (atan_test): New tests.
3502         (atan2_test): New tests.
3503         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3504         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3505
3506 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
3507
3508         [BZ #14856]
3509         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
3510         Define to 3.
3511
3512         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
3513         [POSIX] (EADDRNOTAVAIL): Likewise.
3514         [POSIX] (EAFNOSUPPORT): Likewise.
3515         [POSIX] (EALREADY): Likewise.
3516         [POSIX] (ECONNABORTED): Likewise.
3517         [POSIX] (ECONNREFUSED): Likewise.
3518         [POSIX] (ECONNRESET): Likewise.
3519         [POSIX] (EDESTADDRREQ): Likewise.
3520         [POSIX] (EDQUOT): Likewise.
3521         [POSIX] (EHOSTUNREACH): Likewise.
3522         [POSIX] (EIDRM): Likewise.
3523         [POSIX] (EISCONN): Likewise.
3524         [POSIX] (ELOOP): Likewise.
3525         [POSIX] (EMULTIHOP): Likewise.
3526         [POSIX] (ENETDOWN): Likewise.
3527         [POSIX] (ENETUNREACH): Likewise.
3528         [POSIX] (ENOBUFS): Likewise.
3529         [POSIX] (ENODATA): Likewise.
3530         [POSIX] (ENOLINK): Likewise.
3531         [POSIX] (ENOMSG): Likewise.
3532         [POSIX] (ENOPROTOOPT): Likewise.
3533         [POSIX] (ENOSR): Likewise.
3534         [POSIX] (ENOSTR): Likewise.
3535         [POSIX] (ENOTCONN): Likewise.
3536         [POSIX] (ENOTSOCK): Likewise.
3537         [POSIX] (EOPNOTSUPP): Likewise.
3538         [POSIX] (EOVERFLOW): Likewise.
3539         [POSIX] (EPROTO): Likewise.
3540         [POSIX] (EPROTONOSUPPORT): Likewise.
3541         [POSIX] (EPROTOTYPE): Likewise.
3542         [POSIX] (ESTALE): Likewise.
3543         [POSIX] (ETIME): Likewise.
3544         [POSIX] (ETXTBSY): Likewise.
3545         [POSIX] (EWOULDBLOCK): Likewise.
3546         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
3547         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
3548         [POSIX] (SEEK_CUR): Likewise.
3549         [POSIX] (SEEK_END): Likewise.
3550         [POSIX || UNIX98] (mode_t): Do not require.
3551         [POSIX] (off_t): Likewise.
3552         [POSIX] (pid_t): Likewise.
3553         [POSIX] (sys/stat.h): Do not allow header.
3554         [POSIX] (unistd.h): Likewise.
3555         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
3556         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
3557         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
3558         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
3559         require.
3560         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
3561         sigevent): Specify elements.
3562         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
3563         entry.
3564         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
3565         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
3566
3567         * conform/data/cpio.h-data [POSIX]: Disable whole file.
3568         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
3569         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
3570         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
3571         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
3572         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
3573         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
3574         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
3575         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
3576         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
3577         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
3578         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
3579         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
3580         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
3581         Likewise.
3582         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
3583         Likewise.
3584         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
3585         Likewise.
3586         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
3587         Likewise.
3588         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
3589         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
3590         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
3591         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
3592         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
3593         Specify lower bound on value.
3594         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
3595         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
3596         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
3597         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
3598         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
3599         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
3600         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
3601         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
3602         value.
3603         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
3604         as optional.
3605         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
3606         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
3607         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
3608         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
3609         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
3610         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
3611         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
3612         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
3613         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
3614         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
3615         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
3616         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
3617         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
3618         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
3619         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
3620         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
3621         entry.
3622         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
3623         optional.
3624         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
3625         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
3626         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
3627         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
3628         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
3629         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
3630         Likewise.
3631         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
3632         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
3633         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
3634         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
3635         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
3636         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
3637         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
3638         as optional.
3639         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
3640         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
3641         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
3642         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
3643         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
3644         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
3645         specify as optional.
3646         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
3647         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
3648         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
3649         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
3650         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
3651         [XPG3] (NL_LANGMAX): Likewise.
3652         [POSIX || XPG3] (NL_MSGMAX): Likewise.
3653         [POSIX || XPG3] (NL_NMAX): Likewise.
3654         [POSIX || XPG3] (NL_SETMAX): Likewise.
3655         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
3656         [XPG3] (NZERO): Likewise.
3657         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
3658         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
3659         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
3660         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
3661         (REG_ERANGE): Expect.
3662         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
3663         optional-constant.
3664         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
3665         Use (void) in prototype.
3666         [POSIX] (*_t): Allow.
3667         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
3668         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
3669         (WRDE_BADVAL): Expect.
3670
3671         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
3672         expect.
3673         [XPG3 || XPG4] (O_RSYNC): Likewise.
3674         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
3675         Likewise.
3676         [XPG3 || XPG4] (pthread_sigmask): Likewise.
3677         [XPG3 || XPG4] (sigqueue): Likewise.
3678         [XPG3 || XPG4] (sigtimedwait): Likewise.
3679         [XPG3 || XPG4] (sigwaitinfo): Likewise.
3680         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
3681         [XPG3 || XPG4] (vsnprintf): Likewise.
3682         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
3683         Likewise.
3684         [XPG3 || XPG4] (blksize_t): Likewise.
3685         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
3686         Likewise.
3687         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
3688         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
3689         [XPG3 || XPG4] (struct itimerspec): Likewise.
3690         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
3691         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
3692         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
3693         [XPG3 || XPG4] (clockid_t): Likewise.
3694         [XPG3 || XPG4] (timer_t): Likewise.
3695         [XPG3 || XPG4] (clock_getres): Likewise.
3696         [XPG3 || XPG4] (clock_gettime): Likewise.
3697         [XPG3 || XPG4] (clock_settime): Likewise.
3698         [XPG3 || XPG4] (nanosleep): Likewise.
3699         [XPG3 || XPG4] (timer_create): Likewise.
3700         [XPG3 || XPG4] (timer_delete): Likewise.
3701         [XPG3 || XPG4] (timer_gettime): Likewise.
3702         [XPG3 || XPG4] (timer_getoverrun): Likewise.
3703         [XPG3 || XPG4] (timer_settime): Likewise.
3704         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
3705         [XPG3 || XPG4] (getlogin_r): Likewise.
3706         [XPG3 || XPG4] (pread): Likewise.
3707         [XPG3 || XPG4] (pthread_atfork): Likewise.
3708         [XPG3 || XPG4] (pwrite): Likewise.
3709
3710         [BZ #14835]
3711         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
3712         <bits/siginfo.h>.
3713
3714 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
3715
3716         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
3717         finalizing MALLSTREAM.
3718
3719         * sysdeps/mach/hurd/syncfs.c: New file.
3720
3721 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3722
3723         [BZ #14719]
3724         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
3725         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
3726         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
3727         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
3728         (_nss_dns_gethostbyname4_r): Likewise.
3729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
3730         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
3731
3732 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
3733
3734         [BZ #13763]
3735         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
3736
3737 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
3738
3739         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
3740         * elf/cache.c (print_entry): Print ",AArch64" for
3741         FLAG_AARCH64_LIB64
3742
3743         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
3744         * elf/cache.c (print_entry): Print ",hard-float" for
3745         FLAG_ARM_LIBHF.
3746
3747 2012-11-18  David S. Miller  <davem@davemloft.net>
3748
3749         With help from Joseph Myers.
3750         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
3751         cutoff to 2**-13.
3752         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
3753         cutoff to 2**-25.
3754         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
3755         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
3756         small.
3757         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3758         * math/libm-test.inc (y0_test): New tests.
3759         (y1_test): New tests.
3760         * sysdeps/i386/fpu/libm-test-ulps: Update.
3761         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3763
3764 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
3765
3766         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
3767         64-bit targets.
3768         * configure: Regenerated.
3769
3770 2012-11-17  David S. Miller  <davem@davemloft.net>
3771
3772         [BZ #14811]
3773         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
3774         nonzero exponents with absolute value below 0x1p-128 to +/-
3775         0x1p-128.
3776
3777 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
3778
3779         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
3780
3781         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
3782
3783         * posix/getconf-speclist.c: New file.
3784         * posix/posix-envs.def: Likewise.
3785         * posix/confstr.c (START_ENV_GROUP): New macro.
3786         (END_ENV_GROUP): Likewise.
3787         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
3788         (KNOWN_PRESENT_ENV_STRING): Likewise.
3789         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
3790         (UNKNOWN_ENVIRONMENT): Likewise.
3791         (confstr): Include posix-envs.def instead of handling
3792         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
3793         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
3794         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
3795         (END_ENV_GROUP): Likewise.
3796         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
3797         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
3798         (UNKNOWN_ENVIRONMENT): Likewise.
3799         (__sysconf): Include posix-envs.def instead of handling associated
3800         cases directly here.
3801         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
3802         preprocessing getconf-speclist.c rather than running getconf or
3803         generating empty file.
3804
3805 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
3806
3807         * scripts/check-local-headers.sh: Ignore 'mach' headers.
3808
3809 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
3810
3811         [BZ #14672]
3812         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
3813
3814 2012-11-16  David S. Miller  <davem@davemloft.net>
3815
3816         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
3817         smaller than LDBL_EPSILON/2.0L, just return xm1.
3818
3819 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
3820
3821         * elf/tst-array1.c (init): Set constructor priority to 1000.
3822         (fini): Set destructor priority to 1000.
3823         * elf/tst-array2dep.c: Likewise.
3824
3825 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3826
3827         [BZ #11741]
3828         * libio/fileops.c (_IO_new_file_write): Correctly return error.
3829         (_IO_new_file_xsputn): Also return EOF if none of the input
3830         data was written when overflow failed.
3831         * libio/iopadn.c (_IO_padn): Likewise.
3832         * libio/iowpadn.c (_IO_wpadn): Likewise.
3833         * stdio-common/tst-put-error.c: Add copyright notice.
3834         (do_test): Add case for printing padded string.
3835         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
3836         _IO_padn returned error.
3837         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
3838         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
3839         return EOF.
3840
3841 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3842
3843         * libio/libioP.h: Add comment note that the references to C++
3844         bits are now obsolete.
3845
3846 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3847
3848         * math/libm-test.inc (check_complex): Use asprintf.
3849
3850 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
3851
3852         * debug/pcprofiledump.c (print_version): Update copyright year.
3853         * malloc/memusagestat.c (print_version): Likewise.
3854
3855 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
3856
3857         [BZ #14831]
3858         * elf/Makefile (tests): Add tst-audit8.
3859         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
3860         ($(objpfx)tst-audit8.out): New target.
3861         (tst-audit8-ENV): New variable.
3862         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
3863         audit if l_reloc_result is NULL.
3864         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
3865         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
3866         * elf/tst-audit8.c: New file.
3867
3868 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3869
3870         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
3871         * misc/Makefile (CFLAGS-select.c): Define.
3872         * posix/Makefile (CFLAGS-pause.c): Define.
3873
3874 2012-11-13  David S. Miller  <davem@davemloft.net>
3875
3876         * crypt/Makefile: Move test targets after toplevel Rules
3877         inclusion.  Grab any necessary sysdep routines when linking.
3878         * crypt/md5.c (md5_process_block): Remove define, we will always
3879         name it __md5_process_block.
3880         (md5_finish_ctx): Update md5_process_block call.
3881         (md5_stream): Likewise.
3882         (md5_process_bytes): Likewise.
3883         (md5_process_block): Rename to __md5_process_block and move to ...
3884         * crypt/md5-block.c: ... here.
3885         * crypt/sha256.c (sha256_process_block): Move to ...
3886         * crypt/sha256-block.c: ... here.
3887         * crypt/sha512.c (sha512_process_block): Move to ...
3888         * crypt/sha512-block.c: ... here.
3889         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
3890         path.
3891         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
3892         * sysdeps/sparc/sparc64/multiarch/Makefile
3893         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
3894         crypt subdir.
3895         (localedef-aux): Add md5 crypto assembler when in locale subdir.
3896         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
3897         multiarch changes.
3898         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
3899         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
3900         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
3901         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
3902         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
3903         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
3904         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
3905         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
3906         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
3907         file.
3908         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
3909         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
3910         file.
3911         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
3912
3913 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
3914
3915         * timezone/tzselect.ksh: Update from tzcode git revision
3916         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
3917         * timezone/zdump.c: Likewise.
3918         * timezone/zic.c: Likewise.
3919         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
3920         in TZVERSION setting, not $(PKGVERSION).
3921         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
3922         REPORT_BUGS_TO settings.
3923
3924         [BZ #14838]
3925         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
3926         macro.
3927
3928 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3929
3930         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
3931         detection to immediately after _FP_ROUND().
3932         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
3933         bits are 0.
3934
3935 2012-11-11  David S. Miller  <davem@davemloft.net>
3936
3937         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
3938         inttypes.h
3939         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
3940         __close rather than their public counterparts.
3941
3942 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
3943
3944         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
3945         file.
3946         [UNIX98] (sem_timedwait): Do not expect.
3947         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
3948         [XPG4 || UNIX98] (sockatmark): Do not expect.
3949         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
3950         (clock_getcpuclockid): Do not expect.
3951         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
3952         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
3953         Do not expect.
3954         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
3955         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
3956         [UNIX98] (vwscanf): Likewise.
3957         [UNIX98] (vswscanf): Likewise.
3958
3959 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
3960
3961         * timezone/version.h: Remove file.
3962         * timezone/README: Do not refer to version.h.
3963         * timezone/Makefile ($(objpfx)zic.o): New dependency on
3964         $(objpfx)version.h.
3965         ($(objpfx)zdump.o): Likewise.
3966         ($(objpfx)version.h): New target.
3967
3968         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
3969         2012i.
3970         * timezone/README: Don't mention modification to tzselect.ksh.
3971         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
3972         work on unmodified tzselect.ksh.  Substitute version numbers in
3973         tzselect.ksh.
3974
3975         * Makefile (format-me): Remove.
3976         (INSTALL): Adjust indentation.  Use commands directly instead of
3977         using $(format-me).
3978
3979         * aclocal.m4 (ACX_PKGVERSION): New macro.
3980         (ACX_BUGURL): Likewise.
3981         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
3982         (PKGVERSION): New AC_DEFINE_UNQUOTED.
3983         (REPORT_BUGS_TO): Likewise.
3984         * configure: Regenerated.
3985         * config.h.in (PKGVERSION): New macro.
3986         (REPORT_BUGS_TO): Likewise.
3987         * config.make.in (PKGVERSION): New variable.
3988         (PKGVERSION_TEXI): Likewise.
3989         (REPORT_BUGS_TO): Likewise.
3990         (REPORT_BUGS_TEXI): Likewise.
3991         * Makefile (format-me): Use -I$(common-objpfx)manual.
3992         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
3993         ($(common-objpfx)manual/%): New target.
3994         (manual/%): Remove target.
3995         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
3996         (print_version): Use PKGVERSION.
3997         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
3998         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
3999         and REPORT_BUGS_TO.
4000         ($(objpfx)xtrace): Likewise.
4001         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
4002         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
4003         (print_version): Use PKGVERSION.
4004         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
4005         (do_version): Use PKGVERSION.
4006         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
4007         REPORT_BUGS_TO.
4008         (common-ldd-rewrite): Likewise.
4009         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
4010         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
4011         (print_version): Use PKGVERSION.
4012         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
4013         * elf/pldd.c (argp_program_bug_address): Remove variable.
4014         (more_help): New function.
4015         (argp): Use more_help.
4016         (print_version): Use PKGVERSION.
4017         * elf/sln.c (main): Use PKGVERSION.
4018         (usage): Use REPORT_BUGS_TO.
4019         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
4020         (top level): Use PKGVERSION.
4021         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
4022         (print_version): Use PKGVERSION.
4023         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
4024         (print_version): Use PKGVERSION.
4025         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
4026         (print_version): Use PKGVERSION.
4027         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
4028         (print_version): Use PKGVERSION.
4029         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
4030         (print_version): Use PKGVERSION.
4031         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
4032         (print_version): Use PKGVERSION.
4033         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
4034         and BUGURL.
4035         ($(objpfx)memusage): Likewise.
4036         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
4037         (do_version): Use PKGVERSION.
4038         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
4039         (print_version): Use PKGVERSION.
4040         * malloc/mtrace.pl ($PACKAGE): Remove variable.
4041         ($PKGVERSION): New variable.
4042         ($REPORT_BUGS_TO): Likewise.
4043         (usage): Use $REPORT_BUGS_TO.
4044         (top level): Use $PKGVERSION.
4045         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
4046         ($(objpfx)pkgvers.texi): New rule.
4047         ($(objpfx)stamp-pkgvers): Likewise.
4048         * manual/install.texi: Include pkgvers.texi.
4049         (--with-pkgversion): Document new configure option.
4050         (--with-bugurl): Likewise.
4051         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
4052         than necessarily for this particular distribution.  Use
4053         REPORT_BUGS_TO for where to report bugs.
4054         * INSTALL: Regenerated.
4055         * manual/libc.texinfo: Include pkgvers.texi.
4056         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
4057         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
4058         (print_version): Use PKGVERSION.
4059         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
4060         (print_version): Use PKGVERSION.
4061         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
4062         (print_version): Use PKGVERSION.
4063         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
4064         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
4065         macro.
4066         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
4067         (print_version): Use PKGVERSION.
4068         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
4069         (print_version): Use PKGVERSION.
4070         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
4071         and PKGVERSION.
4072
4073         * timezone/checktab.awk: Update from tzcode 2012i.
4074         * timezone/ialloc.c: Likewise.
4075         * timezone/private.h: Likewise.
4076         * timezone/scheck.c: Likewise.
4077         * timezone/tzfile.h: Likewise.
4078         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
4079         (TZVERSION): Hardcode tzcode version number.
4080         * timezone/zdump.c: Update from tzcode 2012i.
4081         * timezone/zic.c: Likewise.
4082         * timezone/version.h: New file.
4083         * timezone/README: Describe version.h.  Update upstream location.
4084
4085         [BZ #14824]
4086         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
4087         (mktemp): Enable declaration.
4088         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
4089         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
4090         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
4091         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
4092         Likewise.
4093         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
4094         Likewise.
4095         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
4096         Likewise.
4097         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
4098         Likewise.
4099         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
4100         Likewise.
4101         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
4102         Likewise.
4103
4104         [BZ #14821]
4105         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
4106         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
4107         for copies of such integer values.
4108         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
4109         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
4110
4111 2012-11-09  Andreas Jaeger  <aj@suse.de>
4112
4113         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
4114         definitions and declarations that are provided by
4115         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
4116
4117 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4118
4119         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
4120         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
4121         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
4122         definition.
4123
4124 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4125
4126         * elf/elf.h: Update comment before AArch64 relocations.
4127
4128 2012-11-07  David S. Miller  <davem@davemloft.net>
4129
4130         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
4131         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4132         (__start_context): Declare.
4133         (__makecontext_ret): Delete.
4134         (__makecontext): Hook up __start_context instead of
4135         __makecontext_ret.
4136         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4137         (sysdep_routines): Add __start_context when in stdlib.
4138
4139 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4140
4141         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
4142         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
4143         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
4144         hardcoded "nm".
4145         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
4146         (READELF): New variable.  Use it instead of hardcoded "readelf".
4147
4148 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4149
4150         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
4151         * sysdeps/x86/Makefile: Here.
4152         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
4153         * sysdeps/x86/tst-xmmymm.sh: This.
4154
4155 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4156
4157         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
4158         expectations.
4159         [UNIX98] (pthread_barrier_t): Do not expect.
4160         [UNIX98] (pthread_barrierattr_t): Likewise.
4161         [UNIX98] (pthread_spinlock_t): Likewise.
4162         [UNIX98] (pthread_barrier_destroy): Likewise.
4163         [UNIX98] (pthread_barrier_init): Likewise.
4164         [UNIX98] (pthread_barrier_wait): Likewise.
4165         [UNIX98] (pthread_barrierattr_destroy): Likewise.
4166         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
4167         [UNIX98] (pthread_barrierattr_init): Likewise.
4168         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
4169         [UNIX98] (pthread_getcpuclockid): Likewise.
4170         [UNIX98] (pthread_mutex_timedlock): Likewise.
4171         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
4172         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
4173         [UNIX98] (pthread_sigmask): Likewise.
4174         [UNIX98] (pthread_spin_destroy): Likewise.
4175         [UNIX98] (pthread_spin_init): Likewise.
4176         [UNIX98] (pthread_spin_lock): Likewise.
4177         [UNIX98] (pthread_spin_trylock): Likewise.
4178         [UNIX98] (pthread_spin_unlock): Likewise.
4179         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
4180         Do not expect.
4181         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
4182         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
4183         [XPG3 || XPG4] (pthread_cond_t): Likewise.
4184         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
4185         [XPG3 || XPG4] (pthread_key_t): Likewise.
4186         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
4187         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
4188         [XPG3 || XPG4] (pthread_once_t): Likewise.
4189         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
4190         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
4191         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
4192         [XPG3 || XPG4] (pthread_t): Likewise.
4193
4194         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
4195         not expect.
4196         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
4197
4198         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
4199         Change function return type to int.
4200
4201         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
4202         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
4203         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
4204         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
4205         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
4206         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
4207         [!POSIX] (posix_madvise): Likewise.
4208         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
4209         && !UNIX98].
4210         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
4211         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
4212         (mode_t): Likewise.
4213         (posix_mem_offset): Likewise.
4214         (posix_typed_mem_get_info): Likewise.
4215         (posix_typed_mem_open): Likewise.
4216
4217         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
4218         Change condition to [XOPEN2K8].
4219
4220         * conform/conformtest.pl: Preprocess allow-header data with -x c
4221         instead of from stdin.
4222         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
4223         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
4224         [C99-based standards] (cerfc): Likewise.
4225         [C99-based standards] (cexp2): Likewise.
4226         [C99-based standards] (cexpm1): Likewise.
4227         [C99-based standards] (clog10): Likewise.
4228         [C99-based standards] (clog1p): Likewise.
4229         [C99-based standards] (clog2): Likewise.
4230         [C99-based standards] (clgamma): Likewise.
4231         [C99-based standards] (ctgamma): Likewise.
4232         [C99-based standards] (cerff): Likewise.
4233         [C99-based standards] (cerfcf): Likewise.
4234         [C99-based standards] (cexp2f): Likewise.
4235         [C99-based standards] (cexpm1f): Likewise.
4236         [C99-based standards] (clog10f): Likewise.
4237         [C99-based standards] (clog1pf): Likewise.
4238         [C99-based standards] (clog2f): Likewise.
4239         [C99-based standards] (clgammaf): Likewise.
4240         [C99-based standards] (ctgammaf): Likewise.
4241         [C99-based standards] (cerfl): Likewise.
4242         [C99-based standards] (cerfcl): Likewise.
4243         [C99-based standards] (cexp2l): Likewise.
4244         [C99-based standards] (cexpm1l): Likewise.
4245         [C99-based standards] (clog10l): Likewise.
4246         [C99-based standards] (clog1pl): Likewise.
4247         [C99-based standards] (clog2l): Likewise.
4248         [C99-based standards] (clgammal): Likewise.
4249         [C99-based standards] (ctgammal): Likewise.
4250         * conform/data/inttypes.h-data [C99-based standards]: Include
4251         stdint.h-data.  Remove all expectations for stdint.h contents.
4252         [C99-based standards] (PRI*): Do not allow.
4253         [C99-based standards] (SCN*): Likewise.
4254         [C99-based standards] (*_t): Likewise.
4255         [C99-based-standards] (PRId8): Expect macro.
4256         [C99-based-standards] (PRIi8): Likewise.
4257         [C99-based-standards] (PRIo8): Likewise.
4258         [C99-based-standards] (PRIu8): Likewise.
4259         [C99-based-standards] (PRIx8): Likewise.
4260         [C99-based-standards] (PRIX8): Likewise.
4261         [C99-based-standards] (SCNd8): Likewise.
4262         [C99-based-standards] (SCNi8): Likewise.
4263         [C99-based-standards] (SCNo8): Likewise.
4264         [C99-based-standards] (SCNu8): Likewise.
4265         [C99-based-standards] (SCNx8): Likewise.
4266         [C99-based-standards] (PRIdLEAST8): Likewise.
4267         [C99-based-standards] (PRIiLEAST8): Likewise.
4268         [C99-based-standards] (PRIoLEAST8): Likewise.
4269         [C99-based-standards] (PRIuLEAST8): Likewise.
4270         [C99-based-standards] (PRIxLEAST8): Likewise.
4271         [C99-based-standards] (PRIXLEAST8): Likewise.
4272         [C99-based-standards] (SCNdLEAST8): Likewise.
4273         [C99-based-standards] (SCNiLEAST8): Likewise.
4274         [C99-based-standards] (SCNoLEAST8): Likewise.
4275         [C99-based-standards] (SCNuLEAST8): Likewise.
4276         [C99-based-standards] (SCNxLEAST8): Likewise.
4277         [C99-based-standards] (PRIdFAST8): Likewise.
4278         [C99-based-standards] (PRIiFAST8): Likewise.
4279         [C99-based-standards] (PRIoFAST8): Likewise.
4280         [C99-based-standards] (PRIuFAST8): Likewise.
4281         [C99-based-standards] (PRIxFAST8): Likewise.
4282         [C99-based-standards] (PRIXFAST8): Likewise.
4283         [C99-based-standards] (SCNdFAST8): Likewise.
4284         [C99-based-standards] (SCNiFAST8): Likewise.
4285         [C99-based-standards] (SCNoFAST8): Likewise.
4286         [C99-based-standards] (SCNuFAST8): Likewise.
4287         [C99-based-standards] (SCNxFAST8): Likewise.
4288         [C99-based-standards] (PRId16): Likewise.
4289         [C99-based-standards] (PRIi16): Likewise.
4290         [C99-based-standards] (PRIo16): Likewise.
4291         [C99-based-standards] (PRIu16): Likewise.
4292         [C99-based-standards] (PRIx16): Likewise.
4293         [C99-based-standards] (PRIX16): Likewise.
4294         [C99-based-standards] (SCNd16): Likewise.
4295         [C99-based-standards] (SCNi16): Likewise.
4296         [C99-based-standards] (SCNo16): Likewise.
4297         [C99-based-standards] (SCNu16): Likewise.
4298         [C99-based-standards] (SCNx16): Likewise.
4299         [C99-based-standards] (PRIdLEAST16): Likewise.
4300         [C99-based-standards] (PRIiLEAST16): Likewise.
4301         [C99-based-standards] (PRIoLEAST16): Likewise.
4302         [C99-based-standards] (PRIuLEAST16): Likewise.
4303         [C99-based-standards] (PRIxLEAST16): Likewise.
4304         [C99-based-standards] (PRIXLEAST16): Likewise.
4305         [C99-based-standards] (SCNdLEAST16): Likewise.
4306         [C99-based-standards] (SCNiLEAST16): Likewise.
4307         [C99-based-standards] (SCNoLEAST16): Likewise.
4308         [C99-based-standards] (SCNuLEAST16): Likewise.
4309         [C99-based-standards] (SCNxLEAST16): Likewise.
4310         [C99-based-standards] (PRIdFAST16): Likewise.
4311         [C99-based-standards] (PRIiFAST16): Likewise.
4312         [C99-based-standards] (PRIoFAST16): Likewise.
4313         [C99-based-standards] (PRIuFAST16): Likewise.
4314         [C99-based-standards] (PRIxFAST16): Likewise.
4315         [C99-based-standards] (PRIXFAST16): Likewise.
4316         [C99-based-standards] (SCNdFAST16): Likewise.
4317         [C99-based-standards] (SCNiFAST16): Likewise.
4318         [C99-based-standards] (SCNoFAST16): Likewise.
4319         [C99-based-standards] (SCNuFAST16): Likewise.
4320         [C99-based-standards] (SCNxFAST16): Likewise.
4321         [C99-based-standards] (PRId32): Likewise.
4322         [C99-based-standards] (PRIi32): Likewise.
4323         [C99-based-standards] (PRIo32): Likewise.
4324         [C99-based-standards] (PRIu32): Likewise.
4325         [C99-based-standards] (PRIx32): Likewise.
4326         [C99-based-standards] (PRIX32): Likewise.
4327         [C99-based-standards] (SCNd32): Likewise.
4328         [C99-based-standards] (SCNi32): Likewise.
4329         [C99-based-standards] (SCNo32): Likewise.
4330         [C99-based-standards] (SCNu32): Likewise.
4331         [C99-based-standards] (SCNx32): Likewise.
4332         [C99-based-standards] (PRIdLEAST32): Likewise.
4333         [C99-based-standards] (PRIiLEAST32): Likewise.
4334         [C99-based-standards] (PRIoLEAST32): Likewise.
4335         [C99-based-standards] (PRIuLEAST32): Likewise.
4336         [C99-based-standards] (PRIxLEAST32): Likewise.
4337         [C99-based-standards] (PRIXLEAST32): Likewise.
4338         [C99-based-standards] (SCNdLEAST32): Likewise.
4339         [C99-based-standards] (SCNiLEAST32): Likewise.
4340         [C99-based-standards] (SCNoLEAST32): Likewise.
4341         [C99-based-standards] (SCNuLEAST32): Likewise.
4342         [C99-based-standards] (SCNxLEAST32): Likewise.
4343         [C99-based-standards] (PRIdFAST32): Likewise.
4344         [C99-based-standards] (PRIiFAST32): Likewise.
4345         [C99-based-standards] (PRIoFAST32): Likewise.
4346         [C99-based-standards] (PRIuFAST32): Likewise.
4347         [C99-based-standards] (PRIxFAST32): Likewise.
4348         [C99-based-standards] (PRIXFAST32): Likewise.
4349         [C99-based-standards] (SCNdFAST32): Likewise.
4350         [C99-based-standards] (SCNiFAST32): Likewise.
4351         [C99-based-standards] (SCNoFAST32): Likewise.
4352         [C99-based-standards] (SCNuFAST32): Likewise.
4353         [C99-based-standards] (SCNxFAST32): Likewise.
4354         [C99-based-standards] (PRId64): Likewise.
4355         [C99-based-standards] (PRIi64): Likewise.
4356         [C99-based-standards] (PRIo64): Likewise.
4357         [C99-based-standards] (PRIu64): Likewise.
4358         [C99-based-standards] (PRIx64): Likewise.
4359         [C99-based-standards] (PRIX64): Likewise.
4360         [C99-based-standards] (SCNd64): Likewise.
4361         [C99-based-standards] (SCNi64): Likewise.
4362         [C99-based-standards] (SCNo64): Likewise.
4363         [C99-based-standards] (SCNu64): Likewise.
4364         [C99-based-standards] (SCNx64): Likewise.
4365         [C99-based-standards] (PRIdLEAST64): Likewise.
4366         [C99-based-standards] (PRIiLEAST64): Likewise.
4367         [C99-based-standards] (PRIoLEAST64): Likewise.
4368         [C99-based-standards] (PRIuLEAST64): Likewise.
4369         [C99-based-standards] (PRIxLEAST64): Likewise.
4370         [C99-based-standards] (PRIXLEAST64): Likewise.
4371         [C99-based-standards] (SCNdLEAST64): Likewise.
4372         [C99-based-standards] (SCNiLEAST64): Likewise.
4373         [C99-based-standards] (SCNoLEAST64): Likewise.
4374         [C99-based-standards] (SCNuLEAST64): Likewise.
4375         [C99-based-standards] (SCNxLEAST64): Likewise.
4376         [C99-based-standards] (PRIdFAST64): Likewise.
4377         [C99-based-standards] (PRIiFAST64): Likewise.
4378         [C99-based-standards] (PRIoFAST64): Likewise.
4379         [C99-based-standards] (PRIuFAST64): Likewise.
4380         [C99-based-standards] (PRIxFAST64): Likewise.
4381         [C99-based-standards] (PRIXFAST64): Likewise.
4382         [C99-based-standards] (SCNdFAST64): Likewise.
4383         [C99-based-standards] (SCNiFAST64): Likewise.
4384         [C99-based-standards] (SCNoFAST64): Likewise.
4385         [C99-based-standards] (SCNuFAST64): Likewise.
4386         [C99-based-standards] (SCNxFAST64): Likewise.
4387         [C99-based-standards] (PRIdMAX): Likewise.
4388         [C99-based-standards] (PRIiMAX): Likewise.
4389         [C99-based-standards] (PRIoMAX): Likewise.
4390         [C99-based-standards] (PRIuMAX): Likewise.
4391         [C99-based-standards] (PRIxMAX): Likewise.
4392         [C99-based-standards] (PRIXMAX): Likewise.
4393         [C99-based-standards] (SCNdMAX): Likewise.
4394         [C99-based-standards] (SCNiMAX): Likewise.
4395         [C99-based-standards] (SCNoMAX): Likewise.
4396         [C99-based-standards] (SCNuMAX): Likewise.
4397         [C99-based-standards] (SCNxMAX): Likewise.
4398         [C99-based-standards] (PRIdPTR): Likewise.
4399         [C99-based-standards] (PRIiPTR): Likewise.
4400         [C99-based-standards] (PRIoPTR): Likewise.
4401         [C99-based-standards] (PRIuPTR): Likewise.
4402         [C99-based-standards] (PRIxPTR): Likewise.
4403         [C99-based-standards] (PRIXPTR): Likewise.
4404         [C99-based-standards] (SCNdPTR): Likewise.
4405         [C99-based-standards] (SCNiPTR): Likewise.
4406         [C99-based-standards] (SCNoPTR): Likewise.
4407         [C99-based-standards] (SCNuPTR): Likewise.
4408         [C99-based-standards] (SCNxPTR): Likewise.
4409         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
4410         allow.
4411         * conform/data/stdint.h-data: Update comments to clarify
4412         requirements.
4413         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
4414         type.
4415         [C99-based standards] (INT8_MAX): Likewise.
4416         [C99-based standards] (INT16_MIN): Likewise.
4417         [C99-based standards] (INT16_MAX): Likewise.
4418         [C99-based standards] (INT32_MIN): Likewise.
4419         [C99-based standards] (INT32_MAX): Likewise.
4420         [C99-based standards] (INT64_MIN): Likewise.
4421         [C99-based standards] (INT64_MAX): Likewise.
4422         [C99-based standards] (UINT8_MAX): Likewise.
4423         [C99-based standards] (UINT16_MAX): Likewise.
4424         [C99-based standards] (UINT32_MAX): Likewise.
4425         [C99-based standards] (UINT64_MAX): Likewise.
4426         [C99-based standards] (INT_LEAST8_MIN): Likewise.
4427         [C99-based standards] (INT_LEAST8_MAX): Likewise.
4428         [C99-based standards] (INT_LEAST16_MIN): Likewise.
4429         [C99-based standards] (INT_LEAST16_MAX): Likewise.
4430         [C99-based standards] (INT_LEAST32_MIN): Likewise.
4431         [C99-based standards] (INT_LEAST32_MAX): Likewise.
4432         [C99-based standards] (INT_LEAST64_MIN): Likewise.
4433         [C99-based standards] (INT_LEAST64_MAX): Likewise.
4434         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
4435         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
4436         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
4437         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
4438         [C99-based standards] (INT_FAST8_MIN): Likewise.
4439         [C99-based standards] (INT_FAST8_MAX): Likewise.
4440         [C99-based standards] (INT_FAST16_MIN): Likewise.
4441         [C99-based standards] (INT_FAST16_MAX): Likewise.
4442         [C99-based standards] (INT_FAST32_MIN): Likewise.
4443         [C99-based standards] (INT_FAST32_MAX): Likewise.
4444         [C99-based standards] (INT_FAST64_MIN): Likewise.
4445         [C99-based standards] (INT_FAST64_MAX): Likewise.
4446         [C99-based standards] (UINT_FAST8_MAX): Likewise.
4447         [C99-based standards] (UINT_FAST16_MAX): Likewise.
4448         [C99-based standards] (UINT_FAST32_MAX): Likewise.
4449         [C99-based standards] (UINT_FAST64_MAX): Likewise.
4450         [C99-based standards] (INTPTR_MIN): Likewise.
4451         [C99-based standards] (INTPTR_MAX): Likewise.
4452         [C99-based standards] (UINTPTR_MAX): Likewise.
4453         [C99-based standards] (INTMAX_MIN): Likewise.
4454         [C99-based standards] (INTMAX_MAX): Likewise.
4455         [C99-based standards] (UINTMAX_MAX): Likewise.
4456         [C99-based standards] (PTRDIFF_MIN): Likewise.
4457         [C99-based standards] (PTRDIFF_MAX): Likewise.
4458         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
4459         [C99-based standards] (SIZE_MAX): Likewise.
4460         [C99-based standards] (WCHAR_MAX): Likewise.
4461         [C99-based standards] (WINT_MAX): Likewise.
4462         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
4463         constraint on value.
4464         [C99-based standards] (WCHAR_MIN): Likewise.
4465         [C99-based standards] (WINT_MIN): Likewise.
4466         [C99-based standards] (*_t): Allow.
4467         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
4468         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
4469         Include math.h-data and complex.h-data.  Remove all expectations
4470         of math.h and complex.h contents.
4471         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
4472         at end of line.
4473         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
4474         (struct tm): Expect tag.
4475         [C99-based-standards] (wcstof): Expect function.
4476         [C99-based-standards] (wcstold): Likewise.
4477         [C99-based-standards] (wcstoll): Likewise.
4478         [C99-based-standards] (wcstoull): Likewise.
4479         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
4480         macro-int-constant.  Specify type.
4481         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
4482         constraint on value.
4483         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
4484         Specify type.
4485         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
4486         Specify value.
4487         [ISO C standards]: Do not allow headers.
4488         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
4489         wcs[abcdefghijklmnopqrstuvwxyz]*.
4490         [ISO C standards] (*_t): Do not allow.
4491         * conform/data/wctype.h-data [C99-based standards] (iswblank):
4492         Expect function.
4493         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
4494         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
4495         Specify type.
4496         [ISO C standards]: Do not allow headers.
4497         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
4498         is[abcdefghijklmnopqrstuvwxyz]*.
4499         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
4500         to[abcdefghijklmnopqrstuvwxyz]*.
4501         [ISO C standards] (*_t): Do not allow.
4502         * conform/data/stdalign.h-data: New file.
4503         * conform/data/stdbool.h-data: Likewise.
4504         * conform/data/stdnoreturn.h-data: Likewise.
4505
4506 2012-11-07  Roland McGrath  <roland@hack.frob.com>
4507
4508         [BZ #14815]
4509         * manual/filesys.texi (Directory Entries): Typo fix.
4510         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
4511
4512 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4513
4514         * elf/elf.h (EM_AARCH64): New macro.
4515         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
4516         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
4517         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
4518         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
4519         (R_AARCH64_TLSDESC): Likewise.
4520         (NT_ARM_TLS): Likewise.
4521         (NT_ARM_HW_BREAK): Likewise.
4522         (NT_ARM_HW_WATCH): Likewise.
4523
4524 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4525
4526         [BZ #14811]
4527         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
4528         (__ieee754_powl): Saturate nonzero exponents with absolute value
4529         below 0x1p-79 to +/- 0x1p-79.
4530         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
4531         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
4532         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
4533         nonzero exponents with absolute value below 0x1p-32 to +/-
4534         0x1p-32.
4535         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
4536         (__ieee754_powl): Saturate nonzero exponents with absolute value
4537         below 0x1p-79 to +/- 0x1p-79.
4538         * math/libm-test.inc (pow_test): Add more tests.
4539
4540 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4541
4542         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
4543         _dl_s390_cap_flags with kernel. Increase string length.
4544         (_dl_s390_platforms): Add z196 and zEC12.
4545
4546 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4547
4548         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
4549         Change XOPEN21K to XOPEN2K.
4550
4551 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4552
4553         * string/memmove.c: Use memcpy when possible.
4554
4555 2012-11-06  Andreas Jaeger  <aj@suse.de>
4556
4557         * po/eo.po: Update from translation team.
4558
4559 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
4560
4561         [BZ #14793]
4562         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
4563         exponent and small x and y exponents, scale x or y up.  Increase
4564         by 2 the exponent used in scaling up.
4565         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4566         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4567         * math/libm-test.inc (fma_test): Add more tests.
4568         (fma_test_towardzero): Likewise.
4569         (fma_test_downward): Likewise.
4570         (fma_test_upward): Likewise.
4571
4572 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
4573
4574         [BZ #14805]
4575         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
4576         fenv_t *.
4577
4578         [BZ #14801]
4579         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
4580         namespace for names of struct fields.
4581         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
4582         fenv_t fields.
4583         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
4584         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
4585
4586 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4587
4588         [BZ #3665]
4589         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
4590
4591 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4592
4593         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
4594         PTR_DEMANGLE.
4595
4596         [BZ #5246]
4597         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
4598         PTR_DEMANGLE.
4599
4600 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
4601
4602         [BZ #14797]
4603         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
4604         definitely overflow as x * y not x * y + z.
4605         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4606         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4607         * math/libm-test.inc (fma_test): Add more tests.
4608         (fma_test_towardzero): Likewise.
4609         (fma_test_downward): Likewise.
4610         (fma_test_upward): Likewise.
4611
4612 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4613
4614         [BZ #157]
4615
4616         * include/stub-tag.h: Remove file.
4617         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
4618         '#include' of it.
4619         * manual/maint.texi (Porting): Don't reference it.
4620         * Makerules ($(objpfx)stubs): Likewise.
4621         * dirent/closedir.c: Don't include <stub-tag.h>.
4622         * dirent/dirfd.c: Likewise.
4623         * dirent/fdopendir.c: Likewise.
4624         * dirent/getdents.c: Likewise.
4625         * dirent/getdents64.c: Likewise.
4626         * dirent/opendir.c: Likewise.
4627         * dirent/readdir.c: Likewise.
4628         * dirent/readdir64.c: Likewise.
4629         * dirent/readdir64_r.c: Likewise.
4630         * dirent/readdir_r.c: Likewise.
4631         * dirent/rewinddir.c: Likewise.
4632         * dirent/seekdir.c: Likewise.
4633         * dirent/telldir.c: Likewise.
4634         * gmon/profil.c: Likewise.
4635         * grp/setgroups.c: Likewise.
4636         * inet/if_index.c: Likewise.
4637         * io/access.c: Likewise.
4638         * io/chdir.c: Likewise.
4639         * io/chmod.c: Likewise.
4640         * io/chown.c: Likewise.
4641         * io/close.c: Likewise.
4642         * io/dup.c: Likewise.
4643         * io/dup2.c: Likewise.
4644         * io/dup3.c: Likewise.
4645         * io/euidaccess.c: Likewise.
4646         * io/faccessat.c: Likewise.
4647         * io/fchdir.c: Likewise.
4648         * io/fchmod.c: Likewise.
4649         * io/fchmodat.c: Likewise.
4650         * io/fchown.c: Likewise.
4651         * io/fchownat.c: Likewise.
4652         * io/fcntl.c: Likewise.
4653         * io/flock.c: Likewise.
4654         * io/fstatfs.c: Likewise.
4655         * io/fstatfs64.c: Likewise.
4656         * io/fstatvfs.c: Likewise.
4657         * io/fstatvfs64.c: Likewise.
4658         * io/futimens.c: Likewise.
4659         * io/fxstat.c: Likewise.
4660         * io/fxstat64.c: Likewise.
4661         * io/fxstatat.c: Likewise.
4662         * io/fxstatat64.c: Likewise.
4663         * io/getcwd.c: Likewise.
4664         * io/isatty.c: Likewise.
4665         * io/lchmod.c: Likewise.
4666         * io/lchown.c: Likewise.
4667         * io/link.c: Likewise.
4668         * io/linkat.c: Likewise.
4669         * io/lseek.c: Likewise.
4670         * io/lseek64.c: Likewise.
4671         * io/lxstat64.c: Likewise.
4672         * io/mkdir.c: Likewise.
4673         * io/mkdirat.c: Likewise.
4674         * io/mkfifo.c: Likewise.
4675         * io/mkfifoat.c: Likewise.
4676         * io/open.c: Likewise.
4677         * io/open64.c: Likewise.
4678         * io/openat.c: Likewise.
4679         * io/openat64.c: Likewise.
4680         * io/pipe.c: Likewise.
4681         * io/pipe2.c: Likewise.
4682         * io/poll.c: Likewise.
4683         * io/posix_fadvise.c: Likewise.
4684         * io/posix_fadvise64.c: Likewise.
4685         * io/posix_fallocate.c: Likewise.
4686         * io/posix_fallocate64.c: Likewise.
4687         * io/read.c: Likewise.
4688         * io/readlink.c: Likewise.
4689         * io/readlinkat.c: Likewise.
4690         * io/rmdir.c: Likewise.
4691         * io/sendfile.c: Likewise.
4692         * io/sendfile64.c: Likewise.
4693         * io/statfs.c: Likewise.
4694         * io/statfs64.c: Likewise.
4695         * io/statvfs.c: Likewise.
4696         * io/statvfs64.c: Likewise.
4697         * io/symlink.c: Likewise.
4698         * io/symlinkat.c: Likewise.
4699         * io/ttyname.c: Likewise.
4700         * io/ttyname_r.c: Likewise.
4701         * io/umask.c: Likewise.
4702         * io/unlink.c: Likewise.
4703         * io/unlinkat.c: Likewise.
4704         * io/utime.c: Likewise.
4705         * io/utimensat.c: Likewise.
4706         * io/write.c: Likewise.
4707         * io/xmknod.c: Likewise.
4708         * io/xmknodat.c: Likewise.
4709         * io/xstat.c: Likewise.
4710         * io/xstat64.c: Likewise.
4711         * login/getpt.c: Likewise.
4712         * login/grantpt.c: Likewise.
4713         * login/unlockpt.c: Likewise.
4714         * math/e_acoshl.c: Likewise.
4715         * math/e_acosl.c: Likewise.
4716         * math/e_asinl.c: Likewise.
4717         * math/e_atan2l.c: Likewise.
4718         * math/e_atanhl.c: Likewise.
4719         * math/e_coshl.c: Likewise.
4720         * math/e_expl.c: Likewise.
4721         * math/e_fmodl.c: Likewise.
4722         * math/e_gammal_r.c: Likewise.
4723         * math/e_hypotl.c: Likewise.
4724         * math/e_j0l.c: Likewise.
4725         * math/e_j1l.c: Likewise.
4726         * math/e_jnl.c: Likewise.
4727         * math/e_lgammal_r.c: Likewise.
4728         * math/e_log10l.c: Likewise.
4729         * math/e_log2l.c: Likewise.
4730         * math/e_logl.c: Likewise.
4731         * math/e_powl.c: Likewise.
4732         * math/e_rem_pio2l.c: Likewise.
4733         * math/e_sinhl.c: Likewise.
4734         * math/e_sqrtl.c: Likewise.
4735         * math/fclrexcpt.c: Likewise.
4736         * math/fedisblxcpt.c: Likewise.
4737         * math/feenablxcpt.c: Likewise.
4738         * math/fegetenv.c: Likewise.
4739         * math/fegetexcept.c: Likewise.
4740         * math/fegetround.c: Likewise.
4741         * math/feholdexcpt.c: Likewise.
4742         * math/fesetenv.c: Likewise.
4743         * math/fesetround.c: Likewise.
4744         * math/feupdateenv.c: Likewise.
4745         * math/fgetexcptflg.c: Likewise.
4746         * math/fraiseexcpt.c: Likewise.
4747         * math/fsetexcptflg.c: Likewise.
4748         * math/ftestexcept.c: Likewise.
4749         * math/k_cosl.c: Likewise.
4750         * math/k_rem_pio2l.c: Likewise.
4751         * math/k_sinl.c: Likewise.
4752         * math/k_tanl.c: Likewise.
4753         * math/s_asinhl.c: Likewise.
4754         * math/s_atanl.c: Likewise.
4755         * math/s_cbrtl.c: Likewise.
4756         * math/s_erfl.c: Likewise.
4757         * math/s_expm1l.c: Likewise.
4758         * math/s_log1pl.c: Likewise.
4759         * math/s_tanhl.c: Likewise.
4760         * misc/acct.c: Likewise.
4761         * misc/brk.c: Likewise.
4762         * misc/chflags.c: Likewise.
4763         * misc/chroot.c: Likewise.
4764         * misc/fchflags.c: Likewise.
4765         * misc/fgetxattr.c: Likewise.
4766         * misc/flistxattr.c: Likewise.
4767         * misc/fremovexattr.c: Likewise.
4768         * misc/fsetxattr.c: Likewise.
4769         * misc/fsync.c: Likewise.
4770         * misc/ftruncate.c: Likewise.
4771         * misc/futimes.c: Likewise.
4772         * misc/futimesat.c: Likewise.
4773         * misc/getdomain.c: Likewise.
4774         * misc/getdtsz.c: Likewise.
4775         * misc/gethostid.c: Likewise.
4776         * misc/gethostname.c: Likewise.
4777         * misc/getloadavg.c: Likewise.
4778         * misc/getpagesize.c: Likewise.
4779         * misc/getsysstats.c: Likewise.
4780         * misc/getxattr.c: Likewise.
4781         * misc/gtty.c: Likewise.
4782         * misc/ioctl.c: Likewise.
4783         * misc/lgetxattr.c: Likewise.
4784         * misc/listxattr.c: Likewise.
4785         * misc/llistxattr.c: Likewise.
4786         * misc/lremovexattr.c: Likewise.
4787         * misc/lsetxattr.c: Likewise.
4788         * misc/lutimes.c: Likewise.
4789         * misc/madvise.c: Likewise.
4790         * misc/mincore.c: Likewise.
4791         * misc/mlock.c: Likewise.
4792         * misc/mlockall.c: Likewise.
4793         * misc/mmap.c: Likewise.
4794         * misc/mprotect.c: Likewise.
4795         * misc/msync.c: Likewise.
4796         * misc/munlock.c: Likewise.
4797         * misc/munlockall.c: Likewise.
4798         * misc/munmap.c: Likewise.
4799         * misc/preadv.c: Likewise.
4800         * misc/preadv64.c: Likewise.
4801         * misc/ptrace.c: Likewise.
4802         * misc/pwritev.c: Likewise.
4803         * misc/pwritev64.c: Likewise.
4804         * misc/readv.c: Likewise.
4805         * misc/reboot.c: Likewise.
4806         * misc/remap_file_pages.c: Likewise.
4807         * misc/removexattr.c: Likewise.
4808         * misc/revoke.c: Likewise.
4809         * misc/select.c: Likewise.
4810         * misc/setdomain.c: Likewise.
4811         * misc/setegid.c: Likewise.
4812         * misc/seteuid.c: Likewise.
4813         * misc/sethostid.c: Likewise.
4814         * misc/sethostname.c: Likewise.
4815         * misc/setregid.c: Likewise.
4816         * misc/setreuid.c: Likewise.
4817         * misc/setxattr.c: Likewise.
4818         * misc/sstk.c: Likewise.
4819         * misc/stty.c: Likewise.
4820         * misc/swapoff.c: Likewise.
4821         * misc/swapon.c: Likewise.
4822         * misc/sync.c: Likewise.
4823         * misc/syncfs.c: Likewise.
4824         * misc/syscall.c: Likewise.
4825         * misc/truncate.c: Likewise.
4826         * misc/ualarm.c: Likewise.
4827         * misc/usleep.c: Likewise.
4828         * misc/ustat.c: Likewise.
4829         * misc/utimes.c: Likewise.
4830         * misc/vhangup.c: Likewise.
4831         * misc/writev.c: Likewise.
4832         * posix/_exit.c: Likewise.
4833         * posix/alarm.c: Likewise.
4834         * posix/execve.c: Likewise.
4835         * posix/fexecve.c: Likewise.
4836         * posix/fork.c: Likewise.
4837         * posix/fpathconf.c: Likewise.
4838         * posix/getaddrinfo.c: Likewise.
4839         * posix/getegid.c: Likewise.
4840         * posix/geteuid.c: Likewise.
4841         * posix/getgid.c: Likewise.
4842         * posix/getgroups.c: Likewise.
4843         * posix/getlogin.c: Likewise.
4844         * posix/getlogin_r.c: Likewise.
4845         * posix/getpgid.c: Likewise.
4846         * posix/getpid.c: Likewise.
4847         * posix/getppid.c: Likewise.
4848         * posix/getresgid.c: Likewise.
4849         * posix/getresuid.c: Likewise.
4850         * posix/getsid.c: Likewise.
4851         * posix/getuid.c: Likewise.
4852         * posix/glob64.c: Likewise.
4853         * posix/nanosleep.c: Likewise.
4854         * posix/pathconf.c: Likewise.
4855         * posix/pause.c: Likewise.
4856         * posix/posix_madvise.c: Likewise.
4857         * posix/pread.c: Likewise.
4858         * posix/pread64.c: Likewise.
4859         * posix/pwrite.c: Likewise.
4860         * posix/pwrite64.c: Likewise.
4861         * posix/sched_getaffinity.c: Likewise.
4862         * posix/sched_getp.c: Likewise.
4863         * posix/sched_gets.c: Likewise.
4864         * posix/sched_primax.c: Likewise.
4865         * posix/sched_primin.c: Likewise.
4866         * posix/sched_rr_gi.c: Likewise.
4867         * posix/sched_setaffinity.c: Likewise.
4868         * posix/sched_setp.c: Likewise.
4869         * posix/sched_sets.c: Likewise.
4870         * posix/sched_yield.c: Likewise.
4871         * posix/setgid.c: Likewise.
4872         * posix/setlogin.c: Likewise.
4873         * posix/setpgid.c: Likewise.
4874         * posix/setresgid.c: Likewise.
4875         * posix/setresuid.c: Likewise.
4876         * posix/setsid.c: Likewise.
4877         * posix/setuid.c: Likewise.
4878         * posix/sleep.c: Likewise.
4879         * posix/spawni.c: Likewise.
4880         * posix/sysconf.c: Likewise.
4881         * posix/times.c: Likewise.
4882         * posix/wait.c: Likewise.
4883         * posix/wait3.c: Likewise.
4884         * posix/wait4.c: Likewise.
4885         * posix/waitpid.c: Likewise.
4886         * resolv/gai_sigqueue.c: Likewise.
4887         * resource/getpriority.c: Likewise.
4888         * resource/getrlimit.c: Likewise.
4889         * resource/getrusage.c: Likewise.
4890         * resource/nice.c: Likewise.
4891         * resource/setpriority.c: Likewise.
4892         * resource/setrlimit.c: Likewise.
4893         * resource/ulimit.c: Likewise.
4894         * rt/aio_cancel.c: Likewise.
4895         * rt/aio_fsync.c: Likewise.
4896         * rt/aio_read.c: Likewise.
4897         * rt/aio_sigqueue.c: Likewise.
4898         * rt/aio_suspend.c: Likewise.
4899         * rt/aio_write.c: Likewise.
4900         * rt/clock_getres.c: Likewise.
4901         * rt/clock_gettime.c: Likewise.
4902         * rt/clock_nanosleep.c: Likewise.
4903         * rt/clock_settime.c: Likewise.
4904         * rt/lio_listio.c: Likewise.
4905         * rt/mq_close.c: Likewise.
4906         * rt/mq_getattr.c: Likewise.
4907         * rt/mq_notify.c: Likewise.
4908         * rt/mq_open.c: Likewise.
4909         * rt/mq_receive.c: Likewise.
4910         * rt/mq_send.c: Likewise.
4911         * rt/mq_setattr.c: Likewise.
4912         * rt/mq_timedreceive.c: Likewise.
4913         * rt/mq_timedsend.c: Likewise.
4914         * rt/mq_unlink.c: Likewise.
4915         * rt/shm_open.c: Likewise.
4916         * rt/shm_unlink.c: Likewise.
4917         * rt/timer_create.c: Likewise.
4918         * rt/timer_delete.c: Likewise.
4919         * rt/timer_getoverr.c: Likewise.
4920         * rt/timer_gettime.c: Likewise.
4921         * rt/timer_settime.c: Likewise.
4922         * setjmp/__longjmp.c: Likewise.
4923         * setjmp/setjmp.c: Likewise.
4924         * signal/kill.c: Likewise.
4925         * signal/killpg.c: Likewise.
4926         * signal/raise.c: Likewise.
4927         * signal/sigaction.c: Likewise.
4928         * signal/sigaltstack.c: Likewise.
4929         * signal/sigblock.c: Likewise.
4930         * signal/sigignore.c: Likewise.
4931         * signal/sigintr.c: Likewise.
4932         * signal/signal.c: Likewise.
4933         * signal/sigpause.c: Likewise.
4934         * signal/sigpending.c: Likewise.
4935         * signal/sigqueue.c: Likewise.
4936         * signal/sigreturn.c: Likewise.
4937         * signal/sigset.c: Likewise.
4938         * signal/sigsetmask.c: Likewise.
4939         * signal/sigstack.c: Likewise.
4940         * signal/sigsuspend.c: Likewise.
4941         * signal/sigtimedwait.c: Likewise.
4942         * signal/sigvec.c: Likewise.
4943         * signal/sigwait.c: Likewise.
4944         * signal/sigwaitinfo.c: Likewise.
4945         * signal/sysv_signal.c: Likewise.
4946         * socket/accept.c: Likewise.
4947         * socket/accept4.c: Likewise.
4948         * socket/bind.c: Likewise.
4949         * socket/connect.c: Likewise.
4950         * socket/getpeername.c: Likewise.
4951         * socket/getsockname.c: Likewise.
4952         * socket/getsockopt.c: Likewise.
4953         * socket/isfdtype.c: Likewise.
4954         * socket/listen.c: Likewise.
4955         * socket/recv.c: Likewise.
4956         * socket/recvfrom.c: Likewise.
4957         * socket/recvmsg.c: Likewise.
4958         * socket/send.c: Likewise.
4959         * socket/sendmsg.c: Likewise.
4960         * socket/sendto.c: Likewise.
4961         * socket/setsockopt.c: Likewise.
4962         * socket/shutdown.c: Likewise.
4963         * socket/sockatmark.c: Likewise.
4964         * socket/socket.c: Likewise.
4965         * socket/socketpair.c: Likewise.
4966         * stdio-common/ctermid.c: Likewise.
4967         * stdio-common/cuserid.c: Likewise.
4968         * stdio-common/remove.c: Likewise.
4969         * stdio-common/rename.c: Likewise.
4970         * stdio-common/renameat.c: Likewise.
4971         * stdio-common/tempname.c: Likewise.
4972         * stdlib/getcontext.c: Likewise.
4973         * stdlib/makecontext.c: Likewise.
4974         * stdlib/setcontext.c: Likewise.
4975         * stdlib/swapcontext.c: Likewise.
4976         * stdlib/system.c: Likewise.
4977         * streams/fattach.c: Likewise.
4978         * streams/fdetach.c: Likewise.
4979         * streams/getmsg.c: Likewise.
4980         * streams/getpmsg.c: Likewise.
4981         * streams/putmsg.c: Likewise.
4982         * streams/putpmsg.c: Likewise.
4983         * sysdeps/unix/bsd/getpt.c: Likewise.
4984         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
4985         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
4986         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
4987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
4988         Likewise.
4989         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
4990         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
4991         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
4992         * sysvipc/msgctl.c: Likewise.
4993         * sysvipc/msgget.c: Likewise.
4994         * sysvipc/msgrcv.c: Likewise.
4995         * sysvipc/msgsnd.c: Likewise.
4996         * sysvipc/semctl.c: Likewise.
4997         * sysvipc/semget.c: Likewise.
4998         * sysvipc/semop.c: Likewise.
4999         * sysvipc/semtimedop.c: Likewise.
5000         * sysvipc/shmat.c: Likewise.
5001         * sysvipc/shmctl.c: Likewise.
5002         * sysvipc/shmdt.c: Likewise.
5003         * sysvipc/shmget.c: Likewise.
5004         * termios/tcdrain.c: Likewise.
5005         * termios/tcflow.c: Likewise.
5006         * termios/tcflush.c: Likewise.
5007         * termios/tcgetattr.c: Likewise.
5008         * termios/tcgetpgrp.c: Likewise.
5009         * termios/tcsendbrk.c: Likewise.
5010         * termios/tcsetattr.c: Likewise.
5011         * termios/tcsetpgrp.c: Likewise.
5012         * time/adjtime.c: Likewise.
5013         * time/clock.c: Likewise.
5014         * time/getitimer.c: Likewise.
5015         * time/gettimeofday.c: Likewise.
5016         * time/setitimer.c: Likewise.
5017         * time/settimeofday.c: Likewise.
5018         * time/stime.c: Likewise.
5019         * time/time.c: Likewise.
5020
5021 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
5022
5023         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
5024         /usr/old/bin.
5025
5026         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
5027         instead of spaces.
5028         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
5029
5030 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
5031
5032         [BZ #14796]
5033         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
5034         FE_TONEAREST before applying Dekker multiplication and Knuth
5035         addition.  Clear inexact exceptions and check for exact zero
5036         results afterwards.
5037         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5038         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5039         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5040         * math/libm-test.inc (fma_test): Add more tests.
5041         (fma_test_towardzero): Likewise.
5042         (fma_test_downward): Likewise.
5043         (fma_test_upward): Likewise.
5044         * sysdeps/generic/math_private.h (default_libc_fesetround): New
5045         function.
5046         (libc_fesetround): New macro.
5047         (libc_fesetroundf): Likewise.
5048         (libc_fesetroundl): Likewise.
5049         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
5050         function.
5051         (libc_fesetround_387): Likewise.
5052         (libc_fesetroundf): New macro.
5053         (libc_fesetround): Likewise.
5054         (libc_fesetroundl): Likewise.
5055         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
5056         function.
5057         (libc_fesetroundf): New macro.
5058         (libc_fesetround): Likewise.
5059         (libc_fesetroundl): Likewise.
5060         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
5061         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
5062         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
5063         libm_hidden_ver.
5064         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
5065         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
5066         libm_hidden_def.
5067         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
5068         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
5069         libm_hidden_ver.
5070         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
5071         libm_hidden_def.
5072
5073         [BZ #3439]
5074         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
5075         integer constant usable in #if and use that to give value to enum
5076         constant.
5077         (FE_DIVBYZERO): Likewise.
5078         (FE_UNDERFLOW): Likewise.
5079         (FE_OVERFLOW): Likewise.
5080         (FE_INVALID): Likewise.
5081         (FE_INVALID_SNAN): Likewise.
5082         (FE_INVALID_ISI): Likewise.
5083         (FE_INVALID_IDI): Likewise.
5084         (FE_INVALID_ZDZ): Likewise.
5085         (FE_INVALID_IMZ): Likewise.
5086         (FE_INVALID_COMPARE): Likewise.
5087         (FE_INVALID_SOFTWARE): Likewise.
5088         (FE_INVALID_SQRT): Likewise.
5089         (FE_INVALID_INTEGER_CONVERSION): Likewise.
5090         (FE_TONEAREST): Likewise.
5091         (FE_TOWARDZERO): Likewise.
5092         (FE_UPWARD): Likewise.
5093         (FE_DOWNWARD): Likewise.
5094         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
5095         (FE_DIVBYZERO): Likewise.
5096         (FE_OVERFLOW): Likewise.
5097         (FE_UNDERFLOW): Likewise.
5098         (FE_INEXACT): Likewise.
5099         (FE_TONEAREST): Likewise.
5100         (FE_DOWNWARD): Likewise.
5101         (FE_UPWARD): Likewise.
5102         (FE_TOWARDZERO): Likewise.
5103         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
5104         (FE_UNDERFLOW): Likewise.
5105         (FE_OVERFLOW): Likewise.
5106         (FE_DIVBYZERO): Likewise.
5107         (FE_INVALID): Likewise.
5108         (FE_TONEAREST): Likewise.
5109         (FE_TOWARDZERO): Likewise.
5110         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
5111         (FE_OVERFLOW): Likewise.
5112         (FE_UNDERFLOW): Likewise.
5113         (FE_DIVBYZERO): Likewise.
5114         (FE_INEXACT): Likewise.
5115         (FE_TONEAREST): Likewise.
5116         (FE_TOWARDZERO): Likewise.
5117         (FE_UPWARD): Likewise.
5118         (FE_DOWNWARD): Likewise.
5119         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
5120         (FE_DIVBYZERO): Likewise.
5121         (FE_OVERFLOW): Likewise.
5122         (FE_UNDERFLOW): Likewise.
5123         (FE_INEXACT): Likewise.
5124         (FE_TONEAREST): Likewise.
5125         (FE_DOWNWARD): Likewise.
5126         (FE_UPWARD): Likewise.
5127         (FE_TOWARDZERO): Likewise.
5128
5129 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
5130
5131         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
5132
5133 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
5134
5135         * scripts/cross-test-ssh.sh (command): Use newlines to separate
5136         commands.  Quote $PWD.
5137         (blacklist_exports): Don't use remove_newlines.  Replace "declare
5138         -x" by "export".
5139         (remove_newlines): Remove.
5140
5141 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5142
5143         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
5144         * stdlib/stdlib.h (atof): Moved to ...
5145         * include/bits/stdlib-float.h: Here.  New file.
5146         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
5147         * stdlib/bits/stdlib-float.h: New file.
5148         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
5149         -mno-sse -mno-mmx.
5150         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
5151         <xmmintrin.h>.
5152
5153 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5154
5155         * conform/conformtest.pl (@headers): Add fenv.h.
5156         * conform/data/fenv.h-data: New file.
5157         * include/fenv.h [_ISOMAC]: Disable all contents of file except
5158         include of <math/fenv.h>.
5159
5160         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
5161         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
5162         && !UNIX98].  Enables tests for XOPEN2K8.
5163         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
5164         POSIX2008]: Likewise.
5165
5166         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
5167         (struct rusage): Do not expect type or its members.
5168
5169         [BZ #3439]
5170         * math/math.h (FP_NAN): Define macro to integer constant usable in
5171         #if and use that to give value to enum constant.
5172         (FP_INFINITE): Likewise.
5173         (FP_ZERO): Likewise.
5174         (FP_SUBNORMAL): Likewise.
5175         (FP_NORMAL): Likewise.
5176
5177 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
5178
5179         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
5180         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
5181         arguments.
5182
5183 2012-11-02  Roland McGrath  <roland@hack.frob.com>
5184
5185         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
5186         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
5187         autoconf-time if not.
5188         * configure.in: Remove AC_PREREQ.
5189
5190 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5191
5192         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
5193         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
5194         of the internal implementation.
5195
5196 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
5199         except include of <misc/sys/syslog.h>.
5200
5201 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5202
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
5204         function returns with a NULL context exit with zero.
5205
5206 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5207
5208         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
5209
5210 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
5211
5212         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
5213         (run_program_cmd): This.
5214         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
5215         (tst_langinfo): New variable.  Use it.
5216
5217 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
5218
5219         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
5220         floating point opcodes.
5221
5222 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5223
5224         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
5225         variable.
5226
5227         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
5228
5229         * sysdeps/mach/hurd/powerpc: Remove directory.
5230         * sysdeps/mach/powerpc: Likewise.
5231
5232 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5233
5234         * scripts/check-local-headers.sh: Ignore c++ headers.
5235
5236 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5237
5238         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
5239         __libc_cleanup_region_start argument.
5240
5241 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
5242
5243         [BZ #14784]
5244         [BZ #14785]
5245         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
5246         x * y using scaling, not as x * y + z.
5247         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5248         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5249         * math/libm-test.inc (fma_test): Add more tests.
5250         (fma_test_towardzero): Likewise.
5251         (fma_test_downward): Likewise.
5252         (fma_test_upward): Likewise.
5253
5254 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5255
5256         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
5257
5258 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5259
5260         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
5261         New variable.
5262
5263 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
5264
5265         * rt/tst-shm.c (worker): Correct checking for mmap failure.
5266
5267 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5268
5269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5270         Fix sort order.
5271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5272         Likewise.
5273
5274 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5275
5276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5277         Fix the order of the list for glibc 2.17.
5278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5279         Likewise.
5280
5281 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5282
5283         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5284
5285 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5286
5287         [BZ #14610]
5288         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
5289         for low part of x being zero before using __atanl (y).
5290         * math/libm-test.inc (atan2_test): Add another test.
5291
5292         * manual/install.texi (Configuring and compiling): Document
5293         general use of test-wrapper and test-wrapper-env.
5294         * INSTALL: Regenerated.
5295
5296         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
5297         (__fma): Do not extract and scale down low bits on after-rounding
5298         systems when result rounded to normal precision would have normal
5299         exponent.
5300         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
5301         (__fmal): Do not extract and scale down low bits on after-rounding
5302         systems when result rounded to normal precision would have normal
5303         exponent.
5304         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
5305         (__fmal): Do not extract and scale down low bits on after-rounding
5306         systems when result rounded to normal precision would have normal
5307         exponent.
5308         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
5309         macro.
5310         (fma_test): Add more tests.
5311         (fma_test_towardzero): Likewise.
5312         (fma_test_downward): Likewise.
5313         (fma_test_upward): Likewise.
5314
5315 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5316
5317         * sysdeps/i386/tininess.h: Renamed to ...
5318         * sysdeps/x86/tininess.h: This.
5319         * sysdeps/x86_64/tininess.h: Removed.
5320
5321 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5322
5323         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
5324         input.  Use $(build-program-cmd).
5325         ($(objpfx)tst-array1-static.out): Likewise.
5326         ($(objpfx)tst-array2.out): Likewise.
5327         ($(objpfx)tst-array3.out): Likewise.
5328         ($(objpfx)tst-array4.out): Likewise.
5329         ($(objpfx)tst-array5.out): Likewise.
5330         ($(objpfx)tst-array5-static.out): Likewise.
5331
5332 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
5333
5334         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
5335         if defined.
5336
5337         * nss/nsswitch.h (nss_interface_function): Provide new
5338         macro for use with NSS functions.
5339         * grp/initgroups.c: Use new macro.
5340         * nss/getXXbyYY.c: Likewise.
5341         * nss/getXXbyYY_r.c: Likewise.
5342         * nss/getXXent.c: Likewise.
5343         * nss/getXXent_r.c: Likewise.
5344         * sysdeps/posix/getaddrinfo.c: Likewise.
5345
5346 2012-10-30  Andreas Jaeger  <aj@suse.de>
5347
5348         * po/ru.po: Update Russion translation from translation project.
5349
5350 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5351
5352         [BZ #14152]
5353         [BZ #14783]
5354         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
5355         result and shift together with sticky bit instead of replicating
5356         round-to-nearest rounding.
5357         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5358         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5359         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
5360         missing underflow exceptions.
5361         (fma_test_towardzero): Add more tests.
5362         (fma_test_downward): Likewise.
5363         (fma_test_upward): Likewise.
5364
5365         [BZ #14047]
5366         * sysdeps/generic/tininess.h: New file.
5367         * sysdeps/i386/tininess.h: Likewise.
5368         * sysdeps/sh/tininess.h: Likewise.
5369         * sysdeps/x86_64/tininess.h: Likewise.
5370         * stdlib/tst-strtod-underflow.c: Likewise.
5371         * stdlib/tst-tininess.c: Likewise.
5372         * stdlib/strtod_l.c: Include <tininess.h>.
5373         (round_and_return): Do not set errno for exact underflow cases.
5374         Force an underflow exception when setting errno for underflow.
5375         Determine underflow based on rounding to normal precision if
5376         TININESS_AFTER_ROUNDING.
5377         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
5378         ERANGE for exact underflow cases.
5379         * stdlib/Makefile (tests): Add tst-tininess and
5380         tst-strtod-underflow.
5381         ($(objpfx)tst-tininess): Use $(link-libm).
5382         ($(objpfx)tst-strtod-underflow): Likewise.
5383
5384 2012-10-30  Andreas Jaeger  <aj@suse.de>
5385
5386         [BZ#14767]
5387         * elf/Makefile (tests): Remove conditional for have-initfini-array
5388         since this is now always required and the variable does not exist
5389         anymore.
5390         (tests-static): Likewise.
5391         (modules-names): Likewise.
5392
5393         * po/eo.po: Add Esperanto translation from translation project.
5394
5395         * elf/tst-array1.c (fini_array): Make writeable so that it can be
5396         merged with constructor/destructor.
5397         (init_array): Likewise.
5398         * elf/tst-array2dep.c (fini_array): Likewise.
5399         (init_array): Likewise.
5400
5401 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
5402
5403         * manual/message.texi: Delete @cartouche tags.
5404
5405 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
5406
5407         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
5408         EOPNOTSUPP.
5409         * sysdeps/mach/hurd/fsync.c: Likewise.
5410
5411         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
5412         [_POSIX_REALTIME_SIGNALS]: Change condition to
5413         [_POSIX_REALTIME_SIGNALS > 0].
5414
5415 2012-10-27  Andreas Jaeger  <aj@suse.de>
5416
5417         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
5418         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
5419         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
5420         [__WORDSIZE != 64]: Likewise.
5421
5422 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5423
5424         *  iconvdata/tst-table.sh: Remove ${SHELL}.
5425         *  iconvdata/tst-tables.sh: Likewise.
5426
5427 2012-10-25  David S. Miller  <davem@davemloft.net>
5428
5429         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5430         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
5431         of strtoull.
5432
5433         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
5434         ifunc-impl-list.c
5435         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5436         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
5437         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
5438         file.
5439
5440 2012-10-25  Roland McGrath  <roland@hack.frob.com>
5441
5442         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5443         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
5444         __getdirentries.
5445
5446 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5447             Jim Blandy  <jimb@codesourcery.com>
5448
5449         * scripts/cross-test-ssh.sh: New file.
5450         * manual/install.texi (Configuring and compiling): Document use of
5451         cross-test-ssh.sh.
5452         * INSTALL: Regenerated.
5453
5454 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
5455
5456         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
5457         EOPNOTSUPP.
5458
5459 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5460
5461         * Makeconfig (run-program-prefix): Fix comment.
5462
5463 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5464             Jim Blandy  <jimb@codesourcery.com>
5465
5466         * Makeconfig (test-wrapper): New variable,
5467         (test-wrapper-env): Likewise.
5468         [$(cross-compiling) = yes && $(test-wrapper) != ""]
5469         (run-built-tests): Define to yes.
5470         (run-program-prefix): Use $(test-wrapper).
5471         (built-program-cmd): Likewise.
5472         * Rules (make-test-out): Use $(test-wrapper-env) and
5473         $(host-built-program-cmd).
5474         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
5475         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
5476         tst-pathopt.sh.
5477         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
5478         $(test-wrapper-env) to tst-rtld-load-self.sh.
5479         ($(objpfx)order2.out): Use $(test-wrapper).
5480         ($(objpfx)tst-initorder.out): Likewise.
5481         ($(objpfx)tst-initorder2.out): Likewise.
5482         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
5483         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
5484         (test_wrapper_env): New variable.  Use it to run ld.so.
5485         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
5486         Use it to run ld.so.
5487         (test_wrapper_env): Likewise.
5488         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
5489         $(test-wrapper) to run-iconv-test.sh.
5490         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
5491         (ICONV): Use $test_wrapper.
5492         * posix/Makefile ($(objpfx)globtest.out): Pass
5493         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
5494         globtest.sh, not $(run-program-prefix).
5495         * posix/globtest.sh (run_via_rtld_prefix): New variable.
5496         (test_wrapper): Likewise.
5497         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
5498         set together with run_via_rtld_prefix.
5499         (run_program_prefix): Define in terms of test_wrapper and
5500         run_via_rtld_prefix.
5501
5502 2012-10-24  Roland McGrath  <roland@hack.frob.com>
5503
5504         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
5505         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
5506         Targets removed.
5507
5508         [BZ #14743]
5509         * include/time.h: Remove librt_hidden_proto (clock_gettime).
5510         Declare __clock_getres, __clock_gettime, __clock_settime,
5511         __clock_nanosleep, and __clock_getcpuclockid.
5512         * rt/clock_gettime.c: Define __clock_gettime as an alias.
5513         Remove librt_hidden_def (clock_gettime).
5514         * sysdeps/unix/clock_gettime.c: Likewise.
5515         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
5516         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
5517         * rt/clock_getres.c: Define __clock_getres as an alias.
5518         * sysdeps/posix/clock_getres.c: Likewise.
5519         * rt/clock_settime.c: Define __clock_settime as an alias.
5520         * sysdeps/unix/clock_settime.c: Likewise.
5521         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
5522         * sysdeps/unix/clock_nanosleep.c: Likewise.
5523         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5524         * rt/clock-compat.c: New file.
5525         * rt/Makefile (librt-routines): Add clock-compat and move
5526         $(clock-routines) to ...
5527         (routines): ... here, new variable.
5528         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
5529         Don't add get_clockfreq here.
5530         * rt/Versions (libc: GLIBC_2.17): New version set.
5531         Add clock_* symbols here.
5532         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
5533         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
5534         (GLIBC_2.17): Add clock_* symbols.
5535         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5536         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5537         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5539         Likewise.
5540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5541         Likewise.
5542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5544         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5546         * NEWS: Mention the move.
5547
5548         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
5549         Use __open, __read, __close rather than their public counterparts.
5550         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5551         (__get_clockfreq_via_cpuinfo): Likewise.
5552         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
5553         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
5554
5555         * config.h.in (HAVE_IFUNC): New #undef.
5556         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
5557         was successful.
5558         * configure: Regenerated.
5559
5560 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
5561
5562         * configure.in: Move READELF check to start of file.
5563         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
5564         libc_cv_asm_gnu_indirect_function in the process.
5565         * configure: Regenerated.
5566
5567 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
5568
5569         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
5570         send the output to /dev/null.
5571         (libc_cv_cc_with_libunwind): Likewise.
5572         (libc_cv_as_noexecstack): Likewise.
5573         * configure: Regenerate.
5574
5575 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5576
5577         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
5578
5579         * posix/globtest.sh (TMPDIR): Do not set.
5580         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
5581         (testout): Likewise.
5582
5583 2012-10-24  Andreas Jaeger  <aj@suse.de>
5584
5585         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
5586         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
5587         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
5588         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
5589         posix_fadvise64, posix_fallocate64.
5590
5591         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
5592         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
5593         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
5594         Likewise.
5595         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
5596         Likewise.
5597         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
5598
5599         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
5600         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
5601         <bits/fcntl-linux.h>.
5602         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
5603
5604         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
5605         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
5606         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
5607         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
5608         [__WORDSIZE != 64]: Likewise.
5609
5610 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5611
5612         * Makeconfig (run-built-tests): New variable.
5613         * Rules [$(cross-compiling) = yes]: Change condition to
5614         [$(run-built-tests) = no].
5615         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
5616         to [$(run-built-tests) = yes].
5617         * elf/Makefile [$(cross-compiling) = no]: Likewise
5618         * grp/Makefile [$(cross-compiling) = no]: Likewise.
5619         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
5620         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
5621         * intl/Makefile [$(cross-compiling) = no]: Likewise.
5622         * io/Makefile [$(cross-compiling) = no]: Likewise.
5623         * libio/Makefile [$(cross-compiling) = no]: Likewise.
5624         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
5625         * misc/Makefile [$(cross-compiling) = no]: Likewise.
5626         * posix/Makefile [$(cross-compiling) = no]: Likewise.
5627         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
5628         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
5629         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
5630         * string/Makefile [$(cross-compiling) = no]: Likewise.
5631
5632         * posix/Makefile ($(objpfx)globtest.out): Pass
5633         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
5634         $(rtld-installed-name).
5635         * posix/globtest.sh (elf_objpfx): Remove variable.
5636         (rtld_installed_name): Likewise.
5637         (library_path): Likewise.
5638         (run_program_prefix): New variable.  Use for running globtest
5639         binary.
5640
5641 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
5642             Joseph Myers  <joseph@codesourcery.com>
5643
5644         * Makeconfig (host-built-program-cmd): New variable.
5645         * elf/Makefile (tst-stackguard1-ARGS): Use
5646         $(host-built-program-cmd).
5647         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
5648         (tst-spawn-ARGS): Likewise.
5649         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
5650
5651 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5652             Jim Blandy  <jimb@codesourcery.com>
5653
5654         * Makeconfig (run-via-rtld-prefix): New variable.
5655         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
5656         (built-program-cmd): Likewise.
5657
5658 2012-10-22  Andreas Jaeger  <aj@suse.de>
5659
5660         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
5661         __O_RSYNC if it exists, otherwise to O_SYNC.
5662
5663 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
5664             Joseph Myers  <joseph@codesourcery.com>
5665
5666         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
5667         /dev/null.
5668         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
5669         from /dev/null
5670         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
5671         /dev/null.
5672
5673 2012-10-22  Andreas Jaeger  <aj@suse.de>
5674
5675         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
5676         Define always.
5677         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
5678
5679         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5680         bits/fcntl-linux.h.
5681
5682         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
5683         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
5684
5685         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
5686         to __O_LARGEFILE.
5687         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
5688         to __O_LARGEFILE.
5689
5690 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
5691             Joseph Myers  <joseph@codesourcery.com>
5692
5693         * config.make.in (NM): New variable.
5694
5695 2012-10-21  Andreas Jaeger  <aj@suse.de>
5696
5697         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
5698         definitions and declarations that are provided by
5699         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
5700
5701 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5702
5703         [BZ #14683]
5704         * elf/Makefile (tests-static): Add tst-leaks1-static.
5705         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
5706         ($(objpfx)tst-leaks1-static): New rule.
5707         ($(objpfx)tst-leaks1-static-mem): Likewise.
5708         (tst-leaks1-static-ENV): New macro.
5709         * elf/dl-open.c (dl_open_worker): Check the main application
5710         only if SHARED is defined.
5711         * elf/tst-leaks1-static.c: New file.
5712
5713 2012-10-20  Andreas Jaeger  <aj@suse.de>
5714
5715         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
5716         generic values for Linux.
5717         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
5718         and declarations that are provided by <bits/fcntl-linux.h> and
5719         include <bits/fcntl-linux.h>.
5720         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5721         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5722
5723 2012-10-20  Roland McGrath  <roland@hack.frob.com>
5724
5725         * io/fcntl.h: Move include of <bits/types.h> to the top and
5726         include it unconditionally.
5727
5728 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5729
5730         * wcsmbs/Makefile (tests-ifunc): New variable.
5731         (tests): Add $(tests-ifunc).
5732         * wcsmbs/test-wcschr-ifunc.c: New file.
5733         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
5734         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
5735         * wcsmbs/test-wcslen-ifunc.c: Likewise.
5736         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
5737         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
5738
5739         * string/Makefile (tests-ifunc): New variable.
5740         (tests): Add $(tests-ifunc).
5741         * string/test-memccpy.c (TEST_NAME): New macro.
5742         * string/test-memchr.c (TEST_NAME): Likewise.
5743         * string/test-memcmp.c (TEST_NAME): Likewise.
5744         * string/test-memcpy.c (TEST_NAME): Likewise.
5745         * string/test-memmem.c (TEST_NAME): Likewise.
5746         * string/test-memmove.c (TEST_NAME): Likewise.
5747         * string/test-memset.c (TEST_NAME): Likewise.
5748         * string/test-rawmemchr.c (TEST_NAME): Likewise.
5749         * string/test-stpcpy.c (TEST_NAME): Likewise.
5750         * string/test-stpncpy.c (TEST_NAME): Likewise.
5751         * string/test-strcasecmp.c (TEST_NAME): Likewise.
5752         * string/test-strcasestr.c (TEST_NAME): Likewise.
5753         * string/test-strcat.c (TEST_NAME): Likewise.
5754         * string/test-strchr.c (TEST_NAME): Likewise.
5755         * string/test-strcmp.c(TEST_NAME): Likewise.
5756         * string/test-strcpy.c (TEST_NAME): Likewise.
5757         * string/test-strcspn.c (TEST_NAME): Likewise.
5758         * string/test-strlen.c (TEST_NAME): Likewise.
5759         * string/test-strncasecmp.c (TEST_NAME): Likewise.
5760         * string/test-strncmp.c (TEST_NAME): Likewise.
5761         * string/test-strncpy.c (TEST_NAME): Likewise.
5762         * string/test-strnlen.c (TEST_NAME): Likewise.
5763         * string/test-strpbrk.c (TEST_NAME): Likewise.
5764         * string/test-strrchr.c (TEST_NAME): Likewise.
5765         * string/test-strspn.c (TEST_NAME): Likewise.
5766         * string/test-strstr.c (TEST_NAME): Likewise.
5767         * string/test-bcopy-ifunc.c: New file.
5768         * string/test-bzero-ifunc.c: Likewise.
5769         * string/test-memccpy-ifunc.c: Likewise.
5770         * string/test-memchr-ifunc.c: Likewise.
5771         * string/test-memcmp-ifunc.c: Likewise.
5772         * string/test-memcpy-ifunc.c: Likewise.
5773         * string/test-memmem-ifunc.c: Likewise.
5774         * string/test-memmove-ifunc.c: Likewise.
5775         * string/test-mempcpy-ifunc.c: Likewise.
5776         * string/test-memset-ifunc.c: Likewise.
5777         * string/test-rawmemchr-ifunc.c: Likewise.
5778         * string/test-stpcpy-ifunc.c: Likewise.
5779         * string/test-stpncpy-ifunc.c: Likewise.
5780         * string/test-strcasecmp-ifunc.c: Likewise.
5781         * string/test-strcasestr-ifunc.c: Likewise.
5782         * string/test-strcat-ifunc.c: Likewise.
5783         * string/test-strchr-ifunc.c: Likewise.
5784         * string/test-strchrnul-ifunc.c: Likewise.
5785         * string/test-strcmp-ifunc.c: Likewise.
5786         * string/test-strcpy-ifunc.c: Likewise.
5787         * string/test-strcspn-ifunc.c: Likewise.
5788         * string/test-strlen-ifunc.c: Likewise.
5789         * string/test-strncasecmp-ifunc.c: Likewise.
5790         * string/test-strncat-ifunc.c: Likewise.
5791         * string/test-strncmp-ifunc.c: Likewise.
5792         * string/test-strncpy-ifunc.c: Likewise.
5793         * string/test-strnlen-ifunc.c: Likewise.
5794         * string/test-strpbrk-ifunc.c: Likewise.
5795         * string/test-strrchr-ifunc.c: Likewise.
5796         * string/test-strspn-ifunc.c: Likewise.
5797         * string/test-strstr-ifunc.c: Likewise.
5798
5799         * debug/Makefile (tests-ifunc): New variable.
5800         (tests): Add $(tests-ifunc).
5801         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
5802         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
5803         * debug/test-stpcpy_chk-ifunc.c: New file.
5804         * debug/test-strcpy_chk-ifunc.c: Likewise.
5805
5806 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
5807
5808         [BZ #13601]
5809         * elf/dl-load.c (open_verify): Retry read if the entire ELF
5810         header is not read in.
5811
5812 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
5813
5814         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
5815         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
5816         directly.  Pass built executable to script as
5817         $(built-program-cmd).
5818         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
5819         $testprogram without using LD_LIBRARY_PATH and $ldso.
5820
5821         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
5822         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
5823         $(rtld-installed-name).
5824         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
5825         (rtld_installed_name): Likewise.
5826         (library_path): Likewise.
5827         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
5828         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
5829         $(run-program-prefix) to tst-tables.sh.
5830         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
5831         it to run tst-table-from and tst-table-to.
5832         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
5833         Pass it to tst-table.sh.
5834         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
5835         $(run-program-prefix) to tst-gettext.sh.
5836         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
5837         tst-translit.sh.
5838         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
5839         tst-gettext2.sh.
5840         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
5841         to run tst-gettext.
5842         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
5843         to run tst-gettext2.
5844         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
5845         to run tst-translit.
5846         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
5847         $(run-program-prefix) to tst-mtrace.sh.
5848         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
5849         to run tst-mtrace.
5850         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
5851         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
5852         $(rtld-installed-name).
5853         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
5854         (rtld_installed_name): Likewise.
5855         (run_program_prefix): New variable.  Use it to run wordexp-test.
5856
5857         * Makeconfig (ARCH): Remove all definitions.
5858         (machine): Likewise.
5859         [ARCH]: Remove conditional code.
5860         [!objdir]: Give error.
5861         [!objdir] (objpfx): Remove.
5862         [!objdir] (common-objpfx): Likewise.
5863         [!objdir] (common-objdir): Likewise.
5864         * configure.in (config_makefile): Remove.  Hardcode Makefile in
5865         AC_CONFIG_FILES call.
5866         * configure: Regenerated.
5867
5868         [BZ #13888]
5869         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
5870         or TMPDIR.
5871         (testout): Likewise.
5872
5873         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
5874         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
5875         $(rtld-installed-name).
5876         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
5877         (rtld_installed_name): Likwise.
5878         (runit): Remove function.
5879         (run_getconf): New variable,  Use it for running getconf binary.
5880
5881 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
5882
5883         [BZ #14716]
5884         * string/test-memmem.c (check_result): New function.
5885         (do_one_test): Use it.
5886         (check1): New function.
5887         (test_main): Use it.
5888
5889 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5890
5891         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
5892
5893 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
5894
5895         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
5896         (_G_LSEEK64): Likewise.
5897         (_G_MMAP64): Likewise.
5898         (_G_FSTAT64): Likewise.
5899         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
5900         (_G_LSEEK64): Likewise.
5901         (_G_MMAP64): Likewise.
5902         (_G_FSTAT64): Likewise.
5903         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
5904         unconditional.  Call __mmap64 directly.
5905         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
5906         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
5907         __lseek64 directly.
5908         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
5909         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
5910         __mmap64 directly.
5911         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
5912         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5913         __lseek64 directly.
5914         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
5915         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5916         __lseek64 directly.
5917         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
5918         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
5919         __lseek64 directly.
5920         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
5921         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
5922         __fxstat64 directly.
5923         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
5924         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
5925         unconditional.
5926         (freopen64) [!_G_OPEN64]: Remove conditional code.
5927         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
5928         unconditional.
5929         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
5930         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
5931         unconditional.
5932         (ftello64) [!_G_LSEEK64]: Remove conditional code.
5933         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
5934         unconditional.
5935         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5936         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
5937         unconditional.
5938         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
5939         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
5940         unconditional.
5941         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5942         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
5943         unconditional.
5944         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5945         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
5946         unconditional.
5947         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5948
5949 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5950
5951         [BZ #12140]
5952         * manual/memory.texi (Malloc Tunable Parameters): Add note
5953         about free list pointers overwriting some perturb bytes.
5954         Wording suggested by Roland McGrath.
5955
5956 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
5957
5958         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
5959         (lgamma_test): Likewise.
5960         (tgamma_test): Likewise.
5961
5962 2012-10-16  Florian Weimer  <fweimer@redhat.com>
5963
5964         [BZ #14700]
5965         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
5966         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
5967
5968 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
5969
5970         * NEWS: Mention BZ #14716.
5971         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
5972         when removing AVAILABLE1_USES_J macro.
5973
5974 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5975
5976         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
5977         (__bswap_64): __uint64_t for unsigned 64-bit int.
5978
5979 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
5980
5981         * include/string.h (memmem): Declare libc hidden alias.
5982         * string/memmem.c (memmem): Define libc hidden alias.
5983         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
5984         __read, __close instead of open, read, close.
5985
5986 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
5989         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
5990         global and hidden.
5991         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
5992         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
5993         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
5994         Likewise.
5995         (__rawmemchr_sse2): Likewise.
5996         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
5997         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
5998         (__strchr_sse2): Likewise.
5999         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
6000         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
6001         (__strcasecmp_sse2): Likewise.
6002         (__strncasecmp_sse2): Likewise.
6003         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
6004         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
6005         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
6006         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
6007         (__strrchr_sse2): Likewise.
6008         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
6009         ifunc-impl-list.c.
6010         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6011         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6012         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
6013         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
6014         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6015         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6016         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6017         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6018         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
6019         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
6020         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
6021         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
6022         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
6023         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
6024         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
6025         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6026         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
6027         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
6028         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
6029         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
6030         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
6031         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
6032         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
6033         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
6034         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
6035         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6036         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
6037         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
6038         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
6039         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
6040
6041         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
6042         global and hidden.
6043         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
6044         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
6045         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
6046         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
6047         Likewise.
6048         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
6049         Likewise.
6050         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
6051         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
6052         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
6053         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
6054         ifunc-impl-list.c.
6055         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6056         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6057         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6058         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6059         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6060         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6061         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6062         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6063         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6064         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6065         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6066         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6067         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6068         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
6069         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
6070         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6071         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
6072         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
6073         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6074         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6075         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6076         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6077         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6078         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6079         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6080         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
6081         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
6082         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
6083         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
6084         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6085         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
6086         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6087         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6088         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
6089         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6090         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6091         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6092         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6093         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6094         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6095         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
6096
6097         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
6098         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
6099         * include/ifunc-impl-list.h: New file.
6100         * misc/ifunc-impl-list.c: Likewise.
6101         * misc/Makefile (routines): Add ifunc-impl-list.
6102         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
6103         * string/test-string.h: Include <ifunc-impl-list.h>.
6104         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
6105         impl_array): New variables.
6106         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
6107         are defined.
6108         (test_init): Call __libc_ifunc_impl_list to initialize
6109         func_list if TEST_IFUNC and TEST_NAME are defined.
6110
6111         * string/Makefile (strop-tests): Add bcopy and bzero.
6112         * string/test-bcopy.c: New file.
6113         * string/test-bzero.c: Likewise.
6114         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
6115         defined.
6116         * string/test-memset.c: Support bzero test if TEST_BZERO is
6117         defined.
6118         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
6119         __libc_memmove.
6120         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
6121         __libc_memset.
6122         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
6123         of memset.
6124
6125 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
6126
6127         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
6128         * configure: Regenerated.
6129
6130         * Makeconfig (+link-static-before-libc): Don't include
6131         $(link-static-libc).
6132
6133         * libio/libio.h (_IO_pos_t): Remove.
6134
6135 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6136
6137         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
6138         McGrath.
6139
6140 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6141
6142         * crypt/crypt-entry.c: Include fips-private.h.
6143         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
6144         * crypt/md5c-test.c (main): Tolerate disabled MD5.
6145         * sysdeps/unix/sysv/linux/fips-private.h: New file.
6146         * sysdeps/generic/fips-private.h: New file, dummy fallback.
6147
6148 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6149
6150         * crypt/crypt-private.h: Include stdbool.h.
6151         (_ufc_setup_salt_r): Return bool.
6152         * crypt/crypt-entry.c: Include errno.h.
6153         (__crypt_r): Return NULL with EINVAL for bad salt.
6154         * crypt/crypt_util.c (bad_for_salt): New.
6155         (_ufc_setup_salt_r): Check that salt is long enough and within
6156         the specified alphabet.
6157         * crypt/badsalttest.c: New file.
6158         * crypt/Makefile (tests): Add it.
6159         ($(objpfx)badsalttest): New.
6160
6161 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6162
6163         * NEWS: Add entry for BZ #14602.
6164
6165 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
6168         type-generic.
6169         * math/libm-test.inc: Update comment listing what functions and
6170         macros are tested.
6171         (isgreater_test): New function.
6172         (isgreaterequal_test): Likewise.
6173         (isless_test): Likewise.
6174         (islessequal_test): Likewise.
6175         (islessgreater_test): Likewise.
6176         (isunordered_test): Likewise.
6177         (main): Call the new functions.
6178
6179 2012-10-09  Roland McGrath  <roland@hack.frob.com>
6180
6181         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
6182         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
6183         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
6184         * sysdeps/i386/configure: Regenerated.
6185         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
6186         * sysdeps/mach/configure: Regenerated.
6187         * sysdeps/mach/hurd/configure: Regenerated.
6188         * sysdeps/powerpc/configure: Regenerated.
6189         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6190         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6191         * sysdeps/s390/s390-32/configure: Regenerated.
6192         * sysdeps/s390/s390-64/configure: Regenerated.
6193         * sysdeps/sh/configure: Regenerated.
6194         * sysdeps/sparc/configure: Regenerated.
6195         * sysdeps/unix/sysv/linux/configure: Regenerated.
6196         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
6197         * sysdeps/x86_64/configure: Regenerated.
6198
6199         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
6200         defined.  Don't check if MAP is NULL.
6201
6202 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6203
6204         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
6205         (_G_stat64): Likewise.
6206         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
6207         (_G_stat64): Likewise.
6208         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
6209         instead of struct _G_stat64.
6210         * libio/fileops.c (mmap_remap_check): Likewise.
6211         (decide_maybe_mmap): Likewise.
6212         (_IO_new_file_seekoff): Likewise.
6213         (_IO_file_stat): Likewise.
6214         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
6215         _G_off64_t.
6216         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
6217         instead of struct _G_stat64.
6218         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6219
6220 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
6221
6222         [BZ #14602]
6223         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6224         Replace with ...
6225         (CHECK_EOL): New macro.
6226         (two_way_short_needle): Check beginning of haystack for EOL.  Use
6227         CHECK_EOL.
6228         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6229         Replace with CHECK_EOL.
6230         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6231         Replace with CHECK_EOL.
6232
6233 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
6234
6235         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
6236         type-generic.
6237         * math/libm-test.inc: Update comment listing what functions and
6238         macros are tested.
6239         (finite_test): New function.
6240         (isinf_test): Likewise.
6241         (isnan_test): Likewise.
6242         (fpclassify_test): Test subnormal input.
6243         (isfinite_test): Likewise.
6244         (isnormal_test): Likewise.
6245         (main): Call the new functions.
6246
6247 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
6248
6249         [BZ #14660]
6250         * Makerules (%.dynsym): Force C locale when running
6251         $(OBJDUMP) --dynamic-syms.
6252
6253 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
6254
6255         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
6256         <stdint.h>.
6257
6258 2012-10-06  David S. Miller  <davem@davemloft.net>
6259
6260         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
6261         upper 32-bits of the length value in %o2 since we use branch-on-register
6262         tests which consider the entire 64-bit register.
6263
6264 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6265
6266         * string/test-strstr.c (check2): Add a test for page boundary.
6267
6268 2012-10-05  David S. Miller  <davem@davemloft.net>
6269
6270         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
6271         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
6272         file.
6273         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6274         sysdep_routines.
6275         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6276         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
6277         and bzero when HWCAP_SPARC_CRYPTO is present.
6278
6279 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
6280
6281         [BZ #14602]
6282         * string/test-strstr.c (check2): New function.
6283         (test_main): Call check2.
6284
6285         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
6286         and bug-strchr1.
6287         * string/bug-strcasestr1.c (do_test): Moved to ...
6288         * string/test-strcasestr.c (check1): Here.  New function.
6289         (do_one_test): Break out result checking code into ...
6290         (check_result): This.  New function.
6291         (do_one_test): Call check_result.
6292         (test_main): Call check1.
6293         * string/bug-strchr1.c (do_test): Moved to ...
6294         * string/test-strchr.c (check1): Here.  New function.
6295         (do_one_test): Break out result checking code into ...
6296         (check_result): This.  New function.
6297         (do_one_test): Call check_result.
6298         (test_main): Call check1.
6299         * string/bug-strstr1.c (main): Moved to ...
6300         * string/test-strstr.c (check1): Here.  New function.
6301         (do_one_test): Break out result checking code into ...
6302         (check_result): This.  New function.
6303         (do_one_test): Call check_result.
6304         (test_main): Call check1.
6305         * string/bug-strcasestr1.c: Removed.
6306         * string/bug-strchr1.c: Likewise.
6307         * string/bug-strstr1.c: Likewise.
6308
6309         * elf/Makefile (dl-routines): Add hwcaps.
6310         * elf/dl-support.c (_dl_important_hwcaps): Removed.
6311         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
6312         (_dl_important_hwcaps): Moved to ...
6313         * elf/dl-hwcaps.c: Here.  New file.
6314         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
6315
6316         [BZ #14557]
6317         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
6318         if IS_IN_rtld isn't defined.
6319
6320         * elf/dl-support.c (_dl_sysinfo_map): New.
6321         Include "get-dynamic-info.h" and "setup-vdso.h".
6322         (_dl_non_dynamic_init): Call setup_vdso.
6323         * elf/dynamic-link.h: Don't include <assert.h>.
6324         (elf_get_dynamic_info): Moved to ...
6325         * elf/get-dynamic-info.h: Here.  New file.
6326         * elf/dynamic-link.h: Include "get-dynamic-info.h".
6327         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
6328         * elf/setup-vdso.h: Here.  New file.
6329         * elf/rtld.c: Include "setup-vdso.h".
6330         (dl_main): Call setup_vdso.
6331
6332 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
6333
6334         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
6335         creal in comment listing functions tested.  List finite, isinf,
6336         isnan, isless, islessequal, isgreater, isgreaterequal,
6337         islessgreater, isunordered, lgamma_r and pow10 as functions and
6338         macros not tested.  Mention which functions not tested are aliases
6339         for other functions.  Fix typo.  Note that signs of NaNs are not
6340         tested.
6341
6342         * scripts/config.guess: Update from config.git.
6343         * scripts/config.sub: Likewise.
6344
6345 2012-10-04  Roland McGrath  <roland@hack.frob.com>
6346
6347         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
6348         * misc/madvise.c (madvise): Renamed to __madvise.
6349         Make madvise a weak alias.
6350         * include/sys/mman.h: Declare __madvise.
6351         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
6352         * sysdeps/unix/syscalls.list
6353         (madvise): Make __madvise the strong name, and madvise a weak alias.
6354         * sysdeps/unix/sysv/linux/syscalls.list
6355         (madvise, mmap): Remove redundant entries.
6356         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
6357         * malloc/malloc.c (mtrim): Likewise.
6358         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
6359
6360 2012-10-03  Roland McGrath  <roland@hack.frob.com>
6361
6362         * sysdeps/mach/hurd/dl-cache.c: File removed.
6363         * config.h.in (USE_LDCONFIG): New #undef.
6364         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
6365         * configure: Regenerated.
6366         * elf/Makefile (dl-routines): Add dl-cache only under
6367         [$(use-ldconfig) = yes].
6368         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
6369         cache on [USE_LDCONFIG].
6370         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
6371         [USE_LDCONFIG].
6372         * elf/rtld.c (dl_main): Likewise.
6373
6374 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
6375
6376         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
6377         _SC_LEVEL4_CACHE_LINESIZE.
6378
6379 2012-10-03  Roland McGrath  <roland@hack.frob.com>
6380
6381         * sysdeps/unix/bsd/confstr.h: File removed.
6382
6383 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
6384
6385         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
6386         sys/sdt-config.h.
6387
6388 2012-10-02  Roland McGrath  <roland@hack.frob.com>
6389
6390         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
6391         Make 'mapoff' field ElfW(Off) rather than off_t.
6392
6393 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
6394
6395         * nscd/Makefile: Remove nscd-cflags and all its users.
6396         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
6397         (CFLAGS-nonlib): Add compiler flags for nscd modules.
6398
6399         [BZ #10631]
6400         * malloc.c (malloc_printerr): Clarify error message.
6401
6402 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6403
6404         [BZ #14648]
6405         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6406         Set bit_FMA_Usable if FMA is supported.
6407         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
6408         macro.
6409         (bit_FMA4_Usable): Updated.
6410         (index_FMA_Usable): New macro.
6411         (CPUID_FMA): Likewise
6412         (HAS_FMA): Defined with bit_FMA_Usable.
6413
6414 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6415
6416         * bits/types.h (__swblk_t): Type removed.
6417         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
6418         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
6419         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6420         (__SWBLK_T_TYPE): Likewise.
6421         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6422         (__SWBLK_T_TYPE): Likewise.
6423         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6424         (__SWBLK_T_TYPE): Likewise.
6425         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6426         (__SWBLK_T_TYPE): Likewise.
6427
6428 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
6429             Honza Horak <hhorak@redhat.com>
6430
6431         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
6432         (xdr_mapname): Use YPMAXMAP as maxsize.
6433         (xdr_peername): Use YPMAXPEER as maxsize.
6434         (xdr_keydat): Use YPAXRECORD as maxsize.
6435         (xdr_valdat): Use YPMAXRECORD as maxsize.
6436
6437 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6438
6439         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
6440
6441         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
6442         * csu/init-first.c: ... here.
6443         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
6444         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
6445         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
6446         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
6447         * sysdeps/i386/init-first.c: File removed.
6448         * sysdeps/sh/init-first.c: File removed.
6449
6450 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
6451
6452         [BZ #14645]
6453         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
6454         if x * y might underflow to zero and z is zero.
6455         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6456         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6457         * math/libm-test.inc (min_subnorm_value): New variable.
6458         (fma_test): Add more tests.
6459         (fma_test_towardzero): Likewise.
6460         (fma_test_downward): Likewise
6461         (fma_test_upward): Likewise.
6462         (initialize): Set min_subnorm_value.
6463
6464 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
6465
6466         [BZ #14638]
6467         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
6468         0 + 0.
6469         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
6470         mode for addition resulting in exact zero.
6471         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
6472         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
6473         exact 0 + 0.
6474         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6475         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6476         * math/libm-test.inc (fma_test): Add more tests.
6477         (fma_test_towardzero): New function.
6478         (fma_test_downward): Likewise.
6479         (fma_test_upward): Likewise.
6480         (main): Call the new functions.
6481
6482 2012-09-28  David S. Miller  <davem@davemloft.net>
6483
6484         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
6485
6486 2012-09-28  Roland McGrath  <roland@hack.frob.com>
6487
6488         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
6489         instead of SIGALRM.
6490
6491         * sysdeps/gnu/_G_config.h: Moved to ...
6492         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
6493         * sysdeps/mach/hurd/_G_config.h: Moved to ...
6494         * sysdeps/generic/_G_config.h: ... here.
6495
6496         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
6497
6498         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
6499
6500         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
6501         Conditionalize target on [libnss_test1.so-version].
6502
6503         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
6504
6505         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
6506         (elfobjdir): Move out of conditionals.
6507
6508         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
6509         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
6510         (__nss_lookup_function): Conditionalize label remove_from_tree on
6511         [!DO_STATIC_NSS || SHARED], matching its only use.
6512
6513 2012-09-28  David S. Miller  <davem@davemloft.net>
6514
6515         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
6516         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
6517         file.
6518         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6519         sysdep_routines.
6520         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6521         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
6522         when HWCAP_SPARC_CRYPTO is present.
6523
6524 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6525
6526         * io/tst-mknodat.c: Create a FIFO instead of a socket.
6527
6528 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
6529
6530         [BZ #6530]
6531         * stdio-common/vfprintf.c (process_string_arg): Revert
6532         2000-07-22 change.
6533
6534 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
6535
6536         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
6537         for testcase.
6538         * stdio-common/tst-sprintf.c: Include <locale.h>
6539         (main): Test sprintf's handling of incomplete multibyte
6540         characters.
6541
6542 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
6543
6544         * elf/dl-runtime.c (VERSYMIDX): Removed.
6545         * elf/dl-version.c (VERSYMIDX): Likewise.
6546         * elf/do-rel.h (VERSYMIDX): Likewise.
6547         (VALIDX): Likewise.
6548         * elf/dynamic-link.h (VERSYMIDX): Likewise.
6549         * elf/rtld.c (VALIDX): Likewise.
6550         (ADDRIDX): Likewise.
6551         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
6552         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
6553         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
6554         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
6555         (VALIDX): Likewise.
6556         (ADDRIDX): Likewise.
6557
6558 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6559
6560         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
6561
6562 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
6563
6564         [BZ #11438]
6565         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
6566         to global scope.
6567         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
6568         addresses are in the same scope as 192.0.2/24.
6569         * posix/gai.conf: Document new scope table defaults.
6570
6571 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6572
6573         [BZ #5298]
6574         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
6575         for ftell.  Compute offsets from write pointers instead.
6576         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6577
6578 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6579
6580         [BZ #14543]
6581         * libio/Makefile (tests): New test case tst-fseek.
6582         * libio/tst-fseek.c: New test case to verify that fseek/ftell
6583         combination works in wide mode.
6584         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
6585         state when the external buffer state changes.
6586
6587 2012-09-27  David S. Miller  <davem@davemloft.net>
6588
6589         [BZ #14376]
6590         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
6591         pass reloc->r_addend in as the 'high' argument to
6592         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
6593
6594         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6595
6596 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6597
6598         * rt/tst-aio2.c: Include <pthread.h>.
6599         * rt/tst-aio3.c: Likewise.
6600
6601 2012-09-27  Steve Ellcey  <sellcey@mips.com>
6602
6603         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
6604
6605 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
6606
6607         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
6608         contents on [SHARED].
6609
6610 2012-09-26  Marek Polacek  <polacek@redhat.com>
6611
6612         [BZ #14530]
6613         [BZ #13741]
6614         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
6615         for C++ and GCC <4.3 as well as for non GCC compilers.
6616
6617 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6618
6619         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6620
6621 2012-09-25  Roland McGrath  <roland@hack.frob.com>
6622
6623         * Makefile.in (all, install): Declare with .PHONY.
6624         Reported by Michael Hope <michael.hope@linaro.org>.
6625
6626 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6627
6628         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
6629         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
6630         system header.
6631         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
6632         Likewise.
6633         (sydep_routines): Add the new and the internal functions.
6634         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
6635         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
6636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
6637         (GLIBC_2.17): Add the new function.
6638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6639         (GLIBC_2.17): Likewise.
6640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
6641         (GLIBC_2.17): Likewise.
6642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
6643         (GLIBC_2.17): Likewise.
6644         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
6645
6646 2012-09-25  Alan Modra  <amodra@gmail.com>
6647
6648         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6649         Add release barrier before setting once_control to say
6650         initialisation is done.  Add hints on lwarx.  Use macro in
6651         place of isync.
6652         (clear_once_control): Add release barrier.
6653
6654 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
6655
6656         [BZ #13629]
6657         * math/s_clog.c (__clog): Handle more values close to |z| = 1
6658         specially.
6659         * math/s_clog10.c (__clog10): Likewise.
6660         * math/s_clog10f.c (__clog10f): Likewise.
6661         * math/s_clog10l.c (__clog10l): Likewise.
6662         * math/s_clogf.c (__clogf): Likewise.
6663         * math/s_clogl.c (__clogl): Likewise.
6664         * math/Makefile (libm-calls): Add x2y2m1.
6665         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
6666         (__x2y2m1): Likewise.
6667         (__x2y2m1l): Likewise.
6668         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
6669         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
6670         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6671         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6672         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
6673         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6674         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
6675         * sysdeps/i386/fpu/libm-test-ulps: Update.
6676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6677
6678         [BZ #14621]
6679         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
6680         int as type of variable DEPTH.
6681         (glob): Use size_t instead of int as type of variables NEWCOUNT
6682         and OLD_PATHC.
6683
6684 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6685
6686         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
6687         Add s_sincosf-sse2.
6688         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
6689         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
6690         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
6691         macros for using routine as __sincosf_ia32.
6692         Use macro for function declaration and weak_alias.
6693         * sysdeps/i386/fpu/libm-test-ulps: Update.
6694
6695         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
6696         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6697
6698         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
6699         subnormal argument.
6700         * math/s_cexpf.c (__cexpf): Likewise.
6701         * math/s_csinf.c (__csinf): Likewise.
6702         * math/s_csinhf.c (__csinhf): Likewise.
6703         * math/s_ctanf.c (__ctanf): Likewise.
6704         * math/s_ctanhf.c (__ctanhf): Likewise.
6705         * math/s_ccosh.c (__ccoshf): Likewise.
6706         * math/s_cexp.c (__cexpl): Likewise.
6707         * math/s_csin.c (__csin): Likewise.
6708         * math/s_csinh.c (__csinh): Likewise.
6709         * math/s_ctan.c (__ctan): Likewise.
6710         * math/s_ctanh.c (ctanh): Likewise.
6711         * math/s_ccoshl.c (__ccoshl): Likewise.
6712         * math/s_cexpl.c (__cexpl): Likewise.
6713         * math/s_csinl.c (__csinl): Likewise.
6714         * math/s_csinhl.c (__csinhl): Likewise.
6715         * math/s_ctanl.c (__ctanl): Likewise.
6716         * math/s_ctanhl.c (__ctanhl): Likewise.
6717
6718 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
6719
6720         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
6721         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
6722         (_IO_off_t): Define to __off_t, not _G_off_t.
6723         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
6724         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
6725         (_IO_wint_t): Define to wint_t, not _G_wint_t.
6726         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
6727         type of __dummy and __dummy2 fields.
6728         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
6729         (_G_ssize_t): Likewise.
6730         (_G_off_t): Likewise.
6731         (_G_pid_t): Likewise.
6732         (_G_uid_t): Likewise.
6733         (_G_wchar_t): Likewise.
6734         (_G_wint_t): Likewise.
6735         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
6736         (_G_ssize_t): Likewise.
6737         (_G_off_t): Likewise.
6738         (_G_pid_t): Likewise.
6739         (_G_uid_t): Likewise.
6740         (_G_wchar_t): Likewise.
6741         (_G_wint_t): Likewise.
6742         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
6743         (_G_ssize_t): Likewise.
6744         (_G_off_t): Likewise.
6745         (_G_pid_t): Likewise.
6746         (_G_uid_t): Likewise.
6747         (_G_wchar_t): Likewise.
6748         (_G_wint_t): Likewise.
6749
6750 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6751
6752         * malloc/arena.c: Include malloc-sysdep.h.
6753         (shrink_heap): Use check_may_shrink_heap to decide if madvise
6754         is sufficient to shrink the heap or an unmap is needed.
6755         * sysdeps/generic/malloc-sysdep.h: New file.  Define
6756         new function check_may_shrink_heap.
6757         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
6758         new function check_may_shrink_heap.
6759
6760 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6761
6762         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
6763         comments.
6764
6765 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
6766
6767         * catgets/test-gencat.sh: Add "set -e".
6768         * elf/tst-pathopt.sh: Likewise.
6769         * grp/tst_fgetgrent.sh: Likewise.
6770         * iconvdata/run-iconv-test.sh: Likewise.
6771         * intl/tst-gettext.sh: Likewise.
6772         * intl/tst-gettext2.sh: Likewise.
6773         * intl/tst-gettext4.sh: Likewise.
6774         * intl/tst-gettext6.sh: Likewise.
6775         * intl/tst-translit.sh: Likewise.
6776         * io/ftwtest-sh: Likewise.
6777         * libio/test-freopen.sh: Likewise.
6778         * malloc/tst-mtrace.sh: Likewise.
6779         * posix/globtest.sh: Likewise.
6780         * posix/tst-getconf.sh: Likewise.
6781         * posix/wordexp-tst.sh: Likewise.
6782         * stdio-common/tst-printf.sh: Likewise.
6783         * stdio-common/tst-unbputc.sh: Likewise.
6784         * stdlib/tst-fmtmsg.sh: Likewise.
6785         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
6786         * catgets/Makefile: Do not specify -e option when running
6787         testsuite shell scripts.
6788         * elf/Makefile: Likewise.
6789         * grp/Makefile: Likewise.
6790         * iconvdata/Makefile: Likewise.
6791         * intl/Makefile: Likewise.
6792         * io/Makefile: Likewise.
6793         * libio/Makefile: Likewise.
6794         * malloc/Makefile: Likewise.
6795         * posix/Makefile: Likewise.
6796         * stdio-common/Makefile: Likewise.
6797         * stdlib/Makefile: Likewise.
6798         * sysdeps/x86_64/Makefile: Likewise.
6799
6800         * io/ftwtest-sh: Add copyright header.
6801         * posix/globtest.sh: Likewise.
6802         * posix/tst-getconf.sh: Likewise.
6803         * posix/wordexp-tst.sh: Likewise.
6804         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
6805
6806 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
6807
6808         [BZ #13679]
6809         * Makeconfig (+link): Defined as $(+link-static) if
6810         $(build-shared) isn't yes.
6811         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
6812         isn't yes.
6813         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
6814
6815         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
6816
6817         [BZ #14562]
6818         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
6819         new chunk size with MALLOC_ALIGN_MASK.
6820
6821 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
6822
6823         [BZ #5044]
6824         * stdio-common/printf_fphex.c: Include <stdbool.h> and
6825         <rounding-mode.h>.
6826         (__printf_fphex): Determine rounding using get_rounding_mode and
6827         round_away.
6828         * stdio-common/tst-printf-round.c (struct hex_test): New
6829         structure.
6830         (hex_tests): New variable.
6831         (test_hex_in_one_mode): New function.
6832         (do_test): Also run tests for hex float output.
6833
6834 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
6835
6836         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6837         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6838         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
6839         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6840         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6841         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
6842         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6843         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6844
6845 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
6846
6847         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
6848         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
6849         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
6850         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
6851
6852 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
6853
6854         [BZ #14579]
6855         * elf/rtld.c (dl_main): Limit the check for self loading to normal
6856         mode only.
6857         * elf/tst-rtld-load-self.sh: New test.
6858         * elf/Makefile: Run it.
6859
6860 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
6861
6862         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
6863         (tst-writev-ENV): Remove.
6864         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
6865
6866 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
6867
6868         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
6869
6870 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
6871
6872         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
6873         unconditional.
6874         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
6875         Likewise.
6876         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
6877         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
6878         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
6879         Likewise.
6880
6881 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6882
6883         [BZ #14587]
6884         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
6885         * config.make.in (have-cpp-asm-debuginfo): Removed.
6886         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
6887         * configure: Regenerated.
6888
6889 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
6890
6891         [BZ #5044]
6892         * stdio-common/printf_fp.c: Include <stdbool.h> and
6893         <rounding-mode.h>.
6894         (___printf_fp): Determine rounding using get_rounding_mode and
6895         round_away.
6896         * stdio-common/tst-printf-round.c: New file.
6897         * stdio-common/Makefile (tests): Add tst-printf-round.
6898         (link-libm): New variable.
6899         ($(objpfx)tst-printf-round): Depend in $(link-libm).
6900
6901 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6902
6903         [BZ #14576]
6904         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
6905         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
6906         Likewise.
6907         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
6908         Likewise.
6909
6910 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
6911
6912         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
6913         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6914         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6915         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6916
6917 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
6918
6919         [BZ #14518]
6920         * include/rounding-mode.h: New file.
6921         * sysdeps/generic/get-rounding-mode.h: Likewise.
6922         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
6923         * stdlib/strtod_l.c: Include <rounding-mode.h>.
6924         (MAX_VALUE): New macro.
6925         (MIN_VALUE): Likewise.
6926         (overflow_value): New function.
6927         (underflow_value): Likewise.
6928         (round_and_return): Use overflow_value and underflow_value to
6929         determine return values in overflow and underflow cases.  Use
6930         round_away to determine rounding depending on rounding mode.
6931         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
6932         determine return values in overflow and underflow cases.
6933         * stdlib/tst-strtod-round.c: Include <fenv.h>.
6934         (struct test_results): New structure.
6935         (struct test): Use struct test_results to store expected results
6936         for all rounding modes.
6937         (TEST): Include expected results for all rounding modes.
6938         (test_in_one_mode): New function.
6939         (do_test): Use test_in_one_mode to compute and check results.
6940         Check results for all rounding modes.
6941         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
6942         $(link-libm).
6943
6944 2012-12-09  Allan McRae  <allan@archlinux.org>
6945
6946         * sysdeps/i386/fpu/libm-test-ulps: Update
6947
6948 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
6949
6950         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
6951         (_G_int32_t): Likewise.
6952         (_G_uint16_t): Likewise.
6953         (_G_uint32_t): Likewise.
6954         (_G_HAVE_BOOL): Likewise.
6955         (_G_HAVE_ATEXIT): Likewise.
6956         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6957         (_G_HAVE_IO_FILE_OPEN): Likewise.
6958         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
6959         (_G_int32_t): Likewise.
6960         (_G_uint16_t): Likewise.
6961         (_G_uint32_t): Likewise.
6962         (_G_HAVE_BOOL): Likewise.
6963         (_G_HAVE_ATEXIT): Likewise.
6964         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6965         (_G_HAVE_IO_FILE_OPEN): Likewise.
6966         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
6967         (_G_int32_t): Likewise.
6968         (_G_uint16_t): Likewise.
6969         (_G_uint32_t): Likewise.
6970         (_G_HAVE_BOOL): Likewise.
6971         (_G_HAVE_ATEXIT): Likewise.
6972         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6973         (_G_HAVE_IO_FILE_OPEN): Likewise.
6974
6975 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6976
6977         * csu/libc-tls.c: Update copyright years.
6978
6979 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
6980
6981         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
6982         [!_G_USING_THUNKS]: Remove conditional code.
6983         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
6984         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
6985
6986         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
6987         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
6988         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6989         (_G_VTABLE_LABEL_PREFIX): Likewise.
6990         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6991         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6992         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6993         (_G_VTABLE_LABEL_PREFIX): Likewise.
6994         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
6995         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6996         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6997         (_G_VTABLE_LABEL_PREFIX): Likewise.
6998         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
6999
7000 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
7001
7002         * libio/Makefile: Include ../Makeconfig before tests.
7003         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
7004         only if $(build-shared) is yes.
7005
7006         * iconv/gconv_db.c: Update copyright years.
7007
7008 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7009
7010         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
7011         unwind info if defined PIC. Fix special cases description.
7012         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
7013
7014         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
7015         DP_HI_MASK entry.
7016         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
7017
7018 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7019
7020         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
7021
7022         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
7023         is NULL.
7024
7025         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
7026         (LDLIBS-tst-chk4): This.
7027         (LDFLAGS-tst-chk5): Renamed to ...
7028         (LDLIBS-tst-chk5): This.
7029         (LDFLAGS-tst-chk6): Renamed to ...
7030         (LDLIBS-tst-chk6): This.
7031         (LDFLAGS-tst-lfschk4): Renamed to ...
7032         (LDLIBS-tst-lfschk4): This.
7033         (LDFLAGS-tst-lfschk5): Renamed to ...
7034         (LDLIBS-tst-lfschk5): This.
7035         (LDFLAGS-tst-lfschk6): Renamed to ...
7036         (LDLIBS-tst-lfschk6): This.
7037
7038         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
7039         on $(common-objpfx)soversions.mk.
7040
7041 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
7042
7043         [BZ #10014]
7044         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
7045         example host name.
7046
7047 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7048
7049         * malloc/arena.c (arena_get_retry): New function that gets
7050         another arena for the caller to try its request on.
7051         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
7052         current arena cannot fulfill the request.
7053         (__libc_memalign): Likewise.
7054         (__libc_memalign): Likewise.
7055         (__libc_pvalloc): Likewise.
7056         (__libc_calloc): Likewise.
7057
7058 2012-09-05  John Tobey  <john.tobey@gmail.com>
7059
7060         [BZ #13542]
7061         * manual/arith.texi (Operations on Complex): Fix description
7062         of carg branch cut.
7063
7064 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7065
7066         [BZ #10014]
7067         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
7068         host name.
7069
7070         [BZ #10038]
7071         * manual/memory.texi (Memory): Make order of menu items match
7072         order of sections.
7073
7074 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
7077         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
7078         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
7079
7080 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7081
7082         * csu/libc-tls.c (static_dtv): Renamed to ...
7083         (_dl_static_dtv): This.  Make it global.
7084         (_dl_initial_dtv): Removed.
7085         (__libc_setup_tls): Updated.
7086         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
7087         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
7088         DL_INITIAL_DTV.
7089
7090 2012-09-06  Petr Machata  <pmachata@redhat.com>
7091
7092         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
7093         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
7094         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
7095         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
7096
7097 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7098
7099         [BZ #14545]
7100         * csu/libc-tls.c (_dl_initial_dtv): New variable.
7101         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
7102         freeing dtv[-1].
7103
7104 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7105
7106         [BZ #14544]
7107         * Makeconfig (link-static-before-libc): Replace $(+prector)
7108         with $(+prectorT).
7109         (link-static-after-libc): Replace $(+postctor) with
7110         $(+postctorT).
7111         (link-bounded): Replace $(+prector)/$(+postctor) with
7112         $(+prectorT)/$(+postctorT).
7113         (+prectorT): New macro.
7114         (+postctorT): Likewise.
7115
7116 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7117
7118         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
7119         (round_str): Handle values above the maximum for IBM long double
7120         as inexact.
7121         * stdlib/tst-strtod-round.c (tests): Regenerated.
7122
7123 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7124
7125         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
7126         assembler flag.
7127         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
7128         zarch_nohighgprs around the zarch optimized routines.
7129         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
7130         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
7131         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
7132         for zarch.
7133
7134 2012-09-05  David S. Miller  <davem@davemloft.net>
7135
7136         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7137
7138         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
7139         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
7140         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
7141         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7142         entries.
7143
7144 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7145
7146         * malloc/arena.c: Fold copyright years.
7147         * malloc/mcheck.c, malloc/memusage.c: Likewise.
7148
7149 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7150
7151         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
7152
7153 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7154
7155         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
7156
7157 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7158
7159         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
7160         change internal state upon failure.
7161
7162 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7163
7164         * malloc/mcheck.c (mcheck_check_all): Fix typo.
7165         * malloc/memusage.c (mmap): Likewise.
7166         (mmap64, mremap): Likewise.  Adjust name in comment.
7167
7168 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7169
7170         * libio/fileops.c: Fix typos in comments.
7171         * libio/oldfileops.c: Likewise.
7172         * libio/wfileops.c: Likewise.
7173
7174 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7175
7176         [BZ #1349]
7177         * malloc/Makefile (tests): Add tst-malloc-usable test case.
7178         (tst-malloc-usable-ENV): Set environment for test case.
7179         * malloc/hooks.c (malloc_check_get_size): New function to get
7180         requested size.
7181         * malloc/malloc.c (musable): Use malloc_check_get_size.
7182         * malloc/tst-malloc-usable.c: New test case.
7183
7184 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7185
7186         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
7187
7188 2012-09-05  Allan McRae  <allan@archlinux.org>
7189
7190         [BZ #13966]
7191         * configure.in (CXX_SYSINCLUDES): Use compiler output to
7192         determine header location.
7193         * configure: Regenerated.
7194
7195 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7196
7197         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
7198         float format.
7199         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
7200         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
7201         format.
7202         (test): Regenerate.
7203
7204 2012-09-04  David S. Miller  <davem@davemloft.net>
7205
7206         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
7207         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
7208         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
7209
7210 2012-09-04  Florian Weimer  <fweimer@redhat.com>
7211
7212         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
7213         failures.
7214
7215         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
7216
7217 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
7218
7219         [BZ #9914]
7220         * libio/iogetdelim.c: Include <limits.h>.
7221         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
7222         + len + 1 would overflow.
7223
7224 2012-09-03  Andreas Jaeger  <aj@suse.de>
7225
7226         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7227         * sysdeps/i386/fpu/libm-test-ulps: Update.
7228
7229 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7230
7231         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
7232         Add s_sinf-sse2, s_conf-sse2.
7233
7234         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
7235         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
7236         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
7237         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
7238
7239         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
7240         for using routine as __sinf_ia32.
7241         Use macro for function declaration and weak_alias.
7242         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
7243         for using routine as __cosf_ia32.
7244         Use macro for function declaration and weak_alias.
7245
7246         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
7247         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
7248
7249         * sysdeps/x86_64/fpu/s_sinf.S: New file.
7250         * sysdeps/x86_64/fpu/s_cosf.S: New file.
7251         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7252
7253         * math/libm-test.inc (cos_test): Add more test cases.
7254         (sin_test): Likewise.
7255         (sincos_test): Likewise.
7256
7257 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7258
7259         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
7260         (IFUNC_RESOLVE): Make pointers to the specialized implementations
7261         hidden.
7262         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7263
7264 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
7265
7266         [BZ #14538]
7267         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
7268         first element of the GOT.
7269         (elf_machine_load_address): Return the difference between
7270         the runtime address of _DYNAMIC and elf_machine_dynamic ().
7271
7272 2012-09-01  Allan McRae  <allan@archlinux.org>
7273
7274         [BZ #13412]
7275         * configure.in (AWK): Require gawk version 3.0 or later.
7276         * configure: Regenerated.
7277
7278 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * sysdeps/unix/sysv/linux/kernel-features.h
7281         (__ASSUME_POSIX_CPU_TIMERS): Remove.
7282         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7283         [__NR_clock_getres]: Make code unconditional.
7284         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
7285         (clock_getcpuclockid): Remove code left unreachable by removal of
7286         conditionals.
7287         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
7288         code unconditional.
7289         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7290         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7291         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
7292         Make code unconditional.
7293         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7294         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7295         * sysdeps/unix/sysv/linux/clock_settime.c
7296         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
7297         conditional code.
7298         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
7299         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7300
7301 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
7302
7303         [BZ #14476]
7304         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
7305         scripts/test-installation.pl.
7306
7307         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
7308         and $ld_so_version if it is set.
7309
7310 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7311
7312         [BZ #14516]
7313         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
7314         failure if reading from procfs failed.
7315         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
7316
7317 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7318
7319         * sysdeps/unix/sysv/linux/kernel-features.h
7320         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
7321         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7322         Remove conditional code.
7323         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7324         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
7325         Remove conditional code.
7326         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7327         * sysdeps/unix/sysv/linux/i386/fxstat.c
7328         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7329         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7330         * sysdeps/unix/sysv/linux/i386/fxstatat.c
7331         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7332         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7333         * sysdeps/unix/sysv/linux/i386/lxstat.c
7334         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7335         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7336         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
7337         Remove conditional code.
7338         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7339         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7340         Remove conditional code.
7341         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7342         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
7343         <kernel-features.h>.
7344         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
7345         Remove.
7346         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
7347         Remove conditional code.
7348         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7349         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
7350         Remove conditional.
7351
7352 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
7353
7354         [BZ #5400]
7355         * NEWS: Add fixed bug number.
7356
7357 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7358
7359         [BZ #14519]
7360         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
7361         underflowing exponent in case of negative sign.
7362         * stdlib/tst-strtod-round-data: Add more tests.
7363         * stdlib/tst-strtod-round.c (tests): Regenerated.
7364
7365         [BZ #3479]
7366         * stdlib/strtod_l.c (NDIG): Remove.
7367         (HEXNDIG): Likewise.
7368         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
7369         smallest representable value.
7370         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
7371         lie within an exact representation of 1/2 ulp of the result.
7372         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
7373         unconditionally.
7374         (TENS_P9_IDX): Define unconditionally.
7375         (TENS_P9_SIZE): Likewise.
7376         (TENS_P10_IDX): Likewise.
7377         (TENS_P10_SIZE): Likewise.
7378         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
7379         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
7380         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
7381         entries for 10^2^13 and 10^2^14.
7382         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
7383         (TENS_P13_IDX): Define.
7384         (TENS_P13_SIZE): Likewise.
7385         (TENS_P14_IDX): Likewise.
7386         (TENS_P14_SIZE): Likewise.
7387         (_fpioconst_pow10): Change array size to
7388         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
7389         unconditional.
7390         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
7391         1024]: Add entries for 10^2^13 and 10^2^14.
7392         [LAST_POW10 > _LAST_POW10]: Remove #error.
7393         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
7394         (_fpioconst_pow10): Change array size to
7395         FPIOCONST_POW10_ARRAY_SIZE.
7396         * stdlib/gen-fpioconst.c: New file.
7397         * stdlib/gen-tst-strtod-round.c: Likewise.
7398         * stdlib/tst-strtod-round-data: Likewise.
7399         * stdlib/tst-strtod-round.c: Likewise.
7400         * stdlib/Makefile (tests): Add tst-strtod-round.
7401
7402         [BZ #14459]
7403         * stdlib/strtod_l.c: Include <stdint.h>.
7404         (NDEBUG): Do not define.
7405         (round_and_return): Change EXPONENT parameter to type intmax_t.
7406         Rearrange calculations to avoid internal overflow possibilities.
7407         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
7408         Rearrange calculations to avoid internal overflow possibilities.
7409         Assert that number fits inside MPNSIZE limbs.
7410         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
7411         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
7412         calculations and add assertions to avoid internal overflow
7413         possibilities.  Add casts to avoid signed/unsigned operations.
7414         * stdlib/tst-strtod-overflow.c: New file.
7415         * stdlib/Makefile (tests): Add tst-strtod-overflow.
7416
7417 2012-08-25  Marek Polacek  <polacek@redhat.com>
7418
7419         * time/time.h: Fix some typos in comments.
7420
7421 2012-08-23  Roland McGrath  <roland@hack.frob.com>
7422
7423         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
7424         * posix/tst-rfc3484-2.c: Likewise.
7425         * posix/tst-rfc3484-3.c: Likewise.
7426
7427 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
7428
7429         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
7430         (EF_ARM_ABI_FLOAT_HARD): Likewise.
7431
7432 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
7433
7434         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
7435         #include of fxstatat64.c.
7436
7437 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7438
7439         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
7440         * shadow/getspent_r.c: Likewise.
7441         * shadow/getspnam.c: Likewise.
7442         * shadow/getspnam_r.c: Likewise.
7443         * gshadow/getsgent.c: Likewise.
7444         * gshadow/getsgent_r.c: Likewise.
7445         * gshadow/getsgnam.c: Likewise.
7446         * gshadow/getsgnam_r.c: Likewise.
7447         * inet/getnetbyad.c: Likewise.
7448         * inet/getnetbyad_r.c: Likewise.
7449         * inet/getnetbynm.c: Likewise.
7450         * inet/getnetbynm_r.c: Likewise.
7451         * inet/getnetent.c: Likewise.
7452         * inet/getnetent_r.c: Likewise.
7453         * inet/getproto.c: Likewise.
7454         * inet/getproto_r.c: Likewise.
7455         * inet/getprtent.c: Likewise.
7456         * inet/getprtent_r.c: Likewise.
7457         * inet/getprtname.c: Likewise.
7458         * inet/getprtname_r.c: Likewise.
7459         * inet/getrpcbyname.c: Likewise.
7460         * inet/getrpcbyname_r.c: Likewise.
7461         * inet/getrpcbynumber.c: Likewise.
7462         * inet/getrpcbynumber_r.c: Likewise.
7463         * inet/getrpcent.c: Likewise.
7464         * inet/getrpcent_r.c: Likewise.
7465         * inet/getaliasent.c: Likewise.
7466         * inet/getaliasent_r.c: Likewise.
7467         * inet/getaliasname.c: Likewise.
7468         * inet/getaliasname_r.c: Likewise.
7469         * nscd/getgrgid_r.c: Likewise.
7470         * nscd/getgrnam_r.c: Likewise.
7471         * nscd/gethstbyad_r.c: Likewise.
7472         * nscd/gethstbynm3_r.c: Likewise.
7473         * nscd/getpwnam_r.c: Likewise.
7474         * nscd/getpwuid_r.c: Likewise.
7475         * nscd/getsrvbynm_r.c: Likewise.
7476         * nscd/getsrvbypt_r.c: Likewise.
7477         * nscd/gai.c: Likewise.
7478
7479         * configure.in (build_nscd): New substituted variable, set
7480         by --disable-build-nscd and defaults to $use_nscd.
7481         * configure: Regenerated.
7482         * config.make.in (build-nscd): New substituted variable.
7483         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
7484         Change conditional to require [$(build-nscd) = yes] as well.
7485         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
7486
7487         [BZ# 13696]
7488         * configure.in (use_nscd): New substituted variable, set by
7489         --disable-nscd.  If enabled, define USE_NSCD.
7490         * configure: Regenerated.
7491         * config.h.in: Add USE_NSCD.
7492         * config.make.in (use-nscd): New substituted variable.
7493         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
7494         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
7495         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
7496         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
7497         (CFLAGS-getgrnam_r.c): Likewise.
7498         (CFLAGS-initgroups.c): Likewise.
7499         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
7500         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
7501         Variables removed.
7502         * inet/getnetgrent_r.c
7503         (nscd_setnetgrent): New function, broken out of ...
7504         (setnetgrent): ... here.  Call it.
7505         (innetgr): Conditionalize nscd bits on [USE_NSCD].
7506         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
7507         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
7508         * nscd/Makefile (routines, aux): Move definitions after include of
7509         Makeconfig.  Conditionalize on [$(use-nscd) != no].
7510         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
7511         Conditionalize on [USE_NSCD].
7512         (is_nscd, nscd_init_cb): Likewise.
7513         (nss_load_library): Conditionalize init callback on [USE_NSCD].
7514         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
7515         * nss/nss_db/db-init.c: Likewise.
7516         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
7517         [USE_NSCD].
7518         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
7519         (make_request): Use it.
7520         (cache_valid_p): New function.
7521         (__check_pf): Use it.
7522         * NEWS: Add item for --disable-nscd.
7523
7524 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
7525
7526         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
7527         to support sed >= 4.2.1-20-ga9bf076.
7528         * configure: Regenerated.
7529
7530 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7531
7532         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
7533         Conditionalize whole body on [IREL].
7534
7535 2012-08-22  Jeff Law <law@redhat.com>
7536
7537         [BZ #14505]
7538         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
7539         if the family is PF_UNSPEC.
7540
7541 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
7542
7543         * Makerules (lib-version): Rename from V.
7544         (install-lib-nosubdir): Change V to lib-version.
7545
7546 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
7547
7548         [BZ #14252]
7549         * powerpc32/power6/wcschr.c: New file.
7550         * powerpc32/power6/wcscpy.c: New file.
7551         * powerpc32/power6/wcsrchr.c: New file.
7552         * powerpc64/power6/wcschr.c: New file.
7553         * powerpc64/power6/wcscpy.c: New file.
7554         * powerpc64/power6/wcsrchr.c: New file.
7555
7556 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
7557
7558         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
7559         (two_way_short_needle): Use it.
7560         * string/strstr.c (AVAILABLE1_USES_J): Define.
7561         * string/strcasestr.c: Likewise.
7562
7563         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
7564         array references.
7565         * string/strcasestr.c (TOLOWER): Make side-effect safe.
7566
7567         [BZ #11607]
7568         * NEWS: Add an entry.
7569         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
7570         define their defaults.
7571         (two_way_short_needle): Detect end-of-string on-the-fly.
7572         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
7573         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
7574         * string/bug-strcasestr1.c: New test.
7575         * string/Makefile: Run it.
7576
7577 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
7578
7579         [BZ #11607]
7580         * string/str-two-way.h (two_way_short_needle): Optimize matching of
7581         the first character.
7582
7583 2012-08-21  Roland McGrath  <roland@hack.frob.com>
7584
7585         * csu/elf-init.c (__libc_csu_irel): Function removed.
7586         * csu/libc-start.c (apply_irel): New function.
7587         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
7588
7589 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
7590
7591         * sysdeps/unix/sysv/linux/kernel-features.h
7592         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
7593         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
7594         <kernel-features.h>.
7595         [__NR_fadvise64_64]: Make code unconditional.
7596         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
7597         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
7598         !__NR_fadvise64_64)]: Likewise.
7599         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
7600         !__NR_fadvise64_64))]: Likewise.
7601         [__NR_fadvise64]: Make code unconditional.
7602         [!__NR_fadvise64]: Remove conditional code.
7603         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
7604         <kernel-features.h>.
7605         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7606         unconditional.
7607         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7608         conditional code.
7609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
7610         not include <kernel-features.h>.
7611         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7612         unconditional.
7613         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7614         conditional code.
7615         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
7616         include <kernel-features.h>.
7617         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7618         unconditional.
7619         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7620         conditional code.
7621
7622 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
7623
7624         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
7625         slight instruction rearrangements per scrollpipe analysis.
7626         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
7627
7628 2012-08-20  Roland McGrath  <roland@hack.frob.com>
7629
7630         * manual/syslog.texi (syslog; vsyslog, closelog):
7631         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
7632         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
7633
7634         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
7635         DSOCAPS to match condition on defining it.
7636
7637 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
7638
7639         * sysdeps/unix/sysv/linux/kernel-features.h
7640         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
7641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
7642         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7643         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
7645         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7646         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
7648         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7649         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7650
7651         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
7652         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
7653
7654         * sysdeps/unix/sysv/linux/kernel-features.h
7655         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
7656         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
7657         unconditional.
7658         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7659         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
7660         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
7661         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7662         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
7663         Make code unconditional.
7664         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7665         (__mmap64) [!__NR_mmap2]: Likewise.
7666         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
7667         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
7668         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7669         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
7670         [__NR_mmap2]: Make code unconditional.
7671         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7672         (__mmap64) [!__NR_mmap2]: Likewise.
7673
7674 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7675
7676         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
7677
7678 2012-08-18  Andreas Jaeger  <aj@suse.de>
7679
7680         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
7681
7682 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
7683
7684         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
7685         * include/unistd.h (__have_sock_cloexec): Likewise.
7686         (__have_pipe2): Likewise.
7687         (__have_dup3): Likewise.
7688
7689 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
7690
7691         [BZ #9685]
7692         * include/unistd.h (__have_pipe2): Change define into an extern int.
7693         (__have_dup3): Likewise.
7694         * socket/have_sock_cloexec.c: Include fcntl.h.
7695         (__have_pipe2): New variable.
7696         (__have_dup3): Likewise.
7697
7698 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
7699
7700         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
7701
7702 2012-08-17  Marek Polacek  <polacek@redhat.com>
7703
7704         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
7705         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
7706
7707 2012-08-17  Roland McGrath  <roland@hack.frob.com>
7708
7709         * configure.in: Add AC_SUBST for sysheaders.
7710         * configure: Regenerated.
7711         * config.make.in (sysheaders): New substituted variable.
7712
7713         * sysdeps/unix/mkfifo.c: Moved ...
7714         * sysdeps/posix/mkfifo.c: ... here.
7715         * sysdeps/unix/mkfifoat.c: Moved ...
7716         * sysdeps/posix/mkfifoat.c: ... here.
7717
7718         * sysdeps/unix/utime.c: Moved ...
7719         * sysdeps/posix/utime.c: ... here.
7720
7721         * sysdeps/unix/time.c: Moved ...
7722         * sysdeps/posix/time.c: ... here.
7723         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
7724         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
7725
7726         * sysdeps/unix/nice.c: Moved ...
7727         * sysdeps/posix/nice.c: ... here.
7728
7729         * sysdeps/unix/alarm.c: Moved ...
7730         * sysdeps/posix/alarm.c: ... here.
7731
7732         * intl/Makefile ($(codeset_mo)): Depend on the input file.
7733
7734 2012-08-17  Jeff Law <law@redhat.com>
7735
7736         * intl/Makefile (codeset_mo): New variable.
7737         ($(codeset_mo)): New target.
7738         (tst-codeset.out): Depend on that.  Remove explicit rule.
7739         (tst-gettext3.out, tst-gettext5.out): Likewise.
7740         (LOCPATH-ENV, tst-codeset-ENV): New variables.
7741         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
7742         * intl/tst-codeset.sh: Remove.
7743         * intl/tst-gettext3.sh: Likewise.
7744         * intl/tst-gettext5.sh: Likewise.
7745
7746 2012-08-17  Roland McGrath  <roland@hack.frob.com>
7747
7748         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
7749         * sysdeps/unix/syscalls.list: ... here.
7750
7751         * sysdeps/posix/getaddrinfo.c
7752         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
7753         (gaiconf_init, gaiconf_reload): Use them.
7754         [!_STATBUF_ST_NSEC]
7755         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
7756         Define using time_t rather than struct timespec.
7757
7758         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
7759         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
7760         Macros removed.
7761         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
7762         [!NO_THREADS].
7763         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
7764         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
7765         Likewise.
7766
7767         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
7768         __libc_cleanup_push argument.
7769
7770         * bits/param.h: New file.
7771         * misc/sys/param.h: New file.
7772         * include/sys/param.h: New file.
7773         * misc/Makefile (headers): Add bits/param.h.
7774         * sysdeps/generic/sys/param.h: File removed.
7775         * sysdeps/unix/sysv/linux/bits/param.h: New file.
7776         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
7777         * sysdeps/mach/hurd/bits/param.h: New file.
7778         * sysdeps/mach/hurd/sys/param.h: File removed.
7779
7780         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
7781         last change.
7782
7783         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
7784         [_IO_MTSAFE_IO].
7785         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
7786         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
7787         New macros.
7788
7789         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
7790         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
7791         rather than -D_IO_MTSAFE_IO conditionally.
7792         * stdio-common/Makefile (CPPFLAGS): Likewise.
7793         * wcsmbs/Makefile (CPPFLAGS): Likewise.
7794         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
7795         Use $(libio-mtsafe).
7796         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
7797         of -D_IO_MTSAFE_IO.
7798         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
7799         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
7800         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
7801         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
7802         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
7803         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
7804         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
7805         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
7806         (CFLAGS-fread_u_chk.c): Likewise.
7807         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
7808         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
7809         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
7810         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
7811         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
7812         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
7813         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
7814         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
7815         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
7816
7817         * libio/Makefile: Test [$(libc-reentrant) = yes]
7818         instead of [$(filter %REENTRANT, $(defines)) nonempty].
7819
7820         * Makeconfig
7821         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
7822         * sysdeps/pthread/configure: File removed.
7823         * sysdeps/pthread/Makeconfig: New file.
7824         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
7825         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
7826
7827 2012-08-16  Gary Benson  <gbenson@redhat.com>
7828
7829         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
7830         unmapping the first object in a namespace.
7831
7832 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7833
7834         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
7835         (__internal_setnetgrent): ... this.  Add internal_function to
7836         definition.  Add libc_hidden_def.
7837         (setnetgrent): Update caller.
7838         (internal_endnetgrent): Renamed to ...
7839         (__internal_endnetgrent): ... this.  Add internal_function to
7840         definition.  Add libc_hidden_def.
7841         (endnetgrent): Update caller.
7842         (internal_getnetgrent_r): Renamed to ...
7843         (__internal_getnetgrent_r): ... this.  Add internal_function to
7844         definition.  Add libc_hidden_def.
7845         (__getnetgrent_r): Update caller.
7846         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
7847
7848 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7849
7850         * stdlib/longlong.h: Update from GCC.
7851
7852 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7853
7854         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
7855         on _QL, which is set by umul_ppmm but never used.
7856         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
7857         variables, which are set by GMP macros but never used.
7858         * stdio-common/_itowa.c (_itowa): Likewise.
7859         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
7860         * stdlib/mod_1.c (mpn_mod_1): Likewise.
7861
7862 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
7863
7864         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
7865         struct La_sh_regs is not constant.
7866         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
7867         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
7868         and struct La_sparc64_regs are not constant.
7869
7870 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7871
7872         * sysdeps/unix/sysv/linux/kernel-features.h
7873         (__ASSUME_POSIX_TIMERS): Remove.
7874         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7875         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7876         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
7877         Make code unconditional.
7878         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7879         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
7880         Make code unconditional.
7881         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7882         * sysdeps/unix/sysv/linux/clock_nanosleep.c
7883         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
7884         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7885         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
7886         Make code unconditional.
7887         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7888         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
7889         (__libc_missing_posix_timers): Remove.
7890
7891 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7892
7893         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
7894         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
7895
7896         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
7897
7898         * elf/dl-sym.c: Include <stdlib.h>.
7899
7900         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
7901         constants, which avoids warnings in 32-bit builds.
7902
7903         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
7904         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
7905
7906         * misc/lseek.c: File moved to ...
7907         * io/lseek.c: ... here.
7908
7909         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
7910
7911         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
7912         shifting LEN more than 31 bits at once.
7913
7914 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7915
7916         [BZ #14195]
7917         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
7918         segmentation fault for a case of two empty input strings.
7919         * string/test-strncasecmp.c (check1): Renamed to...
7920         (bz12205): ...this.
7921         (bz14195): Add new testcase for two empty input strings and N > 0.
7922         (test_main): Call new testcase, adapt for renamed function.
7923
7924 2012-08-15  Andreas Jaeger  <aj@suse.de>
7925
7926         [BZ #14090]
7927         * crypt/md5test2.c: New test, based on test supplied by Serge
7928         Belyshev <belyshev@depni.sinp.msu.ru>.
7929         * crypt/Makefile (xtests): Add md5test-giant..
7930         * crypt/Makefile ($(objpfx)md5test-giant): Add.
7931
7932 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7933
7934         [BZ #14090]
7935         * crypt/md5.c (md5_process_block): Don't assume the buffer
7936         length is less than 2**32.
7937         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
7938         length is less than 2**64.
7939
7940 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7941
7942         * string/str-two-way.h: Include <sys/param.h>.
7943         (MAX): Macro removed.
7944
7945         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
7946         Move #define and #undef of memmove to just before and after
7947         including <string.h>.
7948
7949         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
7950         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
7951         and after including <string.h>.  Move declarations of
7952         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
7953         to before #include "string/memmove.c".
7954
7955         * include/dirent.h: Declare __getdirentries.
7956
7957         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
7958         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
7959
7960 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
7961
7962         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
7963         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
7964         * sysdeps/i386/configure: Regenerated.
7965         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
7966         STABS_CURRENT_FILE, and STABS_FUN.
7967         (END): Remove call to STABS_FUN_END.
7968         (STABS_CURRENT_FILE1): Delete.
7969         (STABS_CURRENT_FILE): Likewise.
7970         (STABS_FUN): Likewise.
7971         (STABS_FUN_END): Likewise.
7972         (STABS_FUN2): Likewise.
7973         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
7974         * sysdeps/x86_64/configure: Regenerated.
7975
7976 2012-08-14  Roland McGrath  <roland@hack.frob.com>
7977
7978         * elf/dl-open.c: Include <atomic.h>.
7979         * elf/dl-lookup.c: Likewise.
7980
7981 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
7982
7983         * sysdeps/unix/sysv/linux/kernel-features.h
7984         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
7985         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
7986         unconditionally.
7987         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
7988         unconditionally.
7989         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
7990         condition on __ASSUME_CLONE_THREAD_FLAGS.
7991
7992 2012-08-14  Andreas Jaeger  <aj@suse.de>
7993
7994         * sysdeps/i386/fpu/libm-test-ulps: Update.
7995
7996 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
7997
7998         * include/atomic.h (atomic_exchange_and_add): Split into ...
7999         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
8000         New atomic macros.
8001
8002 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
8003
8004         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8005
8006 2012-08-13  Jeff Law <law@redhat.com>
8007
8008         * manual/stdio.texi (snprintf): Clarify handling of the trailing
8009         null byte in the output string.
8010
8011 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
8012
8013         * sysdeps/unix/sysv/linux/kernel-features.h
8014         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
8015         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
8016         (__ASSUME_ARG_MAX_STACK_BASED): Define.
8017         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
8018         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
8019         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
8020         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
8021
8022 2012-08-09  Jeff Law <law@redhat.com>
8023
8024         [BZ #13939]
8025         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
8026         When avoid_arena is set, don't retry in the that arena.  Pick the
8027         next one, whatever it might be.
8028         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
8029         (arena_lock): Pass in new parameter to arena_get2.
8030         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
8031         arena_get2.
8032         (__libc_malloc): Unify retrying after main arena failure with
8033         __libc_memalign version.
8034         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
8035
8036 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8037
8038         [BZ #14166]
8039         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
8040         to __redirect_strstr.
8041         (__strstr_sse42): Use typeof __redirect_strstr.
8042         (__strstr_ia32): Likewise.
8043         (__libc_strstr): New prototype.
8044         (strstr): Renamed to ...
8045         (__libc_strstr): This.
8046         (strstr): New strong alias of __libc_strstr.
8047         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8048         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
8049         __redirect_time.
8050         Include <time.h>.
8051         (__libc_time): New prototype.
8052         (time_ifunc): Replace time with __libc_time.
8053         (time): New strong alias and hidden definition of __libc_time.
8054         (__GI_time): Remove strong alias.
8055         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
8056         Include <stddef.h>.
8057         (memmove): Redefined to __redirect_memmove.
8058         (__memmove_sse2): Use typeof __redirect_memmove.
8059         (__memmove_ssse3): Likewise.
8060         (__memmove_ssse3_back): Likewise.
8061         (__libc_memmove): New prototype.
8062         (memmove): Renamed to ...
8063         (__libc_memmove): This.
8064         (memmove): New strong alias of __libc_memmove.
8065
8066 2012-08-08  Mark Salter  <msalter@redhat.com>
8067
8068         * elf/elf.h
8069         (R_MN10300_TLS_GD): Define.
8070         (R_MN10300_TLS_LD): Likewise.
8071         (R_MN10300_TLS_LDO): Likewise.
8072         (R_MN10300_TLS_GOTIE): Likewise.
8073         (R_MN10300_TLS_IE): Likewise.
8074         (R_MN10300_TLS_LE): Likewise.
8075         (R_MN10300_TLS_DTPMOD): Likewise.
8076         (R_MN10300_TLS_DTPOFF): Likewise.
8077         (R_MN10300_TLS_TPOFF): Likewise.
8078         (R_MN10300_SYM_DIFF): Likewise.
8079         (R_MN10300_ALIGN): Likewise.
8080         (R_MN10300_NUM): Update.
8081
8082 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
8083
8084         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
8085         Remove.
8086
8087 2012-08-08  Roland McGrath  <roland@hack.frob.com>
8088
8089         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
8090
8091         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
8092         sysdeps/unix -> sysdeps/posix move.
8093         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8094
8095 2012-08-07      Allan McRae     <allan@archlinux.org>
8096
8097         [BZ #14303]
8098         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
8099         (SUNOS_CPP): Likewise.
8100         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
8101         not found.
8102         (open_input): Call CPP using execvp.
8103
8104 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * sysdeps/unix/sysv/linux/kernel-features.h
8107         (__ASSUME_PROT_GROWSUPDOWN): Remove.
8108         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8109         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8110         (__ASSUME_WAITID_SYSCALL): Likewise.
8111         * sysdeps/unix/sysv/linux/dl-execstack.c
8112         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
8113         code unconditional.
8114         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
8115         conditional code.
8116         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
8117         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
8118         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
8119         code.
8120         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
8121         unconditional.
8122         [__ASSUME_WAITID_SYSCALL]: Likewise.
8123         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
8124
8125 2012-08-07  Roland McGrath  <roland@hack.frob.com>
8126
8127         * sysdeps/unix/closedir.c: Renamed to ...
8128         * sysdeps/posix/closedir.c: ... here.
8129         * sysdeps/unix/dirfd.c: Renamed to ...
8130         * sysdeps/posix/dirfd.c: ... here.
8131         * sysdeps/unix/dirstream.h: Renamed to ...
8132         * sysdeps/posix/dirstream.h: ... here.
8133         * sysdeps/unix/fdopendir.c: Renamed to ...
8134         * sysdeps/posix/fdopendir.c: ... here.
8135         * sysdeps/unix/opendir.c: Renamed to ...
8136         * sysdeps/posix/opendir.c: ... here.
8137         * sysdeps/unix/readdir.c: Renamed to ...
8138         * sysdeps/posix/readdir.c: ... here.
8139         * sysdeps/unix/readdir_r.c: Renamed to ...
8140         * sysdeps/posix/readdir_r.c: ... here.
8141         * sysdeps/unix/rewinddir.c: Renamed to ...
8142         * sysdeps/posix/rewinddir.c: ... here.
8143         * sysdeps/unix/seekdir.c: Renamed to ...
8144         * sysdeps/posix/seekdir.c: ... here.
8145         * sysdeps/unix/telldir.c: Renamed to ...
8146         * sysdeps/posix/telldir.c: ... here.
8147         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
8148         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
8149         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8150         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
8151
8152         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
8153         * bits/fcntl.h: ... here.
8154
8155         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
8156         not 0.
8157         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
8158         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
8159         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
8160         (struct flock): Move l_start, l_len to the beginning.
8161         Use __pid_t for l_pid.
8162         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
8163         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
8164         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
8165         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
8166         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
8167         [__USE_LARGEFILE64] (struct flock64): New type.
8168         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
8169
8170         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
8171         * bits/dirent.h: ... here.
8172
8173         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
8174         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
8175
8176 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8177
8178         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8179         Change from 2.6.0 to 2.6.16.
8180         * sysdeps/unix/sysv/linux/configure: Regenerated.
8181         * sysdeps/unix/sysv/linux/kernel-features.h
8182         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
8183         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
8184         version.
8185         (__ASSUME_UTIMES): Likewise.
8186         (__ASSUME_CLONE_STOPPED): Remove.
8187         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
8188         architectures, not kernel version.
8189         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
8190         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8191         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8192         (__ASSUME_WAITID_SYSCALL): Likewise.
8193         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
8194         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
8195         * README: State 2.6.16 as minimum Linux kernel version.  Do not
8196         refer to older versions.
8197
8198 2012-08-06  Roland McGrath  <roland@hack.frob.com>
8199
8200         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
8201         Define alphasort64 as an alias.
8202         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
8203         Define versionsort64 as an alias.
8204         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
8205         Define scandir64 as an alias.
8206         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
8207         Define scandirat64 as an alias.
8208         * dirent/alphasort64.c (alphasort64):
8209         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
8210         * dirent/versionsort64.c: Likewise.
8211         * dirent/scandir64.c: Likewise.
8212         * dirent/scandirat64.c: Likewise.
8213         * sysdeps/wordsize-64/alphasort.c: File removed.
8214         * sysdeps/wordsize-64/alphasort64.c: File removed.
8215         * sysdeps/wordsize-64/scandir.c: File removed.
8216         * sysdeps/wordsize-64/scandir64.c: File removed.
8217         * sysdeps/wordsize-64/scandirat.c: File removed.
8218         * sysdeps/wordsize-64/scandirat64.c: File removed.
8219         * sysdeps/wordsize-64/versionsort.c: File removed.
8220         * sysdeps/wordsize-64/versionsort64.c: File removed.
8221         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
8222         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
8223         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
8224         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
8225         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
8226         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
8227         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
8228         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
8229
8230         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
8231         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8232         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
8233         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8234         [defined __arch64__ || defined __sparcv9]
8235         (__INO_T_MATCHES_INO64_T): New macro.
8236         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8237         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
8238         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
8239         * sysdeps/unix/sysv/linux/bits/dirent.h
8240         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
8241         (_DIRENT_MATCHES_DIRENT64): New macro.
8242
8243         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
8244         Define lockf64 as an alias.
8245         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
8246         Define fseeko64 as an alias.
8247         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
8248         Define ftello64 as an alias.
8249         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
8250         Define _IO_fgetpos64 and fgetpos64 as aliases.
8251         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
8252         Define _IO_fsetpos64 and fsetpos64 as aliases.
8253         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
8254         Conditionalize body on this.
8255         * libio/fseeko64.c: Likewise.
8256         * libio/ftello64.c: Likewise.
8257         * libio/iofgetpos64.c: Likewise.
8258         * libio/iofsetpos64.c: Likewise.
8259         * sysdeps/wordsize-64/lockf.c: File removed.
8260         * sysdeps/wordsize-64/lockf64.c: File removed.
8261         * sysdeps/wordsize-64/fseeko.c: File removed.
8262         * sysdeps/wordsize-64/fseeko64.c: File removed.
8263         * sysdeps/wordsize-64/ftello.c: File removed.
8264         * sysdeps/wordsize-64/ftello64.c: File removed.
8265         * sysdeps/wordsize-64/iofgetpos.c: File removed.
8266         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
8267         * sysdeps/wordsize-64/iofsetpos.c: File removed.
8268         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
8269         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
8270         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
8271         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
8272         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
8273         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
8274         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
8275         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
8276         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
8277         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
8278         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
8279
8280         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8281         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8282         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
8283         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8284         [defined __arch64__ || defined __sparcv9]
8285         (__OFF_T_MATCHES_OFF64_T): New macro.
8286         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8287         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8288         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8289         (__OFF_T_MATCHES_OFF64_T): New macro.
8290
8291 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8292
8293         * stdlib/secure-getenv.c (__secure_getenv): Replace
8294         GLIBC_2_16 with GLIBC_2_17.
8295
8296 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8297
8298         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
8299         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8300
8301 2012-08-03  David S. Miller  <davem@davemloft.net>
8302
8303         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8304
8305 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8306
8307         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
8308         Remove.
8309         (__ASSUME_CORRECT_SI_PID): Likewise.
8310         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
8311         (__ASSUME_TMPFS_NAME): Likewise.
8312         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
8313         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
8314         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
8315         (HAVE_AUX_SECURE): Make definition unconditional.
8316         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
8317         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
8318
8319 2012-08-03  Roland McGrath  <roland@hack.frob.com>
8320
8321         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
8322         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
8323         * sysdeps/mach/hurd/eloop-threshold.h: New file.
8324         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8325         __eloop_threshold instead of SYMLOOP_MAX.
8326
8327         * sysdeps/generic/eloop-threshold.h: New file.
8328         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
8329         of MAXSYMLINKS.
8330         * elf/chroot_canon.c (chroot_canon): Likewise.
8331
8332 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8333
8334         [BZ #13717]
8335         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8336         Change to 2.6.0 everywhere.
8337         * sysdeps/unix/sysv/linux/configure: Regenerated.
8338         * sysdeps/unix/sysv/linux/kernel-features.h
8339         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
8340         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
8341         kernel versions.
8342         (__ASSUME_POSIX_TIMERS): Define unconditionally.
8343         (__ASSUME_FUTEX_REQUEUE): Remove.
8344         (__ASSUME_STATFS64): Define unconditionally.
8345         (__ASSUME_AT_SECURE): Likewise.
8346         (__ASSUME_CORRECT_SI_PID): Likewise.
8347         (__ASSUME_TGKILL): Define without depending on kernel version for
8348         i386.
8349         (__ASSUME_UTIMES): Likewise.
8350         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
8351         kernel version.
8352         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
8353         (__ASSUME_TMPFS_NAME): Likewise.
8354         * README: Update reference to Linux kernel versions.
8355
8356 2012-08-02  Marek Polacek  <polacek@redhat.com>
8357
8358         [BZ# 14150]
8359         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
8360         libc_cv_asm_type_prefix with %.
8361         * configure: Regenerated.
8362         * include/libc-symbols.h: Remove comment about
8363         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
8364         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
8365         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
8366         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
8367         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
8368         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
8369         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
8370         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
8371         * elf/tst-unique2mod1.c: Likewise.
8372         * elf/tst-unique1mod2.c: Likewise.
8373         * elf/tst-unique1mod1.c: Likewise.
8374         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
8375         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
8376         Replace ASM_TYPE_DIRECTIVE with .type.
8377         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8378         * sysdeps/i386/sysdep.h: Likewise.
8379         * sysdeps/x86_64/sysdep.h: Likewise.
8380         * sysdeps/sh/sysdep.h: Likewise.
8381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
8382         Do not define ASM_TYPE_DIRECTIVE.
8383         * sysdeps/powerpc/sysdep.h: Likewise.
8384         * sysdeps/powerpc/powerpc32/sysdep.h:
8385         Replace ASM_TYPE_DIRECTIVE with .type.
8386         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
8387         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8388         * sysdeps/i386/fpu/e_powf.S: Likewise.
8389         * sysdeps/i386/fpu/e_expl.S: Likewise.
8390         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8391         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8392         * sysdeps/i386/fpu/e_pow.S: Likewise.
8393         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8394         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8395         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8396         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8397         * sysdeps/i386/fpu/e_log2.S: Likewise.
8398         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8399         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8400         * sysdeps/i386/fpu/e_powl.S: Likewise.
8401         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8402         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8403         * sysdeps/i386/fpu/e_logl.S: Likewise.
8404         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8405         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8406         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8407         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8408         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8409         * sysdeps/i386/fpu/e_log.S: Likewise.
8410         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8411         * sysdeps/i386/fpu/e_logf.S: Likewise.
8412         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8413         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8414         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8415         * sysdeps/i386/fpu/e_log10.S: Likewise.
8416         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8417         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8418         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8419         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8420         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8421         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
8422         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8423         * sysdeps/i386/i686/strtok.S: Likewise.
8424         * sysdeps/i386/i386-mcount.S: Likewise.
8425         * sysdeps/i386/strtok.S: Likewise.
8426         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
8427         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8428         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8429         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8430         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8431         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8432         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8433         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8434         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8435         * sysdeps/x86_64/_mcount.S: Likewise.
8436         * sysdeps/x86_64/strtok.S: Likewise.
8437         * sysdeps/sh/_mcount.S: Likewise.
8438
8439 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8440
8441         * libio/iofopen.c: Include <fcntl.h>.
8442         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
8443         (_IO_fopen64, fopen64): Define as aliases.
8444         * libio/iofopen64.c: Include <fcntl.h>.
8445         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
8446         Conditionalize body on this.
8447         * sysdeps/wordsize-64/iofopen.c: File removed.
8448         * sysdeps/wordsize-64/iofopen64.c: File removed.
8449
8450 2012-08-01  Marek Polacek  <polacek@redhat.com>
8451
8452         * libc/Makeconfig: Use elf in place of binfmt-subdir.
8453         Use dlfcn directly instead of a variable.
8454         (binfmt-subdir): Do not define.
8455         (dlfcn): Likewise.
8456
8457 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
8458
8459         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
8460         Remove all definitions.
8461         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
8462         <kernel-features.h>.
8463         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8464         (miss_F_GETOWN_EX): Remove all definitions.
8465         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
8466         macro definition.
8467         [!__ASSUME_FCNTL64]: Remove conditional code.
8468         [__ASSUME_FCNTL64]: Make code unconditional.
8469         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
8470         <kernel-features.h>.
8471         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8472         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
8473         (lockf64) [__NR_fcntl64]: Make code unconditional.
8474         (lockf64) [__ASSUME_FCNTL64]: Likewise.
8475
8476         * sysdeps/unix/sysv/linux/kernel-features.h
8477         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
8478         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
8479         Make code unconditional.
8480         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8481         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
8483         [__NR_vfork]: Make code unconditional.
8484         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8485         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
8487         [__NR_vfork]: Make code unconditional.
8488         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8489         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8490
8491 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8492
8493         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
8494         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
8495
8496         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8497         Define mkstemp64 as an alias.
8498         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8499         Define mkstemps64 as an alias.
8500         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8501         Define mkostemp64 as an alias.
8502         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8503         Define mkostemps64 as an alias.
8504         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
8505         Conditionalize body on this.
8506         * misc/mkostemp64.c: Likewise.
8507         * misc/mkostemps64.c: Likewise.
8508         * misc/mkstemps64.c: Likewise.
8509         * sysdeps/wordsize-64/mkstemp64.c: File removed.
8510         * sysdeps/wordsize-64/mkostemp64.c: File removed.
8511         * sysdeps/wordsize-64/mkostemp.c: File removed.
8512         * sysdeps/wordsize-64/mkstemp.c: File removed.
8513         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
8514         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
8515         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
8516         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
8517
8518         [BZ #14138]
8519         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
8520         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
8521         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
8522         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
8523
8524         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
8525         compat_symbol macros from <shlib-compat.h> rather than the underlying
8526         default_symbol_version and symbol_version macros, so that DEFAULT
8527         lines in shlib-versions are respected.
8528         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
8529
8530 2012-08-01  Florian Weimer  <fweimer@redhat.com>
8531
8532         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
8533         Declare with warn_unused_result.
8534         (setgid, setregid, setegid, setresgid): Likewise.
8535         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
8536         Likewise.
8537         * WUR-REPORT: Remove set*id functions.
8538
8539 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
8540
8541         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
8542
8543 2012-07-31  Roland McGrath  <roland@hack.frob.com>
8544
8545         * include/sys/socket.h (__libc_accept, __libc_accept4):
8546         Add attribute_hidden.
8547         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
8548
8549         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
8550         use of PTR_MANGLE.
8551         * inet/getnetgrent_r.c (setup): Likewise.
8552
8553         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
8554
8555 2012-07-31  David S. Miller  <davem@davemloft.net>
8556
8557         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8558
8559 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
8560
8561         [BZ #13629]
8562         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
8563         value between 1.0 and 2.0 and smaller part has absolute value less
8564         than 1.0.
8565         * math/s_clog10.c (__clog10): Likewise.
8566         * math/s_clog10f.c (__clog10f): Likewise.
8567         * math/s_clog10l.c (__clog10l): Likewise.
8568         * math/s_clogf.c (__clogf): Likewise.
8569         * math/s_clogl.c (__clogl): Likewise.
8570         * math/libm-test.inc (clog_test): Add more tests.
8571         (clog10_test): Likewise.
8572         * sysdeps/i386/fpu/libm-test-ulps: Update.
8573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8574
8575 2012-07-31  Florian Weimer  <fweimer@redhat.com>
8576
8577         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
8578         Exit with zero in case no suitable GID is found, and write a
8579         message to standard error.
8580
8581 2012-07-30  Roland McGrath  <roland@hack.frob.com>
8582
8583         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
8584         rather than to 1.
8585         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
8586         (MAXPATHLEN): Removed.
8587         (NOGROUP, NODEV): New macros.
8588         (setbit, clrbit, isset, isclr): New macros.
8589         (howmany, roundup, powerof2): New macros.
8590         (DEV_BSIZE): New macro.
8591
8592         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
8593         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
8594
8595         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
8596         definition on [!__NO_LONG_DOUBLE_MATH].
8597
8598         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
8599         PTR_MANGLE and PTR_DEMANGLE.
8600
8601         * socket/accept4.c (accept4): Rename to __libc_accept4.
8602         Define accept4 as a weak alias.
8603
8604         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
8605         on [_DIRENT_HAVE_D_TYPE].
8606         * io/ftw.c (ftw_dir): Likewise.
8607
8608         * io/xmknod.c (__xmknod): Don't check PATH for being null.
8609
8610         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
8611
8612         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
8613         Use the BSD numbers rather than the arbitrary ones we had.
8614         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
8615         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
8616         (SIGXCPU, SIGXFSZ): New macros.
8617         (_NSIG): Now 32.
8618
8619         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
8620         initializer on [_LIBC_REENTRANT].
8621
8622         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
8623         definitions inside [_POSIX_MAPPED_FILES].
8624
8625         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
8626
8627         * dirent/opendir.c: Include <fcntl.h>.
8628
8629         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
8630         (__libc_getspecific): Likewise.
8631         (__libc_key_create): Likewise.
8632
8633         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
8634         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
8635         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
8636         (tmpfile64): Define as alias.
8637         * sysdeps/wordsize-64/tmpfile.c: File removed.
8638         * sysdeps/wordsize-64/tmpfile64.c: File removed.
8639         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
8640         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
8641
8642         * stdio-common/vfscanf.c: Include <stdbool.h>.
8643         * nss/makedb.c: Likewise.
8644         * stdio-common/_i18n_number.h: Likewise.
8645         * argp/argp-help.c: Likewise.
8646         * posix/wordexp.c: Likewise.
8647         * sysdeps/posix/spawni.c: Likewise.
8648         * nss/nss_files/files-initgroups.c: Likewise.
8649         * stdio-common/reg-modifier.c: Include <stdlib.h>.
8650         * nss/nss_files/files-initgroups.c: Likewise.
8651         * nss/nss_db/db-netgrp.c: Likewise.
8652         * nss/nss_db/db-initgroups.c: Likewise.
8653         * io/fchmodat.c: Include <sys/stat.h>.
8654
8655         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
8656         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
8657
8658         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
8659         [HAVE_MMAP].
8660
8661         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
8662         Add multiple inclusion protection.
8663
8664 2012-07-27  David S. Miller  <davem@davemloft.net>
8665
8666         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8667
8668 2012-07-27  Gary Benson  <gbenson@redhat.com>
8669
8670         [BZ #14298]
8671         * elf/rtld.c: Include <stap-probe.h>.
8672         (dl_main): Added static probes "init_start" and "init_complete".
8673         * elf/dl-load.c: Include <stap-probe.h>.
8674         (lose): Take new parameter "nsid".
8675         Added static probe "map_failed".
8676         (_dl_map_object_from_fd): Pass namespace id to lose.
8677         Added static probe "map_start".
8678         (open_verify): Pass namespace id to lose.
8679         * elf/dl-open.c: Include <stap-probe.h>.
8680         (dl_open_worker) Added static probes "map_complete", "reloc_start"
8681         and "reloc_complete".
8682         * elf/dl-close.c: Include <stap-probe.h>.
8683         (_dl_close_worker): Added static probes "unmap_start" and
8684         "unmap_complete".
8685         * elf/rtld-debugger-interface.txt: New file documenting the above.
8686
8687 2012-07-26  Roland McGrath  <roland@hack.frob.com>
8688
8689         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
8690         rather than a string variable.
8691         * sunrpc/rpc_main.c (h_output): Likewise.
8692         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
8693
8694 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
8695
8696         * inet/check_native.c: New file.
8697
8698 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
8699
8700         [BZ #13629]
8701         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
8702         if larger part has absolute value 1.0.
8703         * math/s_clog10.c (__clog10): Likewise.
8704         * math/s_clog10f.c (__clog10f): Likewise.
8705         * math/s_clog10l.c (__clog10l): Likewise.
8706         * math/s_clogf.c (__clogf): Likewise.
8707         * math/s_clogl.c (__clogl): Likewise.
8708         * math/libm-test.inc (clog_test): Add more tests.
8709         (clog10_test): Likewise.
8710         * sysdeps/i386/fpu/libm-test-ulps: Update.
8711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8712
8713         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
8714         (pltexit): Likewise.
8715         (La_regs): Likewise.
8716         (La_retval): Likewise.
8717         (int_retval): Likewise.
8718         Update #error for removed macros to refer only to definitions in
8719         tst-audit.h.
8720         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
8721         macro.
8722         (pltexit): Likewise.
8723         (La_regs): Likewise.
8724         (La_retval): Likewise.
8725         (int_retval): Likewise.
8726         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
8727         macro.
8728         (pltexit): Likewise.
8729         (La_regs): Likewise.
8730         (La_retval): Likewise.
8731         (int_retval): Likewise.
8732         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
8733         macro.
8734         (pltexit): Likewise.
8735         (La_regs): Likewise.
8736         (La_retval): Likewise.
8737         (int_retval): Likewise.
8738         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
8739         macro.
8740         (pltexit): Likewise.
8741         (La_regs): Likewise.
8742         (La_retval): Likewise.
8743         (int_retval): Likewise.
8744         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
8745         macro.
8746         (pltexit): Likewise.
8747         (La_regs): Likewise.
8748         (La_retval): Likewise.
8749         (int_retval): Likewise.
8750         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
8751         macro.
8752         (pltexit): Likewise.
8753         (La_regs): Likewise.
8754         (La_retval): Likewise.
8755         (int_retval): Likewise.
8756         * sysdeps/generic/tst-audit.h: Update comment to refer only to
8757         macro definitions in tst-audit.h.
8758         * sysdeps/i386/tst-audit.h: New file.
8759         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
8760         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
8761         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
8762         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
8763         * sysdeps/sh/tst-audit.h: Likewise.
8764         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
8765         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
8766         * sysdeps/x86_64/tst-audit.h: Likewise.
8767
8768 2012-07-26  Andreas Jaeger  <aj@suse.de>
8769
8770         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
8771         ptrace.
8772
8773         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
8774         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
8775         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
8776         PTRACE_O_MASK.
8777         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
8778         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
8779         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
8780
8781         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
8782         value.
8783
8784         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
8785         _sigsys.
8786         (si_call_addr, si_syscall, si_arch): Define new macro.
8787         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
8788         _sigsys.
8789         (si_call_addr, si_syscall, si_arch): Define new marcro.
8790         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
8791         _sigsys.
8792         (si_call_addr, si_syscall, si_arch): Define new macro.
8793         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
8794         _sigsys.
8795         (si_call_addr, si_syscall, si_arch): Define new macro.
8796
8797 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8798
8799         [BZ #13717]
8800         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8801         Change to 2.4.21 where previously 2.4.1.
8802         * sysdeps/unix/sysv/linux/configure: Regenerated.
8803         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
8804         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
8805         Linux kernel version.
8806         (__ASSUME_STD_AUXV): Remove.
8807         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
8808         kernel version.
8809         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
8810         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
8811         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
8812         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
8813         (__ASSUME_NETLINK_SUPPORT): Likewise.
8814         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
8815         (__no_netlink_support): Remove conditional definition.
8816         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
8817         Remove.
8818         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8819         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
8820         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
8821         (if_nameindex_ioctl): Remove.
8822         (if_nameindex_netlink): Do not handle __no_netlink_support.
8823         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
8824         code.
8825         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
8826         Remove conditional code.
8827         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
8828         code.
8829         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
8830         unconditional.
8831         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8832         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
8833         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
8834         Remove.
8835         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8836         [!__ASSUME_STD_AUXV]: Remove conditional code.
8837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
8838         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
8839         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
8840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
8841         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
8842         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8843         code.
8844         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
8846         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
8847         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8848         conditional code.
8849         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
8851         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8852         code.
8853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
8854         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8855         conditional code.
8856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
8857         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8858         code unconditional.
8859         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8860         conditional code.
8861         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8862         unconditional.
8863         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8864         conditional code.
8865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8866         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8867         unconditional.
8868         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8869         conditional code.
8870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8871         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8872         code unconditional.
8873         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8874         conditional code.
8875         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8876         unconditional.
8877         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8878         conditional code.
8879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8880         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8881         code unconditional.
8882         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8883         conditional code.
8884         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8885         unconditional.
8886         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8887         conditional code.
8888
8889 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
8890
8891         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
8892         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
8893         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8894         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
8895         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8896         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8897         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8898         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
8899         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8900         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8901         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8902         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8903         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
8904         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8905         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8906         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
8907         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
8908         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
8909         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
8910         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
8911         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
8912         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8913         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8914
8915 2012-07-25  Florian Weimer  <fweimer@redhat.com>
8916
8917         * Versions.def: Add GLIBC_2.17.
8918         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
8919         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
8920         Introduce __libc_secure_getenv.
8921         * stdlib/Versions (2.17): Add secure_getenv
8922         (GLIBC_PRIVATE): Add __libc_secure_getenv.
8923         * stdlib/secure-getenv.c: Rename __secure_getenv to
8924         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
8925         symbol __secure_getenv for GLIBC_2.0.
8926         * stdlib/tst-secure-getenv.c: New.
8927         * stdlib/Makefile (tests): Add testcase.
8928         * manual/startup.texi (Environment Access): Document
8929         secure_getenv.
8930         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
8931         __libc_secure_getenv.
8932         * inet/ruserpass.c (ruserpass): Likewise.
8933         * malloc/mtrace.c (mtrace): Likewise.
8934         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
8935         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8936         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
8937         * sysdeps/posix/tempname.c: Likewise.  Evaluate
8938         HAVE_SECURE_GETENV.
8939         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
8940         __secure_getenv to __libc_secure_getenv.
8941         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
8942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8943         Likewise.
8944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8945         Likewise.
8946         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8948         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8950         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8953
8954 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8955
8956         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
8957         (struct La_i86_retval): Likewise.
8958         (struct La_x86_64_regs): Likewise.
8959         (struct La_x86_64_retval): Likewise.
8960         (struct La_x32_regs): Likewise.
8961         (struct La_x32_retval): Likewise.
8962         (struct La_ppc32_regs): Likewise.
8963         (struct La_ppc32_retval): Likewise.
8964         (struct La_ppc64_regs): Likewise.
8965         (struct La_ppc64_retval): Likewise.
8966         (struct La_sh_regs): Likewise.
8967         (struct La_sh_retval): Likewise.
8968         (struct La_s390_32_regs): Likewise.
8969         (struct La_s390_32_retval): Likewise.
8970         (struct La_s390_64_regs): Likewise.
8971         (struct La_s390_64_retval): Likewise.
8972         (struct La_sparc32_regs): Likewise.
8973         (struct La_sparc32_retval): Likewise.
8974         (struct La_sparc64_regs): Likewise.
8975         (struct La_sparc64_retval): Likewise.
8976         (struct audit_ifaces): Remove architecture-specific pltenter and
8977         pltexit members.
8978         * sysdeps/i386/ldsodefs.h: New file.
8979         * sysdeps/powerpc/ldsodefs.h: Likewise.
8980         * sysdeps/s390/ldsodefs.h: Likewise.
8981         * sysdeps/sh/ldsodefs.h: Likewise.
8982         * sysdeps/sparc/ldsodefs.h: Likewise.
8983         * sysdeps/x86_64/ldsodefs.h: Likewise.
8984
8985 2012-07-25  Marek Polacek  <polacek@redhat.com>
8986
8987         [BZ #6808]
8988         * math/libm-test.inc (yn_test): Add another test.
8989         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
8990         to ERANGE when the result is +-Inf.
8991         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
8992         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8993         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
8994         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
8995
8996 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
8997
8998         * conform/data/time.h-data (NULL): Use macro-constant.  Require
8999         equal to 0.
9000         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
9001         clock_t.
9002         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
9003
9004 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
9005
9006         * configure.in <sysdeps resolving>: Correct printing
9007         Implies_before.
9008         * configure: Regenerate.
9009
9010 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
9011
9012         * math/w_ilogb.c: Include <limits.h>.
9013         * math/w_ilogbl.c: Likewise.
9014
9015 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9016
9017         * manual/lang.texi (__va_copy): Document primarily as ISO C99
9018         va_copy.  Document allowing for unavailable va_copy only as
9019         pre-C99 compatibility.
9020         * manual/string.texi (Copying and Concatenation): Use va_copy
9021         instead of __va_copy in concat example.
9022
9023 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
9024
9025         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
9026         (__sendto): Use create_address_port.  Initialize APORT and deallocate
9027         it if not null.
9028
9029         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
9030         with O_NOLINK passed to __file_name_lookup.
9031
9032         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
9033         with O_NOLINK passed to __file_name_lookup.
9034
9035         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
9036         negative N or less than NGIDS.
9037
9038         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
9039         type to string_t.  Set ERANGE as errno and return it if NAME is not big
9040         enough.  Use memcpy instead of strncpy.
9041
9042 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9043
9044         * elf/Makefile (check-data): Remove.
9045         (localplt.data): New vpath directive.
9046         ($(objpfx)check-localplt.out): Use localplt.data from vpath
9047         instead of $(check-data).
9048         * scripts/data/localplt-generic.data: Move to ...
9049         * sysdeps/generic/localplt.data: ... here.
9050         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
9051         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
9052         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
9053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
9054         ... here.
9055         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
9056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
9057         ... here.
9058         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
9059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
9060         ... here.
9061         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
9062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
9063         ... here.
9064         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
9065         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
9066         ... here.
9067         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
9068         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
9069         ... here.
9070
9071 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9072
9073         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
9074         PPC32 and PPC64 files.
9075         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
9076         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
9077
9078 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9079
9080         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
9081         __makecontext_ret to ...
9082         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
9083         ... here and call exit if uc_link is NULL.  New file.
9084         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
9085         __makecontext_ret.S.
9086         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
9087         __makecontext_ret to ...
9088         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
9089         ... here and call exit if uc_link is NULL.  New file.
9090         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
9091         __makecontext_ret.S.
9092
9093 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9094
9095         * elf/elf.h (R_390_IRELATIVE): New definition.
9096         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
9097         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
9098         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
9099         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9100         (elf_machine_lazy_rel): Likewise.
9101         * sysdeps/s390/dl-irel.h: New file.
9102         * sysdeps/s390/s390-64/memcpy.S: New asm code.
9103         * sysdeps/s390/s390-64/memset.S: New asm code.
9104         * sysdeps/s390/s390-64/memcmp.S: New asm code.
9105         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
9106         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
9107         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
9108         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
9109         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
9110         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
9111         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
9112         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
9113         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
9114         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
9115         * sysdeps/s390/s390-32/memcpy.S: New asm code.
9116         * sysdeps/s390/s390-32/memset.S: New asm code.
9117         * sysdeps/s390/s390-32/memcmp.S: New asm code.
9118
9119 2012-07-17  Marek Polacek  <polacek@redhat.com>
9120
9121         [BZ #14349]
9122         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
9123         * sysdeps/s390/s390-64/configure.in: Likewise.
9124         * sysdeps/sparc/configure.in: Likewise.
9125         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
9126         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
9127         * sysdeps/i386/configure.in: Likewise.
9128         * sysdeps/x86_64/configure.in: Likewise.
9129         * sysdeps/sh/configure.in: Likewise.
9130         * sysdeps/s390/s390-32/configure: Regenerated.
9131         * sysdeps/s390/s390-64/configure: Likewise.
9132         * sysdeps/x86_64/configure: Likewise.
9133         * sysdeps/sh/configure: Likewise.
9134         * sysdeps/powerpc/powerpc64/configure: Likewise.
9135         * sysdeps/powerpc/powerpc32/configure: Likewise.
9136         * sysdeps/sparc/configure: Likwise.
9137         * sysdeps/i386/configure: Likewise.
9138
9139         * elf/dl-open.c: Comment fixes.
9140
9141 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
9142
9143         * Makefile [CXX] (check-data): Remove.
9144         [CXX] (c++-types.data): New vpath directive.
9145         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
9146         vpath.  Do not allow for C++ type data being missing.
9147         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
9148         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
9149         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
9150         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
9151         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
9152         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
9153         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
9154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
9155         ... here.
9156         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
9157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
9158         ... here.
9159         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
9160         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
9161         ... here.
9162         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
9163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
9164         ... here.
9165         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
9166         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
9167         ... here.
9168         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
9169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
9170         ... here.
9171         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
9172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
9173         ... here.
9174         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
9175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
9176
9177         * elf/tls-macros.h (TLS_LE): Move architecture-specific
9178         definitions to architecture-specific files.
9179         (TLS_IE): Likewise.
9180         (TLS_LD): Likewise.
9181         (TLS_GD): Likewise.
9182         * sysdeps/i386/tls-macros.h: New file.
9183         * sysdeps/powerpc/tls-macros.h: Likewise.
9184         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
9185         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
9186         * sysdeps/sh/tls-macros.h: Likewise.
9187         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
9188         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
9189         * sysdeps/x86_64/tls-macros.h: Likewise.
9190
9191 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9192
9193         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
9194         zero value for regular exit case.
9195
9196         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
9197         (__start_context): Preserve zero value for regular exit case.
9198
9199 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9200             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9201
9202         * manual/setjmp.texi (setcontext): Clarify normal process
9203         termination when uc_link is the null pointer.
9204         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
9205         exit call.
9206
9207 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
9208
9209         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
9210         preprocessor.  Test for each exception mask separately.
9211
9212 2012-07-16  Andreas Jaeger  <aj@suse.de>
9213
9214         * po/ru.po: Update from translation team.
9215
9216 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
9217
9218         * conform/data/string.h-data (NULL): Use macro-constant.  Require
9219         equal to 0.
9220         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
9221         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
9222         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
9223         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
9224         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9225
9226 2012-07-13  Andreas Jaeger  <aj@suse.de>
9227
9228         * po/fr.po: Update from translation team.
9229
9230 2012-07-12  Marek Polacek  <polacek@redhat.com>
9231
9232         [BZ #14173]
9233         * math/libm-test.inc (yn_test): Add test for BZ #14173.
9234         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
9235         loop condition.
9236
9237 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
9238
9239         [BZ #13717]
9240         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9241         Change to 2.4.1 where previously 2.4.0.
9242         * sysdeps/unix/sysv/linux/configure: Regenerated.
9243         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
9244         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
9245         version.
9246         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
9247         (__ASSUME_AT_CLKTCK): Remove.
9248         (__ASSUME_AT_PAGESIZE): Likewise.
9249         (__ASSUME_AT_XID): Likewise.
9250         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
9251         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
9252         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
9253         unconditionally.
9254         (HAVE_AUX_PAGESIZE): Likewise.
9255         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
9256         [__ASSUME_AT_CLKTCK]: Make code unconditional.
9257         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
9258
9259 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
9260
9261         [BZ #14307]
9262         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
9263         the temporary buffer used to invoke __gethostbyname2_r,
9264         __gethostbyaddr_r and gethostbyname4_r to make room for struct
9265         host_data / struct gaih_addrtuple.
9266         * resolv/nss_dns/dns-host.c (global scope): Move definition of
9267         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
9268         header file nss/nsswitch.h.
9269         * nss/nsswitch.h (global scope): Add definition of implementation
9270         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
9271         resolv/nss_dns/dns-host.c).
9272
9273 2012-07-11  Andreas Jaeger  <aj@suse.de>
9274
9275         * po/fr.po: Update from translation team.
9276
9277         * po/sv.po: Update from translation team
9278         * po/fr.po: Another update from translation team.
9279
9280 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9281
9282         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
9283         for subnormals or multiply small sinh result by itself.
9284         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9285         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9286
9287 2012-07-11  David S. Miller  <davem@davemloft.net>
9288
9289         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9290
9291 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
9292
9293         [BZ #14347]
9294         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
9295         (INTERNAL_MARK): Shift it here.
9296
9297 2012-07-10  Marek Polacek  <polacek@redhat.com>
9298
9299         [BZ #14151]
9300         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
9301         libc_cv_asm_global_directive with .globl.
9302         * configure: Regenerated.
9303         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
9304         with .globl.
9305         * sysdeps/i386/configure: Regenerated.
9306         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
9307         with .globl.
9308         * sysdeps/x86_64/configure: Regenerated.
9309         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
9310         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
9311         * elf/tst-unique2mod2.c: Likewise.
9312         * elf/tst-unique2mod1.c: Likewise.
9313         * elf/tst-unique1mod2.c: Likewise.
9314         * elf/tst-unique1mod1.c: Likewise.
9315         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9316         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9317         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9318         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9319         * sysdeps/mach/sysdep.h: Likewise.
9320         * sysdeps/i386/sysdep.h: Likewise.
9321         * sysdeps/i386/i386-mcount.S: Likewise.
9322         * sysdeps/x86_64/_mcount.S: Likewise.
9323         * sysdeps/x86_64/sysdep.h: Likewise.
9324         * sysdeps/sh/_mcount.S: Likewise.
9325         * sysdeps/sh/sysdep.h: Likewise.
9326         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
9327         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
9328         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
9329         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9330         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
9331         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
9332         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
9333         * locale/localeinfo.h: Likewise.
9334         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
9335         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
9336
9337 2012-07-09  Roland McGrath  <roland@hack.frob.com>
9338
9339         [BZ #14336]
9340         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
9341         system".
9342         * manual/message.texi (The Uniforum approach): Likewise.
9343         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
9344         (glibc iconv Implementation): Likewise.
9345
9346 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
9347
9348         [BZ #14337]
9349         * math/s_clog.c (__clog): Avoid scaling a value down where that
9350         could result in underflow.
9351         * math/s_clog10.c (__clog10): Likewise.
9352         * math/s_clog10f.c (__clog10f): Likewise.
9353         * math/s_clog10l.c (__clog10l): Likewise.
9354         * math/s_clogf.c (__clogf): Likewise.
9355         * math/s_clogl.c (__clogl): Likewise.
9356         * math/libm-test.inc (clog_test): Add more tests.
9357         (clog10_test): Likewise.
9358         * sysdeps/i386/fpu/libm-test-ulps: Update.
9359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9360
9361 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
9362
9363         [BZ #14283]
9364         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
9365         by 7 not 8 to examine high bit of fractional part.
9366
9367         [BZ #14042]
9368         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
9369         for call to __mcount_internal.
9370         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
9371         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
9372         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
9373
9374 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
9375
9376         [BZ #14154]
9377         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
9378         approximation for values within 0x1p-13f of an odd multiple of
9379         pi/4.
9380         * math/libm-test.inc (tan_test): Do not allow spurious underflow
9381         exception.  Add more tests.
9382         * sysdeps/i386/fpu/libm-test-ulps: Update.
9383
9384         [BZ #6778]
9385         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
9386         inputs and return -1 for them.  Do not check for +Inf in case not
9387         reachable for +Inf.
9388         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9389         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
9390         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
9391         and return -1 for them.  Do not check for +Inf in case not
9392         reachable for +Inf.
9393         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
9394         define.
9395         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
9396         and return -1 for them.  Do not check for +Inf in case not
9397         reachable for +Inf.
9398         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
9399         spurious underflow.
9400         * sysdeps/i386/fpu/libm-test-ulps: Update.
9401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9402
9403 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
9404
9405         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
9406
9407 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
9408
9409         [BZ #14157]
9410         [BZ #14331]
9411         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
9412         could result in spurious underflow.  Scale down values above
9413         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
9414         * math/s_csqrtf.c (__csqrtf): Likewise.
9415         * math/s_csqrtl.c (__csqrtl): Likewise.
9416         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
9417         spurious underflow.
9418         * sysdeps/i386/fpu/libm-test-ulps: Update.
9419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9420
9421 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
9422
9423         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
9424         xopen-msg.sed.
9425         * catgets/xopen-msg.awk: New file.
9426         * catgets/xopen-msg.sed: Removed.
9427
9428         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
9429         po2text.sed.
9430         * intl/po2test.awk: New file.
9431         * intl/po2test.sed: Removed.
9432
9433 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
9434
9435         [BZ #14328]
9436         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
9437         or multiply small sinh result by itself.
9438         * math/s_ctanf.c (__ctanf): Likewise.
9439         * math/s_ctanh.c (__ctanh): Likewise.
9440         * math/s_ctanhf.c (__ctanhf): Likewise.
9441         * math/s_ctanhl.c (__ctanhl): Likewise.
9442         * math/s_ctanl.c (__ctanl): Likewise.
9443         * math/libm-test.inc (ctan_test_tonearest): New function.
9444         (ctan_test_towardzero): Likewise.
9445         (ctan_test_downward): Likewise.
9446         (ctan_test_upward): Likewise.
9447         (ctanh_test_tonearest): Likewise.
9448         (ctanh_test_towardzero): Likewise.
9449         (ctanh_test_downward): Likewise.
9450         (ctanh_test_upward): Likewise.
9451         (main): Call these new functions.
9452         * sysdeps/i386/fpu/libm-test-ulps: Update.
9453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9454
9455 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
9456
9457         * .gitignore: Delete /ports entry.
9458
9459 2012-07-03  Andreas Jaeger  <aj@suse.de>
9460
9461         * po/bg.po: Update from translation team.
9462         * po/cs.po: Likewise.
9463         * po/de.po: Likewise.
9464         * po/hr.po: Likewise.
9465         * po/nl.pl: Likewise.
9466         * po/pl.po: Likewise.
9467         * po/vi.po: Likewise.
9468
9469 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
9470
9471         * Makeconfig [!+link] (+link-before-libc): New variable.
9472         [!+link] (+link-after-libc): Likewise.
9473         [!+link] (+link-tests): Likewise.
9474         [!+link] (+link): Define in terms of $(+link-before-libc) and
9475         $(+link-after-libc).
9476         [!+link-static] (+link-static-before-libc): New variable.
9477         [!+link-static] (+link-static-after-libc): Likewise.
9478         [!+link-static] (+link-static-tests): Likewise.
9479         [!+link-static] (+link-static): Define in terms of
9480         $(+link-static-before-libc) and $(+link-static-after-libc).
9481         [build-shared] (link-libc-before-gnulib): New variable.
9482         [build-shared] (link-libc-tests): Likewise.
9483         [build-shared] (link-libc): Define in terms of
9484         $(link-libc-before-gnulib).
9485         [!build-shared] (link-libc-tests): New variable.
9486         (link-libc-static-tests): New variable.
9487         [!gnulib] (gnulib-arch): New variable.
9488         [!gnulib] (gnulib-tests): Likewise.
9489         [!gnulib] (static-gnulib-arch): Likewise.
9490         [!gnulib] (static-gnulib-tests): Likewise.
9491         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
9492         Define with "=" instead of ":=".
9493         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
9494         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
9495         * Rules (binaries-all-notests): New variable.
9496         (binaries-all-tests): Likewise.
9497         (binaries-static-notests): Likewise.
9498         (binaries-static-tests): Likewise.
9499         (binaries-all): Define using $(binaries-all-notests) and
9500         $(binaries-all-tests).
9501         (binaries-static): Define using $(binaries-static-notests) and
9502         $(binaries-static-tests).
9503         (binaries-shared-tests): New variable.
9504         (binaries-shared-notests): Likewise.
9505         (binaries-shared): Remove variable.
9506         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
9507         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
9508         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
9509         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
9510         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
9511         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
9512         * elf/Makefile (sln-modules): New variable.
9513         (extra-objs): Add $(sln-modules:=.o).
9514         (ldconfig-modules): Add static-stubs.
9515         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
9516         * elf/static-stubs.c: New file.
9517
9518         [BZ #14283]
9519         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
9520         by 7 not 8 to examine high bit of fractional part.  Use volatile
9521         variables when splitting into final array of floats if
9522         __FLT_EVAL_METHOD__ != 0.
9523         * math/libm-test.inc (cos_test): Add another test.
9524         (sin_test): Likewise.
9525         * sysdeps/i386/fpu/libm-test-ulps: Update.
9526
9527         [BZ #14273]
9528         * math/libm-test.inc (cosh_test): Add more tests.
9529
9530         * version.h (RELEASE): Set to "development".
9531         (VERSION): Set to "2.16.90".
9532
9533 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
9534
9535         * NEWS: Update copyright. Remove last-updated date.
9536         Mention math library bug fixes and timezone data changes.
9537         * README: Mention GNU/Hurd, x32, and HPPA support status.
9538
9539 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
9540
9541         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
9542
9543 2012-06-27  Andreas Jaeger  <aj@suse.de>
9544
9545         * manual/contrib.texi (Contributors): Add Samuel Thibault.
9546
9547 2012-06-25  Andreas Jaeger  <aj@suse.de>
9548
9549         * sysdeps/s390/fpu/libm-test-ulps: Update.
9550
9551 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
9552             Thomas Schwinge  <thomas@codesourcery.com>
9553
9554         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
9555         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
9556         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
9557         fanotify_mark.
9558
9559 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
9560
9561         * sysdeps/mach/start.c: Remove file.
9562         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
9563         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
9564         * sysdeps/sh/init-first.c: Likewise.
9565
9566         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
9567         registers for frame unwinding purposes, add CFI directives.
9568         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
9569         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
9570         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9571         Likewise.
9572
9573         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
9574         __fortify_fail returning.
9575         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
9576
9577         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
9578         sysdeps/sh/____longjmp_chk.S.
9579         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
9580         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
9581         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
9582         (gen-as-const-headers): Append sigaltstack-offsets.sym.
9583
9584         * sysdeps/sh/abort-instr.h: New file.
9585         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
9586         process in case exit returns.
9587
9588         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
9589         initialize the GOT register before use.
9590
9591         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
9592         calculation of ARGC > 4.
9593
9594         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
9595         meaningful names to some local labels.
9596
9597 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9598             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9599
9600         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
9601         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
9602         (__arch_compare_and_exchange_val_16_acq): Likewise.
9603         (__arch_compare_and_exchange_val_32_acq): Likewise.
9604         (atomic_exchange_and_add): Fix gUSA sequence.
9605         (atomic_add): Likewise.
9606         (atomic_add_negative): Likewise.
9607         (atomic_add_zero): Likewise.
9608         (atomic_bit_test_set): Likewise.
9609
9610 2012-06-22  Andreas Schwab  <schwab@redhat.com>
9611
9612         [BZ #13579]
9613         * include/link.h (struct link_map): Add l_free_initfini.
9614         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
9615         l_initfini.
9616         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
9617         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
9618         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
9619         set.
9620
9621 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
9622
9623         * configure.in: Use AC_LANG_SOURCE.
9624         * configure: Regenerate.
9625
9626 2012-06-22  Roland McGrath  <roland@hack.frob.com>
9627
9628         * configure.in (libc_cv_localstatedir): New substituted variable.
9629         * configure: Regenerated.
9630         * config.make.in (localstatedir): New variable, substituted from
9631         libc_cv_localstatedir.
9632         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
9633         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
9634         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
9635         * sysdeps/gnu/configure: Regenerated.
9636
9637 2012-06-21  Jeff Law  <law@redhat.com>
9638
9639         [BZ #14277]
9640         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
9641         free.  Simplify list management for _LIBC case.
9642
9643 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
9644
9645         [BZ #14273]
9646         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
9647         Clear sign bit of 64-bit integer value before comparing against
9648         overflow value.
9649
9650         * sysdeps/mach/configure: Regenerated.
9651
9652 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9653
9654         [BZ #14278]
9655         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
9656
9657 2012-06-21  Jeff Law  <law@redhat.com>
9658
9659         [BZ #13882]
9660         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
9661         uint16_t for elements in the "seen" array to avoid char overflows.
9662         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9663         * elf/dl-open.c (dl_open_worker): Likewise.
9664
9665 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
9666
9667         * scripts/list-sources.sh: Scan PORTS for translations.
9668         * po/libc.pot: Regenerated.
9669
9670 2012-06-21  Andreas Jaeger  <aj@suse.de>
9671
9672         [BZ #12194]
9673         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
9674         warning.
9675         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
9676         * bits/byteswap-16.h (__bswap_16): Likewise.
9677         * bits/byteswap.h (__bswap_constant_16): Likewise.
9678
9679 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9680
9681         [BZ #14117]
9682         * sysdeps/i386/fpu_control.h: Removed.
9683         * sysdeps/x86_64/fpu_control.h: Moved to ...
9684         * sysdeps/x86/fpu_control.h: Here.
9685
9686         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
9687         (_FPU_SETCW): Likewise.
9688
9689 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
9690
9691         [BZ #14117]
9692         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
9693         * sysdeps/x86/fpu/bits/mathinline.h: This.
9694         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
9695
9696         [BZ #14050]
9697         [BZ #14117]
9698         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
9699         functions if __x86_64__ is defined.
9700
9701 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
9702
9703         * string/endian.h: Add !__ASSEMBLER__ condition for including
9704         conversion interfaces.
9705
9706 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
9707
9708         [BZ #14241]
9709         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
9710         of ABS(x) in calculating zero to negative powers other than odd
9711         integers.
9712         * math/libm-test.inc (pow_test): Add more tests.
9713
9714 2012-06-15  Andreas Jaeger  <aj@suse.de>
9715
9716         * manual/contrib.texi (Contributors): Update entry of Liubov
9717         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
9718         Machado Filho.
9719
9720 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
9721
9722         * string/string.h: Add __wur to GNU version of strerror_r.
9723
9724 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9725
9726         [BZ #14229]
9727         * string/Makefile (tests): Add tst-strtok_r.
9728         * string/tst-strtok_r.c: New file.
9729         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
9730         RAX_LP/RDX_LP on SAVE_PTR.
9731
9732 2012-06-14  Roland McGrath  <roland@hack.frob.com>
9733
9734         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
9735
9736 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
9737
9738         * libm_test.inc (csqrt_test): Allow more spurious underflow
9739         exceptions.
9740         (j0_test): Likewise.
9741         (j1_test): Likewise.
9742         (y0_test): Likewise.
9743         (y1_test): Likewise.
9744
9745 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
9746
9747         * po/Makefile (libc.pot): Use UTF-8 charset.
9748
9749 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
9750
9751         [BZ #14210]
9752         Suppress sign-conversion warning from FD_SET.
9753         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
9754         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
9755         not unsigned long int.
9756         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
9757
9758 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
9759
9760         [BZ #14050]
9761         [BZ #14117]
9762         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
9763         __extern_always_inline instead of __extern_inline.
9764         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
9765         (__signbit): Likewise.
9766         (__signbitl): Support C++ namespace.
9767         (lrintf): New inline function.
9768         (lrint): Likewise.
9769         (llrintf): Likewise.
9770         (llrint): Likewise.
9771         (fmaxf): Likewise.
9772         (fmax): Likewise.
9773         (fminf): Likewise.
9774         (fmin): Likewise.
9775         (rint): Likewise.
9776         (rintf): Likewise.
9777         (ceil): Likewise.
9778         (ceilf): Likewise.
9779         (floor): Likewise.
9780         (floorf): Likewise.
9781         (nearbyint): Likewise.
9782         (nearbyintf): Likewise.
9783
9784 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
9785
9786         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
9787         non-default versions.
9788
9789 2012-06-11  Roland McGrath  <roland@hack.frob.com>
9790
9791         [BZ #14218]
9792         * manual/argp.texi (Argp): Reword argp_parse description slightly.
9793
9794 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
9795
9796         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
9797         (FE_UPWARD, FE_DOWNWARD): Don't define.
9798         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
9799         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
9800
9801         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
9802         reading it.
9803         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
9804         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
9805
9806 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9807
9808         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9809         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
9810         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
9811         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
9812
9813 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
9814
9815         [BZ #14117]
9816         * sysdeps/i386/fpu/bits/fenv.h: Removed.
9817         * sysdeps/i386/fpu/Implies: New file.
9818         * sysdeps/x86_64/fpu/Implies: Likewise.
9819         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
9820         * sysdeps/x86/fpu/bits/fenv.h: This.
9821
9822         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
9823         __SSE_MATH__.
9824
9825 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9826
9827         [BZ #14134]
9828         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
9829         character 0xffff that matches the last element of the
9830         conversion table.
9831
9832 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9833
9834         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
9835         fmodl commit.
9836
9837 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9838
9839         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
9840         values higher than 25.6283.
9841
9842 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9843
9844         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
9845         subnormal exponent extraction and add some __builtin_expect.
9846         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
9847         Fix for subnormal mantissa calculation.
9848
9849 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
9850
9851         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
9852         cpu2 is -1 and errno is not ENOSYS.
9853
9854 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
9855
9856         [BZ #14117]
9857         * sysdeps/i386/i486/bits/string.h: Renamed to ...
9858         * sysdeps/x86/bits/string.h: This.
9859         * sysdeps/x86_64/bits/string.h: Removed.
9860
9861         * sysdeps/i386/i486/bits/string.h: Define inline functions only
9862         if not compiling for x86-64, but compiling for >= i486.
9863
9864         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
9865         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
9866
9867         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
9868         New macro from Linux kernel 3.4.0.
9869         (FP_XSTATE_MAGIC2): Likewise.
9870         (FP_XSTATE_MAGIC2_SIZE): Likewise.
9871         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
9872         (struct _fpx_sw_bytes): New struct.
9873         (struct _xsave_hdr): Likewise.
9874         (struct _ymmh_state): Likewise.
9875         (struct _xstate): Likewise.
9876
9877         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
9878         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
9879         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
9880         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
9881         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
9882         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
9883
9884         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
9885         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
9886         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
9887         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
9888         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
9889         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
9890
9891 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9892
9893         [BZ #13743]
9894         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
9895         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
9896         (sysdep_headers): Include sys/platform/ppc.h.
9897         * sysdeps/powerpc/test-gettimebase.c: Test for
9898         __ppc_get_timebase() to catch future ISA opcode/insn changes.
9899         * manual/Makefile (appendices): Include platform.texi.
9900         * manual/contrib.texi (Contributors): Update @node pointers.
9901         * manual/maint.texi (Maintenance): Likewise.
9902         (Platform): New node.
9903         * manual/platform.texi: New file.  Document the new features.
9904
9905 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9906             Jakub Jelinek  <jakub@redhat.com>
9907
9908         [BZ #14188]
9909         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
9910         where __builtin_expect is unavailable.
9911
9912 2012-06-03  David S. Miller  <davem@davemloft.net>
9913
9914         * stdlib/longlong.h: Updated from GCC.
9915
9916 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
9917
9918         [BZ #14042]
9919         * sysdeps/powerpc/powerpc32/mcount.c: New file.
9920         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
9921         __mcount_internal.
9922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9923         (GLIBC_2.16): Likewise.
9924
9925 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9926
9927         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
9928
9929 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9930
9931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
9932         (default-abi): New variable.
9933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
9934         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
9935         variable.
9936         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
9937         Likewise.
9938         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
9939         Likewise.
9940         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
9941         Likewise.
9942
9943         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
9944         definition.  Document in comment.
9945
9946 2012-06-01  David S. Miller  <davem@davemloft.net>
9947
9948         * stdlib/longlong.h: Updated from GCC.
9949
9950 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9951
9952         [BZ #14117]
9953         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
9954         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
9955         sys/debugreg.h sys/io.h here.
9956         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
9957         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
9958         sys/io.h.
9959         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
9960         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
9961         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
9962         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
9963         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
9964         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
9965
9966         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
9967         Define only if __x86_64__ is defined.
9968
9969 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9970
9971         [BZ #14048]
9972         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
9973         Use int64_t for variable i.
9974         * math/libm-test.inc (fmod_test): Add more tests.
9975
9976         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
9977         z computation is not scheduled after fetestexcept.
9978         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
9979         Use math_force_eval instead of asm to ensure calculation scheduled
9980         before exception test.
9981         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
9982         Ensure a1 + u.d computation is not scheduled after fetestexcept.
9983
9984 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
9985
9986         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
9987         computation is not scheduled after fetestexcept.
9988
9989 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9990
9991         [BZ #14117]
9992         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
9993         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
9994
9995 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9996
9997         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
9998         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9999
10000 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10001
10002         [BZ #14117]
10003         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
10004         <bits/wordsize.h>.
10005         (__WCHAR_MIN): Support __WORDSIZE == 64.
10006         (__WCHAR_MAX): Likewise.
10007
10008         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
10009         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
10010
10011         [BZ #14183]
10012         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
10013         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
10014
10015         [BZ #14117]
10016         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
10017         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
10018
10019         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
10020         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
10021
10022         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
10023         Defined to 1 if __x86_64__ isn't defined.
10024         (_STAT_VER_LINUX_OLD): New.
10025         (st_atime): Remove duplicate.
10026         (st_mtime): Likewise.
10027         (st_ctime): Likewise.
10028
10029 2012-05-31  David S. Miller  <davem@davemloft.net>
10030
10031         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
10032         entries.
10033
10034 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
10035
10036         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
10037         gen-libm-test.pl.
10038
10039         [BZ #14132]
10040         * elf/dl-reloc.c: Include <_itoa.h>.
10041         (_dl_reloc_bad_type): Remove use of INTUSE.
10042         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
10043         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
10044         * stdio-common/psiginfo.c (psiginfo): Likewise.
10045         * stdio-common/psignal.c (psignal): Likewise.
10046         * string/strsignal.c (strsignal): Likewise.
10047         * include/signal.h (_sys_siglist): Declare hidden proto.
10048         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
10049         INTVARDEF with libc_hidden_data_def.
10050         * stdio-common/itoa-udigits.c: Likewise.
10051         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
10052         (_itoa_lower_digits_internal): Remove declaration.
10053         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
10054         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
10055         (_sys_sigabbrev_internal): Remove aliases.
10056         (_sys_siglist): Define hidden alias.
10057
10058 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
10059
10060         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10061         bits/sysctl.h.
10062
10063 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10064
10065         [BZ #14117]
10066         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
10067         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
10068
10069         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
10070         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
10071         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
10072         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
10073         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
10074         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
10075
10076         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
10077         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
10078         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
10079
10080         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
10081         with __addr.
10082         (insw): Likewise.
10083         (insl): Likewise.
10084         (outsb): Likewise.
10085         (outsw): Likewise.
10086         (outsl): Likewise.
10087
10088         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
10089         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
10090         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
10091
10092         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
10093         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
10094         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
10095         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
10096         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
10097         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
10098
10099         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
10100         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
10101
10102         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
10103         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
10104
10105         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
10106         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
10107         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
10108
10109         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
10110         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
10111         to ...
10112         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
10113
10114         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
10115         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
10116         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
10117
10118         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
10119         for x86-64.
10120         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
10121
10122 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
10123
10124         * math/math.h (M_El): Use two more decimal places.
10125         (M_LOG2El): Likewise.
10126         (M_LOG10El): Likewise.
10127         (M_LN2l): Likewise.
10128         (M_LN10l): Likewise.
10129         (M_PIl): Likewise.
10130         (M_PI_2l): Likewise.
10131         (M_PI_4l): Likewise.
10132         (M_1_PIl): Likewise.
10133         (M_2_PIl): Likewise.
10134         (M_2_SQRTPIl): Likewise.
10135         (M_SQRT2l): Likewise.
10136         (M_SQRT1_2l): Likewise.
10137
10138 2012-05-31  David S. Miller  <davem@davemloft.net>
10139
10140         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
10141         values between float registers.
10142         * sysdeps/sparc/sparc64/memset.S: Likewise.
10143         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10144
10145 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
10146
10147         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
10148         -D_FORTIFY_SOURCE=1.
10149         (CPPFLAGS-tst-longjmp_chk.c): Define.
10150         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
10151         (CPPFLAGS-tst-longjmp_chk2.c): Define.
10152         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
10153         CFLAGS-tst-wchar-h.c.
10154
10155 2012-05-31  Marek Polacek  <polacek@redhat.com>
10156
10157         [BZ #14132]
10158         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
10159         __endmntent_internal): Remove declaration.
10160         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
10161         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
10162         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
10163
10164 2012-05-30  David S. Miller  <davem@davemloft.net>
10165
10166         * sysdeps/sparc/sparc32/soft-fp/q_util.c
10167         (___Q_simulate_exceptions): Use real FP ops rather than writing
10168         into the %fsr.
10169         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
10170         Likewise.
10171
10172 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10173
10174         [BZ #14117]
10175         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
10176         * sysdeps/x86/bits/xtitypes.h: This.
10177
10178         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
10179         * sysdeps/x86/bits/wordsize.h: This.
10180
10181         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
10182         * sysdeps/x86/bits/huge_vall.h: This.
10183
10184         * sysdeps/i386/bits/select.h: Removed.
10185         * sysdeps/x86_64/bits/select.h: Renamed to ...
10186         * sysdeps/x86/bits/select.h: This.
10187
10188         * sysdeps/i386/bits/setjmp.h: Removed.
10189         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
10190         * sysdeps/x86/bits/setjmp.h: This.
10191
10192         * sysdeps/i386/bits/mathdef.h: Removed.
10193         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
10194         * sysdeps/x86/bits/mathdef.h: This.
10195
10196 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10197
10198         [BZ #14132]
10199         * include/sys/socket.h (__connect_internal)
10200         (__libc_sa_len_internal): Remove declaration.
10201         (__connect, __libc_sa_len): Declare hidden_proto.
10202         (SA_LEN): Remove use of INTUSE.
10203         * socket/connect.c: Add libc_hidden_def.
10204         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
10205         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
10206         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
10207         alias.
10208         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10209         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10210         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
10211         of adding _internal alias.
10212
10213 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10214
10215         [BZ #14117]
10216         * sysdeps/i386/bits/link.h: Removed.
10217         * sysdeps/i386/bits/linkmap.h: Likewise.
10218         * sysdeps/x86_64/bits/link.h: Renamed to ...
10219         * sysdeps/x86/bits/link.h: This.
10220         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
10221         * sysdeps/x86/bits/linkmap.h: This.
10222
10223         * sysdeps/i386/bits/endian.h: Removed.
10224         * sysdeps/x86_64/bits/endian.h: Renamed to ...
10225         * sysdeps/x86/bits/endian.h: This.
10226
10227         * sysdeps/i386/bits/byteswap.h: Removed.
10228         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10229         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
10230         * sysdeps/x86/bits/byteswap.h: This.
10231         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
10232         * sysdeps/x86/bits/byteswap-16.h: This.
10233         * sysdeps/i386/Implies: Add x86.
10234         * sysdeps/x86_64/Implies: Likewise.
10235
10236 2012-05-30  David S. Miller  <davem@davemloft.net>
10237
10238         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
10239         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
10240         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
10241         (FP_TRAPPING_EXCEPTIONS): Define.
10242         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
10243         (FP_TRAPPING_EXCEPTIONS): Define.
10244         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
10245         subnormals only when inexact has been signalled or underflow
10246         exceptions are enabled.
10247         (_FP_PACK_CANONICAL): Likewise.
10248
10249 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10250
10251         [BZ #14183]
10252         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
10253         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
10254
10255 2012-05-30  Richard Henderson  <rth@twiddle.net>
10256
10257         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
10258         with #ifndef NOT_IN_libc.
10259
10260         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
10261         marked to avoid plt entry.
10262
10263 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10264
10265         [BZ #14112]
10266         * Makeconfig (default-abi): New macro.
10267         (abi-includes): Likewise.
10268         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
10269         $(abi-$(default-abi)-lib-soname) for soname if defined.
10270         ($(common-objpfx)gnu/lib-names.stmp): Generate from
10271         abi-variants.
10272         * Makefile (installed-stubs): Likewise.
10273         * include/stubs-biarch.h: Removed.
10274         * scripts/lib-names.awk: Only handle one library at a time.
10275         * scripts/soversions.awk: Remove WORDSIZE support.
10276         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
10277         entries.
10278         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
10279         Removed.
10280         (syscall-list-default-condition): Likewise.
10281         (syscall-list-default-condition): Likewise.
10282         (syscall-list-includes): Likewise.
10283         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
10284         syscall-list-* with abi-*.  Handle undefined abi-variants.
10285         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
10286         * sysdeps/unix/sysv/linux/i386/Implies: New file.
10287         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
10288         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
10289         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
10290         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
10291         Removed.
10292         (syscall-list-32-options): Likewise.
10293         (syscall-list-32-condition): Likewise.
10294         (syscall-list-64-options): Likewise.
10295         (syscall-list-64-condition): Likewise.
10296         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
10297         macro.
10298         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
10299         Renamed to ...
10300         (abi-*): This.
10301         (abi-64-ld-soname): New macro.
10302         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
10303         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
10304         Renamed to ...
10305         (abi-*): This.
10306         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
10307         * sysdeps/x86_64/x32/shlib-versions: Likewise.
10308
10309 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
10310
10311         * sysdeps/unix/sysv/linux/kernel-features.h
10312         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
10313         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
10314         include <kernel-features.h>.
10315         [!__NR_ftruncate64]: Remove conditional code.
10316         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10317         [__NR_ftruncate64]: Make code unconditional.
10318         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10319         * sysdeps/unix/sysv/linux/truncate64.c: Do not
10320         include <kernel-features.h>.
10321         [!__NR_ftruncate64]: Remove conditional code.
10322         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10323         [__NR_ftruncate64]: Make code unconditional.
10324         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
10326         include <kernel-features.h>.
10327         [!__NR_ftruncate64]: Remove conditional code.
10328         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10329         [__NR_ftruncate64]: Make code unconditional.
10330         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
10332         include <kernel-features.h>.
10333         [!__NR_ftruncate64]: Remove conditional code.
10334         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10335         [__NR_ftruncate64]: Make code unconditional.
10336         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10337
10338         * configure.in (libc_cv_fpie): Weaken to a compile test using
10339         LIBC_TRY_CC_OPTION.
10340         * configure: Regenerated.
10341
10342 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10343
10344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
10345         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
10346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
10347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10348         Refreshed.
10349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
10350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
10351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
10352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
10353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
10354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10355         Refreshed.
10356
10357 2012-05-27  David S. Miller  <davem@davemloft.net>
10358
10359         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
10360         (___Q_zero): New.
10361         (__Q_simulate_exceptions): Return void.  Change to simulate
10362         exceptions by writing into the %fsr.
10363         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
10364         (__Qp_handle_exceptions): Likewise.
10365         (numbers): Delete.
10366         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
10367         __Qp_handle_exceptions.
10368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
10369         __Qp_handle_exceptions.
10370         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
10371         as unused and give dummy FP_RND_NEAREST initializer.
10372         (FP_INHIBIT_RESULTS): Define.
10373         (___Q_simulate_exceptions): Update declaration.
10374         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
10375         formatting.
10376         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
10377         as unused and give dummy FP_RND_NEAREST initializer.
10378         (__Qp_handle_exceptions): Update declaration.
10379         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
10380         formatting.
10381
10382 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
10383
10384         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
10385         the temporary FPU control word.
10386         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10387         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
10388         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
10389         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
10390         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
10391         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
10392         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
10393         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
10394         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
10395         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
10396         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10397
10398 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10399
10400         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
10401         fields.
10402
10403 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
10404
10405         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
10406         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
10407         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
10408         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
10409         Likewise.
10410         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
10411         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
10412         Likewise.
10413
10414 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
10415
10416         * po/h.po: Update from translation team.
10417
10418 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
10419
10420         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
10421
10422         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
10423         handling of denormals.
10424         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
10425         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
10426         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
10427         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
10428         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10429         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
10430         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
10431         Likewise.
10432
10433 2012-05-26  Marek Polacek  <polacek@redhat.com>
10434
10435         [BZ #14152]
10436         * math/libm-test.inc (fma_test): Don't always expect underflow
10437         exception.
10438
10439 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10440
10441         [BZ #12416]
10442         * elf/tst-execstack.c: Include stackinfo.h.
10443         (do_test): Adjust test case to ensure that pthread_getattr_np
10444         behaviour remains the same after marking stack executable.
10445
10446 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10447
10448         * sysdeps/unix/sysv/linux/kernel-features.h
10449         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
10450         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
10451         kernel-features.h.
10452         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10453         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10454         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
10455         kernel-features.h.
10456         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10457         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10458
10459 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10460
10461         * configure.in: Define the default includes to being none.
10462         * configure: Regenerated.
10463
10464 2012-05-25  Roland McGrath  <roland@hack.frob.com>
10465
10466         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
10467         * sysdeps/x86_64/setjmp.S: Likewise.
10468         * sysdeps/i386/bsd-setjmp.S: Likewise.
10469         * sysdeps/i386/bsd-_setjmp.S: Likewise.
10470         * sysdeps/i386/setjmp.S: Likewise.
10471         * sysdeps/i386/__longjmp.S: Likewise.
10472         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
10473         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
10474
10475         * include/stap-probe.h: New file.
10476         * configure.in: Handle --enable-systemtap.
10477         * configure: Regenerated.
10478         * config.h.in (USE_STAP_PROBE): New #undef.
10479         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
10480         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
10481         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
10482
10483 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10484
10485         [BZ #13717]
10486         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
10487         to 2.4.0 where earlier.
10488         * sysdeps/unix/sysv/linux/configure: Regenerated.
10489         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
10490         <kernel-features.h>.
10491         [__ASSUME_32BITUIDS]: Make code unconditional.
10492         [!__ASSUME_32BITUIDS]: Remove conditional code.
10493         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
10494         <kernel-features.h>.
10495         [__ASSUME_32BITUIDS]: Make code unconditional.
10496         [!__ASSUME_32BITUIDS]: Remove conditional code.
10497         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
10498         [__ASSUME_32BITUIDS]: Make code unconditional.
10499         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
10500         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
10501         <kernel-features.h>.
10502         [__ASSUME_32BITUIDS]: Make code unconditional.
10503         [!__ASSUME_32BITUIDS]: Remove conditional code.
10504         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
10505         <kernel-features.h>.
10506         [__ASSUME_32BITUIDS]: Make code unconditional.
10507         [!__ASSUME_32BITUIDS]: Remove conditional code.
10508         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
10509         <kernel-features.h>.
10510         [__ASSUME_32BITUIDS]: Make code unconditional.
10511         [!__ASSUME_32BITUIDS]: Remove conditional code.
10512         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
10513         <kernel-features.h>.
10514         [__ASSUME_32BITUIDS]: Make code unconditional.
10515         [!__ASSUME_32BITUIDS]: Remove conditional code.
10516         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
10517         <kernel-features.h>.
10518         [__ASSUME_32BITUIDS]: Make code unconditional.
10519         [!__ASSUME_32BITUIDS]: Remove conditional code.
10520         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
10521         <kernel-features.h>.
10522         [__ASSUME_32BITUIDS]: Make code unconditional.
10523         [!__ASSUME_32BITUIDS]: Remove conditional code.
10524         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
10525         <kernel-features.h>.
10526         [__ASSUME_32BITUIDS]: Make code unconditional.
10527         [!__ASSUME_32BITUIDS]: Remove conditional code.
10528         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
10529         <kernel-features.h>.
10530         [__ASSUME_32BITUIDS]: Make code unconditional.
10531         [!__ASSUME_32BITUIDS]: Remove conditional code.
10532         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
10533         <kernel-features.h>.
10534         [__ASSUME_32BITUIDS]: Make code unconditional.
10535         [!__ASSUME_32BITUIDS]: Remove conditional code.
10536         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
10537         <kernel-features.h>.
10538         [__ASSUME_32BITUIDS]: Make code unconditional.
10539         [!__ASSUME_32BITUIDS]: Remove conditional code.
10540         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
10541         <kernel-features.h>.
10542         [__NR_setresgid] (__setresgid): Do not declare.
10543         [__ASSUME_32BITUIDS]: Make code unconditional.
10544         [!__ASSUME_32BITUIDS]: Remove conditional code.
10545         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
10546         <kernel-features.h>.
10547         [__NR_setresuid] (__setresuid): Do not declare.
10548         [__ASSUME_32BITUIDS]: Make code unconditional.
10549         [!__ASSUME_32BITUIDS]: Remove conditional code.
10550         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
10551         <kernel-features.h>.
10552         [__ASSUME_32BITUIDS]: Make code unconditional.
10553         [!__ASSUME_32BITUIDS]: Remove conditional code.
10554         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
10555         <kernel-features.h>.
10556         [__ASSUME_32BITUIDS]: Make code unconditional.
10557         [!__ASSUME_32BITUIDS]: Remove conditional code.
10558         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
10559         <kernel-features.h>.
10560         [__ASSUME_32BITUIDS]: Make code unconditional.
10561         [!__ASSUME_32BITUIDS]: Remove conditional code.
10562         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
10563         <kernel-features.h>.
10564         [__ASSUME_32BITUIDS]: Make code unconditional.
10565         [!__ASSUME_32BITUIDS]: Remove conditional code.
10566         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
10567         <kernel-features.h>.
10568         [__ASSUME_32BITUIDS]: Make code unconditional.
10569         [!__ASSUME_32BITUIDS]: Remove conditional code.
10570         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
10571         <kernel-features.h>.
10572         [__ASSUME_32BITUIDS]: Make code unconditional.
10573         [!__ASSUME_32BITUIDS]: Remove conditional code.
10574         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
10575         <kernel-features.h>.
10576         [__ASSUME_32BITUIDS]: Make code unconditional.
10577         [!__ASSUME_32BITUIDS]: Remove conditional code.
10578         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
10579         <kernel-features.h>.
10580         [__ASSUME_32BITUIDS]: Make code unconditional.
10581         [!__ASSUME_32BITUIDS]: Remove conditional code.
10582         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
10583         <kernel-features.h>.
10584         [__ASSUME_32BITUIDS]: Make code unconditional.
10585         [!__ASSUME_32BITUIDS]: Remove conditional code.
10586         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
10587         <kernel-features.h>.
10588         [__ASSUME_32BITUIDS]: Make code unconditional.
10589         [!__ASSUME_32BITUIDS]: Remove conditional code.
10590         * sysdeps/unix/sysv/linux/kernel-features.h
10591         (__ASSUME_SETRESUID_SYSCALL): Remove.
10592         (__ASSUME_SETRESGID_SYSCALL): Likewise.
10593         (__ASSUME_32BITUIDS): Likewise.
10594         (__ASSUME_LDT_WORKS): Likewise.
10595         (__ASSUME_O_DIRECTORY): Likewise.
10596         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
10597         architecture but not kernel version.
10598         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
10599         (__ASSUME_MMAP2_SYSCALL): Likewise.
10600         (__ASSUME_STAT64_SYSCALL): Likewise.
10601         (__ASSUME_IPC64): Likewise.
10602         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
10603         <kernel-features.h>.
10604         [__ASSUME_32BITUIDS]: Make code unconditional.
10605         [!__ASSUME_32BITUIDS]: Remove conditional code.
10606         * sysdeps/unix/sysv/linux/opendir.c: Do not include
10607         <kernel-features.h>.
10608         [__ASSUME_O_DIRECTORY]: Make code unconditional.
10609         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
10610         132096]: Remove conditional code.
10611         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
10612         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
10613         <kernel-features.h>.
10614         [__ASSUME_32BITUIDS]: Make code unconditional.
10615         [!__ASSUME_32BITUIDS]: Remove conditional code.
10616         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
10617         <kernel-features.h>.
10618         [__ASSUME_32BITUIDS]: Make code unconditional.
10619         [!__ASSUME_32BITUIDS]: Remove conditional code.
10620         * sysdeps/unix/sysv/linux/setegid.c: Do not include
10621         <kernel-features.h>.
10622         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
10623         unconditional.
10624         (__setresgid): Do not declare.
10625         [__ASSUME_32BITUIDS]: Make code unconditional.
10626         [!__ASSUME_32BITUIDS]: Remove conditional code.
10627         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
10628         <kernel-features.h>.
10629         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
10630         unconditional.
10631         (__setresuid): Do not declare.
10632         [__ASSUME_32BITUIDS]: Make code unconditional.
10633         [!__ASSUME_32BITUIDS]: Remove conditional code.
10634         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
10635         <kernel-features.h>.
10636         [__ASSUME_32BITUIDS]: Make code unconditional.
10637         [!__ASSUME_32BITUIDS]: Remove conditional code.
10638         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
10639         <kernel-features.h>.
10640         [__ASSUME_32BITUIDS]: Make code unconditional.
10641         [!__ASSUME_32BITUIDS]: Remove conditional code.
10642
10643 2012-05-25  Richard Henderson  <rth@twiddle.net>
10644
10645         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
10646         dl_hwcap to ifunc resolver.
10647         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
10648         elf_ifunc_invoke.
10649         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
10650         dl_hwcap to ifunc resolver.
10651         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
10652
10653 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10654
10655         [BZ #14153]
10656         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
10657         for |x| <= 2**-26, not 2**-57.
10658         * math/libm-test.inc (acos_test): Do not allow spurious underflow
10659         exception.
10660
10661 2012-05-24  Jeff Law  <law@redhat.com>
10662
10663         * stdio-common/Makefile (tests): Add bug25.
10664         * stdio-common/bug25.c: New test.
10665
10666 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10667
10668         [BZ #13576]
10669         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
10670         multiple of MALLOC_ALIGNMENT in size.
10671         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
10672
10673 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10674
10675         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
10676         Require >= 256.
10677         (FILENAME_MAX): Use macro-int-constant.
10678         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
10679         (_IOFBF): Use macro-int-constant.
10680         (_IOLBF): Likewise.
10681         (_IONBF): Likewise.
10682         (SEEK_CUR): Likewise.
10683         (SEEK_END): Likewise.
10684         (SEEK_SET): Likewise.
10685         (TMP_MAX): Likewise.
10686         (EOF): Use macro-int-constant.  Require < 0.
10687         (NULL): Use macro-constant.  Require == 0.
10688         (stdin): Require type to be FILE *.
10689         (stdout): Likewise.
10690         (stderr): Likewise.
10691         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
10692         macro-int-constant.
10693         (EXIT_SUCCESS): Likewise.
10694         (NULL): Use macro-constant.  Require == 0.
10695         (RAND_MAX): Use macro-int-constant.
10696         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
10697         [C99-based standards] (strtof): Require function.
10698         [C99-based standards] (strtold): Likewise.
10699         [C99-based standards] (strtoll): Likewise.
10700         [C99-based standards] (strtoull): Likewise.
10701         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
10702         [ISO || ISO99 || ISO11] (limits.h): Likewise.
10703         [ISO || ISO99 || ISO11] (math.h): Likewise.
10704         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
10705         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
10706         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10707
10708 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
10709
10710         [BZ #14132]
10711         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
10712         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
10713         * intl/dgettext.c (DCGETTEXT): Likewise.
10714         * intl/gettext.c (DCGETTEXT): Likewise.
10715         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
10716         * posix/regex_internal.h (gettext): Likewise.
10717         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
10718         Remove declaration.
10719         * include/argz.h (__argz_count_internal)
10720         (__argz_stringify_internal): Remove declaration.
10721         (__argz_count, __argz_stringify): Declare hidden proto.
10722         * intl/dcgettext.c: Remove use of INTDEF.
10723         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
10724         * string/argz-stringify.c: Likewise.
10725         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
10726         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
10727         Declare hidden proto.
10728         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
10729         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
10730         Declare hidden proto.
10731         * include/stdio.h (__asprintf_internal): Don't declare.
10732         (__asprintf): Don't define as macro.  Declare hidden proto.
10733         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
10734         (__fsetlocking): Declare hidden proto.
10735         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
10736         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
10737         hidden proto.
10738         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
10739         (_IO_setlinebuf): Remove use of INTUSE.
10740         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
10741         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
10742         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
10743         Remove declaration.
10744         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
10745         (_IO_do_flush): Remove use of INTUSE.
10746         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
10747         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
10748         (_IO_adjust_column, _IO_least_wmarker)
10749         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
10750         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
10751         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
10752         (_IO_default_doallocate, _IO_wdefault_doallocate)
10753         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
10754         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
10755         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
10756         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
10757         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
10758         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
10759         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
10760         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
10761         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
10762         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
10763         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
10764         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
10765         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
10766         proto.
10767         (_IO_flush_all_internal, _IO_adjust_column_internal)
10768         (_IO_default_uflow_internal, _IO_default_finish_internal)
10769         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
10770         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
10771         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
10772         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
10773         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
10774         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
10775         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
10776         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
10777         (_IO_file_close_internal, _IO_file_close_it_internal)
10778         (_IO_file_underflow_internal, _IO_file_overflow_internal)
10779         (_IO_file_init_internal, _IO_file_attach_internal)
10780         (_IO_file_fopen_internal, _IO_file_read_internal)
10781         (_IO_file_sync_internal, _IO_file_seek_internal)
10782         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
10783         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
10784         (_IO_str_underflow_internal, _IO_str_overflow_internal)
10785         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
10786         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
10787         (_IO_list_all_internal, _IO_link_in_internal)
10788         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
10789         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
10790         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
10791         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
10792         (_IO_do_write_internal, _IO_padn_internal)
10793         (_IO_getline_info_internal, _IO_getline_internal)
10794         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
10795         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
10796         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
10797         (_IO_vfscanf_internal, _IO_vfprintf_internal)
10798         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
10799         (_IO_init_internal, _IO_un_link_internal): Don't declare.
10800         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
10801         with libc_hidden_ver, remove use of INTUSE.
10802         * libio/genops.c: Likewise.
10803         * libio/freopen.c: Likewise.
10804         * libio/freopen64.c: Likewise.
10805         * libio/iofclose.c: Likewise.
10806         * libio/iofdopen.c: Likewise.
10807         * libio/iofflush.c: Likewise.
10808         * libio/iofflush_u.c: Likewise.
10809         * libio/iofgets.c: Likewise.
10810         * libio/iofgets_u.c: Likewise.
10811         * libio/iofopen.c: Likewise.
10812         * libio/iofopncook.c: Likewise.
10813         * libio/iofread.c: Likewise.
10814         * libio/iofread_u.c: Likewise.
10815         * libio/ioftell.c: Likewise.
10816         * libio/iofwrite.c: Likewise.
10817         * libio/iogetline.c: Likewise.
10818         * libio/iogets.c: Likewise.
10819         * libio/iogetwline.c: Likewise.
10820         * libio/iopadn.c: Likewise.
10821         * libio/iopopen.c: Likewise.
10822         * libio/ioseekoff.c: Likewise.
10823         * libio/ioseekpos.c: Likewise.
10824         * libio/iosetbuffer.c: Likewise.
10825         * libio/iosetvbuf.c: Likewise.
10826         * libio/ioungetc.c: Likewise.
10827         * libio/ioungetwc.c: Likewise.
10828         * libio/iovdprintf.c: Likewise.
10829         * libio/iovsprintf.c: Likewise.
10830         * libio/iovsscanf.c: Likewise.
10831         * libio/memstream.c: Likewise.
10832         * libio/obprintf.c: Likewise.
10833         * libio/oldfileops.c: Likewise.
10834         * libio/oldiofclose.c: Likewise.
10835         * libio/oldiofdopen.c: Likewise.
10836         * libio/oldiofopen.c: Likewise.
10837         * libio/oldiopopen.c: Likewise.
10838         * libio/oldstdfiles.c: Likewise.
10839         * libio/putc.c: Likewise.
10840         * libio/setbuf.c: Likewise.
10841         * libio/setlinebuf.c: Likewise.
10842         * libio/stdfiles.c: Likewise.
10843         * libio/strops.c: Likewise.
10844         * libio/vasprintf.c: Likewise.
10845         * libio/vscanf.c: Likewise.
10846         * libio/vsnprintf.c: Likewise.
10847         * libio/vswprintf.c: Likewise.
10848         * libio/wfiledoalloc.c: Likewise.
10849         * libio/wfileops.c: Likewise.
10850         * libio/wgenops.c: Likewise.
10851         * libio/wmemstream.c: Likewise.
10852         * libio/wstrops.c: Likewise.
10853         * libio/__fpurge.c: Likewise.
10854         * libio/__fsetlocking.c: Likewise.
10855         * assert/assert.c: Likewise.
10856         * debug/fgets_chk.c: Likewise.
10857         * debug/fgets_u_chk.c: Likewise.
10858         * debug/fread_chk.c: Likewise.
10859         * debug/fread_u_chk.c: Likewise.
10860         * debug/gets_chk.c: Likewise.
10861         * debug/obprintf_chk.c: Likewise.
10862         * debug/vasprintf_chk.c: Likewise.
10863         * debug/vdprintf_chk.c: Likewise.
10864         * debug/vsnprintf_chk.c: Likewise.
10865         * debug/vsprintf_chk.c: Likewise.
10866         * malloc/mtrace.c: Likewise.
10867         * misc/error.c: Likewise.
10868         * misc/syslog.c: Likewise.
10869         * stdio-common/asprintf.c: Likewise.
10870         * stdio-common/fxprintf.c: Likewise.
10871         * stdio-common/getw.c: Likewise.
10872         * stdio-common/isoc99_fscanf.c: Likewise.
10873         * stdio-common/isoc99_scanf.c: Likewise.
10874         * stdio-common/isoc99_vfscanf.c: Likewise.
10875         * stdio-common/isoc99_vscanf.c: Likewise.
10876         * stdio-common/isoc99_vsscanf.c: Likewise.
10877         * stdio-common/printf-prs.c: Likewise.
10878         * stdio-common/printf_fp.c: Likewise.
10879         * stdio-common/printf_fphex.c: Likewise.
10880         * stdio-common/printf_size.c: Likewise.
10881         * stdio-common/putw.c: Likewise.
10882         * stdio-common/scanf.c: Likewise.
10883         * stdio-common/sprintf.c: Likewise.
10884         * stdio-common/tmpfile.c: Likewise.
10885         * stdio-common/vfprintf.c: Likewise.
10886         * stdio-common/vfscanf.c: Likewise.
10887         * stdlib/strfmon_l.c: Likewise.
10888         * sunrpc/openchild.c: Likewise.
10889         * sunrpc/xdr_stdio.c: Likewise.
10890         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
10891         * sysdeps/mach/hurd/tmpfile.c: Likewise.
10892
10893 2012-05-24  Roland McGrath  <roland@hack.frob.com>
10894
10895         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
10896
10897         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
10898         in the third column, to generate for the shared library an IFUNC
10899         that uses _dl_vdso_vsym.
10900         * Makerules (COMPILE.c, compile-stdin.c): New variables.
10901         * Makeconfig (object-suffixes-noshared): New variable.
10902
10903         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
10904         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
10905         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
10906         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
10907
10908         [BZ #14132]
10909         * include/sys/time.h (__gettimeofday): Remove macro.
10910         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
10911         * time/gettimeofday.c (__gettimeofday): Remove #undef.
10912         Remove INTDEF.
10913         (__gettimeofday): Add libc_hidden_def.
10914         (gettimeofday): Add libc_hidden_weak.
10915         * sysdeps/mach/gettimeofday.c: Likewise.
10916         * sysdeps/posix/gettimeofday.c: Likewise.
10917         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
10918         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
10919         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
10920         (__gettimeofday_internal): Remove strong_alias.
10921         (__gettimeofday): Add libc_hidden_def.
10922         (gettimeofday): Add libc_hidden_weak.
10923         * sysdeps/unix/syscalls.list (gettimeofday):
10924         Remove __gettimeofday_internal alias.
10925
10926 2012-05-24  Daniel Jacobowitz  <drow@false.org>
10927             H.J. Lu  <hongjiu.lu@intel.com>
10928
10929         [BZ #12495]
10930         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
10931         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
10932         (largebin_index_32_big): New.
10933         (largebin_index): Use it for 16-byte alignment.
10934         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
10935         correction with front_misalign.
10936
10937 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10938
10939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
10940         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
10941         Likewise.
10942         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
10943         Likewise.
10944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
10945         Likewise.
10946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
10947         Likewise.
10948         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
10949         Likewise.
10950         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
10951         Likewise.
10952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
10953         Likewise.
10954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
10955         Likewise.
10956         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
10957         Likewise.
10958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
10959         Likewise.
10960         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
10961         Likewise.
10962         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
10963         Likewise.
10964
10965         * scripts/data/c++-types-x32-linux-gnu.data: New file.
10966         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
10967
10968 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10969
10970         [BZ #10846]
10971         [BZ #14036]
10972         * math/libm-test.inc (exp_test): Add test from bug 14036.
10973         (pow_test): Add test from bug 10846.
10974
10975         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
10976         and other flags.
10977         (special_function): Do not include flags in test name.
10978         (parse_args): Likewise.
10979         * sysdeps/i386/fpu/libm-test-ulps: Update.
10980         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10981         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
10982         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
10983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10984
10985         * math/gen-libm-test.pl (%beautify): Add entries for underflow
10986         exceptions.
10987         * math/libm-test.inc ("Philosophy"): Update comment about
10988         exception testing.
10989         (UNDERFLOW_EXCEPTION): New macro.
10990         (UNDERFLOW_EXCEPTION_OK): Likewise.
10991         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
10992         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
10993         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
10994         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
10995         (INVALID_EXCEPTION_OK): Update value.
10996         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10997         (OVERFLOW_EXCEPTION_OK): Likewise.
10998         (IGNORE_ZERO_INF_SIGN): Likewise.
10999         (test_exceptions): Handle underflow exceptions.
11000         (acos_test): Update for underflow exception expectations.
11001         (cexp_test): Likewise.
11002         (clog_test): Likewise.
11003         (clog10_test): Likewise.
11004         (csqrt_test): Likewise.
11005         (ctan_test): Likewise.
11006         (ctanh_test): Likewise.
11007         (exp_test): Likewise.
11008         (exp10_test): Likewise.
11009         (exp2_test): Likewise.
11010         (expm1_test): Likewise.
11011         (fma_test): Likewise.
11012         (j0_test): Likewise.
11013         (jn_test): Likewise.
11014         (nexttoward_test): Likewise.
11015         (pow_test): Likewise.
11016         (scalbn_test): Likewise.
11017         (scalbln_test): Likewise.
11018         (tan_test): Likewise.
11019         (y1_test): Likewise.
11020         * sysdeps/i386/fpu/libm-test-ulps: Update.
11021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11022
11023 2012-05-23  David S. Miller  <davem@davemloft.net>
11024
11025         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
11026         (__libc_sigaction): Remove unused local variables.
11027
11028 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11029
11030         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
11031
11032 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11033
11034         mktime: avoid signed integer overflow
11035         * time/mktime.c (__mktime_internal): Do not mishandle the case
11036         where diff == INT_MIN.
11037
11038         mktime: simplify computation of average
11039         * time/mktime.c (ranged_convert): Use new time_t_avg function
11040         instead of rolling our own (probably-slower) code.
11041
11042         mktime: do not assume signed right shift propagates sign bit
11043         * time/mktime.c (isdst_differ): New static function.
11044         (__mktime_internal): No need to normalize tm_isdst now.
11045         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
11046         tm_isdst values.
11047
11048         mktime: merge another wrapv change from gnulib
11049         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
11050         from some compilers.
11051
11052         mktime: remove incorrect attempt at unusual arithmetics
11053         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
11054         The code didn't really work on such machines anyway.
11055         (TYPE_MINIMUM): Assume two's complement.
11056         (twos_complement_arithmetic): Verify that long_int and time_t
11057         are two's complement (or unsigned, in the latter case).
11058
11059         mktime: check signed shifts on long_int and time_t, too
11060         * time/mktime.c (SHR): Check that shifts work as desired
11061         on the types long_int and time_t too, as SHR is used on
11062         such types.
11063
11064         mktime: do not assume 'long' is wide enough
11065         * time/mktime.c (verify): Move decl up.
11066         (long_int): New type.
11067         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
11068         to remove assumption in the code that 'long' is wide enough to
11069         store year values.  This assumption is not true on x32 and on
11070         some non-glibc platforms.
11071
11072         mktime: merge wrapv change from gnulib
11073         * time/mktime.c (WRAPV): New macro.
11074         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
11075         (guess_time_tm, __mktime_internal): Do not assume that signed
11076         integer overflow wraps around; modern compilers generate code
11077         where this assumption is no longer valid.
11078
11079 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11080
11081         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11082         Replace "jmp L(pseudo_end)" with "ret".
11083         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11084         Likewise.
11085
11086 2012-05-23  Andreas Jaeger  <aj@suse.de>
11087
11088         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
11089         * sysdeps/unix/sysv/linux/poll.c: Remove file.
11090
11091 2012-05-23  Andreas Jaeger  <aj@suse.de>
11092             Maximilian Attems  <max@stro.at>
11093
11094         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
11095         New macros.
11096
11097 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11098
11099         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
11100         code so that pseudo_end is just ret and the stack pointer is
11101         correct also for static library in error case.
11102
11103 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
11104
11105         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
11106         move to syscalls.list.
11107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
11108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
11109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
11110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
11111
11112         * manual/install.texi (Running make install): Do not mention Linux
11113         kernel version for which pt_chown is not needed.
11114         (Linux): Do not mention problems with nscd with 2.0 kernels.
11115         * INSTALL: Regenerated.
11116
11117 2012-05-23  Andreas Jaeger  <aj@suse.de>
11118
11119         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
11120         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
11121         macro.
11122         * sysdeps/unix/sysv/linux/s390/bits/mman.h
11123         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11124         * sysdeps/unix/sysv/linux/sh/bits/mman.h
11125         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11126         * sysdeps/unix/sysv/linux/i386/bits/mman.h
11127         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11128         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
11129         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11130         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
11131         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11132         * sysdeps/unix/sysv/linux/bits/in.h
11133         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
11134
11135 2012-05-22  Roland McGrath  <roland@hack.frob.com>
11136
11137         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
11138         (PREPARE_VERSION): Just use assert instead, it will be elided
11139         under [NDEBUG] anyway.
11140
11141 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11142
11143         * sysdeps/unix/sysv/linux/Makefile: Include
11144         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
11145         (sysdep_routines): Remove sysctl.
11146         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
11147         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
11148         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
11149         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
11150         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
11151
11152 2012-05-22  Andreas Jaeger  <aj@suse.de>
11153
11154         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
11155         that pseudo_end is just ret and the stack pointer is correct also
11156         for static library in error case.
11157
11158 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
11159
11160         [BZ #14122]
11161         * nss/nsswitch.c (defconfig_entries): New variable.
11162         (__nss_database_lookup): Don't leak defconfig entries.
11163         (nss_parse_service_list): Don't leak on error paths.
11164         (free_database_entries): New function.
11165         (free_defconfig): New function.
11166         (free_mem): Move common code to free_database_entries.
11167
11168 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11169
11170         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
11171         Add arch_prctl.
11172         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
11173
11174         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
11175         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
11176         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
11177         New macro.
11178         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
11179         (INTERNAL_SYSCALL_TYPES): Likewise.
11180         (LOAD_ARGS_TYPES_[1-6]): Likewise.
11181         (LOAD_REGS_TYPES_[1-6]): Likewise.
11182         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
11183         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
11184
11185 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11186
11187         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
11188         copysignl for GLIBC_2_0.
11189         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
11190         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
11191         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
11192         logbl for GLIBC_2_0.
11193         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
11194         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
11195
11196 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11197
11198         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
11199         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11200
11201         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11202         Use "neg %eax".
11203
11204         * time/mktime.c: Update copyright years.
11205
11206 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11207
11208         mktime: merge comment-quoting-style change from gnulib
11209         * time/mktime.c: Quote 'like this' in comments.
11210         The GNU coding standards suggest that we no longer quote `like this',
11211         as "`" and "'" are typically rendered asymmetrically nowadays.
11212         The typical gnulib style is to quote 'like this' when quoting
11213         code, and "like this" when quoting English.
11214
11215         * time/mktime.c (compile-command): Add "-I.".
11216
11217         mktime: merge mktime-internal.h change from gnulib
11218         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
11219
11220         mktime: merge time_r change from gnulib
11221         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
11222
11223         mktime: merge DEBUG change from gnulib
11224         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
11225         case system <time.h> has a #define.
11226
11227         mktime: merge <sys/types.h> change from gnulib
11228         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
11229         since <time.t> is now guaranteed to define time_t.
11230
11231         mktime: merge HAVE_CONFIG_H change from gnulib
11232         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
11233
11234 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11235
11236         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11237         Use "neg %eax".
11238
11239         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
11240         __rlim_t cast.
11241         (struct rusage): Use anonymous union to pad each field to
11242         __syscall_slong_t.
11243
11244 2012-05-21  David S. Miller  <davem@davemloft.net>
11245
11246         * Makefules (o-iterator): Remove .s cases.
11247         (compile-command.s): Delete.
11248         (COMPILE.s): Delete.
11249         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
11250
11251 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
11252
11253         * configure.in (libc_cv_predef_stack_protector): Only consider
11254         "foobar" and "__stack_chk_fail" lines in libc_undefs.
11255         * configure: Regenerated.
11256
11257 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11258
11259         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11260         New macro.  Use R*LP on int and pointer.
11261         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
11262         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
11263         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
11264         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
11265
11266         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
11267         [__WORDSIZE_TIME64_COMPAT32] instead of
11268         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
11269         (struct utmp): Likewise.
11270         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
11271         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
11272         Renamed to ...
11273         (__WORDSIZE_TIME64_COMPAT32): This.
11274         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
11275         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
11276         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
11277         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
11278         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
11279         (__WORDSIZE_TIME64_COMPAT32): New macro.
11280
11281 2012-05-21  Andreas Jaeger  <aj@suse.de>
11282
11283         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
11284         only if [SHARED]. Add prototype for __wcschr_ia32.
11285
11286 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11287
11288         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
11289         of %rbp unmolested in the jmp_buf while mangling the low bits.
11290         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
11291         unmolested high bits of %rbp while demangling the low bits.
11292         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11293
11294 2012-05-21  Andreas Jaeger  <aj@suse.de>
11295
11296         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
11297         * sunrpc/svc_simple.c: Use it for registerrpc.
11298         * sunrpc/xcrypt.c: Use it for passwd2des.
11299
11300         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
11301
11302 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11303
11304         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
11305         Don't define if [__SYSCALL_WORDSIZE != 32].
11306         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
11307         New macro.
11308
11309 2012-05-21  Bruno Haible  <bruno@clisp.org>
11310             Andreas Jaeger  <aj@suse.de>
11311
11312         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
11313         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
11314         inptr and inend for must_buffer_ch.
11315         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
11316         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
11317         * stdio-common/Makefile (tests): Remove bug15.
11318         (bug15-ENV): Remove macro.
11319         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
11320         anymore.
11321
11322 2012-05-19  Andreas Jaeger  <aj@suse.de>
11323             Roland McGrath  <roland@hack.frob.com>
11324
11325         * manual/contrib.texi: Completely rewritten. It contains now an
11326         alphabetical list of contributors and their contributions.
11327
11328 2012-05-21  Richard Henderson  <rth@twiddle.net>
11329
11330         * misc/getauxval.c (__getauxval): Use unsigned long int.
11331         * misc/sys/auxv.h: Include <sys/cdefs.h>.
11332         (getauxval): Use unsigned long int.
11333
11334 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11335
11336         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
11337
11338 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11339
11340         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
11341         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
11342         __alignof__ (long double).
11343
11344 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11345
11346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11347
11348 2012-05-20  Richard Henderson  <rth@twiddle.net>
11349
11350         * misc/getauxval.c: New file.
11351         * misc/sys/auxv.h: New file.
11352         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
11353         (routines): Add getauxval.
11354         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
11355         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
11356         * elf/dl-sysdep.c (_dl_auxv): Remove.
11357         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
11358         * elf/dl-support.c (_dl_auxv): New variable.
11359         (_dl_aux_init): Initialize it.
11360         * manual/startup.texi (Auxiliary Vector): New node.
11361         * sysdeps/generic/bits/hwcap.h: New file.
11362         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
11363         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
11364         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
11365         * sysdeps/sparc/sysdep.h: ... here.  Include it.
11366         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
11367         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
11368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11369         Update.
11370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
11371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
11372         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
11373         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
11374         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
11375         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
11376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
11377         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
11378
11379 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11380
11381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11382
11383 2012-05-19  David S. Miller  <davem@davemloft.net>
11384
11385         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11386
11387 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
11388
11389         [BZ #14123]
11390         * math/s_ccosh.c: Include <float.h>
11391         (__ccosh): Avoid internal overflow calculating sinh and cosh
11392         values before multiplying by sin and cos values.
11393         * math/s_ccoshf.c: Likewise.
11394         * math/s_ccoshl.c: Likewise.
11395         * math/s_csin.c: Likewise.
11396         * math/s_csinf.c: Likewise.
11397         * math/s_csinl.c: Likewise.
11398         * math/s_csinh.c: Likewise.
11399         * math/s_csinhf.c: Likewise.
11400         * math/s_csinhl.c: Likewise.
11401         * math/libm-test.inc (ccos_test): Add more tests.
11402         (ccosh_test): Likewise.
11403         (csin_test): Likewise.
11404         (csinh_test): Likewise.
11405         * sysdeps/i386/fpu/libm-test-ulps: Update.
11406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11407
11408 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11409
11410         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
11411         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
11412
11413         * sysdeps/x86_64/x32/_itoa.h: Add comment.
11414
11415 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
11416
11417         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
11418         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
11419         * sysdeps/powerpc/soft-fp/Versions: Likewise.
11420         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
11421         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
11422         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
11423         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
11424         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
11425         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
11426         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
11427         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
11428         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
11429         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
11430         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
11431         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
11432         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
11433         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
11434         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
11435         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
11436         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
11437         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
11438         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
11439         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
11440         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
11441         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
11442         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
11443         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
11444         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
11445         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
11446         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
11447         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
11448
11449 2012-05-18  Andreas Jaeger  <aj@suse.de>
11450
11451         * csu/.gitignore: Delete.
11452
11453 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11454
11455         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
11456         (timex): Use __syscall_slong_t.
11457
11458 2012-05-18  Andreas Jaeger  <aj@suse.de>
11459             Carlos O'Donell  <carlos_odonell@mentor.com>
11460
11461         * manual/install.texi (Configuring and compiling): Update
11462         description about files modified in the source directory.
11463         * INSTALL: Regenerated.
11464
11465 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11466
11467         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
11468         value.  Use "or" to set return value to -1.
11469         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
11470         negate return value.
11471
11472 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11473
11474         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
11475         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
11476         failure if the compiler has Graphite support disabled.
11477         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
11478         Likewise.
11479         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
11480         CFLAGS-memmove.c): Likewise.
11481         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
11482         Likewise.
11483
11484 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11485
11486         * sysdeps/x86_64/x32/_itoa.h: New file.
11487
11488         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
11489         getdents system call only if kernel and user dirents have the
11490         same d_ino and d_off.
11491
11492         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11493         LLONG_MAX != LONG_MAX.
11494         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11495         (_fitoa_word): Likewise.
11496
11497         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
11498         years.
11499         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
11500         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
11501         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
11502
11503         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
11504         include <bits/wordsize.h>.  Check __x86_64__ instead of
11505         __WORDSIZE.
11506         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
11507         if __x86_64__ is defined.  Use anonymous union on fpstate.
11508
11509         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
11510         anonymous union.
11511
11512 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
11513
11514         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
11515         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
11516         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
11517         Refer to _rtld_local_ro instead of _rtld_global_ro.
11518         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
11519         Likewise.
11520         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
11521         Likewise.
11522         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
11523         Likewise.
11524         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
11525         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
11526         of _rtld_global, and rtld_progname instead of _dl_argv[0].
11527
11528         * sysdeps/powerpc/powerpc32/dl-machine.c
11529         (__elf_machine_runtime_setup) [PROF]: Don't reference
11530         _dl_prof_resolve.
11531
11532 2012-05-18  Andreas Jaeger  <aj@suse.de>
11533
11534         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
11535         function only available for GCCs before 3.4 since GCC 3.4
11536         introduced a builtin.
11537         (lrint): Likewise.
11538         (llrintf): Likewise.
11539         (llrint): Likewise.
11540         (fmaxf): Likewise.
11541         (fmax): Likewise.
11542         (fminf): Likewise.
11543         (fmin): Likewise.
11544         (rint): Likewise.
11545         (rintf): Likewise.
11546         (nearbyint): Likewise.
11547         (nearbyintf): Likewise.
11548         (ceil): Likewise.
11549         (ceilf): Likewise.
11550         (floor): Likewise.
11551         (floorf): Likewise.
11552
11553 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11554
11555         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
11556         on both fields and cast pointer to __syscall_ulong_t.
11557
11558         * bits/types.h (__fsword_t): New type.
11559         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
11560         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
11561         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11562         (__FSWORD_T_TYPE): Likewise.
11563         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11564         (__FSWORD_T_TYPE): Likewise.
11565         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11566         (__FSWORD_T_TYPE): Likewise.
11567         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
11568         (__FSWORD_T_TYPE): Likewise.
11569         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
11570         __SWORD_TYPE with __fsword_t.
11571         (statfs64): Likewise.
11572
11573 2012-05-17  David S. Miller  <davem@davemloft.net>
11574
11575         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
11576
11577 2012-05-17  Andreas Jaeger  <aj@suse.de>
11578
11579         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
11580         warning.
11581
11582 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11583
11584         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
11585
11586 2012-05-17  Andreas Jaeger  <aj@suse.de>
11587
11588         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
11589         when it is used.
11590
11591 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
11592
11593         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
11594
11595 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11596
11597         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
11598         * sysdeps/x86_64/tst-mallocalign1.c: New file.
11599
11600 2012-05-17  Andreas Jaeger  <aj@suse.de>
11601             Carlos O'Donell  <carlos_odonell@mentor.com>
11602
11603         [BZ #14059]
11604         * sysdeps/x86_64/multiarch/init-arch.h
11605         (bit_YMM_Usable): Rename to...
11606         (bit_AVX_Usable): ... this.
11607         (bit_FMA4_Usable): New macro.
11608         (bit_XMM_state): New macro.
11609         (bit_YMM_state): New macro.
11610         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
11611         [__ASSEMBLER__] (index_AVX_Usable): ... this.
11612         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
11613         (CPUID_OSXSAVE): New macro.
11614         (CPUID_AVX): New macro.
11615         (CPUID_FMA4): New macro.
11616         (index_YMM_Usable): Rename to...
11617         (index_AVX_Usable): ... this.
11618         (HAS_AVX): Use HAS_ARCH_FEATURE.
11619         (HAS_FMA4): Likewise.
11620         (HAS_YMM_USABLE): Remove.
11621         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11622         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
11623         are present.
11624         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
11625         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
11626         * sysdeps/x86_64/multiarch/Makefile: Likewise.
11627         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
11628         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
11629
11630 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
11631
11632         * math/libm-test.c: Support platforms without multiple rounding modes.
11633         * math/bug-nextafter.c: Support platforms without FP exceptions.
11634         * math/bug-nexttoward.c: Likewise.
11635         * math/test-fenv.c: Likewise.
11636         * math/test-misc.c: Likewise.
11637         * stdlib/bug-getcontext.c: Likewise.
11638
11639 2012-05-17  Andreas Jaeger  <aj@suse.de>
11640
11641         * manual/examples/search.c (critter_cmp): Change signature to
11642         avoid warnings.
11643         * manual/string.texi (Collation Functions): Likewise.
11644
11645 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11646
11647         * bits/types.h: Fold copyright years.
11648         * bits/typesizes.h: Likewise.
11649         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
11650         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
11651         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
11652         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
11653         * time/time.h: Likewise.
11654
11655 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
11656
11657         [BZ #208]
11658         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
11659         in instead of returning them.  Return void.
11660         (__libc_mallinfo): Accumulate over all arenas.
11661         (__malloc_stats): Adjust for change in int_mallinfo interface.
11662
11663 2012-05-16  Roland McGrath  <roland@hack.frob.com>
11664
11665         [BZ #10375]
11666         * configure.in (NM): Add AC_CHECK_TOOL for it.
11667         (libc_extra_cflags): New substituted variable.
11668         Check for -fstack-protector being used implicitly.
11669         * configure: Regenerated.
11670         * config.make.in (config-extra-cflags): New variable,
11671         gets @libc_extra_cflags@.
11672         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
11673
11674         [BZ #10375]
11675         * configure.in: Check for _FORTIFY_SOURCE being predefined.
11676         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
11677         * configure: Regenerated.
11678         * config.make.in (CPPUNDEFS): New substituted variable.
11679         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
11680         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
11681         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
11682
11683 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11684
11685         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
11686         (mq_attr): Use __syscall_slong_t.
11687
11688 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11689
11690         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
11691         Check __x86_64__ instead of __WORDSIZE.
11692         (_STAT_VER_LINUX): Likewise.
11693         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
11694         __syscall_ulong_t and __syscall_slong_t.
11695         (stat64): Likewise.
11696
11697 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11698
11699         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
11700
11701 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11702
11703         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
11704
11705 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11706
11707         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
11708         __syscall_ulong_t.
11709
11710         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
11711         include <bits/wordsize.h>.  Check __x86_64__ instead of
11712         __WORDSIZE.
11713         (greg_t): Use "__extension__ long long int" if __x86_64__ is
11714         defined.
11715         (mcontext_t): Replace "unsigned long" with "unsigned long long".
11716
11717         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
11718         include <bits/wordsize.h>.  Check __x86_64__ instead of
11719         __WORDSIZE.
11720         (user_regs_struct): Use "__extension__ unsigned long long"
11721         instead of "unsigned long" if __x86_64__ is defined.
11722         (user): Likewise.  Pad after pointer field if __ILP32__ is
11723         defined.
11724
11725 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
11726
11727         * configure.in (makeinfo): Require version 4.5 or later.  Allow
11728         versions 5 to 9.
11729         * configure: Regenerated.
11730         * manual/install.texi (texinfo): Increase version requirement to
11731         4.5 or later.
11732         * INSTALL: Regenerated.
11733
11734         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
11735
11736 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11737
11738         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
11739
11740         * sysdeps/x86_64/x32/ffs.c: New file.
11741
11742         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
11743         __syscall_ulong_t.
11744         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
11745         defined.  Use __syscall_ulong_t.
11746         (shminfo): Use __syscall_ulong_t.
11747         (shm_info): Likewise.
11748
11749         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
11750         __syscall_ulong_t.
11751
11752         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
11753         <bits/wordsize.h>.
11754         (msgqnum_t): Use __syscall_ulong_t.
11755         (msglen_t): Likewise.
11756         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
11757         __syscall_ulong_t.
11758
11759         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
11760         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11761
11762         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
11763
11764         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
11765         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
11766
11767         * sysvipc/sys/msg.h (msgbuf): Replace long int with
11768         __syscall_slong_t.
11769
11770         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
11771         include <bits/wordsize.h>.  Check __x86_64__ instead of
11772         __WORDSIZE.
11773
11774         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
11775         "unsigned long long int" if __x86_64__ is defined.
11776         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
11777
11778         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
11779         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11780         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
11781
11782         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
11783         <stdint.h>.
11784         (GET_PC): Cast to uintptr_t first.
11785         (GET_FRAME): Likewise.
11786         (GET_STACK): Likewise.
11787
11788         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
11789         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
11790         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
11791         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
11792         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
11793         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
11794         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
11795         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
11796         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
11797         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
11798         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
11799         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
11800         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11801         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
11802         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
11803         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
11804         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
11805         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
11806         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
11807         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
11808         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
11809         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
11810         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
11811         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
11812         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
11813         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
11814         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
11815         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
11816         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
11817
11818 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
11819
11820         * Makerules (+depfiles): Also collect depfiles from .oS in
11821         $(extra-objs).
11822         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
11823         .oS, $(libnldbl-routines)).
11824
11825         * Makerules (native-compile-mkdep-flags): Define.
11826         * sunrpc/Makefile (extra-objs): Add $(addprefix
11827         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
11828         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
11829         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
11830         calling $(make-target-directory).
11831
11832 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11833
11834         * bits/types.h (__snseconds_t): Removed.
11835         * time/time.h (struct timespec): Replace __snseconds_t with
11836         __syscall_slong_t.
11837         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
11838         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
11839         Likewise.
11840         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11841         (__SNSECONDS_T_TYPE): Likewise.
11842         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11843         (__SNSECONDS_T_TYPE): Likewise.
11844         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11845         (__SNSECONDS_T_TYPE): Likewise.
11846
11847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         * sysdeps/mach/hurd/bits/typesizes.h
11850         (__SYSCALL_SLONG_TYPE): New macro.
11851         (__SYSCALL_ULONG_TYPE): Likewise.
11852
11853 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11854
11855         * bits/types.h (__syscall_slong_t): New type.
11856         (__syscall_ulong_t): Likewise.
11857
11858         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
11859         (__SYSCALL_ULONG_TYPE): Likewise.
11860         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11861         (__SYSCALL_SLONG_TYPE): Likewise.
11862         (__SYSCALL_ULONG_TYPE): Likewise.
11863         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11864         (__SYSCALL_SLONG_TYPE): Likewise.
11865         (__SYSCALL_ULONG_TYPE): Likewise.
11866         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11867         (__SYSCALL_SLONG_TYPE): Likewise.
11868         (__SYSCALL_ULONG_TYPE): Likewise.
11869
11870 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11871
11872         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
11873         Add sigaltstack-offsets.sym.
11874         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11875         <sigaltstack-offsets.h>.
11876         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
11877         longjmp_msg pointer.
11878         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
11879         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
11880         signal stack.
11881         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
11882
11883 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * elf/stackguard-macros.h: Remove file.
11886         * sysdeps/generic/stackguard-macros.h: New file.
11887         * sysdeps/i386/stackguard-macros.h: Likewise.
11888         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
11889         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
11890         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
11891         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
11892         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
11893         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
11894         * sysdeps/x86_64/stackguard-macros.h: Likewise.
11895         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
11896         <elf/stackguard-macros.h>.
11897
11898         [BZ #14109]
11899         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
11900         __aligned__ in attribute.
11901         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
11902         (gregset_t): Likewise.
11903
11904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11905
11906         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
11907         * sysdeps/x86_64/64/Implies-after: Here.  New file.
11908         * sysdeps/x86_64/x32/Implies-after: New file.
11909
11910 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11911
11912         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
11913         and access return value for _dl_profile_fixup.  Use R10_LP to
11914         load frame size.
11915
11916 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11917
11918         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
11919
11920 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11921
11922         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
11923         * sysdeps/x86_64/x32/sysdep.h: New file.
11924
11925 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11926
11927         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
11928         * sysdeps/x86_64/setjmp.S: Likewise.
11929
11930 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11931
11932         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
11933         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
11934         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
11935         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
11936         remove unused global constant.
11937
11938 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
11939
11940         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
11941         include of <not-cancel.h>.
11942
11943 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11944
11945         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
11946
11947 2012-05-15  Jeff Law  <law@redhat.com>
11948             Andreas Jaeger  <aj@suse.de>
11949
11950         [BZ #13594]
11951         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
11952         out from...
11953         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
11954         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
11955         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
11956         code changing __hst_map_handle.map.
11957
11958 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11959
11960         * configure.in (sysnames): Look for Implies-before and Implies-after
11961         files.
11962         * configure: Regenerated.
11963
11964 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11965
11966         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
11967         8-byte data alignment with LP_SIZE alignment.
11968
11969 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11970
11971         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
11972         into R10_LP.
11973
11974 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11975
11976         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
11977
11978 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11979
11980         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
11981         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
11982         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
11983         Likewise.
11984         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11985
11986 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11987
11988         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
11989         (stackinfo_sub_sp): Likewise.
11990
11991 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11992
11993         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
11994         RAX_LP.
11995
11996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11997
11998         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
11999         into R*_LP.
12000
12001 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12002
12003         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
12004         sizes into R*_LP.
12005
12006 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12007
12008         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
12009
12010 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12011
12012         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
12013         into R11_LP and load __x86_64_shared_cache_size_half into
12014         R8_LP.
12015
12016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12017
12018         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
12019         R8_LP.
12020
12021 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12022
12023         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
12024         logb for POWER7.
12025         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
12026         logbf for POWER7.
12027         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
12028         logbl for POWER7.
12029         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
12030         powerpc32/power7/fpu/s_logb.c via #include.
12031         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
12032         powerpc32/power7/fpu/s_logbf.c via #include.
12033         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
12034         powerpc32/power7/fpu/s_logbl.c via #include.
12035
12036 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
12037
12038         * README.libm: Remove file.
12039
12040 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12041
12042         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
12043         count for x32.  Use R*_LP and omit operand-size suffix.
12044
12045 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12046
12047         * shlib-versions: Move x86_64-.*-linux.* entries to ...
12048         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
12049         * sysdeps/x86_64/x32/shlib-versions: New file.
12050
12051 2012-05-14  Roland McGrath  <roland@hack.frob.com>
12052
12053         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
12054         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
12055         Use _dl_fatal_printf instead.
12056
12057 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12058
12059         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
12060         set if not set by the user.  Do not allow for being unset.
12061         * sysdeps/unix/sysv/linux/configure: Regenerated.
12062
12063 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12064
12065         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
12066         the `q' suffix from lea and replace .quad with ASM_ADDR.
12067
12068 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12069
12070         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
12071         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
12072         instead of $17.
12073         (PTR_DEMANGLE): Likewise.
12074
12075 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12076
12077         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
12078         (LP_OP): Likewise.
12079         (ASM_ADDR): Likewise.
12080         (RAX_LP): Likewise.
12081         (RBP_LP): Likewise.
12082         (RBX_LP): Likewise.
12083         (RCX_LP): Likewise.
12084         (RDI_LP): Likewise.
12085         (RSI_LP): Likewise.
12086         (RSP_LP): Likewise.
12087         (R8_LP): Likewise.
12088         (R9_LP): Likewise.
12089         (R10_LP): Likewise.
12090         (R10_LP): Likewise.
12091         (R11_LP): Likewise.
12092         (R12_LP): Likewise.
12093         (R13_LP): Likewise.
12094         (R14_LP): Likewise.
12095         (R15_LP): Likewise.
12096
12097 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12098
12099         * sysdeps/x86_64/x32/dl-machine.h: New file.
12100
12101 2012-05-14  Andreas Jaeger  <aj@suse.de>
12102
12103         * manual/Makefile (subdir): Remove export of subdir.
12104         (all): Remove target.
12105         (.PHONY): Remove all from list.
12106         (mkinstalldirs): Remove.
12107         (.PHONY): Remove installdirs from list.
12108         ($(inst_infodir)/libc.info): Use make-target-directory.
12109         (installdirs): Remove.
12110         (subdir_%): Remove.
12111         (glibc-targets): Remove.
12112         (lib): Remove.
12113         (stubs): Remove.
12114         ($(objpfx)stubs ../po/manual.pot): Remove.
12115         ($(objpfx)stamp%): Remove.
12116         (make-target-directory): Remove.
12117         (subdir_install): Remove.
12118         (routines): Remove.
12119         (aux): Remove.
12120         (sources): Remove.
12121         (objects): Remove.
12122         (headers): Remove.
12123
12124         [BZ #13750]
12125         * manual/.gitignore: Remove, it's not needed anymore.
12126         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
12127         all files in it.
12128         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
12129         directory.
12130         (texis): Renamed to $(objpfx)texis.
12131         (texis-path): New, contains path to generated files.
12132         (chapters.%): Use texis-path for complete path, add extra argument
12133         libc-texinfo.sh.
12134         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
12135         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
12136         (summary,texi, stamp-summary): Use complete path of
12137         files. Generate files in build dir.
12138         (dir-add.texi): Build in build dir.
12139         (libm-err.texi,stamp-libm-err): Likewise.
12140         (version.texi, stamp-version): Likewise.
12141         (.%c.texi): Likewise.
12142         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
12143         (mostlyclean): Remove target.
12144         (realclean): Remove target.
12145         (generated): Add new variable with contents from mostlyclean and
12146         realclean, remove entries duplicated in common-mostlyclean, add
12147         stamp-libm-err and stamp-version.
12148         (generated-dirs): Add libc directory.
12149         ($(inst_infodir)/libc.info): Install files from build dir.
12150
12151         * manual/install.texi (Configuring and compiling): Adjust since
12152         the info files are not part of the tar ball anymore.
12153
12154 2012-05-14  Andreas Jaeger  <aj@suse.de>
12155
12156         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
12157         variable.
12158
12159 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12160
12161         [BZ #13717]
12162         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12163         to 2.2.0 where earlier.
12164         * sysdeps/unix/sysv/linux/configure: Regenerated.
12165         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
12166         Remove conditional code.
12167         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
12168         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
12169         Remove conditional code.
12170         [!__NR_lchown]: Likewise.
12171         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12172         [__NR_lchown]: Likewise.
12173         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
12174         comment referencing __ASSUME_LCHOWN_SYSCALL.
12175         * sysdeps/unix/sysv/linux/i386/sigaction.c
12176         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12177         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12178         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
12179         Remove conditional code.
12180         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
12181         (__protocol_available): Remove #if 0 code.
12182         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
12183         conditional code.
12184         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
12185         * sysdeps/unix/sysv/linux/kernel-features.h
12186         (__ASSUME_GETCWD_SYSCALL): Don't define.
12187         (__ASSUME_REALTIME_SIGNALS): Likewise.
12188         (__ASSUME_PREAD_SYSCALL): Likewise.
12189         (__ASSUME_PWRITE_SYSCALL): Likewise.
12190         (__ASSUME_POLL_SYSCALL): Likewise.
12191         (__ASSUME_LCHOWN_SYSCALL): Likewise.
12192         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
12193         non-SPARC.
12194         (__ASSUME_SIOCGIFNAME): Don't define.
12195         (__ASSUME_MSG_NOSIGNAL): Likewise.
12196         (__ASSUME_SENDFILE): Define unconditionally.
12197         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
12198         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
12199         conditional code.
12200         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
12201         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
12202         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12203         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12204         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
12205         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12206         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
12208         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12209         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
12211         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12212         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
12214         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12215         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
12217         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12218         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
12220         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12221         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
12223         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12224         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
12226         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12227         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
12229         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12230         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12231         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
12232         Remove conditional code.
12233         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12234         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12235         Remove conditional code.
12236         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12237         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
12238         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
12239         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12240         Remove conditional code.
12241         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12242         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
12243         Remove conditional code.
12244         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12245         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
12246         Remove conditional code.
12247         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12248         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12249         Remove conditional code.
12250         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12251         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12252         Remove conditional code.
12253         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12254         * sysdeps/unix/sysv/linux/sh/pwrite64.c
12255         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12256         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12257         * sysdeps/unix/sysv/linux/sigaction.c
12258         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12259         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12260         * sysdeps/unix/sysv/linux/sigpending.c
12261         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12262         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12263         * sysdeps/unix/sysv/linux/sigprocmask.c
12264         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12265         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12266         * sysdeps/unix/sysv/linux/sigsuspend.c
12267         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12268         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12269         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
12270         (__libc_missing_rt_sigs): Remove.
12271         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
12272         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
12273         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
12274         Remove conditional code.
12275         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
12276         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
12277         return 1.
12278         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
12279         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
12280         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
12281         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
12282
12283 2012-05-14  Andreas Jaeger  <aj@suse.de>
12284
12285         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
12286         it's not used in glibc.
12287         (__coshm1): Likewise.
12288         (__acosh1p): Likewise.
12289         (__sgn): Likewise.
12290
12291         * manual/string.texi (Copying and Concatenation): Add missing
12292         variable in concat example.
12293         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
12294
12295 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12296
12297         [BZ #14103]
12298         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
12299         __builtin_clzl with __builtin_clzll.
12300
12301 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12302
12303         [BZ #14104]
12304         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
12305         libc_freeres_ptr.
12306
12307 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12308
12309         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
12310         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
12311         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
12312         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
12313
12314 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
12315
12316         * NEWS: Update ia64 info.
12317
12318 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
12319
12320         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
12321         used as bcopy.
12322
12323 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
12324
12325         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
12326         * sysdeps/unix/syscalls.list (dup3): Likewise.
12327         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
12328         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
12329
12330 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12331
12332         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
12333         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
12334
12335 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12336
12337         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
12338         thread pointer.
12339         (TLS_IE): Use mov/add instead of movq/addq to load thread
12340         pointer.
12341         (TLS_GD_PREFIX): New.
12342         (TLS_GD): Use it.
12343
12344 2012-05-11  David S. Miller  <davem@davemloft.net>
12345
12346         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
12347         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
12348         (_FPU_SETCW): Likewise.
12349
12350 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12351
12352         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
12353         is 32-byte aligned.
12354
12355 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
12356
12357         [BZ #11837]
12358         * iconvdata/gb18030.c: Update tables.
12359         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
12360         characters specially.
12361         (BODY for TO_LOOP): Add encoding of missing ranges.
12362
12363 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
12364
12365         [BZ #13673]
12366         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
12367         * sysdeps/mach/hurd/dup3.c: Likewise.
12368         * sysdeps/mach/hurd/readlinkat.c: Likewise.
12369         * sysdeps/powerpc/memmove.c:: Likewise.
12370
12371 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12372
12373         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
12374         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
12375
12376 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12377
12378         * elf/elf.h (R_X86_64_RELATIVE64): New.
12379         (R_X86_64_NUM): Updated.
12380         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
12381         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
12382         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
12383         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
12384         tst-quad1pie tst-quad2pie
12385         (modules-names): Add tst-quadmod1 tst-quadmod2.
12386         ($(objpfx)tst-quad1): New dependency.
12387         ($(objpfx)tst-quad2): Likewise.
12388         ($(objpfx)tst-quad1pie): Likewise.
12389         ($(objpfx)tst-quad2pie): Likewise.
12390         * sysdeps/x86_64/tst-quad1.c: New file.
12391         * sysdeps/x86_64/tst-quad1pie.c: New file.
12392         * sysdeps/x86_64/tst-quad2.c: Likewise.
12393         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
12394         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
12395         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
12396         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
12397         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
12398
12399 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12400
12401         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
12402         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
12403         * streams/stropts.h (t_scalar_t): Define type.
12404
12405         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
12406         (_PATH_PRESERVE): Set to "/var/lib".
12407         (_PATH_RWHODIR): Set to "/var/spool/rwho".
12408
12409         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
12410         instead of int.
12411
12412         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
12413         if __dir_mkfile succeeded.
12414
12415         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
12416         checking for _hurd_dtablesize.  Unlock it right after having
12417         finished _hurd_dtable allocation.
12418
12419 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12420
12421         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
12422         * sysdeps/mach/hurd/configure: Regenerated.
12423         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
12424         special-casing to...
12425         * sysdeps/gnu/configure.in: ... this new file.
12426         * sysdeps/unix/sysv/linux/configure: Regenerated.
12427         * sysdeps/gnu/configure: New generated file.
12428
12429         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
12430         for Linux: use nsec instead of usec, as well as:
12431         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
12432         members of type struct timespec.
12433         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
12434         New macros.
12435         (struct stat64): Likewise.
12436         (_STATBUF_ST_NSEC): New macro.
12437         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
12438
12439         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
12440         __strtoul_internal rather than strtoul.
12441
12442 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12443
12444         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
12445         and reject them.
12446
12447 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12448
12449         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
12450         which preserves existing values.
12451         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
12452
12453 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12454
12455         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
12456         TIMEOUT values.  Return EINVAL for NFDS values either negative or
12457         greater than FD_SETSIZE.
12458
12459 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12460
12461         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
12462         allocated, call __vm_protect to finish enabling the existing space, and
12463         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
12464         allocate the remainder.
12465
12466 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12467
12468         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
12469         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
12470
12471 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12472
12473         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
12474         sysdeps/mach/hurd/readlink.c.
12475
12476         * posix/tst-sysconf.c (posix_options): Only use
12477         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
12478         _POSIX_SYNCHRONIZED_IO when they are defined
12479         * sysdeps/mach/hurd/bits/posix_opt.h:
12480         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
12481         (_XOPEN_REALTIME): Undefine macro.
12482         (_XOPEN_REALTIME_THREADS): Undefine macro.
12483         (_XOPEN_SHM): Undefine macro.
12484         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
12485         macro to -1.
12486         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
12487         macro to -1.
12488         (_POSIX_ASYNC_IO): Undefine macro.
12489         (_POSIX_PRIORITIZED_IO): Undefine macro.
12490         (_POSIX_SPIN_LOCKS): Define macro to -1.
12491
12492         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
12493         SA_NODEFER, SA_RESETHAND.
12494         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
12495         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
12496         F_DUPFD_CLOEXEC.
12497
12498 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12499
12500         * elf/Makefile (pldd-modules): Define unconditionally.
12501
12502 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12503
12504         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
12505
12506 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12507
12508         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
12509         Return ENOENT when name is empty.
12510         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
12511
12512 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12513
12514         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
12515
12516         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
12517
12518 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12519
12520         Fix mlock in all cases except non-readable pages.
12521         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
12522         instead of VM_PROT_ALL as parameter to __vm_wire function.
12523
12524         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
12525         (__mkdir): When path is `/', just fail with EEXIST.
12526         * sysdeps/mach/hurd/mkdirat.c: Likewise.
12527
12528 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12529
12530         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
12531         <sys/uio.h> (for writev).
12532         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
12533         and <sys/param.h> (for MIN).
12534
12535 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12536
12537         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
12538         REQUESTED_TIME.  Properly set the remaining time and return EINTR
12539         if interrupted.
12540
12541 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12542
12543         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
12544         Depend on against $(link-rpcuserlibs).
12545
12546 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12547
12548         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
12549         (__libc_stack_end): Do not use attribute_relro.
12550         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
12551         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
12552         to libthread-provided value.
12553         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
12554         attribute_relro.
12555
12556 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12557
12558         [BZ #3748]
12559         * bits/libc-lock.h (__libc_once_get): New macro.
12560         * sysdeps/mach/bits/libc-lock.h: Likewise.
12561         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
12562         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
12563         instead of using implementation details.
12564
12565         * libio/fileops.c: Unconditionally include <kernel-features.h>.
12566         * libio/freopen.c: Likewise.
12567         * libio/freopen64.c: Likewise.
12568         * misc/syslog.c: Likewise.
12569         * nscd/connections.c: Likewise.
12570         * nscd/netgroupcache.c: Likewise.
12571         * sysdeps/posix/getcwd.c: Likewise.
12572
12573 2012-05-10  Roland McGrath  <roland@hack.frob.com>
12574
12575         * math/w_ilogbf.c: Add #include <limits.h>.
12576
12577 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12578
12579         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
12580         path instead of returning without unlocking.
12581
12582         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
12583         immediate-write ioctls.
12584         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
12585
12586 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12587
12588         * sysdeps/mach/hurd/i386/init-first.c (init): Use
12589         __builtin_frame_address instead of making assumptions about the
12590         location of the return address relative to DATA.  Force early load of
12591         the return address.
12592         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
12593         __builtin_frame_address.
12594
12595         dup3 for GNU Hurd.
12596         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
12597         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
12598         implement dup3 and do some further code clean-ups.
12599         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
12600         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
12601
12602 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12603
12604         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
12605
12606         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
12607         HURD_CRITICAL_END around holding _hurd_dtable_lock.
12608         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
12609         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
12610         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
12611         d->port.lock.
12612
12613         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
12614         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
12615         when handler == SIG_ERR, not when handler != SIG_ERR.
12616
12617 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12618
12619         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
12620         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
12621         definitions.
12622
12623         accept4 for GNU Hurd.
12624         * include/sys/socket.h (__libc_accept4): New prototype.
12625         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
12626         to implement __libc_accept4.
12627         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
12628         __libc_accept4.
12629         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
12630
12631         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
12632         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
12633         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
12634         signal-defines.sym.
12635
12636 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12637
12638         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
12639
12640 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12641
12642         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
12643         assertion on O_CLOEXEC flag.
12644         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
12645         * hurd/intern-fd.c: Likewise.
12646         * hurd/port2fd.c: Likewise.
12647
12648 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12649
12650         [BZ #3906]
12651         * bits/in.h (IPV6_PKTINFO): Define new macro.
12652         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
12653
12654 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12655
12656         [BZ #13954]
12657         [BZ #13955]
12658         [BZ #13956]
12659         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
12660         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12661         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
12662         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12663         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12664         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12665         * math/libm-test.inc (logb_test) : Additional logb tests.
12666
12667 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
12668             Andreas Jaeger  <aj@suse.de>
12669
12670         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
12671         * configure: Regenerated.
12672         * config.h.in (LINK_OBSOLETE_RPC): New macro.
12673         * config.make.in (link-obsolete-rpc): New substituted variable.
12674         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
12675         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
12676         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
12677         (shared-only-routines): Don't set it under [link-obsolete-rpc],
12678         so that libc.a contains the symbols.
12679         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
12680         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
12681         * sunrpc/auth_none.c: Likewise.
12682         * sunrpc/auth_unix.c: Likewise.
12683         * sunrpc/authdes_prot.c: Likewise.
12684         * sunrpc/authuxprot.c: Likewise.
12685         * sunrpc/clnt_gen.c: Likewise.
12686         * sunrpc/clnt_perr.c: Likewise.
12687         * sunrpc/clnt_raw.c: Likewise.
12688         * sunrpc/clnt_simp.c: Likewise.
12689         * sunrpc/clnt_tcp.c: Likewise.
12690         * sunrpc/clnt_udp.c: Likewise.
12691         * sunrpc/clnt_unix.c: Likewise.
12692         * sunrpc/des_crypt.c: Likewise.
12693         * sunrpc/des_soft.c: Likewise.
12694         * sunrpc/get_myaddr.c: Likewise.
12695         * sunrpc/key_call.c: Likewise.
12696         * sunrpc/key_prot.c: Likewise.
12697         * sunrpc/netname.c: Likewise.
12698         * sunrpc/pm_getmaps.c: Likewise.
12699         * sunrpc/pm_getport.c: Likewise.
12700         * sunrpc/pmap_clnt.c: Likewise.
12701         * sunrpc/pmap_prot.c: Likewise.
12702         * sunrpc/pmap_prot2.c: Likewise.
12703         * sunrpc/pmap_rmt.c: Likewise.
12704         * sunrpc/publickey.c: Likewise.
12705         * sunrpc/rpc_cmsg.c: Likewise.
12706         * sunrpc/rpc_common.c: Likewise.
12707         * sunrpc/rpc_dtable.c: Likewise.
12708         * sunrpc/rpc_prot.c: Likewise.
12709         * sunrpc/rpc_thread.c: Likewise.
12710         * sunrpc/rtime.c: Likewise.
12711         * sunrpc/svc.c: Likewise.
12712         * sunrpc/svc_auth.c: Likewise.
12713         * sunrpc/svc_raw.c: Likewise.
12714         * sunrpc/svc_run.c: Likewise.
12715         * sunrpc/svc_tcp.c: Likewise.
12716         * sunrpc/svc_udp.c: Likewise.
12717         * sunrpc/svc_unix.c: Likewise.
12718         * sunrpc/svcauth_des.c: Likewise.
12719         * sunrpc/xcrypt.c: Likewise.
12720         * sunrpc/xdr.c: Likewise.
12721         * sunrpc/xdr_array.c: Likewise.
12722         * sunrpc/xdr_float.c: Likewise.
12723         * sunrpc/xdr_intXX_t.c: Likewise.
12724         * sunrpc/xdr_mem.c: Likewise.
12725         * sunrpc/xdr_rec.c: Likewise.
12726         * sunrpc/xdr_ref.c: Likewise.
12727         * sunrpc/xdr_sizeof.c: Likewise.
12728         * sunrpc/xdr_stdio.c: Likewise.
12729
12730 2012-05-10  Roland McGrath  <roland@hack.frob.com>
12731
12732         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
12733         change.  Update copyright years.
12734
12735 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
12736
12737         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
12738
12739 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
12740             Joseph Myers  <joseph@codesourcery.com>
12741             Paul Pluzhnikov  <ppluzhnikov@google.com>
12742
12743         [BZ #14012]
12744         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
12745         requiring rpcgen.
12746         [cross-compiling] (extra-libs): Likewise.
12747         [cross-compiling] (extra-libs-others): Likewise.
12748         [cross-compiling] (librpcsvc-routines): Likewise.
12749         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
12750         [cross-compiling] (omit-deps): Likewise.
12751         (sunrpc-CPPFLAGS): New variable.
12752         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
12753         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
12754         (cross-rpcgen-objs): New variable.
12755         (extra-objs): Append $(cross-rpcgen-objs).
12756         ($(cross-rpcgen-objs)): New rule.
12757         ($(objpfx)cross-rpcgen): Likewise.
12758         (rpcgen-cmd): Define to use $(built-program-file).  Expand
12759         comment.
12760         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
12761         ($(objpfx)x%.stmp): Likewise.
12762         * sunrpc/proto.h [IS_IN_build] (_): Define.
12763         [IS_IN_build] (_libc_intl_domainname): Likewise.
12764
12765 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12766
12767         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
12768         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
12769         and R_X86_64_TPOFF64.
12770
12771 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
12772
12773         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
12774         sysdeps/unix/sysv/syscalls.list.
12775         (stime): Likewise.
12776         (utime): Likewise.
12777         * sysdeps/unix/sysv/syscalls.list: Remove file.
12778
12779 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
12780
12781         [BZ #3440]
12782         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
12783         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
12784         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
12785         (__LC_IDENTIFICATION): Make these macros useful in #if
12786         expressions, as required by C99.
12787
12788 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
12789
12790         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
12791         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
12792         after this.
12793
12794 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12795
12796         * stdlib/longlong.h: Updated from GCC.
12797
12798 2012-05-09  Andreas Jaeger  <aj@suse.de>
12799
12800         * nscd/nscd.c (run_modes): Make named enum, reorder so that
12801         default is first entry.
12802         (run_mode): Set type.
12803         (main): Remove informal message about syslog.
12804         (options): Fix typo.
12805
12806         [BZ #14053]
12807         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
12808         to asm.
12809         (lrint): Likewise.
12810         (llrintf): Likewise.
12811         (llrint): Likewise.
12812         (rint): Likewise.
12813         (rintf): Likewise.
12814         (nearbyint): Likewise.
12815         (nearbyintf): Likewise.
12816
12817 2012-05-09  Andreas Jaeger  <aj@suse.de>
12818             Pedro Alves  <palves@redhat.com>
12819
12820         * nscd/nscd.c (run_mode): Use enum.
12821         (main): Cleanup coding style issue.
12822
12823 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
12824             Andreas Jaeger  <aj@suse.de>
12825
12826         * nscd/nscd.c (go_background): Replaced with...
12827         (run_mode): ... this.
12828         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
12829         (options): Add -F --foreground.
12830         (main): Implement it.
12831         (parse_opt): Parse it.
12832
12833 2012-05-09  Andreas Jaeger  <aj@suse.de>
12834
12835         [BZ #14083]
12836         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
12837         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
12838         -Wconversion warning.
12839         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
12840         Likewise.
12841
12842 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
12843
12844         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
12845         == 0.
12846         (LC_ALL): Use macro-int-constant.
12847         (LC_COLLATE): Likewise.
12848         (LC_CTYPE): Likewise.
12849         (LC_MESSAGES): Likewise.
12850         (LC_MONETARY): Likewise.
12851         (LC_NUMERIC): Likewise.
12852         (LC_TIME): Likewise.
12853         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
12854         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12855         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12856         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
12857         Specify type.
12858         [C99-based standards] (float_t): Expect type.
12859         [C99-based standards] (double_t): Expect type.
12860         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
12861         type.
12862         [C99-based standards] (HUGE_VALL): Likewise.
12863         [C99-based standards] (INFINITY): Likewise.
12864         [C99-based standards] (NAN): Likewise.
12865         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
12866         [C99-based standards] (FP_NAN): Likewise.
12867         [C99-based standards] (FP_NORMAL): Likewise.
12868         [C99-based standards] (FP_SUBNORMAL): Likewise.
12869         [C99-based standards] (FP_ZERO): Likewise.
12870         [C99-based standards] (FP_FAST_FMA): Use
12871         optional-macro-int-constant.  Specify type.  Require == 1.
12872         [C99-based standards] (FP_FAST_FMAF): Likewise.
12873         [C99-based standards] (FP_FAST_FMAL): Likewise.
12874         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
12875         [C99-based standards] (FP_ILOGBNAN): Likewise.
12876         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
12877         Specify type.
12878         [C99-based standards] (MATH_ERREXCEPT): Likewise.
12879         [C99-based standards] (math_errhandling): Specify type.
12880         [ISO99 || ISO11] (signgam): Do not allow.
12881         [non-C99-based standards] (copysignf): Do not allow.
12882         [non-C99-based standards] (exp2f): Likewise.
12883         [non-C99-based standards] (log2f): Likewise.
12884         [non-C99-based standards] (modff): Allow.
12885         [non-C99-based standards] (erff): Do not allow.
12886         [non-C99-based standards] (erfcf): Likewise.
12887         [non-C99-based standards] (gammaf): Likewise.
12888         [non-C99-based standards] (hypotf): Likewise.
12889         [non-C99-based standards] (j0f): Likewise.
12890         [non-C99-based standards] (j1f): Likewise.
12891         [non-C99-based standards] (jnf): Likewise.
12892         [non-C99-based standards] (lgammaf): Likewise.
12893         [non-C99-based standards] (tgammaf): Likewise.
12894         [non-C99-based standards] (y0f): Likewise.
12895         [non-C99-based standards] (y1f): Likewise.
12896         [non-C99-based standards] (ynf): Likewise.
12897         [non-C99-based standards] (isnanf): Likewise.
12898         [non-C99-based standards] (acoshf): Likewise.
12899         [non-C99-based standards] (asinhf): Likewise.
12900         [non-C99-based standards] (atanhf): Likewise.
12901         [non-C99-based standards] (cbrtf): Likewise.
12902         [non-C99-based standards] (expm1f): Likewise.
12903         [non-C99-based standards] (ilogbf): Likewise.
12904         [non-C99-based standards] (log1pf): Likewise.
12905         [non-C99-based standards] (logbf): Likewise.
12906         [non-C99-based standards] (nextafterf): Likewise.
12907         [non-C99-based standards] (remainderf): Likewise.
12908         [non-C99-based standards] (rintf): Likewise.
12909         [non-C99-based standards] (scalbf): Likewise.
12910         [non-C99-based standards] (copysignl): Likewise.
12911         [non-C99-based standards] (exp2l): Likewise.
12912         [non-C99-based standards] (log2l): Likewise.
12913         [non-C99-based standards] (modfl): Allow.
12914         [non-C99-based standards] (erfl): Do not allow.
12915         [non-C99-based standards] (erfcl): Likewise.
12916         [non-C99-based standards] (gammal): Likewise.
12917         [non-C99-based standards] (hypotl): Likewise.
12918         [non-C99-based standards] (j0l): Likewise.
12919         [non-C99-based standards] (j1l): Likewise.
12920         [non-C99-based standards] (jnl): Likewise.
12921         [non-C99-based standards] (lgammal): Likewise.
12922         [non-C99-based standards] (tgammal): Likewise.
12923         [non-C99-based standards] (y0l): Likewise.
12924         [non-C99-based standards] (y1l): Likewise.
12925         [non-C99-based standards] (ynl): Likewise.
12926         [non-C99-based standards] (isnanl): Likewise.
12927         [non-C99-based standards] (acoshl): Likewise.
12928         [non-C99-based standards] (asinhl): Likewise.
12929         [non-C99-based standards] (atanhl): Likewise.
12930         [non-C99-based standards] (cbrtl): Likewise.
12931         [non-C99-based standards] (expm1l): Likewise.
12932         [non-C99-based standards] (ilogbl): Likewise.
12933         [non-C99-based standards] (log1pl): Likewise.
12934         [non-C99-based standards] (logbl): Likewise.
12935         [non-C99-based standards] (nextafterl): Likewise.
12936         [non-C99-based standards] (remainderl): Likewise.
12937         [non-C99-based standards] (rintl): Likewise.
12938         [non-C99-based standards] (scalbl): Likewise.
12939         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12940         [non-C99-based standards] (FP_*): Do not allow.
12941         [C99-based standards] (FP_*): Change to
12942         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12943         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12944         allow.
12945         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
12946         (SIG_ERR): Likewise.
12947         [X/Open-based standards] (SIG_HOLD): Likewise.
12948         (SIG_IGN): Likewise.
12949         (SIGABRT): Use macro-int-constant.  Specify type.  Require
12950         positive value.
12951         (SIGFPE): Likewise.
12952         (SIGILL): Likewise.
12953         (SIGINT): Likewise.
12954         (SIGSEGV): Likewise.
12955         (SIGTER): Likewise.
12956         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
12957         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
12958         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
12959         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
12960         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
12961         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
12962         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
12963         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
12964         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
12965         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
12966         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
12967         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
12968         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
12969         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
12970         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
12971         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
12972         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
12973         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
12974         [X/Open-based standards] (SIGTRAP): Likewise.
12975         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
12976         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
12977         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
12978         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
12979         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12980         allow.
12981
12982 2012-05-08  Ian Wienand  <ianw@vmware.com>
12983
12984         [BZ #14080]
12985         * time/tzset.c (__tzset_parse_tz): Update default rules for
12986         daylight time changes in the Energy Policy Act of 2005.
12987
12988 2012-05-09  Andreas Jaeger  <aj@suse.de>
12989
12990         [BZ #13983]
12991         * elf/ldconfig.c (parse_conf): Change string to make clear that
12992         ldconfig only issued a warning if ld.so.conf does not exist.
12993
12994 2012-05-08  David S. Miller  <davem@davemloft.net>
12995
12996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
12997         movxtod instead of popping the value on the stack.
12998
12999         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13000
13001 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
13002
13003         * config.h.in: Add HAVE_ARM_PCS_VFP.
13004
13005 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
13006
13007         [BZ #13979]
13008         * include/features.h: Warn if user requests __FORTIFY_SOURCE
13009         checking but the checks are disabled for any reason.
13010
13011 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13012
13013         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
13014         and ELF64_R_TYPE with ELFW(R_TYPE).
13015
13016 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
13017
13018         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
13019         (ulimit): Likewise.
13020
13021         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
13022         (settimeofday): Likewise.
13023
13024 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
13025
13026         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
13027         a struct th_u2 inside the union, and move tu_block/tu_code into
13028         a new th_u3 union of tu_block/tu_code inside of that.  Move
13029         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
13030         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
13031         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
13032         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
13033         (th_stuff): Change to th_u1.tu_stuff.
13034         (th_data): Define.
13035         (th_msg): Change to th_u1.th_u2.tu_data.
13036
13037 2012-05-07  David S. Miller  <davem@davemloft.net>
13038
13039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13040
13041         [BZ #14074]
13042         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
13043         (SETUP_PIC_REG): Use it.
13044         (SETUP_PIC_REG_LEAF): Use it.
13045
13046 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
13047
13048         [BZ #13885]
13049         [BZ #13923]
13050         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13051         USE_AS_EXPM1L.
13052         (EXPL_FINITE): Likewise.
13053         (FLDLOG): Likewise.
13054         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13055         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13056         e_expl.S.
13057         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13058         USE_AS_EXPM1L.
13059         (EXPL_FINITE): Likewise.
13060         (FLDLOG): Likewise.
13061         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13062         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13063         e_expl.S.
13064         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
13065         test of -max_value argument for long double.
13066         * sysdeps/i386/fpu/libm-test-ulps: Update.
13067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13068
13069 2012-05-06  David S. Miller  <davem@davemloft.net>
13070
13071         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
13072         quad soft-float symbols whose references which are compiler
13073         generated.
13074         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13075
13076 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
13077
13078         [BZ #13884]
13079         [BZ #13914]
13080         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13081         USE_AS_EXP10L.
13082         (EXPL_FINITE): Likewise.
13083         (FLDLOG): Likewise.
13084         (c0): Likewise.
13085         (c1): Likewise.
13086         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13087         Adjust comments for base varying.
13088         (__expl_finite): Change alias to EXPL_FINITE.
13089         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
13090         e_expl.S.
13091         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
13092         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
13093         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13094         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
13095         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13096         USE_AS_EXP10L.
13097         (EXPL_FINITE): Likewise.
13098         (FLDLOG): Likewise.
13099         (c0): Likewise.
13100         (c1): Likewise.
13101         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13102         Adjust comments for base varying.
13103         (__expl_finite): Change alias to EXPL_FINITE.
13104         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
13105         tests for bugs.
13106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13107
13108         [BZ #14064]
13109         * math/libm-test.inc (check_float_internal): Correct ulp
13110         calculation for subnormal expected results.
13111
13112 2012-05-06  Andreas Jaeger  <aj@suse.de>
13113
13114         * Makeconfig (+math-flags): New, set to -frounding-math.
13115         (+cflags): Add +math-flags so that all of glibc gets compiled with
13116         it.
13117
13118         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
13119
13120 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
13121
13122         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
13123         Disable one test.
13124
13125         [BZ #13787]
13126         [BZ #13922]
13127         [BZ #14036]
13128         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
13129         (__ieee754_expl): Allow for and saturate large arguments.
13130         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
13131         (u_threshold): Likewise.
13132         (__exp): Call __ieee754_exp before checking for overflow and
13133         underflow.
13134         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
13135         (u_threshold): Likewise.
13136         (__expf): Call __ieee754_expf before checking for overflow and
13137         underflow.
13138         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
13139         (u_threshold): Likewise.
13140         (__expl): Call __ieee754_expl before checking for overflow and
13141         underflow.
13142         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
13143         (__ieee754_expl): Allow for and saturate large arguments.
13144         * math/libm-test.inc (exp_test): Add another test.  Do not allow
13145         missing overflow exception on overflow.
13146         (expm1_test): Do not allow missing overflow exception on overflow.
13147
13148         * sysdeps/i386/fpu/e_expl.c: Move to ...
13149         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
13150         rather than using inline asm.
13151         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
13152         * sysdeps/x86_64/fpu/e_expl.S: Copy from
13153         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
13154
13155         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
13156         (nice): Likewise.
13157         (poll): Likewise.
13158         (signal): Likewise.
13159         (time): Likewise.
13160         (times): Likewise.
13161
13162 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13163
13164         * sysdeps/unix/syscalls.list (adjtime): Add entry from
13165         sysdeps/unix/common/syscalls.list.
13166         (fchmod): Likewise.
13167         (fchown): Likewise.
13168         (ftruncate): Likewise.
13169         (getrusage): Likewise.
13170         (gettimeofday): Likewise.
13171         (setpgid): Likewise.
13172         (setregid): Likewise.
13173         (setreuid): Likewise.
13174         (sigaction): Likewise.
13175         (truncate): Likewise.
13176         (vhangup): Likewise.
13177         * sysdeps/unix/common/syscalls.list: Remove file.
13178         * sysdeps/unix/bsd/Implies: Don't include unix/common.
13179         * sysdeps/unix/sysv/linux/Implies: Likewise.
13180
13181 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13182
13183         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
13184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
13185         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
13186         Moved to ...
13187         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
13188         Here.
13189         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
13190         to ...
13191         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
13192         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
13193         to ...
13194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
13195         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
13196         to ...
13197         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
13198         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
13199         to ...
13200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
13201         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
13202         to ...
13203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
13204         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
13205         to ...
13206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
13207         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
13208         to ...
13209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13210         Here.
13211         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
13212         to ...
13213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
13214         Here.
13215         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
13216         to ...
13217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
13218         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
13219         Moved to ...
13220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
13221         Here.
13222         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
13223         to ...
13224         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
13225
13226 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13227
13228         * sysdeps/unix/common/bits/dirent.h: Remove file.
13229         * sysdeps/unix/common/bits/fcntl.h: Likewise.
13230
13231         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
13232         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
13233         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
13234         * sysdeps/unix/bsd/isatty.c: Likewise.
13235         * sysdeps/unix/bsd/tcdrain.c: Likewise.
13236         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
13237         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
13238
13239 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13240
13241         [BZ #13563]
13242         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
13243         long double comparison inaccuracies.
13244         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13245         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13246
13247 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
13248
13249         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
13250         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
13251
13252 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13253
13254         [BZ #14049]
13255         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
13256         nonzero digits before rounding a hex value.
13257         * stdlib/tst-strtod.c (tests): Add another test.
13258
13259 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13260
13261         * sysdeps/s390/fpu/libm-test-ulps: Update.
13262
13263 2012-05-03  Andreas Jaeger  <aj@suse.de>
13264
13265         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
13266         does not get optimized out.
13267         (malloc_opt_barrier): New.
13268
13269 2012-05-03  Andreas Jaeger  <aj@suse.de>
13270             Roland McGrath  <roland@hack.frob.com>
13271
13272         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
13273         intermediate file deletion.
13274         (generated): Add .symlist files.
13275
13276 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
13277
13278         [BZ #13775]
13279         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
13280         Redirect under this condition.
13281         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13282         [__USE_GNU] (__dprintf_chk): Not under this condition.
13283         [__USE_GNU] (__vdprintf_chk): Likewise.
13284         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
13285         under this condition.
13286         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13287         [__USE_XOPEN2K8] (dprintf): Define under this condition.
13288         [__USE_XOPEN2K8] (vdprintf): Likewise.
13289         [__USE_GNU] (__dprintf_chk): Not under this condition.
13290         [__USE_GNU] (__vdprintf_chk): Likewise.
13291         [__USE_GNU] (dprintf): Likewise.
13292         [__USE_GNU] (vdprintf): Likewise.
13293
13294 2012-05-03  Roland McGrath  <roland@hack.frob.com>
13295
13296         * elf/Makefile (common-generated): Set this instead of generated for
13297         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
13298         $(all-built-dso)-derived lists.
13299
13300 2012-05-03  Andreas Jaeger  <aj@suse.de>
13301
13302         * sysdeps/i386/fpu/libm-test-ulps: Update.
13303
13304         * FAQ: Removed.
13305         * FAQ.in: Likewise.
13306         * scripts/gen-FAQ.pl: Likewise.
13307         * manual/install.texi (Installation): Point to online location of
13308         FAQ.
13309         * Makefile (files-for-dist): Remove FAQ.
13310         (FAQ): Remove.
13311
13312 2012-05-02  Allan McRae  <allan@archlinux.org>
13313
13314         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
13315         (LDFLAGS-reldepmod5.so): Likewise.
13316         (LDFLAGS-reldep6mod1.so): Likewise.
13317         (LDFLAGS-reldep6mod4.so): Likewise.
13318         (LDFLAGS-reldep8mod3.so): Likewise.
13319         (LDFLAGS-unload4mod1.so): Likewise.
13320         (LDFLAGS-unload4mod2.so): Likewise.
13321         (LDFLAGS-tst-initorder): Likewise.
13322         (LDFLAGS-tst-initordera2.so): Likewise.
13323         (LDFLAGS-tst-initordera3.so): Likewise.
13324         (LDFLAGS-tst-initordera4.so): Likewise.
13325         (LDFLAGS-tst-initorderb2.so): Likewise.
13326         (LDFLAGS-noload): Likewise.
13327         (LDFLAGS-next): Likewise.
13328         (LDFLAGS-order2mod1.so): Likewise.
13329         (LDFLAGS-order2mod2.so): Likewise.
13330         (LDFLAGS-tst-initorder2): Likewise.
13331         (LDFLAGS-tst-initorder2a.so): Likewise.
13332         (LDFLAGS-tst-initorder2b.so): Likewise.
13333         (LDFLAGS-tst-initorder2c.so): Likewise.
13334         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
13335
13336 2012-05-02  David S. Miller  <davem@davemloft.net>
13337
13338         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13339
13340 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
13341
13342         [BZ #14055]
13343         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
13344
13345 2012-05-02  Andreas Jaeger  <aj@suse.de>
13346
13347         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
13348         since we manipulate rounding mode.
13349         (CPPFLAGS-test-idouble.c): Likewise.
13350         (CPPFLAGS-test-ifloat.c): Likewise.
13351         (CFLAGS-test-ldouble.c): Likewise.
13352         (CFLAGS-test-double.c): Likewise.
13353         (CFLAGS-test-float.c): Likewise.
13354         (CFLAGS-test-misc.c): Likewise.
13355         (CFLAGS-test-test-fenv.c): Likewise.
13356
13357 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13358
13359         [BZ #2550]
13360         [BZ #2570]
13361         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
13362         comparisons to determine direction to adjust input.
13363
13364 2012-05-01  Roland McGrath  <roland@hack.frob.com>
13365
13366         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
13367         output to the target.
13368
13369         * scripts/localplt.awk: New file.
13370         * elf/Makefile ($(objpfx)check-localplt): Target removed.
13371         (check-localplt-CFLAGS): Variable removed.
13372         ($(all-built-dso:=.jmprel)): New static pattern rule.
13373         (generated): Add those targets.
13374         (localplt-built-dso): New variable.
13375         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
13376
13377         * elf/check-localplt.c: File removed.
13378
13379         * scripts/check-execstack.awk: New file.
13380         * elf/Makefile ($(objpfx)check-execstack): Target removed.
13381         (check-execstack-CFLAGS): Variable removed.
13382         ($(objpfx)check-execstack.h): Target removed.
13383         ($(objpfx)execstack-default): New target.
13384         (generated): Add that instead of check-execstack.h.
13385         ($(all-built-dso:=.phdr)): New static pattern rule.
13386         (generated): Add those targets.
13387         * elf/check-execstack.c: File removed.
13388
13389         * scripts/check-textrel.awk: New file.
13390         * elf/Makefile ($(objpfx)check-textrel): Target removed.
13391         (check-textrel-CFLAGS): Variable removed.
13392         (all-built-dso): Use := to define.o
13393         ($(all-built-dso:=.dyn)): New static pattern rule.
13394         (generated): Add those targets.
13395         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
13396         * config.make.in (READELF): New substituted variable.
13397         * elf/check-textrel.c: File removed.
13398
13399 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13400
13401         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13402         allow.
13403         * conform/data/ctype.h-data [C99-based standards] (isblank):
13404         Expect function.
13405         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
13406         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
13407         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13408         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
13409         Specify type.  Require positive value.
13410         (EILSEQ): Likewise.
13411         (ERANGE): Likewise.
13412         [ISO || POSIX] (EILSEQ): Do not expect.
13413         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
13414         Specify type.  Require positive value.
13415         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
13416         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
13417         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
13418         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
13419         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
13420         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
13421         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
13422         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
13423         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
13424         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
13425         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
13426         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
13427         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
13428         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
13429         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
13430         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
13431         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
13432         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
13433         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
13434         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
13435         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
13436         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
13437         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
13438         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
13439         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
13440         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
13441         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
13442         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
13443         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
13444         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
13445         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
13446         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
13447         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
13448         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
13449         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
13450         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
13451         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
13452         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
13453         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
13454         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
13455         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
13456         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
13457         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
13458         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
13459         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
13460         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
13461         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
13462         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
13463         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
13464         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
13465         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
13466         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
13467         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
13468         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
13469         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
13470         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
13471         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
13472         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
13473         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
13474         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
13475         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
13476         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
13477         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
13478         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
13479         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
13480         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
13481         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
13482         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
13483         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
13484         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
13485         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
13486         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
13487         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
13488         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
13489         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
13490         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
13491         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
13492         Require >= 2.
13493         (FLT_ROUNDS): Expect as macro, not constant.
13494         (FLT_MANT_DIG): Use macro-int-constant.
13495         (DBL_MANT_DIG): Likewise.
13496         (LDBL_MANT_DIG): Likewise.
13497         (FLT_DIG): Likewise.
13498         (DBL_DIG): Likewise.
13499         (LDBL_DIG): Likewise.
13500         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
13501         (DBL_MIN_EXP): Likewise.
13502         (LDBL_MIN_EXP): Likewise.
13503         (FLT_MAX_EXP): Use macro-int-constant.
13504         (DBL_MAX_EXP): Likewise.
13505         (LDBL_MAX_EXP): Likewise.
13506         (FLT_MAX_10_EXP): Likewise.
13507         (DBL_MAX_10_EXP): Likewise.
13508         (LDBL_MAX_10_EXP): Likewise.
13509         (FLT_MAX): Use macro-constant.
13510         (DBL_MAX): Likewise.
13511         (LDBL_MAX): Likewise.
13512         (FLT_EPSILON): Use macro-constant.  Give upper bound.
13513         (DBL_EPSILON): Likewise.
13514         (LDBL_EPSILON): Likewise.
13515         (FLT_MIN): Likewise.
13516         (DBL_MIN): Likewise.
13517         (LDBL_MIN): Likewise.
13518         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
13519         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
13520         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
13521         [ISO11] (FLT_HAS_SUBNORM): Likewise.
13522         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
13523         [ISO11] (DBL_DECIMAL_DIG): Likewise.
13524         [ISO11] (FLT_DECIMAL_DIG): Likewise.
13525         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
13526         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
13527         [ISO11] (FLT_TRUE_MIN): Likewise.
13528         [ISO11] (LDBL_TRUE_MIN): Likewise.
13529         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13530         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
13531         (SCHAR_MIN): Use macro-int-constant.  Specify type.
13532         (SCHAR_MAX): Likewise.
13533         (UCHAR_MAX): Likewise.
13534         (CHAR_MIN): Likewise.
13535         (CHAR_MAX): Likewise.
13536         (MB_LEN_MAX): Use macro-int-constant.
13537         (SHRT_MIN): Use macro-int-constant.  Specify type.
13538         (SHRT_MAX): Likewise.
13539         (USHRT_MAX): Likewise.
13540         (INT_MAX): Likewise.
13541         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
13542         bound negative.
13543         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13544         bound with "U".
13545         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13546         bound with "L".
13547         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
13548         bound negative.  Suffix upper bound with "L".
13549         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13550         bound with "UL".
13551         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
13552         Specify type.
13553         [C99-based standards] (LLONG_MAX): Likewise.
13554         [C99-based standards] (ULLONG_MAX): Likewise.
13555         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
13556         == 0.
13557         [ISO11] (max_align_t): Require type.
13558         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13559
13560         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
13561         from $CFLAGS, without defining away __attribute__ calls.
13562         (checknamespace): Use $CFLAGS_namespace.
13563
13564         * conform/conformtest.pl (@keywords): Only include C99 keywords
13565         for standards based on C99 or C11.
13566
13567         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
13568         Disable tests.
13569         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
13570         UNIX98]: Likewise.
13571
13572         * conform/conformtest.pl: Handle "macro-int-constant" and test for
13573         usability of symbols in #if.
13574
13575         * conform/conformtest.pl: If macro or constant types start
13576         "promoted:", expect the symbol to be of the following type
13577         promoted by the integer promotions.
13578
13579         * conform/conformtest.pl: Parse all "constant" and "macro" lines
13580         in one place.  Also handle "macro-constant".
13581
13582         * conform/conformtest.pl: Only accept expected macro values with
13583         "==".  Parse all "macro" lines in one place.
13584         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
13585
13586         * conform/conformtest.pl: Handle braced types on "constant" lines
13587         instead of handling "typed-constant".
13588         * conform/data/signal.h-data: Use "constant" instead of
13589         "typed-constant".
13590
13591         * conform/conformtest.pl: Handle "optional-" at start of lines in
13592         one place rather than duplicating several cases.  Handle each
13593         format of "macro" line with initial "optional-".
13594
13595         * conform/conformtest.pl: Only accept expected constant or
13596         optional-constant values with "==".  Parse all "constant" lines in
13597         one place.  Parse all "optional-constant" lines in one place.
13598         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
13599         * conform/data/fmtmsg.h-data: Likewise.
13600         * conform/data/netinet/in.h-data: Likewise.
13601         * conform/data/tar.h-data: Likewise.
13602         * conform/data/limits.h-data: Use "==" form on "constant" and
13603         "optional-constant" lines.
13604
13605         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
13606         Use -std=c99 for XOPEN2K.
13607         (@knownproblems): Remove.
13608         (newtoken): Don't check %isknown.
13609
13610         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
13611         Do not expect macro.
13612         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
13613         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
13614         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
13615         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
13616         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
13617         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
13618         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
13619         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
13620         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
13621         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
13622         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
13623         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
13624         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
13625         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
13626         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
13627         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
13628         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
13629         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
13630         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
13631         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
13632         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
13633         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
13634         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
13635         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
13636         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
13637         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
13638         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
13639         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
13640         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
13641         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
13642         [XPG3] (acosh): Likewise.
13643         [XPG3] (asinh): Likewise.
13644         [XPG3] (atanh): Likewise.
13645         [XPG3] (cbrt): Likewise.
13646         [XPG3] (expm1): Likewise.
13647         [XPG3] (ilogb): Likewise.
13648         [XPG3] (log1p): Likewise.
13649         [XPG3] (logb): Likewise.
13650         [XPG3] (nextafter): Likewise.
13651         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
13652         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
13653         [XPG3] (remainder): Likewise.
13654         [XPG3] (rint): Likewise.
13655         [XPG3 || XPG4 || UNIX98] (round): Likewise.
13656         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
13657         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
13658         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
13659         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
13660         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
13661         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
13662         [UNIX98 || XOPEN2K] (scalb): Expect.
13663         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
13664         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
13665         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
13666         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
13667         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
13668         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
13669         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
13670         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
13671         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
13672         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
13673         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
13674         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
13675         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
13676         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
13677         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
13678         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
13679         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
13680         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
13681         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
13682         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
13683         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
13684         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
13685         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
13686         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
13687         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
13688         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
13689         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
13690         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
13691         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
13692         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
13693         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
13694         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
13695         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
13696         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
13697         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
13698         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
13699         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
13700         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
13701         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
13702         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
13703         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
13704         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
13705         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
13706         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
13707         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
13708         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
13709         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
13710         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
13711         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
13712         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
13713         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
13714         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
13715         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
13716         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
13717         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
13718         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
13719         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
13720         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
13721         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
13722         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
13723         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
13724         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
13725         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
13726         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
13727         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
13728         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
13729         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
13730         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
13731         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
13732         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
13733         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
13734         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
13735         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
13736         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
13737         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
13738         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
13739         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
13740         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
13741         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
13742         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
13743         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
13744         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
13745         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
13746         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
13747         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
13748         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
13749         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
13750         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
13751         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
13752         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
13753         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
13754         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
13755         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
13756         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
13757         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
13758         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
13759         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
13760         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
13761         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
13762         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
13763         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
13764         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
13765         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
13766         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
13767         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
13768         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
13769         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
13770         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
13771         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
13772         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
13773         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
13774         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
13775         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
13776         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
13777         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
13778         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
13779         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
13780         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
13781         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
13782         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
13783         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
13784         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
13785         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
13786         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
13787         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
13788         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
13789         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
13790         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
13791         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
13792         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
13793         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
13794         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
13795         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
13796         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
13797         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
13798         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
13799         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
13800
13801         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
13802         _XOPEN_SOURCE_EXTENDED for XPG4.
13803
13804         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
13805
13806         * Makeconfig (localtime): Remove variable.
13807         (inst_localtime-file): Likewise.
13808
13809 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13810
13811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
13812         Update.
13813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13814         Update.
13815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
13816         Update.
13817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
13818         Update.
13819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
13820         Update.
13821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
13822         Update.
13823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13824         Update.
13825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
13826         Update.
13827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13828         Update.
13829
13830 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13831
13832         [BZ #2550]
13833         [BZ #2570]
13834         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
13835         comparisons to determine direction to adjust input.
13836         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
13837         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
13838         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
13839         Likewise.
13840         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
13841         Likewise.
13842         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13843         Likewise.
13844         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
13845         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
13846         Likewise.
13847         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
13848         Likewise.
13849         * math/libm-test.inc (nexttoward_test): Add more tests.
13850
13851 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13852
13853         [BZ #14040]
13854         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
13855         in version GLIBC_2.1, not GLIBC_2.0.
13856         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
13857         Likewise.
13858
13859 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
13860
13861         [BZ #13942]
13862         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
13863         (1 - x) * (1 + x).
13864         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13865         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
13866         * math/libm-test.inc (acos_test): Add more tests.
13867         (asin_test): Likewise.
13868         * sysdeps/i386/fpu/libm-test-ulps: Update.
13869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13870
13871         [BZ #14034]
13872         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
13873         of square root.
13874         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
13875         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13876         * math/libm-test.inc (acos_test_tonearest): New function.
13877         (acos_test_towardzero): Likewise.
13878         (acos_test_downward): Likewise.
13879         (acos_test_upward): Likewise.
13880         (asin_test_tonearest): Likewise.
13881         (asin_test_towardzero): Likewise.
13882         (asin_test_downward): Likewise.
13883         (asin_test_upward): Likewise.
13884         (main): Call the new functions.
13885         * sysdeps/i386/fpu/libm-test-ulps: Update.
13886         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13887
13888         [BZ #13884]
13889         [BZ #13924]
13890         * math/e_exp10.c: Include <float.h>.
13891         (__ieee754_exp10): Handle underflow here rather than multiplying
13892         large negative argument by M_LN10.
13893         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
13894         of __ieee754_expf.
13895         * math/e_exp10l.c: Include <float.h>.
13896         (__ieee754_exp10l): Handle underflow here rather than multiplying
13897         large negative argument by M_LN10l.
13898         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
13899         spurious overflow exception on underflow.
13900
13901 2012-04-29  Marek Polacek  <polacek@redhat.com>
13902
13903         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
13904         (__fortify_function): New macro.
13905         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
13906         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
13907         __extern_always_inline.
13908         * libio/bits/stdio2.h: Likewise.
13909         * libio/bits/stdio.h: Likewise.
13910         * string/string.h: Likewise.
13911         * string/bits/string3.h: Likewise.
13912         * include/stdio.h: Likewise.
13913         * stdlib/bits/stdlib.h: Likewise.
13914         * stdlib/stdlib.h: Likewise.
13915         * rt/bits/mqueue2.h: Likewise.
13916         * rt/mqueue.h: Likewise.
13917         * posix/bits/unistd.h: Likewise.
13918         * posix/unistd.h: Likewise.
13919         * io/bits/poll2.h: Likewise.
13920         * io/bits/fcntl2.h: Likewise.
13921         * io/fcntl.h: Likewise.
13922         * io/sys/poll.h: Likewise.
13923         * misc/bits/syslog.h: Likewise.
13924         * misc/bits/syslog-ldbl.h: Likewise.
13925         * misc/sys/syslog.h: Likewise.
13926         * socket/bits/socket2.h: Likewise.
13927         * socket/sys/socket.h: Likewise.
13928         * debug/tst-chk1.c: Likewise.
13929         * wcsmbs/bits/wchar2.h: Likewise.
13930         * wcsmbs/bits/wchar-ldbl.h: Likewise.
13931         * wcsmbs/wchar.h: Likewise.
13932
13933 2012-04-29  Andreas Jaeger  <aj@suse.de>
13934
13935         * Makerules (tests): Remove enable-check-abi protection.
13936         (check-abi-warn): Remove.
13937         (check-abi-%): Remove check-abi-warn usage.
13938
13939         * configure.in: Remove check-abi configure option.
13940         * configure: Regenerated.
13941         * config.make.in (enable-check-abi): Remove.
13942
13943 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
13944
13945         [BZ #14033]
13946         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
13947         double functions to double *_finite functions.
13948
13949         [BZ #13941]
13950         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
13951         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
13952         LDBL_MIN_EXP.
13953         * stdio-common/Makefile (tests): Add tst-sprintf3.
13954         * stdio-common/tst-sprintf3.c: New file.
13955
13956         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
13957         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
13958
13959 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
13960
13961         * conform/conformtest.pl: Remove duplicate typed-constant
13962         handling.
13963
13964 2012-04-28  David S. Miller  <davem@davemloft.net>
13965
13966         * Makerules (%.abilist): Add vpath on sysdep_dirs.
13967         (check-abi-%): Remove AWK script prerequisite and explicit
13968         abilist directory.
13969         (check-abi): Rewrite to just diff the symlist with the abilist.
13970         (config-tls, config-abi-config): Delete, no longer used.
13971         (update-abi-%): Remove AWK script and explicit abilist directory.
13972         (update-abi): Rewrite to simply compare and conditionally copy the
13973         symlist and the sysdep abilist file.  Remove update-abi-config
13974         checks.
13975         * abilist/ld.abilist: Remove.
13976         * abilist/libBrokenLocale.abilist: Remove.
13977         * abilist/libanl.abilist: Remove.
13978         * abilist/libcrypt.abilist: Remove.
13979         * abilist/libdl.abilist: Remove.
13980         * abilist/librt.abilist: Remove.
13981         * abilist/libthread_db.abilist: Remove.
13982         * abilist/libutil.abilist: Remove.
13983         * scripts/extract-abilist.awk: Remove.
13984         * scripts/merge-abilist.awk: Remove.
13985         * sysdeps/generic/libcidn.abilist: New file.
13986         * sysdeps/generic/libnss_compat.abilist: New file.
13987         * sysdeps/generic/libnss_db.abilist: New file.
13988         * sysdeps/generic/libnss_dns.abilist: New file.
13989         * sysdeps/generic/libnss_files.abilist: New file.
13990         * sysdeps/generic/libnss_hesiod.abilist: New file.
13991         * sysdeps/generic/libnss_nis.abilist: New file.
13992         * sysdeps/generic/libnss_nisplus.abilist: New file.
13993         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
13994         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
13995         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
13996         file.
13997         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
13998         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
13999         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
14000         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
14001         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
14002         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
14003         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
14004         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
14005         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
14006         file.
14007         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
14008         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
14009         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
14010         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
14011         file.
14012         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
14013         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
14014         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
14015         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
14016         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
14017         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
14018         file.
14019         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
14020         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
14021         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
14022         file.
14023         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
14024         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
14025         New file.
14026         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
14027         New file.
14028         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
14029         New file.
14030         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
14031         New file.
14032         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
14033         New file.
14034         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
14035         New file.
14036         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
14037         New file.
14038         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
14039         New file.
14040         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
14041         New file.
14042         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
14043         New file.
14044         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
14045         New file.
14046         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
14047         New file.
14048         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
14049         New file.
14050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
14051         file.
14052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
14053         New file.
14054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
14055         New file.
14056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
14057         file.
14058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
14059         New file.
14060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
14061         New file.
14062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
14063         file.
14064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
14065         New file.
14066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14067         New file.
14068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
14069         New file.
14070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
14071         New file.
14072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
14073         New file.
14074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
14075         New file.
14076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
14077         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
14078         file.
14079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
14080         New file.
14081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
14082         file.
14083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
14084         file.
14085         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
14086         file.
14087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
14088         file.
14089         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
14090         file.
14091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14092         New file.
14093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
14094         file.
14095         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
14096         file.
14097         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
14098         New file.
14099         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
14100         file.
14101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
14102         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
14103         file.
14104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
14105         New file.
14106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
14107         file.
14108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
14109         file.
14110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
14111         file.
14112         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
14113         file.
14114         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
14115         file.
14116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14117         New file.
14118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
14119         file.
14120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
14121         file.
14122         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
14123         New file.
14124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
14125         file.
14126         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
14127         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
14128         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
14129         file.
14130         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
14131         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
14132         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
14133         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
14134         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
14135         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
14136         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
14137         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
14138         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
14139         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
14140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
14141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
14142         file.
14143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
14144         New file.
14145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
14146         file.
14147         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
14148         file.
14149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
14150         file.
14151         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
14152         file.
14153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
14154         file.
14155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14156         New file.
14157         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
14158         New file.
14159         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
14160         file.
14161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
14162         New file.
14163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
14164         file.
14165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
14166         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
14167         file.
14168         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
14169         New file.
14170         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
14171         file.
14172         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
14173         file.
14174         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
14175         file.
14176         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
14177         file.
14178         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
14179         file.
14180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14181         New file.
14182         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
14183         New file.
14184         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
14185         file.
14186         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
14187         New file.
14188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
14189         file.
14190
14191 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14192
14193         * conform/conformtest.pl: Fix typo in handling typed-constant from
14194         allow-header.
14195
14196 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14197
14198         * README: Cut down references to pre-2.6 Linux kernels and
14199         Linuxthreads.  Update lists of configurations in libc and ports
14200         and sort alphabetically.  Say "or newer" with Linux kernel version
14201         requirements.
14202
14203         * config.h.in [IS_IN_build]: Allow compiling without optimization.
14204
14205 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14206
14207         [BZ #887]
14208         * math/libm-test.inc (logb_test_downward): New test to expose
14209         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
14210         rounding mode.
14211
14212 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14213
14214         [BZ #14027]
14215         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
14216         to be done.
14217         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
14218         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
14219
14220 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
14221
14222         * sysdeps/unix/i386/brk.S: Remove file.
14223         * sysdeps/unix/i386/dl-brk.S: Likewise.
14224         * sysdeps/unix/i386/pipe.S: Likewise.
14225         * sysdeps/unix/i386/sigreturn.S: Likewise.
14226         * sysdeps/unix/i386/syscall.S: Likewise.
14227         * sysdeps/unix/i386/vfork.S: Likewise.
14228         * sysdeps/unix/i386/wait.S: Likewise.
14229
14230         * sysdeps/unix/common/tcsendbrk.c: Move to ...
14231         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
14232
14233         * configure.in (arm*-none*): Do not allow without
14234         --enable-hacker-mode.
14235         (netbsd*): Remove case setting base_os.
14236         (386bsd*): Likewise.
14237         (freebsd*): Likewise.
14238         (bsdi*): Likewise.
14239         (osf*): Likewise.
14240         (sunos*): Likewise.
14241         (ultrix*): Likewise.
14242         (newsos*): Likewise.
14243         (dynix*): Likewise.
14244         (*bsd*): Likewise.
14245         (sysv*): Likewise.
14246         (isc*): Likewise.
14247         (esix*): Likewise.
14248         (sco*): Likewise.
14249         (minix*): Likewise.
14250         (irix4*): Likewise.
14251         (irix6*): Likewise.
14252         (solaris[2-9]*): Likewise.
14253         (none): Likewise.
14254         * configure: Regenerated.
14255
14256 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14257
14258         [BZ #11521]
14259         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
14260         overflow or cancellation in calculating denominator.
14261         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
14262         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
14263         down expression to avoid unexpected rounding in newer GCCs.
14264         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
14265
14266 2012-04-26  David S. Miller  <davem@davemloft.net>
14267
14268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
14269         long-double compat symbols.
14270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
14272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
14273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
14274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
14275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
14276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
14277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
14278         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
14279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
14280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
14281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
14282         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14283
14284 2012-04-25  David S. Miller  <davem@davemloft.net>
14285
14286         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
14287         HWCAP_* values only after the memory barriers have been defined.
14288         (atomic_full_barrier): Define.
14289         (atomic_read_barrier): Define.
14290         (atomic_write_barrier): Define.
14291
14292 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14293
14294         * shlib-versions: Add libgcc_s version information.
14295         * sysdeps/generic/libgcc_s.h: Remove.
14296         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
14297         libgcc_s.h.
14298         * sysdeps/gnu/unwind-resume.c: Likewise.
14299         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
14300
14301 2012-04-25  David S. Miller  <davem@davemloft.net>
14302
14303         * sysdeps/unix/sparc/brk.S: Delete.
14304         * sysdeps/unix/sparc/dl-brk.S: Delete.
14305         * sysdeps/unix/sparc/pipe.S: Delete.
14306         * sysdeps/unix/sparc/sysdep.S: Delete.
14307         * sysdeps/unix/sparc/sysdep.h: Delete.
14308         * sysdeps/unix/sparc/vfork.S: Delete.
14309         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
14310         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
14311         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
14312         ret_ERRVAL, r0, r1, MOVE): Define.
14313         (JUMPTARGET): Remove.
14314         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
14315         sysdeps/unix/sparc/sysdep.h
14316         (ENTRY, END): Remove.
14317         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14318
14319 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
14320
14321         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
14322         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
14323         -DIS_IN_build.
14324
14325         * timezone/README: Update upstream location and email address for
14326         tzcode and tzdata.
14327         * timezone/zdump.c: Update from tzcode 2012b.
14328         * timezone/zic.c: Likewise.
14329
14330         * configure.in (libc_cv_as_needed): Remove test.
14331         * configure: Regenerated.
14332         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
14333         conditional definition.
14334         [$(have-as-needed) != yes] (no-as-needed): Likewise.
14335         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
14336         * config.make.in (have-as-needed): Remove variable.
14337
14338 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14339             Paul Pluzhnikov  <ppluzhnikov@google.com>
14340
14341         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
14342         strings correctly.
14343
14344 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
14345
14346         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
14347         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
14348         * sysdeps/sh/strlen.S: Likewise.
14349
14350 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14351
14352         * sysdeps/unix/fork.S: Remove file.
14353         * sysdeps/unix/i386/fork.S: Likewise.
14354         * sysdeps/unix/sparc/fork.S: Likewise.
14355
14356         * sysdeps/unix/system.c: Remove file.
14357         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
14358
14359         * sysdeps/unix/getegid.S: Remove file.
14360         * sysdeps/unix/geteuid.S: Likewise.
14361
14362 2012-04-24  Roland McGrath  <roland@hack.frob.com>
14363
14364         * scripts/check-localplt.awk: New file.
14365         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
14366         of diff.
14367         * scripts/data/localplt-generic.data: Add a comment.
14368
14369         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
14370         NODE when __dir_mkfile failed.
14371         * sysdeps/mach/hurd/symlinkat.c: Likewise.
14372         Reported by Ludovic Courtès <ludo@gnu.org>.
14373
14374 2012-04-24  Andreas Jaeger  <aj@suse.de>
14375
14376         * Makerules (common-clean): Also remove gen-as-const-headers
14377         files.
14378
14379 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14380
14381         * Makerules (native-compile): Do not change working directory for
14382         build.  Use $(OUTPUT_OPTION) in command.
14383         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
14384
14385 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14386
14387         [BZ #13886]
14388         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
14389         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
14390         * math/libm-test.inc (floor_test): Add more tests.
14391         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
14392
14393 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14394
14395         * sysdeps/unix/getdents.c: Remove file.
14396         * sysdeps/unix/sysv/getdents.c: Likewise.
14397         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
14398
14399         * sysdeps/unix/syscalls.list (madvise): Add syscall from
14400         sysdeps/unix/mman/syscalls.list.
14401         (mmap): Likewise.
14402         (mprotect): Likewise.
14403         (msync): Likewise.
14404         (munmap): Likewise.
14405         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
14406         * sysdeps/unix/mman/syscalls.list: Remove.
14407         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
14408
14409         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
14410         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
14411         * configure: Regenerated.
14412         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
14413         $(libgcc_s_suffix).
14414         * config.make.in (libgcc_s_suffix): Remove variable.
14415
14416 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
14417
14418         * sysdeps/unix/sysv/gethostname.c: Move to ...
14419         * sysdeps/posix/gethostname.c: ... here.
14420
14421         * sysdeps/unix/execve.S: Remove file.
14422
14423         * sysdeps/unix/_exit.S: Remove file.
14424
14425 2012-04-23  Andreas Jaeger  <aj@suse.de>
14426
14427         [BZ #13739]
14428         * manual/Makefile: Remove make dist support, there's no
14429         need for a stand-alone documentation tar ball.
14430         (TEXI2DVI): Define always, it's not in Makeconfig.
14431         (dist): Removed.
14432         (tar-it): Removed.
14433         (edition): Removed.
14434         (glibc-doc-$(edition).tar): Removed
14435         (%.Z): Removed.
14436         (%.gz): Removed.
14437         (%.uu): Removed.
14438         (ETAGS): Remove, it's in Makeconfig.
14439         (move-if-change): Remove, it's in Makeconfig.
14440
14441 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
14442
14443         [BZ #13970]
14444         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
14445         (strtod, strtof, strtold, strtol, strtoul, strtoq)
14446         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
14447         (strtod_l, strtof_l, strtold_l): Remove __wur.
14448         It is not necessarily an error to ignore strtol's return value.
14449         One can reliably look at the stored endptr to decide whether
14450         the number had valid syntax.
14451
14452 2012-04-21  Andreas Jaeger  <aj@suse.de>
14453
14454         [BZ #13739]
14455         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
14456
14457 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
14458
14459         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
14460         * sysdeps/unix/sysv/Versions: Remove file.
14461
14462 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14463
14464         [BZ #13927]
14465         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14466
14467 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
14468
14469         [BZ #7064]
14470         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
14471         version from __vm86.
14472
14473 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
14474
14475         * sysdeps/unix/common/lxstat.c: Remove file.
14476         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
14477
14478         * sysdeps/unix/sysv/Makefile: Remove file.
14479
14480         * sysdeps/unix/sysv/direct.h: Remove file.
14481
14482         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
14483         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
14484         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
14485         * sysdeps/unix/sysv/bits/signum.h: Likewise.
14486         * sysdeps/unix/sysv/bits/stat.h: Likewise.
14487         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
14488         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
14489
14490         * sysdeps/unix/sysv/setrlimit.c: Remove file.
14491
14492         * sysdeps/unix/xmknod.c: Remove file.
14493         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
14494
14495         * sysdeps/unix/sysv/settimeofday.c: Remove file.
14496
14497         * sysdeps/unix/sysv/i386/time.S: Remove file.
14498
14499         * sysdeps/unix/fxstat.c: Remove file.
14500         * sysdeps/unix/xstat.c: Likewise.
14501         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
14502
14503         * sysdeps/unix/sysv/sigaction.c: Remove file.
14504
14505         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
14506         (sysdep_headers): Remove variable.
14507         [termio.h not in sysdep_headers] (generated): Likewise.
14508         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
14509         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
14510         * sysdeps/unix/sysv/tcdrain.c: Likewise.
14511         * sysdeps/unix/sysv/tcflow.c: Likewise.
14512         * sysdeps/unix/sysv/tcflush.c: Likewise.
14513         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
14514         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
14515         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
14516         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
14517         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
14518
14519         * sysdeps/unix/siglist.c: Remove file.
14520
14521         * sysdeps/unix/getppid.S: Remove file.
14522
14523         * sysdeps/unix/mkdir.c: Remove file.
14524         * sysdeps/unix/rmdir.c: Likewise.
14525
14526 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
14527
14528         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
14529         ERR_MAX value.
14530         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
14531         errlist-compat value.
14532
14533 2012-04-18  David S. Miller  <davem@davemloft.net>
14534
14535         * sysdeps/generic/memcopy.h (reg_char): Delete.
14536         * debug/strcat_chk.c: Use char, not reg_char.
14537         * debug/strcpy_chk.c: Likewise.
14538         * debug/strncat_chk.c: Likewise.
14539         * debug/strncpy_chk.c: Likewise.
14540         * string/memchr.c: Likewise.
14541         * string/memrchr.c: Likewise.
14542         * string/rawmemchr.c: Likewise.
14543         * string/strcat.c: Likewise.
14544         * string/strchr.c: Likewise.
14545         * string/strchrnul.c: Likewise.
14546         * string/strcmp.c: Likewise.
14547         * string/strcpy.c: Likewise.
14548         * string/strncat.c: Likewise.
14549         * string/strncmp.c: Likewise.
14550         * string/strncpy.c: Likewise.
14551
14552 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14553
14554         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
14555         __builtin_memcopy is called when src and dest ranges are known to not
14556         overlap.
14557
14558 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14559
14560         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
14561         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
14562         fwd_align_merge macro call.
14563         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
14564         bwd_align_merge macro call.
14565         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14566
14567 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14568
14569         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
14570         bwd_align_merge macros.
14571         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
14572         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
14573         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14574
14575 2012-04-18  David S. Miller  <davem@davemloft.net>
14576
14577         * sysdeps/sparc/sparc64/memcopy.h: Delete.
14578
14579 2012-04-18  Andreas Jaeger  <aj@suse.de>
14580
14581         [BZ# 6794]
14582         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
14583         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
14584         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14585
14586         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
14587         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
14588         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14589
14590         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
14591         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
14592         Adjust for changed ldbl-128 files.
14593
14594         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
14595         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
14596         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14597
14598 2012-04-17  David S. Miller  <davem@davemloft.net>
14599
14600         * sysdeps/sparc/sparc32/memcopy.h: Delete.
14601
14602 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
14603
14604         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
14605         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
14606         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
14607         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
14608         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
14609         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
14610
14611 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14612
14613         [BZ #6794]
14614         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
14615         * math/libm-test.inc: Add ilogb errno and exception tests.
14616         * math/w_ilogb.c: New file: ilogb wrapper.
14617         * math/w_ilogbf.c: New file: ilogbf wrapper.
14618         * math/w_ilogbl.c: New file: ilogbl wrapper.
14619         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
14620         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
14621         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
14622         exception being thrown with 0.0 as argument.
14623         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
14624         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
14625         exception being thrown with 0.0 as argument.
14626         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
14627         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
14628         exception being thrown with 0.0 as argument.
14629         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
14630         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
14631         exception being thrown with 0.0 as argument.
14632         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
14633         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
14634         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
14635         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
14636         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
14637         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
14638         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
14639         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
14640         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
14641
14642 2012-04-17  Petr Baudis  <pasky@ucw.cz>
14643
14644         * include/sys/uio.h: Change __vector to __iovec to avoid clash
14645         with altivec.
14646
14647 2012-04-16  Marek Polacek  <polacek@redhat.com>
14648
14649         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
14650
14651 2012-04-16  Marek Polacek  <polacek@redhat.com>
14652
14653         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
14654         operands of fdivp instruction.
14655
14656 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
14657
14658         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
14659         * elf/tst-auditmod3b.c: Likewise.
14660         * elf/tst-auditmod4b.c: Likewise.
14661         * elf/tst-auditmod5b.c: Likewise.
14662         * elf/tst-auditmod6b.c: Likewise.
14663         * elf/tst-auditmod6c.c: Likewise.
14664         * elf/tst-auditmod7b.c: Likewise.
14665         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
14666         * sysdeps/x86_64/preconfigure.in: Likewise.
14667         * sysdeps/x86_64/preconfigure: Regenerated.
14668
14669 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
14670
14671         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
14672         __ILP32__.
14673
14674 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
14675
14676         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14677         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
14678
14679 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
14680
14681         [BZ #13973]
14682         * locale/iso-639.def: Fix gl language name. Spotted by
14683         Yaron Shahrabani.
14684
14685 2012-04-12  Roland McGrath  <roland@hack.frob.com>
14686
14687         [BZ #2074]
14688         * libio/libio.h (__io_write_fn): Update comment.
14689
14690 2012-04-12  Petr Baudis  <pasky@ucw.cz>
14691
14692         [BZ #2074]
14693         * stdio.texi (Hook Functions): The user provided writer function
14694         is not allowed to return -1.
14695
14696 2012-04-11  David S. Miller  <davem@davemloft.net>
14697
14698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14699
14700 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
14701
14702         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
14703         Add a leading slash to rtkaio.
14704
14705 2012-04-11  Jim Meyering  <meyering@redhat.com>
14706
14707         [BZ #11959]
14708         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
14709         It is not necessarily an error to ignore fwrite's return
14710         value.  One can reliably use ferror to test for errors after
14711         the fact.
14712
14713 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
14714
14715         * bits/types.h (__snseconds_t): New type.
14716         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
14717
14718         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
14719         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14720         (__SNSECONDS_T_TYPE): Likewise.
14721         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14722         (__SNSECONDS_T_TYPE): Likewise.
14723         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14724         (__SNSECONDS_T_TYPE): Likewise.
14725
14726 2012-04-10  Andreas Jaeger  <aj@suse.de>
14727
14728         [BZ #2636]
14729         * manual/time.texi (Processor Time): Return type of times is
14730         elapsed real time since an arbitrary point in the past.
14731         (CPU Time): Move CLK_TCK from here...
14732         (Processor Time): ...to here.  Correct description.
14733         * manual/conf.texi (Constants for Sysconf): Correct description of
14734         _SC_CLK_TCK.
14735
14736 2012-04-10  David S. Miller  <davem@davemloft.net>
14737
14738         [BZ #13967]
14739         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
14740         where the is a gap between DT_REL(A) and DT_JMPREL.
14741
14742 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
14743
14744         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
14745         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14746         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14747
14748 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14749
14750         * elf/dl-support.c (_dl_inhibit_cache): New variable.
14751         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
14752         (dl_main): Handle --inhibit-cache.
14753         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
14754         _dl_inhibit_cache.
14755         * elf/dl-load.c (_dl_map_object): Use it.
14756         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
14757
14758 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
14759
14760         [BZ #13872]
14761         * sysdeps/i386/fpu/e_powl.S (p78): New object.
14762         (__ieee754_powl): Saturate large exponents rather than testing for
14763         overflow of y*log2(x).
14764         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14765         * math/libm-test.inc (pow_test): Do not permit spurious overflow
14766         exceptions.
14767
14768         [BZ #11521]
14769         * math/s_ctan.c: Include <float.h>.
14770         (__ctan): Avoid internal overflow or cancellation in calculating
14771         denominator.
14772         * math/s_ctanf.c: Likewise.
14773         * math/s_ctanl.c: Likewise.
14774         * math/s_ctanh.c: Likewise.
14775         * math/s_ctanhf.c: Likewise.
14776         * math/s_ctanhl.c: Likewise.
14777         * math/libm-test.inc (ctan_test): Add more tests.
14778         (ctanh_test): Likewise.
14779         * sysdeps/i386/fpu/libm-test-ulps: Update.
14780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14781
14782 2012-04-09  Andreas Jaeger  <aj@suse.de>
14783
14784         [BZ #6894]
14785         * manual/filesys.texi (Directory Entries): Mention that d_namlen
14786         is an optional BSD extension.
14787
14788         [BZ #10254]
14789         * manual/stdio.texi (Opening Streams): Document additional fopen
14790         parameters.
14791
14792 2012-04-09  Roland McGrath  <roland@hack.frob.com>
14793
14794         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
14795         %eax without telling the compiler.
14796
14797 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
14798
14799         [BZ # 13963]
14800         * manual/install.texi: Use sourceware.org.
14801
14802 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
14803
14804         [BZ #13873]
14805         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
14806         (__ieee754_pow): Generate overflow and underflow using huge*huge
14807         and tiny*tiny rather than just returning constant infinity or zero
14808         for large exponents.
14809         * math/libm-test.inc (pow_test): Require overflow exceptions for
14810         applicable cases of large exponents.
14811
14812         [BZ #706]
14813         * sysdeps/i386/fpu/e_pow.S (p10): New object.
14814         (__ieee754_pow): Use iterative multiplication algorithm only for
14815         integer exponents with absolute value below 1024.  Check for odd
14816         integer exponents when using algorithm for real exponents.
14817         * math/libm-test.inc (pow_test): Add more tests.
14818         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14819
14820 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
14821
14822         [BZ #13705]
14823         * math/libm-test.inc (exp_test): Do not allow overflow exception
14824         on underflow test.
14825
14826 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
14827
14828         [BZ #13705]
14829         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
14830         instead of __kernel_standard_f.
14831
14832 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
14833
14834         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
14835         * sysdeps/x86_64/memset_chk.S: Likewise.
14836
14837 2012-04-08  Andreas Jaeger  <aj@suse.de>
14838
14839         [BZ #10153]
14840         * manual/startup.texi (Environment Access): Describe return value
14841         for putenv and setenv.
14842
14843         [BZ #6895]
14844         * manual/filesys.texi (Directory Entries): Add description for
14845         DT_LNK.
14846
14847         [BZ #6890]
14848         * manual/filesys.texi (Directory Entries): Clarify that it's file
14849         system not operating system in the description of DT_UNKNOWN.
14850
14851         [BZ #6578]
14852         * manual/syslog.texi (closelog): Fix reference, it's openlog.
14853
14854 2012-04-08  Stephen Compall  <s11@member.fsf.org>
14855
14856         [BZ #6649]
14857         * manual/llio.texi (Opening and Closing Files): Add cross
14858         reference to explain mode argument.
14859
14860 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
14861
14862         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
14863         * sysdeps/x86_64/memset_chk.S: Likewise.
14864
14865 2012-04-07  David S. Miller  <davem@davemloft.net>
14866
14867         * elf/elf.h (R_SPARC_WDISP10): Define.
14868         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
14869         R_SPARC_SIZE32.
14870         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
14871         R_SPARC_SIZE64 and R_SPARC_H34.
14872
14873 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
14874
14875         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
14876         conditions and remove no longer applicable assertion.
14877
14878 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14879
14880         * bits/byteswap.h: Include <features.h>.
14881         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14882         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14883
14884 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14885
14886         * bits/byteswap.h (__bswap_16): Removed.
14887         Include <bits/byteswap-16.h> to get __bswap_16.
14888         * sysdeps/i386/bits/byteswap.h: Likewise.
14889         * sysdeps/s390/bits/byteswap.h: Likewise.
14890         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14891         * bits/byteswap-16.h: New file.
14892         * sysdeps/i386/bits/byteswap-16.h: Likewise.
14893         * sysdeps/s390/bits/byteswap-16.h: Likewise.
14894         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
14895         * string/Makefile (headers): Add bits/byteswap-16.h.
14896
14897 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14898
14899         [BZ #13895]
14900         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
14901         extra indirection.
14902         * nss/Makefile (tests-static, tests): Add tst-nss-static.
14903         * nss/tst-nss-static.c: New.
14904
14905 2012-04-06  Robert Millan  <rmh@gnu.org>
14906
14907         [BZ #6486]
14908         * manual/llio.texi (File Position Primitive): lseek
14909         refers to WHENCE when it really means OFFSET.
14910
14911 2012-04-06  Andreas Jaeger  <aj@suse.de>
14912
14913         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
14914         strncmp declarations.
14915
14916         * abilist/libc.abilist: Add __poll and __ppoll.
14917
14918 2012-04-05  David S. Miller  <davem@davemloft.net>
14919
14920         * scripts/check-local-headers.sh: Accept a host triplet in the
14921         path matched by the exclude regexp.
14922
14923         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
14924         definition.
14925         * sysdeps/powerpc/powerpc32/dl-machine.h
14926         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
14927         * sysdeps/s390/s390-32/dl-machine.h
14928         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14929         * sysdeps/sparc/sparc32/dl-machine.h
14930         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14931         * sysdeps/sparc/sparc64/dl-machine.h
14932         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14933
14934         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
14935         lazy binding.
14936         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
14937         undefined symbol errors.
14938
14939         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
14940         DT_NEEDED entries.
14941
14942 2012-04-05  Michael Matz  <matz@suse.de>
14943
14944         [BZ #13592]
14945         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
14946
14947 2012-04-05  Andreas Jaeger  <aj@suse.de>
14948
14949         [BZ #13908]
14950         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
14951         comment.
14952
14953 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14954
14955         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
14956         which ROUND is no valid rounding mode.
14957
14958 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14959
14960         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
14961         read again.
14962         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
14963
14964 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14965
14966         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
14967         an exception using FPU order intentionally.
14968
14969 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14970
14971         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
14972         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
14973         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
14974         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
14975
14976 2012-04-05  Simon Josefsson  <simon@josefsson.org>
14977
14978         [BZ #12340]
14979         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
14980         EINVAL when BUFLEN is too smal.
14981
14982 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
14983
14984         [BZ #13553]
14985         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
14986         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
14987
14988 2012-04-03  Andreas Jaeger  <aj@suse.de>
14989
14990         [BZ #13938]
14991         * manual/setjmp.texi (System V contexts): Fix sentence.
14992
14993         [BZ #13926]
14994         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
14995         New macro for this case.
14996         [!__GNUC__] (__bswap_64): New inline function for this case.
14997         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14998         * bits/byteswap.h: Likewise.
14999         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
15000         ull, guard with __GLIBC_HAVE_LONG_LONG.
15001
15002         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
15003         __GLIBC_HAVE_LONG_LONG.
15004
15005         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
15006         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
15007
15008 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15009
15010         [BZ #13691]
15011         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
15012         inptr and inend, rather than using last_ch.
15013
15014 2012-04-02  David S. Miller  <davem@davemloft.net>
15015
15016         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
15017         * stdio-common/printf-parse.h (read_int): Change return type to
15018         'int', return -1 on INT_MAX overflow.
15019         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
15020         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
15021         overflows INT_MAX.  Check for overflow of in-format-string precision
15022         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
15023         SIZE_MAX not INT_MAX for integer overflow test.
15024         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
15025         skip the construct in the format string but do not record anything.
15026         * stdio-common/bug22.c: Adjust to test both width/prevision
15027         INT_MAX overflow as well as total length INT_MAX overflow.  Check
15028         explicitly for proper errno values.
15029
15030 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
15031
15032         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
15033         CHAR_MAX.
15034         * string/test-strcmp.c [! WIDE]: Likewise.
15035         * time/tst-mktime2.c: Likewise for INT_MAX.
15036         * string/test-string.h: #include <sys/param.h> for MIN.
15037
15038         * csu/init-first.c (__libc_init_first): Call __ctype_init.
15039         * sysdeps/i386/init-first.c (init): Likewise.
15040         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
15041         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
15042         * sysdeps/sh/init-first.c (init): Likewise.
15043
15044 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
15045
15046         * po/ru.po: Update from translation team.
15047         * po/vi.po: Likewise.
15048
15049 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15050
15051         * resolv/nss_dns/dns-host.c: Merge copyright years.
15052
15053 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15054
15055         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15056         Optimize memcpy with prefetch if
15057         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
15058         src, dst pointers have unequal 16 byte alignments.
15059
15060 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15061
15062         [BZ #13928]
15063         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
15064         from a CNAME entry and return the minimum ttl for the query.
15065         (gaih_getanswer_slice): Likewise.
15066
15067 2012-03-30  Jeff Law  <law@redhat.com>
15068
15069         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
15070         due to long keys.
15071         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
15072         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
15073
15074         * resolv/nss_dns/dns-host.c: Update copyright year.
15075
15076 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
15077
15078         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
15079         requests to save a system call.  Fix check that all bytes are sent.
15080
15081         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
15082         comments for sendmmsg.
15083
15084 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15085
15086         [BZ #13691]
15087         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
15088         with only 1 character between 0x0041 and 0x01b0.
15089         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
15090         * wcsmbs/tst-mbsnrtowcs.c: New file.
15091
15092 2012-03-29  David S. Miller  <davem@davemloft.net>
15093
15094         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
15095         small copies by hand.
15096
15097 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15098
15099         [BZ #13761]
15100         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
15101         _nss_compat_initgroups_dyn): Fall back to malloc/free
15102         for large group memberships.
15103
15104 2012-03-28  David S. Miller  <davem@davemloft.net>
15105
15106         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
15107         that branches into memcpy.
15108         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15109         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
15110         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
15111         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
15112         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
15113         bits.
15114         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
15115         implementation too.
15116         * sysdeps/sparc/mempcpy.S: New file.
15117
15118         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
15119         the IFUNC routine in the libc case.
15120         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
15121
15122         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
15123         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
15124         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
15125         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
15126         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
15127         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
15128         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
15129         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
15130
15131         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
15132         loop to 256 bytes instead of 64 bytes and fix test signedness.
15133
15134         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
15135         * sysdeps/sparc/sparc32/Makefile: rather than here...
15136         * sysdeps/sparc/sparc64/Makefile: and here.
15137
15138 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
15139
15140         * malloc/mallocbug.c: Avoid warnings about unused variables.
15141
15142 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
15143
15144         [BZ #13760]
15145         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
15146         in the right place. Discard and retry query if response is
15147         larger than input buffer size.
15148
15149 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
15150
15151         [BZ #369]
15152         [BZ #2678]
15153         [BZ #3866]
15154         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
15155         x for large integer exponent.
15156         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
15157         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
15158         sign of result as needed afterwards.
15159         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
15160         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
15161         result for underflowing pow the same as for overflow.
15162         (__kernel_standard_l): Handle powl overflow and underflow here
15163         rather than calling __kernel_standard.
15164         * math/libm-test.inc (pow_test): Add more tests.
15165
15166         [BZ #3868]
15167         [BZ #13879]
15168         [BZ #13910]
15169         [BZ #13911]
15170         [BZ #13912]
15171         [BZ #13913]
15172         [BZ #13915]
15173         [BZ #13916]
15174         [BZ #13917]
15175         [BZ #13918]
15176         [BZ #13919]
15177         [BZ #13920]
15178         [BZ #13921]
15179         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
15180         * sysdeps/ieee754/k_standard.c: Include <float.h>.
15181         (__kernel_standard_l): New function.
15182         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
15183         __kernel_standard.
15184         * math/w_acosl.c (__acosl): Likewise.
15185         * math/w_asinl.c (__asinl): Likewise.
15186         * math/w_atan2l.c (__atan2l): Likewise.
15187         * math/w_atanhl.c (__atanhl): Likewise.
15188         * math/w_coshl.c (__coshl): Likewise.
15189         * math/w_exp10l.c (__exp10l): Likewise.
15190         * math/w_exp2l.c (__exp2l): Likewise.
15191         * math/w_fmodl.c (__fmodl): Likewise.
15192         * math/w_hypotl.c (__hypotl): Likewise.
15193         * math/w_j0l.c (__j0l, __y0l): Likewise.
15194         * math/w_j1l.c (__j1l, __y1l): Likewise.
15195         * math/w_jnl.c (__jnl, __ynl): Likewise.
15196         * math/w_lgammal.c (__lgammal): Likewise.
15197         * math/w_log10l.c (__log10l): Likewise.
15198         * math/w_log2l.c (__log2l): Likewise.
15199         * math/w_logl.c (__logl): Likewise.
15200         * math/w_powl.c (__powl): Likewise.
15201         * math/w_remainderl.c (__remainderl): Likewise.
15202         * math/w_scalbl.c (sysv_scalbl): Likewise.
15203         * math/w_sinhl.c (__sinhl): Likewise.
15204         * math/w_sqrtl.c (__sqrtl): Likewise.
15205         * math/w_tgammal.c (__tgammal): Likewise.
15206         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
15207         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
15208         * math/libm-test.inc (acos_test): Add more tests.
15209         (acosh_test): Likewise.
15210         (asin_test): Likewise.
15211         (atanh_test): Likewise.
15212         (exp_test): Likewise.
15213         (exp10_test): Likewise.
15214         (exp2_test): Likewise.
15215         (expm1_test): Likewise.
15216         (lgamma_test): Likewise.
15217         (log_test): Likewise.
15218         (log10_test): Likewise.
15219         (log1p_test): Likewise.
15220         (log2_test): Likewise.
15221         (pow_test): Do not allow some spurious overflow exceptions.
15222         (sqrt_test): Add more tests.
15223         (tgamma_test): Likewise.
15224         (y0_test): Likewise.
15225         (y1_test): Likewise.
15226         (yn_test): Likewise.
15227
15228 2012-03-27  Anton Blanchard  <anton@samba.org>
15229
15230         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
15231         MAP_HUGETLB.
15232         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15233         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15234         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15235
15236 2012-03-27  David S. Miller  <davem@davemloft.net>
15237
15238         * conform/Makefile: Run run-conformtest.sh using $(BASH).
15239
15240         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
15241         have-as-vis3 check.
15242
15243 2012-03-27  Andreas Jaeger  <aj@suse.de>
15244
15245         * sysdeps/x86_64/elf/configure.in: Moved to ...
15246         * sysdeps/x86_64/configure.in: ... here.
15247         * sysdeps/x86_64/elf/start.S: Moved to ...
15248         * sysdeps/x86_64/start.S: ... here.
15249         * sysdeps/x86_64/elf/configure: Delete.
15250
15251         * sysdeps/x86_64/configure.in: Merge contents from
15252         sysdeps/i386/configure.in (without i686 check).
15253
15254         * sysdeps/i386/elf/Versions: Merge into ...
15255         * sysdeps/i386/Versions: ... this.
15256         * sysdeps/i386/elf/Versions: Delete file.
15257         * sysdeps/i386/elf/start.S: Moved to ...
15258         * sysdeps/i386/start.S: ...here.
15259         * sysdeps/i386/elf/configure.in: Merge into...
15260         * sysdeps/i386/configure.in: ...here.
15261         * sysdeps/i386/elf/configure.in: Delete file.
15262         * sysdeps/i386/elf/configure: Delete file.
15263
15264         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
15265         * debug/backtracesyms.c: ... here.
15266         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
15267         * debug/backtracesymsfd.c: ... here.
15268         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
15269         * sysdeps/generic/ifunc-sel.h: ... here.
15270
15271         * sysdeps/unix/i386/start.c: Delete file.
15272         * sysdeps/unix/sparc/start.c: Delete file.
15273         * sysdeps/unix/start.c: Delete file.
15274
15275         * sysdeps/sh/elf/configure.in: Moved to ...
15276         * sysdeps/sh/configure.in: ... here.
15277         * sysdeps/sh/elf/start.S: Moved to ...
15278         * sysdeps/sh/start.S: ... here.
15279         * sysdeps/sh/elf/configure: Delete file.
15280
15281         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
15282         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
15283         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
15284         * sysdeps/powerpc/powerpc64/entry.h: ... here.
15285         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
15286         * sysdeps/powerpc/powerpc64/start.S: here.
15287         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
15288         * sysdeps/powerpc/powerpc64/Makefile: ... this.
15289         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
15290         * sysdeps/powerpc/powerpc64/configure.in: ... this.
15291         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
15292
15293         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
15294         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
15295         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
15296         * sysdeps/powerpc/powerpc32/start.S: ... here.
15297         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
15298         * sysdeps/powerpc/powerpc32/configure.in: ... this.
15299         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
15300
15301         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
15302         * sysdeps/powerpc/ifunc-sel.h: ... here.
15303         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
15304         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
15305
15306         * sysdeps/sparc/elf/configure.in: Moved to ...
15307         * sysdeps/sparc/configure.in: ... here.
15308         * sysdeps/sparc/elf/configure: Delete file.
15309         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
15310         * sysdeps/sparc/sparc32/start.S: ... here.
15311         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
15312         * sysdeps/sparc/sparc64/start.S: ... here.
15313         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
15314         * sysdeps/sparc/sparc32/Makefile: ... this.
15315         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
15316         * sysdeps/sparc/sparc64/Makefile: ... this.
15317
15318         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
15319         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
15320         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
15321         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
15322         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
15323         * sysdeps/s390/s390-32/setjmp.S: ... here.
15324         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
15325         * sysdeps/s390/s390-32/configure.in: ... here.
15326         * sysdeps/s390/s390-32/elf/configure: Delete file.
15327         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
15328         * sysdeps/s390/s390-32/start.S: ... here.
15329
15330         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
15331         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
15332         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
15333         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
15334         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
15335         * sysdeps/s390/s390-64/setjmp.S: ... here.
15336         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
15337         * sysdeps/s390/s390-64/configure.in: ... here
15338         * sysdeps/s390/s390-64/elf/configure: Delete file.
15339         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
15340         * sysdeps/s390/s390-64/start.S: ... here.
15341         * sysdeps/s390/s390-64/elf/configure: Delete.
15342
15343         * configure.in: Remove support for elf directories in sysdeps.
15344
15345         * configure: Regenerated.
15346         * sysdeps/i386/configure: Regenerated.
15347         * sysdeps/powerpc/powerpc32/configure: Regenerated.
15348         * sysdeps/powerpc/powerpc64/configure: Regenerated.
15349         * sysdeps/s390/s390-32/configure: Regenerated.
15350         * sysdeps/s390/s390-64/configure: Regenerated.
15351         * sysdeps/sh/configure: Regenerated.
15352         * sysdeps/sparc/configure: Regenerated.
15353         * sysdeps/x86_64/configure: Regenerated.
15354
15355 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
15356
15357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15358
15359         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
15360         denormal result into account.
15361
15362 2012-03-25  Roland McGrath  <roland@hack.frob.com>
15363
15364         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
15365         Reported by Allan McRae <allan@archlinux.org>.
15366
15367 2012-03-23  Jeff Law  <law@redhat.com>
15368
15369         * nss/getnssent.c (__nss_getent): Fix typo.
15370
15371 2012-03-23  David S. Miller  <davem@davemloft.net>
15372
15373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15374
15375 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
15376
15377         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
15378         to pad to uint64_t for each field.
15379         (dl_tls_index): Replace unsigned long with uint64_t.
15380
15381 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
15382         Paul Pluzhnikov  <ppluzhnikov@google.com>
15383
15384         [BZ #6528]
15385         * grp/Makefile (otherlibs): Don't set it.
15386         * inet/Makefile (otherlibs): Likewise.
15387         * login/Makefile (otherlibs): Likewise.
15388         * nscd/Makefile (otherlibs): Likewise.
15389         * posix/Makefile (otherlibs): Likewise.
15390         * pwd/Makefile (otherlibs): Likewise.
15391         * rt/Makefile (otherlibs): Likewise.
15392         * sunrpc/Makefile (otherlibs): Likewise.
15393         * nss/Makefile (otherlibs): Likewise.
15394         Add libnss_files to routines and static-only-routines.
15395         ($(objpfx)getent): Remove rule.
15396         * resolv/Makefile: Add libnss_dns and libresolv to routines and
15397         static-only-routines.
15398
15399 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15400
15401         [BZ #13892]
15402         * math/s_cexp.c: Include <float.h>.
15403         (__cexp): Handle exp result overflowing not necessarily
15404         overflowing both real and imaginary parts of result.
15405         * math/s_cexpf.c: Likewise.
15406         * math/s_cexpl.c: Likewise.
15407         * math/libm-test.inc (cexp_test): Add more tests.
15408         * sysdeps/i386/fpu/libm-test-ulps: Update.
15409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15410
15411 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15412
15413         * include/link.h (ELFW): New macro.
15414         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
15415         Replace ELF64_R_TYPE with ELFW(R_TYPE).
15416
15417 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15418
15419         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
15420         with uint64_t.
15421
15422 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15423
15424         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
15425         declaration.
15426         (struct La_x32_retval): Likewise.
15427
15428 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15429
15430         * sysdeps/x86_64/preconfigure.in: New file.
15431         * sysdeps/x86_64/preconfigure: New generated file.
15432
15433 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15434
15435         [BZ #13824]
15436         * math/e_exp2l.c: Include <float.h>.
15437         (__ieee754_exp2l): Handle overflow and underflow cases
15438         separately.  Only pass fractional part of argument to
15439         __ieee754_expl.
15440         * math/libm-test.inc (exp2_test): Add more tests.
15441
15442         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
15443         negating x to take absolute value.
15444         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
15445         Likewise.
15446         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
15447         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
15448         Likewise.
15449         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
15450         computing low part if x was negated.
15451         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
15452
15453 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15454
15455         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
15456         la_x32_gnu_pltexit.
15457         (pltexit): Cast int_retval to ptrdiff_t.
15458         * elf/tst-auditmod3b.c: Likewise.
15459         * elf/tst-auditmod4b.c: Likewise.
15460         * elf/tst-auditmod5b.c: Likewise.
15461         * elf/tst-auditmod6b.c: Likewise.
15462         * elf/tst-auditmod6c.c: Likewise.
15463         * elf/tst-auditmod7b.c: Likewise.
15464
15465         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
15466         and x32_gnu_pltexit.
15467
15468         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
15469         __ELF_NATIVE_CLASS.
15470         (La_x32_regs): New macro.
15471         (La_x32_retval): Likewise.
15472         (la_x32_gnu_pltenter): New function prototype.
15473         (la_x32_gnu_pltexit): Likewise.
15474
15475 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
15476
15477         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
15478         exponent.
15479
15480         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15481
15482         * configure.in (libc_cv_cc_nofma): Check for option to disable
15483         generation of FMA instructions.
15484         * configure: Regenerate.
15485         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
15486         * sysdeps/ieee754/dbl-64/Makefile: New file.
15487         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15488         Remove brandred-fma4.
15489         (CFLAGS-brandred-fma4.c): Remove.
15490         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
15491         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
15492         define.
15493         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
15494         define.
15495
15496 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15497
15498         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
15499         LLONG_MAX != LONG_MAX.
15500         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15501         (_fitoa_word): Likewise.
15502         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
15503         LLONG_MAX != LONG_MAX.
15504         * stdio-common/_itowa.h: Include <_itoa.h>.
15505         (_itowa_word): Use _ITOA_WORD_TYPE on value.
15506         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
15507         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
15508         only if not defined.
15509         (_ITOA_WORD_TYPE): Likewise.
15510         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15511         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
15512
15513 2012-03-21  David S. Miller  <davem@davemloft.net>
15514
15515         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15516
15517 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15518
15519         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
15520         of x86_64 when setting libc_cv_slibdir, libdir and
15521         libc_cv_localedir.
15522         * sysdeps/unix/sysv/linux/configure: Regenerated.
15523
15524 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15525
15526         * manual/lang.texi (Old Varargs): Remove section.
15527         (How Variadic): Update menu.
15528         (va_start): Do not mention varargs.h.
15529
15530 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15531             Joseph Myers  <joseph@codesourcery.com>
15532
15533         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
15534         link test.
15535         * configure: Regenerated.
15536
15537 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15538
15539         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
15540         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
15541         conformtest.pl
15542
15543 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15544
15545         * NOTES: Remove.
15546         * Makefile (files-for-dist): Remove NOTES.
15547         (NOTES): Remove rule.
15548         * README: Don't refer to NOTES.
15549         * manual/creature.texi: Don't include macros.texi.
15550         * manual/intro.texi (creature.texi): Remove comment referring to
15551         NOTES.
15552
15553         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
15554         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
15555         * configure: Regenerated.
15556         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
15557         LIBC_TRY_CC_OPTION.
15558         (libc_cv_as_i686): Likewise.
15559         (libc_cv_cc_avx): Likewise.
15560         (libc_cv_cc_sse2avx): Likewise.
15561         (libc_cv_cc_fma4): Likewise.
15562         (libc_cv_cc_novzeroupper): Likewise.
15563         * sysdeps/i386/configure: Regenerated.
15564
15565         [BZ #13883]
15566         * sysdeps/i386/fpu/s_cexp.S: Remove.
15567         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
15568         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
15569         * math/libm-test.inc (cexp_test): Add more tests.
15570         * sysdeps/i386/fpu/libm-test-ulps: Update.
15571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15572
15573 2012-03-21  Allan McRae  <allan@archlinux.org>
15574
15575         * timezone/Makefile: Do not install iso3166.tab and zone.tab
15576
15577 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15578
15579         [BZ #13871]
15580         * math/w_exp2.c: Do not include <float.h>.
15581         (o_threshold, u_threshold): Remove.
15582         (__exp2): Calculate result before checking finiteness and calling
15583         __kernel_standard.
15584         * math/w_exp2f.c: Likewise.
15585         * math/w_exp2l.c: Likewise.
15586         * math/libm-test.inc (exp2_test): Require overflow exception for
15587         1e6 input.
15588
15589         [BZ #3866]
15590         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
15591         range of signed 64-bit integers before using fistpll.  Remove
15592         checks for whether integers fit in mantissa bits.
15593         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
15594         the range of signed 32-bit integers before using fistpl.  Remove
15595         checks for whether integers fit in mantissa bits.
15596         * sysdeps/i386/fpu/e_powl.S (p64): New object.
15597         (__ieee754_powl): Test for y outside the range of signed 64-bit
15598         integers before using fistpll.  Reduce 64-bit values to 63-bit
15599         ones as needed.
15600         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
15601         divide-by-zero is raised for zero to large negative powers.
15602         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
15603         (__ieee754_powl): Test for y outside the range of signed 64-bit
15604         integers before using fistpll.  Reduce 64-bit values to 63-bit
15605         ones as needed.
15606         * math/libm-test.inc (pow_test): Add more tests.
15607
15608 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15609
15610         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
15611         <stdio-common/_itoa.h>.
15612         * debug/segfault.c: Likewise.
15613         * elf/dl-cache.c: Likewise.
15614         * elf/dl-minimal.c: Likewise.
15615         * elf/dl-misc.c: Likewise.
15616         * elf/dl-sysdep.c: Likewise.
15617         * elf/dl-version.c: Likewise.
15618         * elf/rtld.c: Likewise.
15619         * hurd/hurdsock.c: Likewise.
15620         * hurd/lookup-retry.c: Likewise.
15621         * malloc/malloc.c: Likewise.
15622         * malloc/mtrace.c: Likewise.
15623         * nscd/nscd_getgr_r.c: Likewise.
15624         * nscd/nscd_getpw_r.c: Likewise.
15625         * nscd/nscd_getserv_r.c: Likewise.
15626         * posix/getopt_init.c: Likewise.
15627         * posix/wordexp.c: Likewise.
15628         * stdio-common/_itoa.c: Likewise.
15629         * stdio-common/printf_fphex.c: Likewise.
15630         * stdio-common/vfprintf.c: Likewise.
15631         * string/_strerror.c: Likewise.
15632         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
15633         * sysdeps/i386/i686/hp-timing.h: Likewise.
15634         * sysdeps/mach/_strerror.c: Likewise.
15635         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
15636         * sysdeps/mach/hurd/sethostid.c: Likewise.
15637         * sysdeps/mach/hurd/xmknodat.c: Likewise.
15638         * sysdeps/mach/xpg-strerror.c: Likewise.
15639         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15640         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15641         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
15642         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
15643         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15644         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
15645         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
15646         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
15647         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
15648         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
15649         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
15650         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
15651         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
15652         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
15653         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
15654         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
15655         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
15656         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
15657         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
15658         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
15659         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
15660
15661         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
15662
15663         * stdio-common/_itoa.h: Moved to ...
15664         * sysdeps/generic/_itoa.h: Here.
15665
15666         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
15667
15668         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
15669         instead of "_itoa.h" and "_itowa.h".
15670         * stdio-common/vfprintf.: Likewise.
15671
15672 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15673
15674         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
15675         <bits/wordsize.h>.
15676         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
15677         (__signbit): Likwise.
15678         (llrintf): Likwise.
15679         (llrint): Likwise.
15680
15681 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15682
15683         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
15684         __WORDSIZE != 64.
15685
15686 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
15687
15688         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
15689         OVERFLOW_EXCEPTION_OK.
15690         * math/libm-test.inc ("Philosophy"): Update comment about
15691         exception testing.
15692         (OVERFLOW_EXCEPTION): Define.
15693         (OVERFLOW_EXCEPTION_OK): Likewise.
15694         (INVALID_EXCEPTION_OK): Renumber.
15695         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
15696         (IGNORE_ZERO_INF_SIGN): Likewise.
15697         (test_exceptions): Handle FE_OVERFLOW.
15698         (exp10_test): Expect overflow exceptions.
15699         (exp2_test): Likewise.
15700         (expm1_test): Likewise.
15701         (nextafter_test): Likewise.
15702         (pow_test): Likewise.
15703         (scalbn_test): Likewise.
15704         (scalbln_test): Likewise.
15705
15706 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15707
15708         * sysdeps/x86_64/bits/atomic.h
15709         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
15710         64bit integer.
15711         (atomic_exchange_acq): Likewise.
15712         (__arch_exchange_and_add_body): Likewise.
15713         (__arch_add_body): Likewise.
15714         (atomic_add_negative): Likewise.
15715         (atomic_add_zero): Likewise.
15716
15717 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15718
15719         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
15720         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
15721
15722 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15723
15724         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
15725         Check __x86_64__ instead of __WORDSIZE.
15726
15727 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15728
15729         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
15730
15731 2012-03-19  David S. Miller  <davem@davemloft.net>
15732
15733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15734
15735         * sysdeps/sparc/fpu/fenv_private.h: New file.
15736         * sysdeps/sparc/fpu/math_private.h: Use it.
15737         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
15738         Remove.
15739         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
15740         (libc_feholdexcept_setroundl): Remove.
15741         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
15742         Remove.
15743         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
15744         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
15745
15746 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15747
15748         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
15749         int64_t instead of long int.
15750         (INSERT_WORDS64): Likwise.
15751
15752 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15753
15754         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
15755         _Unwind_GetCFA return to _Unwind_Ptr first.
15756
15757 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
15758
15759         [BZ #13629]
15760         * math/s_clog.c: Include <float.h>.
15761         (__clog): Scale large or subnormal inputs.
15762         * math/s_clogf.c: Likewise.
15763         * math/s_clogl.c: Likewise.
15764         * math/s_clog10.c: Include <float.h>.
15765         (M_LOG10_2): Define.
15766         (__clog10): Scale large or subnormal inputs.
15767         * math/s_clog10f.c: Likewise.
15768         * math/s_clog10l.c: Likewise.
15769         * math/libm-test.inc (clog_test): Add more tests.
15770         (clog10_test): Likewise.
15771         * sysdeps/i386/fpu/libm-test-ulps: Update.
15772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15773
15774         [BZ #11451]
15775         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
15776         x and y.
15777         * math/libm-test.inc (atan2_test): Add another test.
15778
15779         * Makerules (common-objdir-compile): Remove.
15780         * sysdeps/unix/Makefile (config-generated): Do not add
15781         $(unix-generated) to variable.
15782         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
15783         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
15784         Remove rule.
15785         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
15786         Likewise.
15787         [generic bits/local_lim.h] (before-compile): Do not append to
15788         variable.
15789         [generic bits/local_lim.h] (common-generated): Likewise.
15790         [generic sys/param.h] (before-compile): Do not append to variable.
15791         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
15792         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
15793         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
15794         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
15795         include.
15796         [generic sys/param.h] (sys/param.h-includes): Remove variable.
15797         [generic sys/param.h] (sys/param.h-includes): Remove rule.
15798         [generic sys/param.h] ($(addprefix
15799         $(common-objpfx),$(sys/param.h-includes))): Likewise.
15800         [generic sys/param.h] (common-generated): Do not append to
15801         variable.
15802         [generic sys/param.h] (sysdep_headers): Likewise.
15803         [generic bits/errno.h] (before-compile): Do not append to
15804         variable.
15805         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
15806         rule.
15807         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
15808         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
15809         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
15810         [generic bits/errno.h] (common-generated): Do not append to
15811         variable.
15812         [generic bits/ioctls.h] (before-compile): Do not append to
15813         variable.
15814         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
15815         rule.
15816         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
15817         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
15818         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
15819         rule.
15820         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
15821         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
15822         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
15823         [generic bits/ioctls.h] (common-generated): Do not append to
15824         variable.
15825         [generic sys/syscall.h] (syscall.h): Remove variable.
15826         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
15827         rule.
15828         [generic sys/syscall.h] (before-compile): Do not append to
15829         variable.
15830         [generic sys/syscall.h] (common-generated): Likewise.
15831         * sysdeps/unix/errnos-tmpl.c: Remove file.
15832         * sysdeps/unix/errnos.awk: Likewise.
15833         * sysdeps/unix/ioctls-tmpl.c: Likewise.
15834         * sysdeps/unix/ioctls.awk: Likewise.
15835         * sysdeps/unix/mk-local_lim.c: Likewise.
15836         * sysdeps/unix/snarf-ioctls: Likewise.
15837
15838 2012-03-19  Richard Henderson  <rth@twiddle.net>
15839
15840         * sysdeps/i386/fpu/fenv_private.h: New file.
15841         * sysdeps/i386/fpu/math_private.h: Use it.
15842         (math_opt_barrier, math_force_eval): Remove.
15843         (libc_feholdexcept_setround_53bit): Remove.
15844         (libc_feupdateenv_53bit): Remove.
15845         * sysdeps/x86_64/fpu/math_private.h: Likewise.
15846         (math_opt_barrier, math_force_eval): Remove.
15847         (libc_feholdexcept): Remove.
15848         (libc_feholdexcept_setround): Remove.
15849         (libc_fetestexcept, libc_fesetenv): Remove.
15850         (libc_feupdateenv_test): Remove.
15851         (libc_feupdateenv, libc_feholdsetround): Remove.
15852         (libc_feresetround): Remove.
15853
15854         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
15855         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
15856
15857         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
15858         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
15859         (libc_feupdateenv_testl): New.
15860         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
15861         (libc_feupdateenv_testf): New.
15862         (libc_feupdateenv): Use libc_feupdateenv_test.
15863         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
15864         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
15865
15866         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
15867         (libc_feholdsetroundf, libc_feholdsetroundl): New.
15868         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
15869         (libc_feresetround_noex): New.
15870         (libc_feresetround_noexf): New.
15871         (libc_feresetround_noexl): New.
15872         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
15873         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
15874         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
15875         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
15876         SET_RESTORE_ROUND.
15877         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
15878         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
15879         (__cos): Likewise.
15880         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
15881         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
15882         SET_RESTORE_ROUND_NOEX.
15883         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
15884         SET_RESTORE_ROUND_NOEXF.
15885         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
15886         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
15887         (libc_feholdsetroundf): New.
15888         (libc_feresetround, libc_feresetroundf): New.
15889
15890         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
15891         (libc_feholdexcept_setround_53bit): Convert from macro to function.
15892         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
15893
15894         * sysdeps/generic/math_private.h: Include <fenv.h>.
15895         (default_libc_feholdexcept): New.
15896         (default_libc_feholdexcept_setround): New.
15897         (default_libc_fesetenv, default_libc_feupdateenv): New.
15898         (libc_feholdexcept): Only define if undefined.
15899         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
15900         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
15901         (libc_feholdexcept_setroundl): Likewise.
15902         (libc_feholdexcept_setround_53bit): Likewise.
15903         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
15904         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
15905         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
15906         (libc_feupdateenv_53bit): Likewise.
15907         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
15908         (libc_feholdexcept): Convert from macro to inline function.
15909         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
15910         (libc_fesetenv, libc_feupdateenv): Likewise.
15911
15912         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
15913         not previously defined.
15914         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
15915         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
15916         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
15917         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
15918         * sysdeps/ieee754/flt-32/math_private.h: New file.
15919         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
15920         math_private.h below SET_FLOAT_WORD.
15921         (__isnan, __isinf_ns, __finite): Remove.
15922         (__isnanf, __isinf_nsf, __finitef): Remove.
15923
15924 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
15925
15926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15927
15928 2012-03-17  David S. Miller  <davem@davemloft.net>
15929
15930         [BZ #6471]
15931         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
15932         for 2.16.
15933
15934 2012-03-16  David S. Miller  <davem@davemloft.net>
15935
15936         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
15937         warnings.
15938
15939         [BZ #6471]
15940         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
15941         properly.
15942         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
15943         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
15944         sysdep_routines when subdir is sysvipc.
15945         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
15946         __getshmlba helper.
15947
15948         * sysdeps/sparc/fpu/libm-test/ulps: Update.
15949
15950 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15951
15952         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
15953         [__LP64__].
15954
15955 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15956
15957         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
15958         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
15959         (__lround): Renamed to ...
15960         (__llround): This.  Replace long int with long long int.
15961         Define lround functions as aliases of llround functions.
15962         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
15963
15964 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15965
15966         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
15967         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
15968         adresses to uintptr_t.  Replace "long int" and "unsigned long
15969         int" with "greg_t" on va_arg.
15970
15971 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15972
15973         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
15974         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
15975
15976         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
15977         Move e_machine check before EI_CLASS check.  Handle x32
15978         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
15979         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
15980         SKIP_EM_IA_64 and include
15981         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
15982
15983         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
15984         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
15985         (add_system_dir): New macro.
15986
15987         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
15988         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
15989
15990 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
15991
15992         [BZ #2551]
15993         [BZ #2552]
15994         [BZ #2553]
15995         [BZ #2554]
15996         [BZ #2562]
15997         [BZ #2563]
15998         [BZ #2565]
15999         [BZ #2566]
16000         [BZ #2576]
16001         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
16002         (y0): Likewise.
16003         * math/w_j0f.c (j0f): Likewise.
16004         (y0f): Likewise.
16005         * math/w_j0l.c (__j0l): Likewise.
16006         (__y0l): Likewise.
16007         * math/w_j1.c (j1): Likewise.
16008         (y1): Likewise.
16009         * math/w_j1f.c (j1f): Likewise.
16010         (y1f): Likewise.
16011         * math/w_j1l.c (__j1l): Likewise.
16012         (__y1l): Likewise.
16013         * math/w_jn.c (jn): Likewise.
16014         (yn): Likewise.
16015         * math/w_jnf.c (jnf): Likewise.
16016         (ynf): Likewise.
16017         * math/w_jnl.c (__jnl): Likewise.
16018         (__ynl): Likewise.
16019         * math/libm-test.inc (j0_test): Add more tests.
16020         (j1_test): Likewise.
16021         (jn_test): Likewise.  Add trailing semicolon to existing test.
16022         (y0_test): Likewise.
16023         (y1_test): Likewise.
16024         * sysdeps/i386/fpu/libm-test-ulps: Update.
16025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16026
16027         [BZ #13851]
16028         [BZ #13854]
16029         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
16030         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
16031         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
16032         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
16033         (__tanl): Set errno for infinite argument.
16034         * sysdeps/i386/fpu/mptan.c: Remove.
16035         * sysdeps/i386/fpu/s_tan.S: Likewise.
16036         * sysdeps/i386/fpu/s_tanl.S: Likewise.
16037         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
16038         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
16039         * math/libm-test.inc (tan_test): Add more tests and enable more
16040         tests for double and long double.
16041         * sysdeps/i386/fpu/libm-test-ulps: Update.
16042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16043
16044 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
16045
16046         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
16047         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
16048
16049 2012-03-16  Roland McGrath  <roland@hack.frob.com>
16050
16051         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
16052         * configure.in: Use it for both main tree and add-ons.
16053         * configure: Regenerated.
16054
16055 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16056
16057         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
16058
16059 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16060
16061         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
16062         in comment.
16063
16064         [BZ #13851]
16065         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
16066         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
16067         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
16068         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
16069         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
16070         infinite argument.
16071         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
16072         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
16073         != 0 for prec == 2.
16074         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
16075         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
16076         * sysdeps/i386/fpu/s_cosl.S: Likewise.
16077         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
16078         * sysdeps/i386/fpu/s_sinl.S: Likewise.
16079         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
16080         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
16081         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
16082         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
16083         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
16084         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
16085         * math/libm-test.inc (cos_test): Add more tests and enable more
16086         tests for long double.
16087         (sin_test): Likewise.
16088         (sincos_test): Likewise.
16089         * sysdeps/i386/fpu/libm-test-ulps: Update.
16090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16091
16092 2012-03-16  David S. Miller  <davem@davemloft.net>
16093
16094         * sysdeps/sparc/fpu/math_private.h: New file.
16095
16096 2012-03-15  David S. Miller  <davem@davemloft.net>
16097
16098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
16099         file.
16100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
16101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
16102         file.
16103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
16104         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
16105         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
16106         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
16107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
16108         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
16109         sysdep routines.
16110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16111
16112         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
16113         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
16114
16115         * sysdeps/sparc/sparc-ifunc.h: New file.
16116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
16117         sparc-ifunc.h
16118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
16119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
16120         Likewise.
16121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
16122         Likewise.
16123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
16124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
16127         Likewise.
16128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
16130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
16132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
16133         Likewise.
16134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
16135         Likewise.
16136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
16139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
16140         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
16141         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
16142         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
16143         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
16144         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
16145         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
16146         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
16147         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
16148         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
16149         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
16150         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
16151         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
16152         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
16153         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
16154         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
16155         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
16156         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
16157         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
16158         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
16159         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
16160
16161 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16162
16163         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
16164         scaling.
16165         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16166
16167 2012-03-15  Andreas Jaeger  <aj@suse.de>
16168
16169         [BZ #13852]
16170         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
16171         ieee754/flt-32 implementation for sin, cos and sincos.
16172         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
16173         * sysdeps/i386/fpu/s_cosf.S: Likewise.
16174         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
16175         * sysdeps/i386/fpu/s_sinf.S: Likewise.
16176         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
16177         ieee754/flt-32 implementation for tan.
16178
16179         * math/libm-test.inc (cos_test): Enable some large input tests for
16180         float as well
16181         (sin_test): Likewise.
16182         (sincos_test): Likewise.
16183         (tan_test): Add tests for large input.
16184
16185         * sysdeps/i386/fpu/libm-test-ulps: Update.
16186
16187 2012-03-15  Andreas Jaeger  <aj@suse.de>
16188
16189         [BZ #13658]
16190         * math/libm-test.inc (cos_test): Add more test cases.
16191         (sin_test): Likewise.
16192         (sincos_test): Likewise.
16193
16194 2012-03-15  Andreas Jaeger  <aj@suse.de>
16195
16196         [BZ #13837]
16197         * math/libm-test.inc (cos_test): Add a test case for large input
16198         value.
16199         (sin_test): Likewise.
16200         (sincos_test): Likewise.
16201
16202 2012-03-15  Andreas Jaeger  <aj@suse.de>,
16203         Joseph Myers  <joseph@codesourcery.com>
16204
16205         [BZ #13658]
16206         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
16207         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
16208         * sysdeps/i386/fpu/branred.c: Likewise.
16209         * sysdeps/i386/fpu/dosincos.c: Likewise.
16210         * sysdeps/i386/fpu/mpa.c: Likewise.
16211         * sysdeps/i386/fpu/s_cos.S: Likewise.
16212         * sysdeps/i386/fpu/s_sin.S: Likewise.
16213         * sysdeps/i386/fpu/s_sincos.S: Likewise.
16214         * sysdeps/i386/fpu/sincos32.c: Likewise.
16215
16216         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
16217         Define.
16218         (libc_feupdateenv_53bit): Define.
16219         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
16220         Define.
16221         (libc_feupdateenv_53bit): Define.
16222
16223         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
16224         53 bit (without extend i386 double precision).
16225
16226         * math/libm-test.inc (sincos_test): Add tests for large input.
16227         (sin): Likewise.
16228         (cos): Likewise.
16229
16230         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
16231
16232 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16233
16234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16235
16236 2012-03-15  David S. Miller  <davem@davemloft.net>
16237
16238         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
16239         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
16240         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
16241         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
16242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
16243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
16244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
16245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
16246         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
16247         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
16248         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
16249         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
16250         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
16251         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
16252         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
16253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
16254         file.
16255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
16256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
16257         file.
16258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
16259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
16260         file.
16261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
16262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
16263         file.
16264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
16265         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
16266         fmin/fmax sysdep routines.
16267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16268
16269 2012-03-14  David S. Miller  <davem@davemloft.net>
16270
16271         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
16272         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
16273         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
16274         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
16275         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
16276         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
16277         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
16278         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
16279         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
16280         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
16281         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
16282         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
16283         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
16284         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
16285         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
16286         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
16287         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
16288         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
16289         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
16290         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
16291         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
16292         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
16293         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
16294         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
16295         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
16296         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
16297         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
16298         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
16299         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
16300         routines.
16301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
16302         file.
16303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
16304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
16305         file.
16306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
16307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
16308         file.
16309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
16310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
16311         file.
16312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
16313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
16314         file.
16315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
16316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
16317         file.
16318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
16319         file.
16320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
16321         file.
16322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
16323         file.
16324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
16325         New file.
16326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
16327         file.
16328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
16329         file.
16330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
16331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
16332         file.
16333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
16334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
16335         file.
16336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
16337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
16338         file.
16339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
16340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
16341         VIS3 routines.
16342
16343         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
16344         New file.
16345
16346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16347
16348         * sysdeps/sparc/configure.in: New file.
16349         * sysdeps/sparc/configure: Generate.
16350         * configure.in (libc_cv_sparc_as_vis3): Substitute.
16351         * configure: Regenerate.
16352         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
16353         * config.make.in (have-as-vis3): New.
16354         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
16355         available use -Av9d instead of -Av9a.
16356         * sysdeps/sparc/sparc64/Makefile: Likewise.
16357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
16358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
16359         New file.
16360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
16361         file.
16362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
16363         New file.
16364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
16365         file.
16366         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
16367         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
16368         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
16369         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
16370         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
16371
16372         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
16373         fzeros/fnegs to load 0x80000000 into a float register instead of
16374         using the stack.
16375         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
16376
16377 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
16378
16379         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16380         bits/syscall.h.
16381         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
16382         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
16383         ($(inst_includedir)/bits/syscall.h): Remove rule.
16384         ($(objpfx)bits/syscall.d): Include instead of
16385         $(objpfx)syscall-list.d.
16386         (generated): Change syscall-list.h and syscall-list.d to
16387         bits/syscall.h and bits/syscall.d.
16388
16389 2012-03-14  Roland McGrath  <roland@hack.frob.com>
16390
16391         [BZ #13846]
16392         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
16393
16394 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
16395
16396         [BZ #13841]
16397         * math/s_csqrt.c: Include <float.h>.
16398         (__csqrt): Scale large or subnormal inputs.
16399         * math/s_csqrtf.c: Likewise.
16400         * math/s_csqrtl.c: Likewise.
16401         * math/libm-test.inc (csqrt_test): Add more tests.
16402         * sysdeps/i386/fpu/libm-test-ulps: Update.
16403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16404
16405         [BZ #13840]
16406         * math/libm-test.inc (hypot_test): Add more tests.
16407
16408 2012-03-13  David S. Miller  <davem@davemloft.net>
16409
16410         [BZ #13840]
16411         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
16412         double-precision for the calculation instead of scaling.
16413
16414 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
16415
16416         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
16417         manipulate bits before adding and subtracting TWO52[sx].
16418         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
16419         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
16420         Likewise.
16421         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
16422
16423 2012-03-13  David S. Miller  <davem@davemloft.net>
16424
16425         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
16426         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
16427         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
16428         rtld-global-offsets.h
16429         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16430
16431         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
16432         large parameters.
16433
16434         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
16435
16436         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
16437         'err' in the ifdef scope in which it is actually used.
16438
16439         * nss/nss_db/db-init.c: Include string.h
16440
16441 2012-03-12  David S. Miller  <davem@davemloft.net>
16442
16443         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16444         masking out of the most significant byte of random value used.
16445         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16446         Fix coding style in previous change.
16447
16448         * sysdeps/unix/sysv/linux/kernel-features.h
16449         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
16450         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
16451         expression.
16452         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
16453         later.
16454
16455 2012-03-11  David S. Miller  <davem@davemloft.net>
16456
16457         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16458         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
16459         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
16460         for 'resultvar' otherwise things get truncated on 64-bit.
16461
16462         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16463         Fix masking out of the most significant byte of random value used.
16464
16465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16466
16467 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
16468
16469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16470
16471 2012-03-09  David S. Miller  <davem@davemloft.net>
16472
16473         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
16474         variables with appropriate CPP guards.
16475         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
16476         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
16477         on resulting framesize and the management of the outregs buffer for pltexit.
16478         Preserve floating point return values across _dl_call_pltexit call.
16479         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
16480         framesize and the management of the outregs buffer for pltexit.
16481         Preserve floating point return values across _dl_call_pltexit
16482         call.
16483         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
16484         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
16485         (print_exit): Fix format string for return register value.
16486
16487 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
16488
16489         * sunrpc/Makefile (others): Add rpcgen.
16490         ($(objpfx)rpcgen): Remove special build rule and dependency on
16491         libc.
16492         * sunrpc/rpcgen.c: New file.
16493
16494 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
16495
16496         [BZ #13673]
16497         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
16498         * stdio-common/bug-vfprintf-nargs.c: Likewise.
16499         * sysdeps/i386/crti.S: Likewise.
16500         * sysdeps/i386/crtn.S: Likewise.
16501         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
16502         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
16503         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
16504         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
16505         * sysdeps/sh/crti.S: Likewise.
16506         * sysdeps/sh/crtn.S: Likewise.
16507         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16508
16509         [BZ #13673]
16510         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
16511         with URL.
16512         * locale/programs/locfile-kw.gperf: Likewise.
16513         * locale/programs/charmap-kw.h: Regenerated.
16514         * locale/programs/locfile-kw.h: Likewise.
16515
16516         [BZ #13673]
16517         * intl/plural.y: Replace FSF snail mail address with URL.
16518         * intl/plural.c: Regenerated.
16519
16520 2012-03-09  Richard Henderson  <rth@twiddle.net>
16521
16522         * include/math_private.h: Remove file.
16523         * math/math_private.h: Move file ...
16524         * sysdeps/generic/math_private.h: ... here.
16525
16526         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
16527         * sysdeps/powerpc/fpu/math_private.h: Likewise.
16528         * sysdeps/x86_64/fpu/math_private.h: Likewise.
16529
16530         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
16531         and <math_private.h>.
16532         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
16533         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
16534         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
16535         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
16536         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
16537         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
16538         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16539         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16540         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16541         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16542         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16543         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16544         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16545         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16546         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16547         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16548         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16549         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16550         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16551         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16552         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16553         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16554         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16555         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16556         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
16557         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16558         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16559         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16560         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16561         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16562         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16563         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
16565         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16566         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
16573         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
16574         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
16575         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
16576         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
16577         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
16578         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
16579         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
16580         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16581         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
16584         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
16585         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
16586         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
16587         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16588         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16589         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
16590         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
16591         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
16592         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16593         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
16594         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16595         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
16596         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
16597         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16598         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16599         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16600         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
16601         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
16602         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
16603         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16604         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
16605         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16606         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
16607         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
16608         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
16609         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
16610         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
16611         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
16615         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16616         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16617         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
16618         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
16619         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
16620         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16621         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16622         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16623         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16624         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16625         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16626         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16627         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16628         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16629         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16630         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16631         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16632         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16633         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16634         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16635         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16636         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16637         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16638         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16639         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16640         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16641         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16642         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16643         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16644         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16645         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16646         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
16647         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16648         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16649         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
16650         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16651         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16652         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16653         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
16654         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16655         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
16656         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16657         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
16658         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16659         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
16660         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
16661         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
16662         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
16663         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16664         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16665         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
16666         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
16667         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
16668         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16669         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
16670         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
16671         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16672         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16673         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
16674         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
16675         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
16676         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
16677         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
16678         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
16679         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
16680         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
16681         * sysdeps/ieee754/k_standard.c: Likewise.
16682         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16683         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16684         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16685         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16686         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16687         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16688         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16689         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16690         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16691         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16692         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16693         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16694         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16695         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16696         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16697         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16698         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16699         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16700         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16701         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
16702         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
16703         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
16704         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16705         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
16706         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16707         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16708         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
16709         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
16710         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
16711         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16712         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16713         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
16714         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
16715         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
16716         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16717         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
16718         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
16719         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
16720         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
16721         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
16722         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16723         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16724         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16725         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
16726         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16727         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16728         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
16729         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
16730         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
16731         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16732         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16733         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16734         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
16735         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
16736         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16737         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16738         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
16739         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
16740         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
16741         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
16742         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16743         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16744         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16745         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16746         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16747         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16748         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16749         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16750         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16751         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16752         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16753         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16754         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16755         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16756         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16757         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16758         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
16759         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16760         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16761         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16762         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16763         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16764         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
16765         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
16766         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
16767         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
16768         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
16769         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16770         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16771         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
16772         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
16773         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
16774         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
16775         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16776         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
16777         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
16778         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
16779         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
16780         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
16781         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
16782         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
16783         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
16784         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16785         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
16786         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
16787         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16788         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16789         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
16790         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
16791         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
16792         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
16793         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
16794         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16795         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16796         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16797         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16798         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16799         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16800         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16801         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16802         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16803         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16804         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16805         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16806         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16807         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
16808         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
16809         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
16810         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
16811         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16812         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
16813         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
16814         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
16815         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
16816         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
16817         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
16818         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
16819         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
16820         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
16821         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
16822         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
16823         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
16824         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
16825         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
16826         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
16827         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
16828         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
16829         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
16830         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
16831         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
16832         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
16833         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16834         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
16835         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
16836         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
16837         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
16838         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
16839         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16840         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
16841         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
16842         * sysdeps/ieee754/s_lib_version.c: Likewise.
16843         * sysdeps/ieee754/s_matherr.c: Likewise.
16844         * sysdeps/ieee754/s_signgam.c: Likewise.
16845         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16846         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16847         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
16848         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
16849         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
16850         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
16851         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
16852         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
16853         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
16854         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
16855         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16856         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
16857         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
16858         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
16859         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
16860         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
16861         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
16862         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
16863         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
16864         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16865         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16866
16867 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16868
16869         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
16870         * sunrpc/rpc_main.c: Likewise.
16871         * sunrpc/rpc_svcout.c: Likewise.
16872
16873 2012-03-09  David S. Miller  <davem@davemloft.net>
16874
16875         * include/math_private.h: New file.
16876
16877 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16878
16879         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
16880         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
16881         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
16882         from <bits/socket_type.h>.
16883         (enum __socket_type): Don't define here.
16884         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
16885         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16886         bits/socket_type.h.
16887
16888         [BZ #13566]
16889         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
16890         checking __USE_GNU.
16891
16892         * Makerules ($(inst_includedir)/%.h): New rule.
16893         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
16894         (install-others): Remove variable setting.
16895         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
16896
16897 2012-03-08  Richard Henderson  <rth@twiddle.net>
16898
16899         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
16900         from macro to inline function; merge with the
16901         !__LIBC_INTERNAL_MATH_INLINES version.
16902         (__ieee754_sqrtf): Likewise.
16903
16904         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
16905         to inline function.
16906         (__rintf, __floor, __floorf): Likewise.
16907
16908         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
16909         macro to inline function.
16910         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
16911
16912         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
16913         not <math/math_private.h>.
16914
16915 2012-03-08  David S. Miller  <davem@davemloft.net>
16916
16917         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
16918         copyright year.
16919         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16920
16921 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
16922
16923         * resolv/gai_misc.c (handle_requests): Fix struct timespec
16924         normalization.
16925         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
16926         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
16927
16928 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
16929
16930         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
16931         be defined individually, they must be defined as a block.  Define
16932         S for printing a string instead of hidint the different by using a
16933         macro for adding the 'l'.
16934         * stdio-common/tst-fphex-wide.c: Adjust.
16935
16936 2012-03-07  Marek Polacek  <polacek@redhat.com>
16937
16938         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
16939
16940 2012-03-08  Marek Polacek  <polacek@redhat.com>
16941
16942         [BZ #13806]
16943         * stdio-common/Makefile (tests): Add tst-fphex-wide.
16944         * stdio-common/tst-fphex.c: Define a few macros to make the
16945         test reusable.  Use them.
16946         * stdio-common/tst-fphex-wide.c: New file.
16947
16948 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
16949
16950         [BZ #6911]
16951         * manual/macros.texi (gnusystems): New macro.
16952         (nongnusystems): Likewise.
16953         (gnulinuxhurdsystems): Likewise.
16954         (gnuhurdsystems): Likewise..
16955         (gnulinuxsystems): Likewise.
16956         * manual/charset.texi: Use new macros or @theglibc{} to refer to
16957         variants of the GNU system, not "GNU system".
16958         * manual/conf.texi: Likewise.
16959         * manual/errno.texi: Likewise.  Update example of errno macro
16960         expansion.
16961         * manual/filesys.texi: Likewise.
16962         (getumask): Document as specific to GNU/Hurd.
16963         * manual/install.texi: Likewise.  Reword some references to
16964         GNU/Linux.
16965         * manual/intro.texi: Likewise.
16966         * manual/io.texi: Likewise.
16967         (File Name Portability): Detail which constraints are inapplicable
16968         to all GNU systems and which are only inapplicable to GNU/Hurd.
16969         * manual/job.texi: Likewise.
16970         * manual/llio.texi: Likewise.
16971         (O_NOCTTY): Document as present on GNU/Linux.
16972         * manual/maint.texi: Likewise.
16973         * manual/memory.texi: Likewise.
16974         * manual/pattern.texi: Likewise.
16975         * manual/pipe.texi: Likewise.
16976         * manual/process.texi: Likewise.
16977         * manual/resource.texi: Likewise.
16978         (RUSAGE_CHILDREN): Remove statement about specifying a particular
16979         child on GNU/Hurd.
16980         * manual/setjmp.texi: Likewise.
16981         * manual/signal.texi: Likewise.
16982         * manual/startup.texi: Likewise.
16983         * manual/stdio.texi: Likewise.
16984         * manual/terminal.texi: Likewise.
16985         (ONLCR): Document as POSIX.
16986         (OXTABS): Document availability on GNU/Linux as XTABS.
16987         (ONOEOT): Document availability separately from other bits.
16988         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
16989         * manual/time.texi: Likewise.
16990         * manual/users.texi: Likewise.
16991         * INSTALL: Regenerated.
16992         * sysdeps/gnu/errlist.c: Regenerated.
16993
16994         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
16995         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
16996         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
16997         puts.
16998         * configure: Regenerated.
16999
17000 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
17001
17002         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
17003         default includes instead of AC_HEADER_CHECK.
17004         * sysdeps/i386/configure: Regenerated.
17005
17006         [BZ #10716]
17007         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
17008         * math/s_cacoshf.c (__cacoshf): Likewise.
17009         * math/s_cacoshl.c (__cacoshl): Likewise.
17010         * math/s_casinh.c (__casinh): Set signs of result from argument.
17011         * math/s_casinhf.c (__casinhf): Likewise.
17012         * math/s_casinhl.c (__casinhl): Likewise.
17013         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
17014         (casinh_test): Add more tests.
17015         * sysdeps/i386/fpu/libm-test-ulps: Update.
17016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17017
17018 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
17019
17020         * po/zh_TW.po: Update from translation team.
17021
17022         * login/Makefile (distribute): Remove variable.
17023         * catgets/Makefile: Likewise.
17024         * mach/Makefile: Likewise.
17025         * malloc/Makefile: Likewise.
17026         * misc/Makefile: Likewise.
17027         * iconv/Makefile: Likewise.
17028         * nscd/Makefile: Likewise.
17029         * hurd/Makefile: Likewise.
17030         * manual/Makefile: Likewise.
17031         * locale/Makefile: Likewise.
17032         * intl/Makefile: Likewise.
17033         * conform/Makefile: Likewise.
17034         * nss/Makefile: Likewise.
17035         * time/Makefile: Likewise.
17036         * soft-fp/Makefile: Likewise.
17037         * dirent/Makefile: Likewise.
17038         * gmon/Makefile: Likewise.
17039         * po/Makefile: Likewise.
17040         * rt/Makefile: Likewise.
17041         * socket/Makefile: Likewise.
17042         * math/Makefile: Likewise.
17043         * signal/Makefile: Likewise.
17044         * debug/Makefile: Likewise.
17045         * elf/Makefile: Likewise.
17046         * timezone/Makefile: Likewise.
17047         * stdlib/Makefile: Likewise.
17048         * iconvdata/Makefile: Likewise.
17049         * sunrpc/Makefile: Likewise.
17050         * io/Makefile: Likewise.
17051         * argp/Makefile: Likewise.
17052         * inet/Makefile: Likewise.
17053         * hesiod/Makefile: Likewise.
17054         * grp/Makefile: Likewise.
17055         * csu/Makefile: Likewise.
17056         * wctype/Makefile: Likewise.
17057         * crypt/Makefile: Likewise.
17058         * libio/Makefile: Likewise.
17059         * string/Makefile: Likewise.
17060         * nis/Makefile: Likewise.
17061         * resolv/Makefile: Likewise.
17062         * stdio-common/Makefile: Likewise.
17063         * wcsmbs/Makefile: Likewise.
17064         * dlfcn/Makefile: Likewise.
17065         * posix/Makefile: Likewise.
17066
17067         [BZ #6959]
17068         * timezone/Makefile: Don't install timezone files, just the programs
17069         and scripts.
17070
17071 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
17072
17073         * nss/databases.def: Add missing gshadow entry.
17074
17075         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
17076
17077 2012-03-06  Marek Polacek  <polacek@redhat.com>
17078
17079         [BZ #13726]
17080         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
17081         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
17082         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
17083         * stdio-common/tst-long-dbl-fphex.c: New file.
17084
17085 2012-03-06  David S. Miller  <davem@davemloft.net>
17086
17087         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17088         (set_obp_int): New function.
17089         (get_obp_int): New function.
17090         (__get_clockfreq_via_dev_openprom): Likewise.
17091         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
17092         Avoid unused variable warnings on 'val' and use builtin_expect.
17093         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
17094         __builtin_expect.
17095         (INLINE_CLONE_SYSCALL): Likewise.
17096
17097 2012-03-05  David S. Miller  <davem@davemloft.net>
17098
17099         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17100
17101 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
17102
17103         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17104
17105         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
17106         only for |x| >= 40.
17107         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17108
17109 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
17110
17111         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
17112         Replace gettimeofday with __vdso_gettimeofday.
17113
17114         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17115         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
17116         __vdso_clock_gettime and __vdso_getcpu.
17117
17118         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
17119         time with __vdso_time.
17120
17121 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17122
17123         * manual/lang.texi (size_t): Note types to which size_t may be
17124         equivalent with the GNU C Library, but do not describe when
17125         differences between them are significant.
17126
17127 2012-03-05  Andreas Jaeger  <aj@suse.de>
17128
17129         * sysdeps/i386/fpu/libm-test-ulps: Update.
17130
17131 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17132
17133         [BZ #3976]
17134         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
17135         (__ieee754_pow): Save and restore rounding mode and use
17136         round-to-nearest for main computations.
17137         * math/libm-test.inc (pow_test_tonearest): New function.
17138         (pow_test_towardzero): Likewise.
17139         (pow_test_downward): Likewise.
17140         (pow_test_upward): Likewise.
17141         (main): Call the new functions.
17142         * sysdeps/i386/fpu/libm-test-ulps: Update.
17143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17144
17145         [BZ #3976]
17146         * math/libm-test.inc (cosh_test_tonearest): New function.
17147         (cosh_test_towardzero): Likewise.
17148         (cosh_test_downward): Likewise.
17149         (cosh_test_upward): Likewise.
17150         (sinh_test_tonearest): Likewise.
17151         (sinh_test_towardzero): Likewise.
17152         (sinh_test_downward): Likewise.
17153         (sinh_test_upward): Likewise.
17154         (main): Call the new functions.
17155         * sysdeps/i386/fpu/libm-test-ulps: Update.
17156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17157
17158 2012-03-05  Tom de Vries  <tom@codesourcery.com>
17159
17160         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
17161         default stack guard is set in last bytes.
17162         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
17163
17164 2012-03-05  Kees Cook  <keescook@chromium.org>
17165
17166         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
17167
17168         [BZ #13656]
17169         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
17170         possibly allocate from heap instead of stack.
17171         * stdio-common/bug-vfprintf-nargs.c: New file.
17172         * stdio-common/Makefile (tests): Add nargs overflow test.
17173
17174 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17175
17176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17177
17178 2012-03-03  Marek Polacek  <polacek@redhat.com>
17179
17180         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
17181         * math/math_private.h: Likewise.
17182         * stdlib/tst-strtod.c: Likewise.
17183         * sysdeps/i386/i486/bits/atomic.h: Likewise.
17184         * sysdeps/x86_64/bits/atomic.h: Likewise.
17185
17186 2012-03-02  David S. Miller  <davem@davemloft.net>
17187
17188         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
17189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
17190         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
17191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
17192         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
17193         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
17194         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
17195         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
17196
17197 2012-03-02  Roland McGrath  <roland@hack.frob.com>
17198
17199         [BZ #13792]
17200         * manual/examples/README: New file, says the example source files
17201         can be used under GPL>=2.
17202         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
17203         line containing just "*/".
17204         * manual/examples/add.c: Add copyright header (GPL>=2).
17205         * manual/examples/argp-ex1.c: Likewise.
17206         * manual/examples/argp-ex2.c: Likewise.
17207         * manual/examples/argp-ex3.c: Likewise.
17208         * manual/examples/argp-ex4.c: Likewise.
17209         * manual/examples/atexit.c: Likewise.
17210         * manual/examples/db.c: Likewise.
17211         * manual/examples/dir.c: Likewise.
17212         * manual/examples/dir2.c: Likewise.
17213         * manual/examples/execinfo.c: Likewise.
17214         * manual/examples/filecli.c: Likewise.
17215         * manual/examples/filesrv.c: Likewise.
17216         * manual/examples/fmtmsgexpl.c: Likewise.
17217         * manual/examples/genpass.c: Likewise.
17218         * manual/examples/inetcli.c: Likewise.
17219         * manual/examples/inetsrv.c: Likewise.
17220         * manual/examples/isockad.c: Likewise.
17221         * manual/examples/longopt.c: Likewise.
17222         * manual/examples/memopen.c: Likewise.
17223         * manual/examples/memstrm.c: Likewise.
17224         * manual/examples/mkfsock.c: Likewise.
17225         * manual/examples/mkisock.c: Likewise.
17226         * manual/examples/mygetpass.c: Likewise.
17227         * manual/examples/pipe.c: Likewise.
17228         * manual/examples/popen.c: Likewise.
17229         * manual/examples/rprintf.c: Likewise.
17230         * manual/examples/search.c: Likewise.
17231         * manual/examples/select.c: Likewise.
17232         * manual/examples/setjmp.c: Likewise.
17233         * manual/examples/sigh1.c: Likewise.
17234         * manual/examples/sigusr.c: Likewise.
17235         * manual/examples/stpcpy.c: Likewise.
17236         * manual/examples/strdupa.c: Likewise.
17237         * manual/examples/strftim.c: Likewise.
17238         * manual/examples/strncat.c: Likewise.
17239         * manual/examples/subopt.c: Likewise.
17240         * manual/examples/swapcontext.c: Likewise.
17241         * manual/examples/termios.c: Likewise.
17242         * manual/examples/testopt.c: Likewise.
17243         * manual/examples/testpass.c: Likewise.
17244         * manual/examples/timeval_subtract.c: Likewise.
17245
17246         [BZ #13792]
17247         * manual/time.texi (Elapsed Time): Move timeval_subtract example
17248         function to ...
17249         * manual/timeval_subtract.c.texi: ... here, new file.
17250
17251 2012-03-02  David S. Miller  <davem@davemloft.net>
17252
17253         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
17254
17255 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
17256
17257         [BZ #3976]
17258         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
17259         (__sin): Save and restore rounding mode and use round-to-nearest
17260         for all computations.
17261         (__cos): Save and restore rounding mode and use round-to-nearest
17262         for all computations.
17263         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
17264         <fenv.h>.
17265         (tan): Save and restore rounding mode and use round-to-nearest for
17266         all computations.
17267         * math/libm-test.inc (cos_test_tonearest): New function.
17268         (cos_test_towardzero): Likewise.
17269         (cos_test_downward): Likewise.
17270         (cos_test_upward): Likewise.
17271         (sin_test_tonearest): Likewise.
17272         (sin_test_towardzero): Likewise.
17273         (sin_test_downward): Likewise.
17274         (sin_test_upward): Likewise.
17275         (tan_test_tonearest): Likewise.
17276         (tan_test_towardzero): Likewise.
17277         (tan_test_downward): Likewise.
17278         (tan_test_upward): Likewise.
17279         (main): Call the new functions.
17280         * sysdeps/i386/fpu/libm-test-ulps: Update.
17281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17282
17283         [BZ #10135]
17284         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
17285         small n, then large n, before computing and testing k+n.
17286         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
17287         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
17288         Likewise.
17289         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
17290         Likewise.
17291         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
17292         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
17293         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
17294         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
17295         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
17296         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
17297         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
17298         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
17299         * math/libm-test.inc (scalbn_test): Add more tests.
17300         (scalbln_test): Likewise.
17301
17302         * manual/filesys.texi (mode_t): Describe constraints on size and
17303         signedness, not exact equivalence to a particular type.
17304         (ino_t): Likewise.
17305         (ino64_t): Likewise.
17306         (dev_t): Likewise.
17307         (nlink_t): Likewise.
17308         (blkcnt_t): Likewise.
17309         (blkcnt64_t): Likewise.
17310         * manual/llio.texi (off_t): Likewise.
17311
17312         [BZ #3976]
17313         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
17314         (__ieee754_exp): Save and restore rounding mode and use
17315         round-to-nearest for all computations.
17316         * math/libm-test.inc (exp_test_tonearest): New function.
17317         (exp_test_towardzero): Likewise.
17318         (exp_test_downward): Likewise.
17319         (exp_test_upward): Likewise.
17320         (main): Call the new functions.
17321         * sysdeps/i386/fpu/libm-test-ulps: Update.
17322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17323
17324 2012-03-01  Chris Demetriou  <cgd@google.com>
17325
17326         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
17327         have predictable order.
17328
17329 2012-03-01  David S. Miller  <davem@davemloft.net>
17330
17331         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
17332
17333         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
17334         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
17335         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
17336         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
17337
17338         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
17339         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
17340         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
17341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
17342         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
17343         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
17344         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
17345         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
17346         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
17347
17348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17349
17350         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
17351         * sysdeps/sparc/fpu/libm-test-ulps: to here.
17352         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
17353
17354         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
17355         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17356         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17357         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
17358         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
17359         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
17360         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
17361         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17362         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17363         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
17364         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
17365         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17366         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17367         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17368         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17369         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17370         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
17371         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
17372         * sysdeps/sparc/elf/configure: Regenerated.
17373
17374 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
17375
17376         * configure.in (AS, LD): Require binutils 2.20 or later.
17377         * configure: Regenerated.
17378         * manual/install.texi (Tools for Compilation): Give binutils 2.20
17379         as required minimum version.
17380         * INSTALL: Regenerated.
17381
17382         [BZ #2541]
17383         [BZ #4108]
17384         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
17385         before squaring exponent.
17386         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
17387         bottom long double and 27 bits of top long double before squaring
17388         exponent.
17389         * math/libm-test.inc (erfc_test): Add more tests.
17390         * sysdeps/i386/fpu/libm-test-ulps: Update.
17391         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17393
17394 2012-03-01  Kai Tietz  <ktietz@redhat.com>
17395
17396         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
17397         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
17398         containing bit-fields.
17399         * soft-fp/extended.h (_FP_UNION_E): Likewise.
17400         * soft-fp/single.h (_FP_UNION_S): Likewise.
17401         * soft-fp/double.h (_FP_UNION_D): Likewise.
17402
17403 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17404
17405         [BZ #13786]
17406         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
17407         not include ../strcmp.S.
17408         [USE_AS_STRNCASECMP_L]: Likewise.
17409         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
17410         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
17411         * sysdeps/i386/i686/multiarch/strncase_l-c.c
17412         (__strncasecmp_l_ia32): Define as alias to
17413         __strncasecmp_l_nonascii.
17414
17415         [BZ #5794]
17416         * math/libm-test.inc (expm1_test): Add test for bug 5794.
17417         * sysdeps/i386/fpu/libm-test-ulps: Update.
17418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17419
17420         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
17421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17422
17423 2012-02-29  Jeff Law  <law@redhat.com>
17424
17425         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
17426         out of bounds read.
17427
17428 2012-02-29  Marek Polacek  <polacek@redhat.com>
17429
17430         [BZ #13706]
17431         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
17432         * elf/Makefile: Add rules to run tst-unused-dep.out.
17433
17434 2012-02-28  David S. Miller  <davem@davemloft.net>
17435
17436         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
17437         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
17438         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
17439         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
17440         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
17441         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
17442
17443 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17444
17445         * math/libm-test.inc (llround_test): Move one test from
17446         lround_test.  Use TEST_f_L in moved test.
17447         (lround_test): Move misplaced test to llround_test.  Add testcase
17448         from bug 2561.
17449
17450 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
17451
17452         * sysdeps/x86_64/fpu/e_expf.S: New file.
17453         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
17454
17455 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
17456
17457         [BZ #13637]
17458         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
17459         of remain_len that may cause incomplete multi-byte character and
17460         false match.
17461         * posix/bug-regex33.c: New file.
17462         * posix/Makefile (tests): Add bug-regex33.
17463
17464 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
17465
17466         * manual/macros.texi: New file.
17467         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
17468         * manual/libc.texinfo: Include macros.texi.
17469         * manual/creatute.texi: Likewise.
17470         * manual/install.texi: Likewise.
17471         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
17472         @glibcadj{} in references to the GNU C Library.
17473         * manual/charset.texi: Likewise.
17474         * manual/conf.texi: Likewise.
17475         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
17476         when not using those macros.
17477         * manual/creature.texi: Likewise.
17478         * manual/crypt.texi: Likewise.
17479         * manual/errno.texi: Likewise.
17480         * manual/filesys.texi: Likewise.
17481         * manual/header.texi: Likewise.
17482         * manual/install.texi: Likewise.
17483         * manual/intro.texi: Likewise.
17484         * manual/io.texi: Likewise.
17485         * manual/job.texi: Likewise.
17486         * manual/lang.texi: Likewise.
17487         * manual/libc.texiinfo: Likewise.
17488         * manual/llio.texi: Likewise.
17489         * manual/locale.texi: Likewise.
17490         * manual/maint.texi: Likewise.
17491         * manual/math.texi: Likewise.
17492         * manual/memory.texi: Likewise.
17493         * manual/message.texi: Likewise.
17494         * manual/nss.texi: Likewise.
17495         * manual/pattern.texi: Likewise.
17496         * manual/process.texi: Likewise.
17497         * manual/resource.texi: Likewise.
17498         * manual/search.texi: Likewise.
17499         * manual/setjmp.texi: Likewise.
17500         * manual/signal.texi: Likewise.
17501         * manual/socket.texi: Likewise.
17502         * manual/startup.texi: Likewise.
17503         * manual/stdio.texi: Likewise.
17504         * manual/string.texi: Likewise.
17505         * manual/sysinfo.texi: Likewise.
17506         * manual/syslog.texi: Likewise.
17507         * manual/terminal.texi: Likewise.
17508         * manual/time.texi: Likewise.
17509         * manual/users.texi: Likewise.
17510         * INSTALL: Regenerated.
17511         * NOTES: Regenerated.
17512         * sysdeps/gnu/errlist.c: Regenerated.
17513
17514 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
17515
17516         * include/dirent.h: Include <dirstream.h> before
17517         <dirent/dirent.h>.
17518
17519 2012-02-28  David S. Miller  <davem@davemloft.net>
17520
17521         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
17522         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
17523         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
17524         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
17525
17526 2012-02-27  David S. Miller  <davem@davemloft.net>
17527
17528         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
17529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
17530         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
17531         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
17532
17533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
17534         frame pointer instead of stack pointer relative arg slot.
17535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
17536         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
17537         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
17538
17539 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
17540
17541         [BZ #3992]
17542         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
17543
17544 2012-02-27  David S. Miller  <davem@davemloft.net>
17545
17546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
17547         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
17548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17549         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
17550         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
17551         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
17552         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
17553         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
17554
17555 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
17556
17557         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
17558         later.  Allow versions 5-9.
17559         * configure: Regenerated.
17560         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
17561         required minimum version and 4.6 as recommended version.  Do not
17562         mention bugs in GCC 2.7 and 2.8.
17563         * INSTALL: Regenerated.
17564
17565 2012-02-27  David S. Miller  <davem@davemloft.net>
17566
17567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
17568         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
17569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
17570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
17571         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
17572         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
17573         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
17574         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
17575
17576         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
17577         manipulate bits before adding and subtracting TWO112[sx].
17578         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
17579
17580 2012-02-27  Roland McGrath  <roland@hack.frob.com>
17581
17582         [BZ #13775]
17583         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
17584         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
17585         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
17586         being in POSIX, because they are in 1003.1-2008.
17587
17588         * rt/tst-aio.c: Include <fcntl.h>.
17589         * rt/tst-aio7.c: Likewise.
17590         * rt/tst-aio64.c: Likewise.
17591
17592         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
17593
17594 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
17595
17596         * manual/install.texi (--with-headers): Describe headers as
17597         interface headers, not private headers.
17598         (Specific advice for GNU/Linux systems): Describe use of headers
17599         from "make headers_install", not private headers from older
17600         kernels.
17601         * INSTALL: Regenerated.
17602         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
17603         Change to 2.6.19.
17604         * sysdeps/unix/sysv/linux/configure: Regenerated.
17605
17606         * manual/llio.texi (fclean): Remove documentation.
17607
17608         * manual/Makefile (libc-texi-generated): New variable.  Include
17609         version.texi.
17610         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
17611         $(libc-texi-generated), not duplicated list of files.
17612         (version.texi, stamp-version): New rules.
17613         (realclean): Remove $(libc-texi-generated), not individual files
17614         from that list.  Do not remove dir-add.texinfo.
17615         * manual/libc.texinfo: Comment out uses of edition numbers and
17616         references to printed manual.  Remove last-updated dates.
17617         (EDITION): Comment out.
17618         (ISBN): Likewise.
17619         (VERSION, UPDATED): Remove.
17620         (version.texi): Include.
17621
17622 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
17623
17624         * sysdeps/posix/spawni.c: Include <signal.h>.
17625         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
17626         * sysdeps/pthread/aio_fsync.c: Likewise.
17627
17628 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
17629
17630         * conform/Makefile (tests): Run only when not cross-compiling and
17631         when fast-check is not defined.
17632
17633         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
17634         * conform/data/limits.h-data: Fixes for POSIX2008.
17635         * conform/run-conformtest.sh: Run all tests.
17636         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
17637         headers.
17638         * include/bits/dlfcn.h: Likewise.
17639         * include/langinfo.h: Likewise.
17640         * include/monetary.h: Likewise.
17641         * include/sys/poll.h: Likewise.
17642
17643         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
17644         for __USE_GNU.
17645         * posix/spawn.h: Define __need_sigset_t.
17646         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
17647         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
17648         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
17649         to get sigevent_t only.
17650         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
17651         only for __USE_GNU.
17652         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17653         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
17654         process_vm_writev only for __USE_GNU.
17655         * termios/termios.h: Declare tcgetsid also for POSIX2008.
17656
17657         * conform/Makefile: For now ignore errors from run-conformtest.
17658         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
17659         POSIX to avoid namespace pollution.  Don't prepend headers.
17660         * conform/data/aio.h-data: Fixes for POSIX testing.
17661         * conform/data/fcntl.h-data: Likewise.
17662         * conform/data/glob.h-data: Likewise.
17663         * conform/data/grp.h-data: Likewise.
17664         * conform/data/pthread.h-data: Likewise.
17665         * conform/data/pwd.h-data: Likewise.
17666         * conform/data/signal.h-data: Likewise.
17667         * conform/data/spawn.h-data: Likewise.
17668         * conform/data/stdio.h-data: Likewise.
17669         * conform/data/stdlib.h-data: Likewise.
17670         * conform/data/stropts.h-data: Likewise.
17671         * conform/data/sys/mman.h-data: Likewise.
17672         * conform/data/sys/stat.h-data: Likewise.
17673         * conform/data/sys/types.h-data: Likewise.
17674         * conform/data/sys/wait.h-data: Likewise.
17675         * conform/data/time.h-data: Likewise.
17676         * conform/data/unistd.h-data: Likewise.
17677         * conform/data/utime.h-data: Likewise.
17678
17679         * io/sys/stat.h: fchmod was always in POSIX.
17680         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
17681         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
17682         * rt/aio.h: Define __need_timespec before including <time.h>.
17683         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
17684         struct.  Add forward declaration of pthread_attr_t and use it in
17685         sigevent.
17686         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17687         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17688         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
17689         always remove CLK_TCK definition.
17690
17691 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
17692
17693         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
17694
17695 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
17696
17697         * conform/run-conformtest.sh: New file.
17698         * conform/Makefile: Run run-conformtest for tests.
17699         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
17700         support.
17701
17702         * conform/data/uchar.h-data: New file.
17703         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
17704         * conform/data/arpa/inet.h-data: Likewise.
17705         * conform/data/assert.h-data: Likewise.
17706         * conform/data/complex.h-data: Likewise.
17707         * conform/data/cpio.h-data: Likewise.
17708         * conform/data/ctype.h-data: Likewise.
17709         * conform/data/dirent.h-data: Likewise.
17710         * conform/data/dlfcn.h-data: Likewise.
17711         * conform/data/errno.h-data: Likewise.
17712         * conform/data/fcntl.h-data: Likewise.
17713         * conform/data/float.h-data: Likewise.
17714         * conform/data/fmtmsg.h-data: Likewise.
17715         * conform/data/fnmatch.h-data: Likewise.
17716         * conform/data/ftw.h-data: Likewise.
17717         * conform/data/glob.h-data: Likewise.
17718         * conform/data/grp.h-data: Likewise.
17719         * conform/data/iconv.h-data: Likewise.
17720         * conform/data/inttypes.h-data: Likewise.
17721         * conform/data/langinfo.h-data: Likewise.
17722         * conform/data/libgen.h-data: Likewise.
17723         * conform/data/limits.h-data: Likewise.
17724         * conform/data/locale.h-data: Likewise.
17725         * conform/data/math.h-data: Likewise.
17726         * conform/data/monetary.h-data: Likewise.
17727         * conform/data/mqueue.h-data: Likewise.
17728         * conform/data/ndbm.h-data: Likewise.
17729         * conform/data/net/if.h-data: Likewise.
17730         * conform/data/netdb.h-data: Likewise.
17731         * conform/data/netinet/in.h-data: Likewise.
17732         * conform/data/nl_types.h-data: Likewise.
17733         * conform/data/poll.h-data: Likewise.
17734         * conform/data/pthread.h-data: Likewise.
17735         * conform/data/pwd.h-data: Likewise.
17736         * conform/data/regex.h-data: Likewise.
17737         * conform/data/sched.h-data: Likewise.
17738         * conform/data/search.h-data: Likewise.
17739         * conform/data/semaphore.h-data: Likewise.
17740         * conform/data/setjmp.h-data: Likewise.
17741         * conform/data/signal.h-data: Likewise.
17742         * conform/data/spawn.h-data: Likewise.
17743         * conform/data/stdarg.h-data: Likewise.
17744         * conform/data/stdio.h-data: Likewise.
17745         * conform/data/stdlib.h-data: Likewise.
17746         * conform/data/string.h-data: Likewise.
17747         * conform/data/strings.h-data: Likewise.
17748         * conform/data/stropts.h-data: Likewise.
17749         * conform/data/sys/ipc.h-data: Likewise.
17750         * conform/data/sys/mman.h-data: Likewise.
17751         * conform/data/sys/msg.h-data: Likewise.
17752         * conform/data/sys/resource.h-data: Likewise.
17753         * conform/data/sys/select.h-data: Likewise.
17754         * conform/data/sys/sem.h-data: Likewise.
17755         * conform/data/sys/shm.h-data: Likewise.
17756         * conform/data/sys/socket.h-data: Likewise.
17757         * conform/data/sys/stat.h-data: Likewise.
17758         * conform/data/sys/statvfs.h-data: Likewise.
17759         * conform/data/sys/time.h-data: Likewise.
17760         * conform/data/sys/timeb.h-data: Likewise.
17761         * conform/data/sys/times.h-data: Likewise.
17762         * conform/data/sys/types.h-data: Likewise.
17763         * conform/data/sys/uio.h-data: Likewise.
17764         * conform/data/sys/un.h-data: Likewise.
17765         * conform/data/sys/utsname.h-data: Likewise.
17766         * conform/data/sys/wait.h-data: Likewise.
17767         * conform/data/syslog.h-data: Likewise.
17768         * conform/data/tar.h-data: Likewise.
17769         * conform/data/termios.h-data: Likewise.
17770         * conform/data/utime.h-data: Likewise.
17771         * conform/data/utmpx.h-data: Likewise.
17772         * conform/data/varargs.h-data: Likewise.
17773         * conform/data/wchar.h-data: Likewise.
17774         * conform/data/wctype.h-data: Likewise.
17775         * conform/data/wordexp.h-data: Likewise.
17776
17777         * include/stropts.h: New file.
17778         * include/uchar.h: New file.
17779         * include/aio.h: Changes to allow conformtest.pl to use the headers.
17780         * include/assert.h: Likewise.
17781         * include/ctype.h: Likewise.
17782         * include/dirent.h: Likewise.
17783         * include/dlfcn.h: Likewise.
17784         * include/fcntl.h: Likewise.
17785         * include/fnmatch.h: Likewise.
17786         * include/glob.h: Likewise.
17787         * include/grp.h: Likewise.
17788         * include/libio.h: Likewise.
17789         * include/locale.h: Likewise.
17790         * include/math.h: Likewise.
17791         * include/net/if.h: Likewise.
17792         * include/netdb.h: Likewise.
17793         * include/netinet/in.h: Likewise.
17794         * include/pthread.h: Likewise.
17795         * include/pwd.h: Likewise.
17796         * include/regex.h: Likewise.
17797         * include/sched.h: Likewise.
17798         * include/search.h: Likewise.
17799         * include/setjmp.h: Likewise.
17800         * include/signal.h: Likewise.
17801         * include/stdio.h: Likewise.
17802         * include/stdlib.h: Likewise.
17803         * include/string.h: Likewise.
17804         * include/sys/cdefs.h: Likewise.
17805         * include/sys/mman.h: Likewise.
17806         * include/sys/msg.h: Likewise.
17807         * include/sys/resource.h: Likewise.
17808         * include/sys/select.h: Likewise.
17809         * include/sys/socket.h: Likewise.
17810         * include/sys/stat.h: Likewise.
17811         * include/sys/statvfs.h: Likewise.
17812         * include/sys/time.h: Likewise.
17813         * include/sys/times.h: Likewise.
17814         * include/sys/uio.h: Likewise.
17815         * include/sys/utsname.h: Likewise.
17816         * include/sys/wait.h: Likewise.
17817         * include/termios.h: Likewise.
17818         * include/time.h: Likewise.
17819         * include/ulimit.h: Likewise.
17820         * include/unistd.h: Likewise.
17821         * include/utime.h: Likewise.
17822         * include/wchar.h: Likewise.
17823         * include/wctype.h: Likewise.
17824         * include/wordexp.h: Likewise.
17825
17826         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
17827
17828         * time/time.h: TIME_UTC must be a macro.
17829         Make timespec_get available for ISO C11 only as well.
17830
17831 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
17832
17833         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
17834         Reported by Peng Haitao <penght@cn.fujitsu.com>.
17835
17836 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17837
17838         * configure.in: Use -o not -a in test for unsupported multi-arch.
17839
17840 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17841
17842         * manual/texinfo.tex: Update to version 2012-01-19.16.
17843
17844 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17845
17846         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
17847
17848 2012-02-24  Roland McGrath  <roland@hack.frob.com>
17849
17850         [BZ #13738]
17851         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
17852         * manual/fdl-1.3.texi: New file.
17853         * manual/fdl-1.1.texi: File removed.
17854
17855         [BZ #13738]
17856         * manual/libc.texinfo (FDL_VERSION): New @set.
17857         Use it for mention of FDL in cover text.
17858         (Documentation License): Use it in @include file name.
17859
17860 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17861             Roland McGrath  <roland@hack.frob.com>
17862
17863         [BZ #5461]
17864         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
17865         not LONG_LONG_MAX and LONG_LONG_MIN.
17866         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
17867         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
17868         name.
17869         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
17870
17871 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17872
17873         [BZ #2547]
17874         [BZ #11365]
17875         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
17876         manipulate bits before adding and subtracting TWO23[sx].
17877         * math/libm-test.inc (nearbyint_test): Add more tests.
17878
17879 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17880
17881         [BZ #2548]
17882         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
17883         bits before adding and subtracting TWO23[sx].
17884         * math/libm-test.inc (rint_test): Add more tests.
17885         (rint_test_tonearest): Likewise.
17886         (rint_test_towardzero): Likewise.
17887         (rint_test_downward): Likewise.
17888         (rint_test_upward: Likewise.
17889
17890 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17891
17892         [BZ #10110]
17893         * include/stdc-predef.h: New file.  Extracted from features.h.
17894         * include/features.h: Include stdc-predef.h.
17895         * Makefile (headers): Add stdc-predef.h.
17896         * CONFORMANCE (Compiler limitations): Update.
17897
17898 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17899
17900         * manual/libc.texinfo (VERSION, UPDATED): Revert.
17901
17902 2012-02-21  David S. Miller  <davem@davemloft.net>
17903
17904         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
17905         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
17906
17907 2012-02-20  David S. Miller  <davem@davemloft.net>
17908
17909         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
17910         using a normal save/restore sequence, rather than allocating a
17911         dummy stack frame just to store a frame pointer and restore.
17912         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17913
17914 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17915
17916         * manual/install.texi: Fix stray word in line-wrapped comment.
17917
17918 2012-02-20  David S. Miller  <davem@davemloft.net>
17919
17920         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
17921         both binutils and gcc support GOTDATA.
17922
17923         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
17924         "rd %pc" in the PIC register setup sequences.
17925
17926         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
17927         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
17928         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17929         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
17930         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17931         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17932         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17933         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17934         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
17935         (SYSCALL_ERROR_HANDLER): Likewise.
17936         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17937         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17938         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
17939         (SYSCALL_ERROR_HANDLER): Likewise.
17940
17941         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
17942         (HAVE_GCC_GOTDATA): New.
17943         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
17944         relocation support in both binutils and gcc.
17945         * sysdeps/sparc/elf/configure: Regenerate.
17946
17947         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
17948         * sysdeps/sparc/sparc32/elf/configure: Delete.
17949         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
17950         * sysdeps/sparc/sparc64/elf/configure: Delete.
17951         * sysdeps/sparc/elf/configure.in: New file.
17952         * sysdeps/sparc/elf/configure: Generate.
17953
17954         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
17955         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
17956         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17957         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
17958         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
17959
17960 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17961
17962         * manual/install.texi: Do not mention specific glibc version
17963         numbers.
17964         * manual/libc.texinfo (VERSION, UPDATED): Update.
17965         (@copying): Use @copyright{} and range of years.
17966
17967 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17968
17969         [BZ #13695]
17970         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
17971         [crti.S not in sysdirs] (generated): Do not append.
17972         [crti.S not in sysdirs] (omit-deps): Likewise.
17973         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
17974         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
17975         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
17976         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
17977         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
17978         Likewise.
17979         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
17980         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
17981         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
17982         * csu/defs.awk: Remove file.
17983         * sysdeps/generic/initfini.c: Likewise.
17984         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
17985         variable.
17986         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
17987         Likewise.
17988
17989 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17990
17991         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
17992         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
17993         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
17994         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
17995         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17996         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
17997         <bits/epoll.h>.
17998         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
17999         (__EPOLL_PACKED): Define to empty if not defined by
18000         <bits/epoll.h>.
18001         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
18002         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18003         bits/epoll.h.
18004
18005 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18006
18007         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
18008         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
18009         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
18010         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
18011         <bits/timerfd.h>.
18012         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
18013         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18014         bits/timerfd.h.
18015
18016 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18017
18018         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
18019         in C locale.
18020         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18021         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18022         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
18023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18024
18025 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
18026
18027         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18028         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
18029
18030 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
18031
18032         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
18033         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
18034         defined.
18035         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
18036         Likewise.
18037         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
18038         entry for 2.16.
18039
18040 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
18041
18042         * math/w_acos.c: Use non-signaling floating-point comparisons.
18043         * math/w_acosf.c: Likewise.
18044         * math/w_acosh.c: Likewise.
18045         * math/w_acoshf.c: Likewise.
18046         * math/w_acoshl.c: Likewise.
18047         * math/w_acosl.c: Likewise.
18048         * math/w_asin.c: Likewise.
18049         * math/w_asinf.c: Likewise.
18050         * math/w_asinl.c: Likewise.
18051         * math/w_atanh.c: Likewise.
18052         * math/w_atanhf.c: Likewise.
18053         * math/w_atanhl.c: Likewise.
18054         * math/w_exp2.c: Likewise.
18055         * math/w_exp2f.c: Likewise.
18056         * math/w_exp2l.c: Likewise.
18057         * math/w_j0.c: Likewise.
18058         * math/w_j0f.c: Likewise.
18059         * math/w_j0l.c: Likewise.
18060         * math/w_j1.c: Likewise.
18061         * math/w_j1f.c: Likewise.
18062         * math/w_j1l.c: Likewise.
18063         * math/w_jn.c: Likewise.
18064         * math/w_jnf.c: Likewise.
18065         * math/w_log.c: Likewise.
18066         * math/w_log10.c: Likewise.
18067         * math/w_log10f.c: Likewise.
18068         * math/w_log10l.c: Likewise.
18069         * math/w_log2.c: Likewise.
18070         * math/w_log2f.c: Likewise.
18071         * math/w_log2l.c: Likewise.
18072         * math/w_logf.c: Likewise.
18073         * math/w_logl.c: Likewise.
18074         * math/w_sqrt.c: Likewise.
18075         * math/w_sqrtf.c: Likewise.
18076         * math/w_sqrtl.c: Likewise.
18077         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18078         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
18079         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18080         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
18081         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
18082
18083 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18084
18085         [BZ #9739]
18086         * manual/string.texi (strnlen): Use correct parameter name in
18087         equivalent expression.
18088
18089 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18090
18091         [BZ #11174]
18092         * manual/users.texi (seteuid): Consistently use neweuid for
18093         argument name.
18094
18095 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18096
18097         [BZ #13704]
18098         * manual/nss.texi (Services in the NSS configuration): Correct
18099         list of services in example configuration file.
18100
18101 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
18102
18103         [BZ #11322]
18104         * manual/arith.texi: Remove statements about negative zero
18105         behaving identically to zero.
18106
18107 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18108
18109         [BZ #5993]
18110         * manual/install.texi: Do not document upgrading from libc5.
18111
18112 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18113
18114         [BZ #4596]
18115         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
18116
18117 2012-02-18  David S. Miller  <davem@davemloft.net>
18118
18119         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
18120         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
18121         %o7 across the call.
18122         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
18123         instead.
18124         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
18125         SETUP_PIC_REG_LEAF.
18126         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18127         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
18128         * sysdeps/sparc/crtn.S: Likewise.
18129
18130 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
18131
18132         * aout/Makefile: Remove.
18133
18134 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
18135
18136         [BZ #13058]
18137         * manual/examples/argp-ex1.c (main): Format definition in GNU
18138         style.
18139         * manual/examples/argp-ex2.c (main): Likewise.
18140         * manual/examples/argp-ex3.c (main): Likewise.
18141         * manual/examples/argp-ex4.c (main): Likewise.
18142         * manual/examples/longopt.c (main): Use new-style prototype
18143         definition.
18144         * manual/examples/strncat.c (main): Specify return type and use
18145         (void) for arguments.
18146         * manual/examples/subopt.c (main): Use char **argv argument.
18147
18148 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18149
18150         [BZ #5077]
18151         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
18152         rounding modes.
18153
18154 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
18155
18156         [BZ #6907]
18157         * manual/string.texi (strchr): Change when strchrnul is
18158         recommended.
18159
18160 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
18161
18162         [BZ #174]
18163         * manual/locale.texi (setlocale): Document LOCPATH.
18164
18165 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18166
18167         [BZ #10210]
18168         * manual/process.texi (execle): Move @dots{} before last argument.
18169
18170 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
18171
18172         [BZ #12047]
18173         * manual/charset.texi (Generic Charset Conversion): Fix typo
18174         (LC_TYPE -> LC_CTYPE).
18175
18176 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
18177
18178         [BZ #5805]
18179         * manual/arith.texi (scalbn): Use @var{} on parameter names.
18180         (scalbnf): Likewise.
18181         (scalbnl): Likewise.
18182         (scalbln): Likewise.
18183         (scalblnf): Likewise.
18184         (scalblnl): Likewise.
18185         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
18186         (vwarnx): Likewise.
18187         (verr): Likewise.
18188         (verrx): Likewise.
18189         * manual/filesys.texi (telldir): Use braces around return type.
18190         * manual/llio.texi (mmap): Add space after comma.
18191         (mmap64): Likewise.
18192         * manual/math.texi (jn): Use @var{} on parameter names.
18193         (jnf): Likewise.
18194         (jnl): Likewise.
18195         (yn): Likewise.
18196         (ynf): Likewise.
18197         (ynl): Likewise.
18198         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
18199         line.
18200         * manual/resource.texi (ulimit): Use @dots{} instead of literal
18201         "...".
18202         (sched_get_priority_min): Remove semicolon on @deftypefun line.
18203         (sched_get_priority_max): Likewise.
18204         * manual/signal.texi (sigvec): Add space after comma.
18205         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
18206         names.
18207         (if_indextoname): Likewise.
18208         (if_freenameindex): Likewise.
18209         (sendto): Use ',' instead of '.' in prototype.
18210         * manual/startup.texi (syscall): Use @dots{} instead of literal
18211         "...".
18212         * manual/stdio.texi (__fpending): Separate initial words of
18213         paragraph from @deftypefun line.
18214         * manual/syslog.texi (syslog): Use @dots{} instead of literal
18215         "...".
18216         (vsyslog): Use @var{} on parameter names.
18217         * manual/terminal.texi (stty): Use @var{} on parameter names.
18218         * manual/users.texi (getutmp): Use @var{} on parameter names.
18219         (getutmpx): Likewise.
18220
18221 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18222
18223         [BZ #6884]
18224         * manual/stdio.texi (fopen): Fix typos in description of
18225         ",ccs=STRING".
18226
18227 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
18228
18229         [BZ #4026]
18230         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
18231         get clock_id definition.
18232
18233 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
18234
18235         [BZ #4822]
18236         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
18237         (madvise): Cast every argument to void on its own.
18238
18239 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18240
18241         [BZ #9902]
18242         * manual/startup.texi (Exit Status): Fix typo.
18243
18244 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18245
18246         [BZ #10140]
18247         * manual/examples/argp-ex1.c: Include <stdlib.h>.
18248         * manual/examples/argp-ex2.c: Likewise.
18249         * manual/examples/argp-ex3.c: Likewise.
18250
18251 2012-02-16  Richard Henderson  <rth@redhat.com>
18252
18253         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
18254         * sysdeps/s390/s390-32/initfini.c: Remove.
18255         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
18256         * sysdeps/s390/s390-64/initfini.c: Remove.
18257
18258 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18259
18260         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
18261         compiler output for sysdeps/generic/initfini.c.
18262         * sysdeps/sh/elf/initfini.c: Remove file.
18263
18264 2012-02-16  David S. Miller  <davem@davemloft.net>
18265
18266         [BZ #11494]
18267         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
18268
18269         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
18270         * sysdeps/sparc/crti.S: New file.
18271         * sysdeps/sparc/crtn.S: New file.
18272         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
18273         * sysdeps/sparc/sparc64/Makefile: Likewise.
18274
18275 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
18276
18277         [BZ #3335]
18278         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
18279
18280 2012-02-15  Roland McGrath  <roland@hack.frob.com>
18281
18282         [BZ #4822]
18283         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
18284
18285         * mach/devstream.c (cookie_io_functions_t): Macro removed.
18286         (write, read, close): Likewise.
18287         Patch by Aurelien Jarno <aurelien@aurel32.net>.
18288
18289 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
18290
18291         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
18292         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
18293         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
18294         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
18295         <bits/signalfd.h>.
18296         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
18297         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18298         bits/signalfd.h.
18299
18300 2012-02-14  Marek Polacek  <polacek@redhat.com>
18301
18302         * sysdeps/x86_64/crti.S: New file.
18303         * sysdeps/x86_64/crtn.S: New file.
18304         * sysdeps/x86_64/elf/initfini.c: Remove file.
18305
18306 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18307
18308         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
18309         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
18310         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
18311         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
18312         <bits/inotify.h>.
18313         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
18314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18315         bits/inotify.h.
18316
18317 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18318
18319         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
18320         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
18321         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
18322         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
18323         <bits/eventfd.h>.
18324         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
18325         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18326         bits/eventfd.h.
18327
18328 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
18329
18330         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
18331         __feraiseexcept instead of feraiseexcept.
18332
18333         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
18334         nanosleep invocations.
18335         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
18336         strings, and add error checking for a nanosleep invocations.
18337
18338 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18339
18340         Replace FSF snail mail address with URLs, as per GNU coding standards.
18341         Most of the snail mail addresses were wrong anyway, and omitting
18342         them makes the source code easier to maintain.  Almost all of the
18343         changes are to license notices and to locale LC_IDENTIFICATION
18344         addresses, except for this one:
18345         * manual/libc.texinfo: In "Published by", give the FSF's URL,
18346         not its snail mail address.
18347
18348 2012-02-09  Richard Henderson  <rth@twiddle.net>
18349
18350         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
18351         of kernel-features.h.
18352
18353         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
18354
18355 2012-02-08  Marek Polacek  <polacek@redhat.com>
18356
18357         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
18358         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
18359         * sysdeps/gnu/_G_config.h: Likewise.
18360         * sysdeps/generic/_G_config.h: Likewise.
18361
18362 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
18363
18364         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
18365         tests.
18366         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18367
18368         * sysdeps/powerpc/powerpc32/crti.S: New file.
18369         * sysdeps/powerpc/powerpc32/crtn.S: New file.
18370         * sysdeps/powerpc/powerpc64/crti.S: New file.
18371         * sysdeps/powerpc/powerpc64/crtn.S: New file.
18372
18373         * Makeconfig (have-initfini): Don't set.
18374         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
18375         * configure.in (nopic_initfini): Don't substitute.
18376         * config.h.in (HAVE_INITFINI): Don't #undef.
18377         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
18378         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
18379
18380 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
18381
18382         Support crti.S and crtn.S provided directly by architectures.
18383         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
18384         [crti.S in sysdirs] (omit-deps): Likewise.
18385         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
18386         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
18387         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
18388         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
18389         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
18390         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
18391         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
18392         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
18393         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
18394         compiler output for sysdeps/generic/initfini.c.
18395         * sysdeps/i386/elf/Makefile: Remove file.
18396         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
18397
18398 2012-02-07  Marek Polacek  <polacek@redhat.com>
18399
18400         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
18401         * sysdeps/gnu/_G_config.h: Likewise.
18402         * sysdeps/mach/hurd/_G_config.h: Likewise.
18403
18404 2012-02-07  Marek Polacek  <polacek@redhat.com>
18405
18406         * math/Makefile (tests): Add tst-CMPLX2.
18407         * math/tst-CMPLX2.c: New file.
18408
18409 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
18410
18411         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18412
18413         * math/libm-test.inc (jn_test): Add missing L suffix.
18414
18415 2012-02-06  Marek Polacek  <polacek@redhat.com>
18416
18417         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
18418         * sysdeps/i386/fpu/e_powf.S: Likewise.
18419         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
18420         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18421         * sysdeps/i386/fpu/e_acosh.S: Likewise.
18422         * sysdeps/i386/fpu/e_pow.S: Likewise.
18423         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
18424         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
18425         * sysdeps/i386/fpu/s_expm1.S: Likewise.
18426         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
18427         * sysdeps/i386/fpu/e_log2.S: Likewise.
18428         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18429         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18430         * sysdeps/i386/fpu/e_powl.S: Likewise.
18431         * sysdeps/i386/fpu/s_log1p.S: Likewise.
18432         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18433         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
18434         * sysdeps/i386/fpu/e_logl.S: Likewise.
18435         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
18436         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
18437         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
18438         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
18439         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18440         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18441         * sysdeps/i386/fpu/e_log.S: Likewise.
18442         * sysdeps/i386/fpu/s_cexp.S: Likewise.
18443         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18444         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
18445         * sysdeps/i386/fpu/e_logf.S: Likewise.
18446         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18447         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18448         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
18449         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
18450         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18451         * sysdeps/i386/fpu/e_log10.S: Likewise.
18452         * sysdeps/i386/fpu/s_frexp.S: Likewise.
18453         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18454         * sysdeps/i386/fpu/s_asinh.S: Likewise.
18455         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
18456         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18457         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
18458         * sysdeps/i386/asm-syntax.h: Likewise.
18459         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18460         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18461         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18462         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
18463         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
18464         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18465         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
18466         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
18467         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
18468         * sysdeps/powerpc/sysdep.h: Likewise.
18469         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18470         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
18471
18472 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
18473
18474         [BZ #411]
18475         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
18476
18477 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
18478
18479         * sysdeps/i386/sysdep.h: Include <features.h>.
18480         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
18481         version.
18482
18483 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
18484
18485         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
18486         Define.
18487         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
18488         LOAD_PIC_REG_STR.
18489
18490 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18491
18492         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
18493         (SETUP_PIC_REG): Use GET_PC_THUNK.
18494         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
18495         macro.
18496
18497 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18498
18499         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
18500         for non-PIC compilation.
18501         (SETUP_PIC_REG): Add .p2align directive.
18502         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
18503         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
18504         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18505         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18506         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
18507         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18508         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
18509         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18510         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18511         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18512         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18513         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18514         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18515         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18516         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18517         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
18518         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
18519         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18520         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18521         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18522         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18523         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
18524         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18525         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18526         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
18527         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
18528         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18529         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
18530         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18531         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18532         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18533         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18534         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18535         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18536         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18537         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18538         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18539         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18540         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18541         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18542         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18543
18544 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18545
18546         * math/tst-CMPLX.c: Include <stdio.h>.
18547
18548 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
18549
18550         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
18551         float.
18552         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18553         * sysdeps/sparc/bits/mathdef.h: Likewise.
18554
18555 2012-01-31  Marek Polacek  <polacek@redhat.com>
18556
18557         * libio/libio.h: Don't define _PARAMS.
18558         * locale/programs/config.h: Don't define PARAMS.
18559         * stdlib/strtol_l.c: Likewise.
18560         (__strtol_l): Remove PARAMS from the prototype.
18561
18562 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
18563
18564         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
18565         names.  Just use the correct names.  Remove unnecessary wrapper
18566         functions.
18567         * malloc/arena.c: Likewise.
18568         * malloc/hooks.c: Likewise.
18569
18570         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
18571         ARENA_TEST says not to.  Simplify test for creation of a new arena.
18572         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
18573
18574 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
18575
18576         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
18577         into tail calls.
18578         (update_get_addr): New function.
18579         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
18580         GET_ADDR_MODULE parameter.
18581
18582 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
18583
18584         * crypt/cert.c: Remove __STDC__ conditionals.
18585         * crypt/crypt-entry.c: Likewise.
18586         * crypt/crypt_util.c: Likewise.
18587         * libio/filedoalloc.c: Likewise.
18588         * libio/fileops.c: Likewise.
18589         * libio/genops.c: Likewise.
18590         * libio/iofclose.c: Likewise.
18591         * libio/iofdopen.c: Likewise.
18592         * libio/iofopen.c: Likewise.
18593         * libio/iofopen64.c: Likewise.
18594         * libio/iogetdelim.c: Likewise.
18595         * libio/iopopen.c: Likewise.
18596         * libio/obprintf.c: Likewise.
18597         * libio/oldfileops.c: Likewise.
18598         * libio/oldiofclose.c: Likewise.
18599         * libio/oldiofdopen.c: Likewise.
18600         * libio/oldiofopen.c: Likewise.
18601         * libio/oldiopopen.c: Likewise.
18602         * libio/wfiledoalloc.c: Likewise.
18603         * libio/wgenops.c: Likewise.
18604         * locale/programs/xmalloc.c: Likewise.
18605         * misc/syslog.c: Likewise.
18606         * stdio-common/xbug.c: Likewise.
18607         * string/memchr.c: Likewise.
18608         * string/memcmp.c: Likewise.
18609         * string/memrchr.c: Likewise.
18610         * string/rawmemchr.c: Likewise.
18611         * sysdeps/posix/getcwd.c: Likewise.
18612         * time/strftime_l.c: Likewise.
18613
18614 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
18615
18616         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
18617         * config.make.in (config-cflags-sse2avx): Define.
18618         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
18619         Fix typo.
18620
18621 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
18622
18623         * scripts/config.guess: Update from upstream config git repository.
18624         * scripts/config.sub: Likewise.
18625
18626 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
18627
18628         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
18629         (EM_NUM): Update.
18630         (R_TILEPRO_*, R_TILEGX_*): New macros.
18631
18632         * scripts/firstversions.awk: Fix bug in version range handling.
18633
18634         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
18635
18636         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
18637
18638         * include/sys/epoll.h: New file.
18639         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
18640         libc_hidden_def.
18641
18642 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
18643
18644         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
18645         Avoid unnecessary __WORDSIZE == 64 test.
18646         (fmaxf): Use VEX format if possible.
18647         (fmax): Likewise.
18648         (fminf): Likewise.
18649         (fmin): Likewise.
18650
18651         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
18652         * math/math_private.h: Remove libc_fegetround* and
18653         libc_fesetround*.
18654         * sysdeps/i386/configure.in: Check for -msse2avx.
18655         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
18656         also if SSE2AVX is defined.
18657         Remove libc_fegetround* and libc_fesetround*.
18658         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
18659         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
18660         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
18661         of HAS_YMM_USABLE.
18662         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18663         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18664         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18665         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18666         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18667
18668         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
18669
18670 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18671
18672         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
18673         size is not set.
18674         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18675
18676 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
18677
18678         [BZ #13618]
18679         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
18680         relocation.
18681         * Makeconfig (libm): Define.
18682         * elf/Makefile: Add rules to build and run tst-relsort1.
18683         * elf/tst-relsort1.c: New file.
18684         * elf/tst-relsort1mod1.c: New file.
18685         * elf/tst-relsort1mod2.c: New file.
18686
18687 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
18688
18689         * math/s_ldexp.c: Remove __STDC__ conditionals.
18690         * math/s_ldexpf.c: Likewise.
18691         * math/s_ldexpl.c: Likewise.
18692         * math/s_nextafter.c: Likewise.
18693         * math/s_nexttowardf.c: Likewise.
18694         * math/s_significand.c: Likewise.
18695         * math/s_significandf.c: Likewise.
18696         * math/s_significandl.c: Likewise.
18697         * math/w_jnl.c: Likewise.
18698         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18699         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18700         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18701         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18702         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18703         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18704         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
18705         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18706         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18707         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18708         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18709         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18710         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18711         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18712         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18713         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18714         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18715         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18716         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18717         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18718         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18719         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18720         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18721         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18722         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18723         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18724         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18725         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18726         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18727         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18728         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18729         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18730         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18731         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18732         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18733         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18734         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18735         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18736         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18737         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18738         * sysdeps/ieee754/k_standard.c: Likewise.
18739         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18740         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18741         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18742         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18743         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18744         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18745         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18746         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18747         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18748         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18749         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18750         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18751         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18752         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18753         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18754         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18755         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18756         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18757         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18758         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18759         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18760         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18761         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18762         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18763         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18764         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18765         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18766         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18767         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18768         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18769         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18770         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
18771         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18772         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18773         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18774         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18775         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
18776         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18777         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18778         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
18779         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
18780         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18781         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
18782         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
18783         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18784         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
18785         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
18786         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18787         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18788         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
18789         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
18790         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18791         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18792         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18793         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18794         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18795         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
18796         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18797         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18798         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18799         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18800         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18801         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18802         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18803         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18804         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18805         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18806         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18807         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18808         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18809         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18810         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18811         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18812         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18813         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18814         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18815         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
18816         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18817         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
18818         * sysdeps/ieee754/s_matherr.c: Likewise.
18819         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
18820         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
18821         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
18822         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
18823
18824 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18825
18826         * crypt/md5.h: Remove __STDC__ conditionals.
18827         * libio/libioP.h: Likewise.
18828         * locale/programs/config.h: Likewise.
18829         * sysdeps/generic/sysdep.h: Likewise.
18830         * sysdeps/i386/asm-syntax.h: Likewise.
18831         * sysdeps/s390/asm-syntax.h: Likewise.
18832         * sysdeps/unix/sysdep.h: Likewise.
18833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
18834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
18835
18836 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18837
18838         * libio/libio.h: Remove __STDC__ conditionals.
18839         * malloc/obstack.h: Likewise.
18840         * math/complex.h: Likewise.
18841         * math/math.h: Likewise.
18842         * sysdeps/generic/_G_config.h: Likewise.
18843         * sysdeps/gnu/_G_config.h: Likewise.
18844         * sysdeps/mach/hurd/_G_config.h: Likewise.
18845         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18846         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18847         * sysdeps/sparc/bits/mathdef.h: Likewise.
18848
18849 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
18850
18851         [BZ #13583]
18852         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
18853         Clean up HAS_* macros.
18854         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
18855         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
18856         possible.
18857         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
18858         HAS_AVX.
18859         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18860         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18861         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18862         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18863         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18864
18865 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
18866
18867         * elf/tst-unique3.cc (gets): Remove declaration.
18868         * elf/tst-unique3lib.cc (gets): Likewise.
18869         * elf/tst-unique3lib2.cc (gets): Likewise.
18870         * elf/tst-unique4.cc (gets): Likewise.
18871
18872 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
18873
18874         * include/stdio.h: Add C++ protection.  Add gets declarations and
18875         definitions.
18876         * debug/tst-chk1.c: Don't declare gets here.
18877         * stdio-common/tst-gets.c: Likewise.
18878
18879 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18880
18881         * posix/glob: Remove directory.
18882
18883 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18884
18885         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
18886
18887 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
18888
18889         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
18890         of the non-standard EPFNOSUPPORT.
18891
18892 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18893
18894         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
18895         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
18896         ANYWHERE set to 1 only on KERN_NO_SPACE error.
18897
18898 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
18899
18900         * wcsmbs/uchar.h: Test __STDC_VERSION__.
18901
18902 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
18903
18904         * nscd/aicache.c (addhstaiX): Do not cache negative results of
18905         transient errors.
18906         * nscd/grpcache.c (cache_addgr): Likewise.
18907         * nscd/hstcache.c (cache_addhst): Likewise.
18908         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18909         * nscd/pwdcache.c (cache_addpw): Likewise.
18910         * nscd/servicescache.c (cache_addserv): Likewise.
18911
18912 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
18913
18914         * malloc/malloc.c: Various cleanups.
18915         * malloc/hooks.c: Likewise.
18916
18917         * stdlib/Makefile (tests): Add bug-fmtmsg1.
18918         * stdlib/bug-fmtmsg1.c: New file.
18919
18920         * stdlib/fmtmsg.c (init): Add missing unlock.
18921         Patch by Peng Haitao <penght@cn.fujitsu.com>.
18922
18923 2012-01-12  Marek Polacek  <polacek@redhat.com>
18924
18925         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
18926         and _GNU_SOURCE.
18927
18928 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18929
18930         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
18931         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
18932         macro to ensure uniqueness of label name.
18933         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
18934         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
18935
18936 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
18937
18938         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
18939
18940         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
18941         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18942         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18943         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
18944
18945 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
18946
18947         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
18948
18949         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
18950         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18951         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18952
18953         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
18954
18955         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
18956         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18957         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18958         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
18959
18960         * math/bits/math-finite.h: Add ldexp support.
18961
18962 2012-01-10  Marek Polacek  <polacek@redhat.com>
18963
18964         * locale/programs/localedef.h (show_archive_content): Add noreturn
18965         attribute.
18966
18967 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
18968
18969         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
18970
18971 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18972
18973         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
18974
18975         * io/Makefile (headers): Add bits/poll2.h.
18976
18977 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
18978
18979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
18980         typo #include statement.
18981
18982 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18983
18984         * include/sys/cdefs.h: Define __attribute_alloc_size.
18985         * catgets/gencat.c: Add alloc_size attribute and apply consistently
18986         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
18987         * elf/pldd.c: Likewise.
18988         * iconv/iconv_charmap.c: Likewise.
18989         * iconv/iconvconfig.c: Likewise.
18990         * iconv/strtab.c: Likewise.
18991         * locale/programs/locale.c: Likewise.
18992         * locale/programs/localedef.h: Likewise.
18993         * locale/programs/simple-hash.c: Likewise.
18994         * nscd/nscd.h: Likewise.
18995         * nss/makedb.c: Likewise.
18996         * sysdeps/generic/ldconfig.h: Likewise.
18997         * locale/programs/localedef.c: Remove xmalloc prototype.
18998         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
18999
19000 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19001
19002         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
19003         appropriate.
19004
19005 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19006
19007         * math/Makefile (tests): Add tst-CMPLX.
19008         * math/tst-CMPLX.c: New file.
19009
19010         * math/complex.h (CMPLXL): Fix typo.
19011
19012         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
19013         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
19014         GLIBC_2.16.
19015         * debug/tst-chk1.c: Add poll and ppoll tests.
19016         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
19017         * include/sys/poll.h: Add hidden proto for ppoll.
19018         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
19019         * sysdeps/mach/hurd/ppoll.c: Likewise.
19020         * io/ppoll.c: Likewise.
19021         * debug/poll_chk.c: New file.
19022         * debug/ppoll_chk.c: New file.
19023         * include/bits/poll2.h: New file.
19024         * io/bits/poll2.h: New file.
19025
19026         [BZ #1350]
19027         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
19028
19029         * configure.in: static is always set to yes.  Remove.
19030         * config.make.in: Don't set build-static.
19031         * Makeconfig: Remove use of build-static.
19032         * dlfcn/Makefile: Likewise.
19033         * elf/Makefile: Likewise.
19034         * math/Makefile: Likewise.
19035         * misc/Makefile: Likewise.
19036         * nptl/Makefile: Likewise.
19037         * sysdeps/mach/hurd/Makefile: Likewise.
19038
19039         * configure.in: PWD_P is not used anymore.
19040         * config.make.in: Remove PWD_P entry.
19041
19042         * configure.in: Remove last remnants of RANLIB.
19043         No need to check for signed size_t anymore.
19044         Don't set libc_commonpagesize and libc_relro_required here for Alpha
19045         and IA-64.
19046         Remove __builtin_expect test because we require at least gcc 3.4.
19047         * aclocal.m4: Likewise.
19048
19049         * wcsmbs/mbrtoc16.c: Implement using towc function.
19050         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
19051         * wcsmbs/wcsmbsload.c: Likewise.
19052         * iconv/gconv_simple.c: Likewise.
19053         * iconv/gconv_int.h: Likewise.
19054         * iconv/gconv_builtin.h: Likewise.
19055         * iconv/iconv_prog.c: Remove CHAR16 handling.
19056
19057         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
19058
19059         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
19060
19061         * configure.in: Remove --with-elf and --enable-bounded options.
19062         Dont set base_machine for ia64.  More non-ELF conditions removed.
19063         Remove testing and setting of leading underscore information.
19064         * config.make.in (build-bounded): Set to no.
19065         * config.h.in: Remove NO_UNDERSCORES entry.
19066         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
19067         them.
19068         * csu/start.c: Remove !NO_UNDERSCORE code.
19069         * locale/localeinfo.h: Likewise.
19070         * sysdeps/generic/machine-gmon.h: Likewise.
19071         * sysdeps/generic/sysdep.h: Likewise.
19072         * sysdeps/i386/sysdep.h: Likewise.
19073         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19074         * sysdeps/mach/sysdep.h: Likewise.
19075         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19076         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19077         * sysdeps/sh/sysdep.h: Likewise.
19078         * sysdeps/sparc/sparc32/alloca.S: Likewise.
19079         * sysdeps/unix/i386/sysdep.S: Likewise.
19080         * sysdeps/unix/sparc/start.c: Likewise.
19081         * sysdeps/unix/sparc/sysdep.S: Likewise.
19082         * sysdeps/unix/sparc/sysdep.h: Likewise.
19083         * sysdeps/unix/start.c: Likewise.
19084         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19085         * sysdeps/x86_64/sysdep.h: Likewise.
19086
19087 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
19088
19089         [BZ #13553]
19090         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
19091         for non-gcc.
19092         * argp/argp-fmtstream.h: Use const instead __const.
19093         * argp/argp.h: Likewise.
19094         * assert/assert.h: Likewise.
19095         * bits/fenv.h: Likewise.
19096         * bits/sched.h: Likewise.
19097         * bits/sigset.h: Likewise.
19098         * bits/sigthread.h: Likewise.
19099         * catgets/nl_types.h: Likewise.
19100         * conform/data/pthread.h-data: Likewise.
19101         * crypt/crypt-private.h: Likewise.
19102         * crypt/crypt.h: Likewise.
19103         * crypt/crypt_util.c: Likewise.
19104         * ctype/ctype.h: Likewise.
19105         * debug/execinfo.h: Likewise.
19106         * debug/mbsnrtowcs_chk.c: Likewise.
19107         * debug/mbsrtowcs_chk.c: Likewise.
19108         * debug/wcsnrtombs_chk.c: Likewise.
19109         * debug/wcsrtombs_chk.c: Likewise.
19110         * debug/wcstombs_chk.c: Likewise.
19111         * dirent/dirent.h: Likewise.
19112         * dlfcn/dlfcn.h: Likewise.
19113         * elf/neededtest4.c: Likewise.
19114         * grp/grp.h: Likewise.
19115         * gshadow/gshadow.h: Likewise.
19116         * iconv/gconv.h: Likewise.
19117         * iconv/gconv_int.h: Likewise.
19118         * iconv/gconv_simple.c: Likewise.
19119         * iconv/iconv.h: Likewise.
19120         * iconv/loop.c: Likewise.
19121         * iconv/skeleton.c: Likewise.
19122         * include/aio.h: Likewise.
19123         * include/aliases.h: Likewise.
19124         * include/argz.h: Likewise.
19125         * include/arpa/inet.h: Likewise.
19126         * include/assert.h: Likewise.
19127         * include/dirent.h: Likewise.
19128         * include/dlfcn.h: Likewise.
19129         * include/execinfo.h: Likewise.
19130         * include/fcntl.h: Likewise.
19131         * include/fenv.h: Likewise.
19132         * include/glob.h: Likewise.
19133         * include/grp.h: Likewise.
19134         * include/libintl.h: Likewise.
19135         * include/mntent.h: Likewise.
19136         * include/netdb.h: Likewise.
19137         * include/pwd.h: Likewise.
19138         * include/rpc/netdb.h: Likewise.
19139         * include/sched.h: Likewise.
19140         * include/search.h: Likewise.
19141         * include/shadow.h: Likewise.
19142         * include/signal.h: Likewise.
19143         * include/stdio.h: Likewise.
19144         * include/stdlib.h: Likewise.
19145         * include/string.h: Likewise.
19146         * include/sys/socket.h: Likewise.
19147         * include/sys/stat.h: Likewise.
19148         * include/sys/statfs.h: Likewise.
19149         * include/sys/statvfs.h: Likewise.
19150         * include/sys/syslog.h: Likewise.
19151         * include/sys/time.h: Likewise.
19152         * include/sys/uio.h: Likewise.
19153         * include/time.h: Likewise.
19154         * include/unistd.h: Likewise.
19155         * include/utmp.h: Likewise.
19156         * include/wchar.h: Likewise.
19157         * include/wctype.h: Likewise.
19158         * inet/aliases.h: Likewise.
19159         * inet/arpa/inet.h: Likewise.
19160         * inet/netinet/ether.h: Likewise.
19161         * inet/netinet/in.h: Likewise.
19162         * intl/libintl.h: Likewise.
19163         * io/bits/fcntl2.h: Likewise.
19164         * io/fcntl.h: Likewise.
19165         * io/ftw.h: Likewise.
19166         * io/sys/poll.h: Likewise.
19167         * io/sys/stat.h: Likewise.
19168         * io/sys/statfs.h: Likewise.
19169         * io/sys/statvfs.h: Likewise.
19170         * io/utime.h: Likewise.
19171         * libio/bits/stdio.h: Likewise.
19172         * libio/bits/stdio2.h: Likewise.
19173         * libio/libio.h: Likewise.
19174         * libio/libioP.h: Likewise.
19175         * libio/stdio.h: Likewise.
19176         * locale/lc-ctype.c: Likewise.
19177         * locale/locale.h: Likewise.
19178         * login/utmp.h: Likewise.
19179         * malloc/arena.c: Likewise.
19180         * malloc/malloc.c: Likewise.
19181         * malloc/malloc.h: Likewise.
19182         * malloc/mcheck.c: Likewise.
19183         * malloc/mtrace.c: Likewise.
19184         * math/bits/mathcalls.h: Likewise.
19185         * math/fenv.h: Likewise.
19186         * math/math_private.h: Likewise.
19187         * misc/bits/error.h: Likewise.
19188         * misc/bits/syslog.h: Likewise.
19189         * misc/err.h: Likewise.
19190         * misc/error.h: Likewise.
19191         * misc/fstab.h: Likewise.
19192         * misc/mntent.h: Likewise.
19193         * misc/regexp.h: Likewise.
19194         * misc/search.h: Likewise.
19195         * misc/sgtty.h: Likewise.
19196         * misc/sys/mman.h: Likewise.
19197         * misc/sys/syslog.h: Likewise.
19198         * misc/sys/uio.h: Likewise.
19199         * misc/sys/xattr.h: Likewise.
19200         * misc/ttyent.h: Likewise.
19201         * nis/rpcsvc/ypclnt.h: Likewise.
19202         * nss/nss.h: Likewise.
19203         * posix/bits/unistd.h: Likewise.
19204         * posix/fnmatch.h: Likewise.
19205         * posix/glob.h: Likewise.
19206         * posix/sched.h: Likewise.
19207         * posix/spawn.h: Likewise.
19208         * posix/sys/wait.h: Likewise.
19209         * posix/unistd.h: Likewise.
19210         * posix/wordexp.h: Likewise.
19211         * pwd/pwd.h: Likewise.
19212         * resolv/netdb.h: Likewise.
19213         * resource/sys/resource.h: Likewise.
19214         * rt/aio.h: Likewise.
19215         * rt/bits/mqueue2.h: Likewise.
19216         * rt/mqueue.h: Likewise.
19217         * shadow/shadow.h: Likewise.
19218         * signal/signal.h: Likewise.
19219         * socket/send.c: Likewise.
19220         * socket/sendto.c: Likewise.
19221         * socket/sys/socket.h: Likewise.
19222         * stdio-common/printf.h: Likewise.
19223         * stdlib/bits/stdlib.h: Likewise.
19224         * stdlib/fmtmsg.h: Likewise.
19225         * stdlib/monetary.h: Likewise.
19226         * stdlib/stdlib.h: Likewise.
19227         * stdlib/ucontext.h: Likewise.
19228         * streams/stropts.h: Likewise.
19229         * string/argz.h: Likewise.
19230         * string/bits/string2.h: Likewise.
19231         * string/string.h: Likewise.
19232         * string/strings.h: Likewise.
19233         * sunrpc/rpc/auth.h: Likewise.
19234         * sunrpc/rpc/auth_des.h: Likewise.
19235         * sunrpc/rpc/clnt.h: Likewise.
19236         * sunrpc/rpc/netdb.h: Likewise.
19237         * sunrpc/rpc/pmap_clnt.h: Likewise.
19238         * sunrpc/rpc/xdr.h: Likewise.
19239         * sysdeps/generic/inttypes.h: Likewise.
19240         * sysdeps/generic/net/if.h: Likewise.
19241         * sysdeps/generic/sys/swap.h: Likewise.
19242         * sysdeps/gnu/net/if.h: Likewise.
19243         * sysdeps/gnu/utmpx.h: Likewise.
19244         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
19245         * sysdeps/i386/i486/bits/string.h: Likewise.
19246         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
19247         * sysdeps/s390/bits/string.h: Likewise.
19248         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
19249         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
19250         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19251         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
19252         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19253         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
19254         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
19255         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
19256         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
19257         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
19258         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
19259         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
19260         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
19261         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
19262         * sysdeps/unix/sysv/linux/readv.c: Likewise.
19263         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
19264         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
19265         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19266         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19267         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19268         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19269         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
19270         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
19271         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
19272         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
19273         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
19274         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
19275         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19276         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
19277         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
19278         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
19279         * sysvipc/sys/ipc.h: Likewise.
19280         * sysvipc/sys/msg.h: Likewise.
19281         * sysvipc/sys/sem.h: Likewise.
19282         * sysvipc/sys/shm.h: Likewise.
19283         * termios/termios.h: Likewise.
19284         * time/sys/time.h: Likewise.
19285         * time/time.h: Likewise.
19286         * wcsmbs/bits/wchar2.h: Likewise.
19287         * wcsmbs/uchar.h: Likewise.
19288         * wcsmbs/wchar.h: Likewise.
19289         * wctype/wctype.h: Likewise.
19290
19291         [BZ #13551]
19292         * Makeconfig: Remove all but ELF support including AIX support.
19293         * Makerules: Likewise.
19294         * config.h.in: Likewise.
19295         * config.make.in: Likewise.
19296         * configure: Likewise.
19297         * configure.in: Likewise.
19298         * csu/Makefile: Likewise.
19299         * csu/version.c: Likewise.
19300         * debug/Makefile: Likewise.
19301         * dlfcn/Makefile: Likewise.
19302         * elf/Makefile: Likewise.
19303         * extra-lib.mk: Likewise.
19304         * iconv/Makefile: Likewise.
19305         * include/libc-symbols.h: Likewise.
19306         * include/shlib-compat.h: Likewise.
19307         * resolv/Makefile: Likewise.
19308         * resolv/res_libc.c: Likewise.
19309         * rt/Makefile: Likewise.
19310         * sysdeps/i386/asm-syntax.h: Likewise.
19311         * sysdeps/i386/sysdep.h: Likewise.
19312         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19313         * sysdeps/mach/sysdep.h: Likewise.
19314         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
19315         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
19316         * sysdeps/s390/asm-syntax.h: Likewise.
19317         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19318         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19319         * sysdeps/sh/sysdep.h: Likewise.
19320         * sysdeps/unix/sparc/sysdep.h: Likewise.
19321         * sysdeps/wordsize-32/divdi3.c: Likewise.
19322         * sysdeps/x86_64/sysdep.h: Likewise.
19323
19324         * argp/Versions: Remove _argp_unlock_xxx.
19325
19326         [BZ #13559]
19327         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
19328         * abilist/libBrokenLocale.abilist: Likewise.
19329         * abilist/libanl.abilist: Likewise.
19330         * abilist/libc.abilist: Likewise.
19331         * abilist/libcrypt.abilist: Likewise.
19332         * abilist/libdl.abilist: Likewise.
19333         * abilist/libm.abilist: Likewise.
19334         * abilist/libnsl.abilist: Likewise.
19335         * abilist/libpthread.abilist: Likewise.
19336         * abilist/libresolv.abilist: Likewise.
19337         * abilist/librt.abilist: Likewise.
19338         * abilist/libthread_db.abilist: Likewise.
19339         * abilist/libutil.abilist: Likewise.
19340         * abilist/libnss_db.abilist: New file.
19341
19342         * scripts/abilist.awk: Add support for indirect functions.
19343
19344         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
19345
19346         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
19347
19348         * shlib-versions: Remove entries for ports architectures.
19349
19350         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
19351         files in ports.
19352         * elf/stackguard-macros.h: Remove support for IA-64.
19353         * elf/tst-auditmod1.c: Likewise.
19354         * sysdeps/generic/ldsodefs.h: Likewise.
19355
19356         * sysdeps/unix/sysv/linux/configure.in: Ports should define
19357         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
19358         configure files.
19359
19360         [BZ #13552]
19361         * configure.in: Remove --enable-omitfp support.
19362         * FAQ.in: Adjust.
19363         * config.make.in: Likewise.
19364         * Makeconfig: Likewise.
19365         * manual/install.texi: Likewise.
19366
19367         In case anyone cares, the IA-64 architecture could move to ports.
19368         * sysdeps/ia64/*: Removed.
19369         * sysdeps/unix/sysv/linux/ia64/*: Removed.
19370         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
19371
19372         [BZ #13555]
19373         * configure.in: Remove entries for unsupported architectures.
19374
19375         [BZ #13533]
19376         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
19377         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
19378         routines.
19379         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
19380         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
19381         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
19382         fall back to using wcrtomb.
19383         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
19384         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
19385         renaming.
19386         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
19387         * wcsmbs/tst-c16c32-1.c: New file.
19388
19389         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
19390         local variable.
19391
19392         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
19393
19394         * elf/tst-unique3.cc: Add explicit declaration of gets.
19395         * elf/tst-unique3lib.cc: Likewise.
19396         * elf/tst-unique3lib2.cc: Likewise.
19397         * elf/tst-unique4.cc: Likewise.
19398
19399         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
19400
19401 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
19402
19403         [BZ #13566]
19404         * assert/assert.h (static_assert): Don't define for C++.
19405         * libio/stdio.h (gets): Do declare for C++ <= C++11.
19406         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
19407
19408 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
19409
19410         * iconv/loop.c (single loop): Fix assertion in storing of
19411         remaining bytes.
19412
19413         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
19414
19415 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
19416
19417         * posix/getconf.c: Update copyright year.
19418         * nss/getent.c: Likewise.
19419         * nss/makedb.c: Likewise.
19420         * iconv/iconvconfig.c: Likewise.
19421         * iconv/iconv_prog.c: Likewise.
19422         * elf/ldconfig.c: Likewise.
19423         * elf/pldd.c: Likewise.
19424         * elf/sotruss.ksh: Likewise.
19425         * catgets/gencat.c: Likewise.
19426         * csu/version.c: Likewise.
19427         * elf/ldd.bash.in: Likewise.
19428         * elf/sprof.c (print_version): Likewise.
19429         * locale/programs/locale.c: Likewise.
19430         * locale/programs/localedef.c: Likewise.
19431         * login/programs/pt_chown.c: Likewise.
19432         * nscd/nscd.c (print_version): Likewise.
19433         * debug/xtrace.sh: Likewise.
19434         * malloc/memusage.sh: Likewise.
19435         * malloc/mtrace.pl: Likewise.
19436         * debug/catchsegv.sh: Likewise.
19437
19438 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
19439
19440         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
19441         pure attribute.
19442
19443 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
19444
19445         [BZ #13533]
19446         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
19447         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
19448         transformations.
19449         * iconv/gconv_int.h: Likewise.
19450         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
19451         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
19452         from libc for GLIBC_2.16.
19453         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
19454         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
19455         * wcsmbs/uchar.h: Really define mbstate_t.
19456         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
19457         * wcsmbs/c16rtomb.c: New file.
19458         * wcsmbs/mbrtoc16.c: New file.
19459         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
19460         for C/POSIX locale.
19461         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
19462         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
19463
19464         * wcsmbs/wchar.h: Add missing __restrict.
19465
19466 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
19467
19468         [BZ #13532]
19469         * time/Makefile (routines): Add timespec_get.
19470         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
19471         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
19472         timespec for ISO C11.
19473         * time/timespec_get.c: New file.
19474         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
19475         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
19476
19477         [BZ #13531]
19478         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
19479         * stdlib/stdlib.h: Declare aligned_alloc.
19480         * Versions.def: Add GLIBC_2.16 for libc.
19481         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
19482
19483         [BZ 13527]
19484         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
19485         ISO C11.
19486
19487         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
19488         code.
19489
19490         [BZ #13528]
19491         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
19492
19493         [BZ #13529]
19494         * assert/assert.h (static_assert): Define.
19495
19496         * version.h: Update for 2.16 development version.
19497
19498         [BZ #13526]
19499         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
19500         _ISOC11_SOURCE.
19501
19502         * version.h (RELEASE): Bump for 2.15 release.
19503         * include/features.h (__GLIBC_MINOR__): Bump to 15.
19504
19505         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
19506         Patch by Marek Polacek <mpolacek@redhat.com>.
19507
19508         * bits/byteswap.h: Protect long long constants with __extension__.
19509         * sysdeps/i386/bits/byteswap.h: Likewise.
19510         * sysdeps/ia64/bits/byteswap.h: Likewise.
19511         * sysdeps/s390/bits/byteswap.h: Likewise.
19512         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19513
19514 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19515
19516         [BZ #13540]
19517         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
19518         destination buffer.
19519         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
19520
19521 2011-12-23  Marek Polacek  <polacek@redhat.com>
19522
19523         * elf/dl-addr.c (determine_info): Add inline keyword.
19524         * elf/tst-auditmod4b.c (check_avx): Likewise.
19525         * elf/tst-auditmod6b.c (check_avx): Likewise.
19526         * elf/tst-auditmod6c.c (check_avx): Likewise.
19527         * elf/tst-auditmod7b.c (check_avx): Likewise.
19528
19529 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
19530
19531         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
19532         !__SSE_MATH__.
19533
19534 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19535
19536         [BZ #13540]
19537         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
19538         processing for last bytes.
19539
19540 2011-08-06  Bruno Haible  <bruno@clisp.org>
19541
19542         [BZ #13061]
19543         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
19544         U+0385, not to U+1FEE.
19545
19546         [BZ #13062]
19547         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
19548         entry for U+00A5 U+0301.
19549
19550 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
19551
19552         [BZ #13166]
19553         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
19554         buffer for the output is too small.
19555
19556         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
19557         optimization.
19558
19559         [BZ #13185]
19560         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
19561         SSE flags if possible.
19562
19563 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19564
19565         [BZ #13540]
19566         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
19567         processing for last bytes.
19568
19569 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
19570
19571         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
19572         (syscall-list-default-options, syscall-list-default-condition)
19573         (syscall-list-includes): Define.
19574         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
19575         list of ABIs and options and #if conditions for each ABI.  Do not
19576         handle common syscalls between ABIs specially.
19577         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
19578         Remove.
19579         (syscall-list-variants, syscall-list-32bit-options)
19580         (syscall-list-32bit-condition, syscall-list-64bit-options)
19581         (syscall-list-64bit-condition): Define.
19582         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
19583         (syscall-list-variants, syscall-list-32bit-options)
19584         (syscall-list-32bit-condition, syscall-list-64bit-options)
19585         (syscall-list-64bit-condition): Define.
19586         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
19587         Remove.
19588         (syscall-list-variants, syscall-list-32bit-options)
19589         (syscall-list-32bit-condition, syscall-list-64bit-options)
19590         (syscall-list-64bit-condition): Define.
19591         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
19592         Remove.
19593         (syscall-list-variants, syscall-list-32bit-options)
19594         (syscall-list-32bit-condition, syscall-list-64bit-options)
19595         (syscall-list-64bit-condition): Define.
19596
19597 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
19598
19599         * locale/iso-639.def: Add brx entry.
19600
19601         [BZ #13328]
19602         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
19603         Proposed by Mariusz_Cukr <marcukr@op.pl>.
19604
19605         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
19606         __feraiseexcept_renamed.
19607
19608 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
19609
19610         [BZ #13538]
19611         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
19612         EPOLLET with unsigned values.
19613         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19614         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19615
19616         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
19617         to large cancellation.
19618         * math/s_cacoshf.c: Likewise.
19619         * math/s_cacoshl.c: Likewise.
19620
19621 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
19622
19623         [BZ #13305]
19624         [BZ #12786]
19625         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
19626         * math/s_cacoshf.c: Likewise.
19627         * math/s_cacoshl.c: Likewise.
19628
19629 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
19630
19631         [BZ #13439]
19632         * iconv/gconv.h: Define __GCONV_SWAP.
19633         * iconvdata/unicode.c: The swap bit must be stored in __flags.
19634         * iconvdata/utf-16.c: Likewise.
19635         * iconvdata/utf-32.c: Likewise.
19636
19637 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
19638
19639         [BZ #13524]
19640         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
19641         numerator after shifting it by one limb.
19642
19643 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19644
19645         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
19646         under [__USE_EXTERN_INLINES].
19647
19648 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
19649
19650         [BZ #13446]
19651         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
19652
19653 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19654
19655         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
19656         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
19657         optimized code.
19658         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
19659         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
19660         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
19661         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
19662         for strncasecmp/strncasecmp_l compilation.
19663         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
19664         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
19665
19666 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
19667
19668         [BZ #13484]
19669         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
19670         of __asm__.
19671
19672 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
19673
19674         [BZ #13506]
19675         * time/tzfile.c (__tzfile_read): Check values from file header.
19676
19677 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19678
19679         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
19680         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
19681         * powerpc/powerpc32/dl-start.S: Likewise.
19682         * powerpc/powerpc32/elf/start.S: Likewise.
19683         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
19684         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
19685         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
19686         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
19687         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
19688         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
19689         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
19690         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19691         * powerpc/powerpc32/fpu/s_round.S: Likewise.
19692         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
19693         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
19694         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
19695         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
19696         * powerpc/powerpc32/memset.S: Likewise.
19697         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
19698         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
19699         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
19700         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
19701         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
19702         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
19703         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
19704         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
19705         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
19706         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
19707         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
19708         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
19709         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
19710
19711 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19712
19713         * math/libm-test.inc: Added more nearbyint tests.
19714         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
19715         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
19716         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
19717         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
19718
19719 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
19720
19721         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
19722         FD_CLOEXEC.
19723
19724 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19725
19726         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
19727         Add wcscpy-ssse3 wcscpy-c.
19728         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
19729         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
19730         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
19731         * sysdeps/x86_64/wcschr.S: New file.
19732         * sysdeps/x86_64/wcsrchr.S: New file.
19733         * string/test-strcmp.c: Remove checking of wcscmp function for
19734         wrong alignments.
19735         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
19736         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
19737         wcsrchr-sse2 wcsrchr-c.
19738         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
19739         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
19740         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
19741         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
19742         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
19743         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
19744         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
19745         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
19746         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
19747         * wcsmbc/wcschr.c (WCSCHR): New macro.
19748
19749 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19750
19751         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
19752         * wcsmbs/test-wcsrchr.c: New file.
19753         * string/test-strrchr.c: Add wcsrchr support.
19754         (WIDE): New macro.
19755         * wcsmbs/test-wcscpy.c: New file.
19756         * string/test-strcpy.c: Add wcscpy support.
19757         (WIDE): New macro.
19758
19759 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
19760
19761         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
19762         the inner loop.
19763
19764 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
19765
19766         [BZ #13472]
19767         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
19768
19769 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
19770
19771         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
19772         Minor optimizations.
19773
19774         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
19775         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
19776         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
19777
19778 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
19779
19780         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
19781         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
19782         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
19783         for gcc to avoid warnings.
19784         * inet/Makefile (tests): Add tst-checks.
19785         * inet/tst-checks.c: New file.
19786
19787         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
19788         warning.
19789
19790         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
19791         __wmemcmp_sse2.
19792
19793         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
19794         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
19795
19796         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
19797
19798 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
19799
19800         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
19801         problem.
19802
19803         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
19804
19805 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
19806
19807         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
19808         conditional on GCC version.
19809         (__arch_compare_and_exchange_val_8_acq)
19810         (__arch_compare_and_exchange_val_16_acq)
19811         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
19812         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
19813         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
19814
19815 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
19816
19817         * sysdeps/sh/backtrace.c: New file.
19818
19819 2011-12-02  Andreas Schwab  <schwab@redhat.com>
19820
19821         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
19822         parenthesis.
19823
19824 2011-12-01  Andreas Schwab  <schwab@redhat.com>
19825
19826         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
19827         falling back to utime.
19828
19829 2011-11-30  Andreas Schwab  <schwab@redhat.com>
19830
19831         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
19832         expectations for float.
19833
19834 2011-11-29  Andreas Schwab  <schwab@redhat.com>
19835
19836         * locale/weight.h (findidx): Add parameter len.
19837         * locale/weightwc.h (findidx): Likewise.
19838         * posix/fnmatch_loop.c (FCT): Adjust caller.
19839         * posix/regcomp.c (build_equiv_class): Likewise.
19840         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
19841         * posix/regexec.c (check_node_accept_bytes): Likewise.
19842         * string/strcoll_l.c (STRCOLL): Likewise.
19843         * string/strxfrm_l.c (STRXFRM): Likewise.
19844
19845 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
19846
19847         * Makefile.in: Remove CVSOPT handling.
19848         * configure.in: Remove use of AC_REVISION.
19849         * iconvdata/Makefile (distribute): No need to filter out CVS.
19850         * scripts/list-sources.sh: Remove CVS, subversion and monotone
19851         handling.
19852
19853 2011-11-16  Andreas Schwab  <schwab@redhat.com>
19854
19855         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
19856         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
19857         [USE_AS_STRNCASECMP_L]: Likewise.
19858         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
19859         NO_TLS_DIRECT_SEG_REFS.
19860         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
19861         Fix argument offsets for non-PIC.
19862         [USE_AS_STRNCASECMP_L]: Likewise.
19863         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
19864         NO_TLS_DIRECT_SEG_REFS.
19865
19866 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19867
19868         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
19869         O_CLOEXEC.
19870         * locale/loadlocale.c (_nl_load_locale): Likewise.
19871
19872 2011-11-15  Andreas Schwab  <schwab@redhat.com>
19873
19874         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
19875         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
19876         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
19877         (SYSCALL_GETTIME): Set errno on error.
19878
19879         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
19880         count references to noai6ai_cached.
19881
19882 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19883
19884         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
19885
19886         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
19887         FD_CLOEXEC for /proc/self/maps.
19888
19889         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
19890         FD_CLOEXEC for /proc/meminfo.
19891
19892         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
19893         gai.conf.
19894
19895         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
19896         FD_CLOEXEC for given file.
19897
19898         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
19899
19900         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
19901         FD_CLOEXEC for /etc/hosts.
19902         (_gethtent): Likewise.
19903
19904         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
19905
19906         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
19907         cancellation and set FD_CLOEXEC for /etc/netgroup.
19908
19909         * nss/nss_files/files-key.c (search): Don't allow cancellation when
19910         reading /etc/publickey.
19911
19912         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
19913         allow cancellation when reading /etc/group.
19914
19915         * nss/nss_files/files-alias.c (internal_setent): Don't allow
19916         cancellation.
19917         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
19918
19919         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
19920         when using data file.
19921
19922         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
19923
19924         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
19925         (write_nis_obj): Use "c" and "e" in fopen.
19926
19927         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
19928
19929         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
19930
19931         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
19932
19933         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
19934
19935         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
19936         locale.alias.
19937
19938         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
19939
19940         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
19941
19942         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
19943
19944         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
19945         file parsing and set FD_CLOEXEC.
19946
19947 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19948
19949         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
19950
19951 2011-11-14  Andreas Schwab  <schwab@redhat.com>
19952
19953         * malloc/arena.c (arena_get2): Don't call reused_arena when
19954         _int_new_arena failed.
19955
19956 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19957
19958         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
19959         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
19960         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
19961         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19962         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19963         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
19964         to compile strcasecmp and strncasecmp.
19965         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
19966         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
19967
19968         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
19969
19970 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
19971
19972         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
19973         locale-defines.sym to gen-as-const-headers.
19974         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
19975         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
19976         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
19977         to compile strcasecmp and strncasecmp.
19978         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
19979         strcasecmp_l and strncasecmp_l.
19980         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
19981         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
19982         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
19983         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
19984         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
19985         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
19986         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
19987         * sysdeps/i386/i686/multiarch/strncase.S: New file.
19988         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
19989         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
19990         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
19991
19992 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
19993
19994         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
19995         result of SYSDEP_GETTIME_CPU to retval.
19996         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
19997         parameter list to macro.  Remove trailing semicolon.  Adjust users.
19998
19999         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
20000         variable.
20001
20002         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
20003         mantissa words.
20004         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20005
20006         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
20007         from unused variable.
20008
20009         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
20010         DWARF definitions.
20011         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
20012         for assembling.
20013
20014         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
20015         over namespaces.
20016
20017         * sunrpc/rpc_prot.c (rejected): Fix case value.
20018
20019         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
20020         unsigned long long int to avoid warnings in shift.
20021
20022         * posix/regex_internal.c (re_string_reconstruct): Actually use result
20023         of use of trans.
20024         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
20025         variable tmp.
20026
20027         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
20028         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
20029         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
20030
20031         * nis/nis_table.c (nis_list): Use variable of correct type for
20032         result of __follow_path call.
20033
20034 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20035
20036         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
20037         of math functions ceil, trunc, floor, round, and sqrt, when
20038         avaliable on the platform.
20039         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
20040         name clash.
20041         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
20042         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
20043         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
20044
20045 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
20046
20047         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
20048         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
20049
20050 2011-11-11  Roland McGrath  <roland@hack.frob.com>
20051
20052         * include/unistd.h: Fix __readlink return type.
20053         Reported by Chris Metcalf <cmetcalf@tilera.com>.
20054
20055 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
20056
20057         * stdlib/ucontext.h: Undo last change for makecontext.
20058
20059 2011-11-11  Andreas Schwab  <schwab@redhat.com>
20060
20061         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
20062
20063         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
20064         * setjmp/setjmp.h: Mark functions as non-leaf.
20065         * setjmp/bits/setjmp2.h: Likewise.
20066         * stdlib/ucontext.h: Likewise.
20067
20068 2011-11-10  Andreas Schwab  <schwab@redhat.com>
20069
20070         * malloc/arena.c (_int_new_arena): Don't increment narenas.
20071         (reused_arena): Don't check arena limit.
20072         (arena_get2): Atomically check arena limit.
20073
20074 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
20075
20076         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
20077         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
20078
20079         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
20080         instructions.
20081
20082 2011-11-07  Andreas Schwab  <schwab@redhat.com>
20083
20084         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
20085         handler when locking.
20086
20087         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
20088         Fix size of allocated buffer.
20089
20090 2011-11-04  Andreas Schwab  <schwab@redhat.com>
20091
20092         [BZ #10103]
20093         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
20094         declarations for long double functions.
20095         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
20096
20097         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
20098
20099 2011-11-03  Andreas Schwab  <schwab@redhat.com>
20100
20101         * nscd/nscd.c (main): Don't start AVC thread until credentials are
20102         installed.
20103
20104         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
20105         is disabled.
20106
20107 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20108
20109         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
20110
20111 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
20112
20113         * include/alloca.h (stackinfo_alloca_round): Define.
20114         (extend_alloca): Use it.
20115         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
20116         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
20117         here.
20118
20119         * scripts/check-local-headers.sh: Ignore libaudit.h.
20120
20121         * nscd/Makefile (extra-objs): Make recursively expanded.
20122
20123 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
20124
20125         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
20126         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
20127
20128         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
20129         * posix/tst-rfc3484-2.c: Likewise.
20130         * posix/tst-rfc3484-3.c: Likewise.
20131
20132         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20133         process_vm_writev.
20134         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
20135         process_vm_writev.
20136         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
20137         process_vm_writev from libc using GLIBC_2.15 version.
20138
20139         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
20140
20141 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
20142
20143         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
20144         stack usage.
20145
20146 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
20147
20148         [BZ #13367]
20149         * nss/getent.c (initgroups_keys): Show error message in case no group
20150         names are given.
20151
20152         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
20153         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
20154         __bump_nl_timestamp.
20155         * nscd/connections (nscd_init): When host database is served open
20156         netlink socket and request notification about configuration changes.
20157         (main_loop_poll): Track netlink file descriptor and bump timestamp
20158         in case data becomes available.
20159         (main_loop_epoll): Likewise.
20160         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
20161         (database_pers_head): Add extra_data fileds.
20162         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
20163         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
20164         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
20165         Adjust caller.
20166         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
20167         in6ai data, call __free_in6ai.
20168         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
20169         Add -DHAVE_NETLINK.
20170         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
20171         interface information.  Reuse previous data if netlink timestamp
20172         is not changed.
20173         (__bump_nl_timestamp): New function.
20174         (__free_in6ai): New function.
20175
20176 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
20177
20178         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
20179         close_not_cancel_no_status here.
20180         (__check_pf): Reorganize code a bit to not call close twice if OOM.
20181
20182 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20183
20184         [BZ #13276]
20185         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
20186         return value.
20187
20188         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
20189         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
20190         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
20191
20192 2011-07-03  Andreas Jaeger  <aj@suse.de>
20193
20194         [BZ #10709]
20195         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
20196         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
20197         * math/libm-test.inc (sin_test): Add test case.
20198
20199 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20200
20201         [BZ #13337]
20202         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
20203         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20204
20205         * elf/chroot_canon.c (chroot_canon): Cleanups.
20206
20207         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
20208
20209         [BZ #13335]
20210         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
20211         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20212
20213         * string/test-strchr.c: Make usable for strchrnul testing.
20214         * string/test-strchrnul.c: New file.
20215         * string/Makefile (strop-tests): Add strchrnul.
20216
20217         * po/it.po: Update from translation team.
20218         * po/es.po: Likewise.
20219
20220 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
20221
20222         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
20223         the three constants needed as parameters.  Drop the others.
20224         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
20225         __m128i_strloadu_tolower.
20226         Create and initialize variable zero and use it in all the places
20227         where _mm_setzero_si128 was used.
20228
20229         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
20230         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
20231         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
20232         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
20233         anymore.
20234         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
20235         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
20236         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
20237         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
20238         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
20239         __mpranred, __mptan.
20240         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
20241         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
20242         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
20243         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
20244         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
20245         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
20246         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
20247         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
20248         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
20249
20250 2011-10-28  Andreas Schwab  <schwab@redhat.com>
20251
20252         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
20253         redefine if SHARED.
20254         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
20255
20256         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
20257         wide char related routines to wcsmbs subdir.
20258
20259 2011-10-27  Andreas Schwab  <schwab@redhat.com>
20260
20261         [BZ #13344]
20262         * misc/sys/cdefs.h (__THROWNL): Define.
20263         * posix/unistd.h: Use __THREADNL instead of __THREAD
20264         for memory synchronization functions.
20265
20266 2011-10-26  Roland McGrath  <roland@hack.frob.com>
20267
20268         [BZ #13349]
20269         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
20270         doesn't exist.
20271         * manual/stdio.texi (Obstack Streams): Node removed.
20272
20273 2011-10-26  Andreas Schwab  <schwab@redhat.com>
20274
20275         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
20276         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20277         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20278
20279         * math/math_private.h (math_force_eval): Allow non-addressable
20280         arguments.
20281         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
20282
20283 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20284
20285         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
20286         file is not needed.
20287
20288         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
20289         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20290         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20291         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20292         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20293         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20294         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20295         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
20296         Add AVX variants.
20297         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
20298         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
20299         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
20300         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
20301         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
20302         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
20303         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
20304         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
20305         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
20306         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
20307         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
20308         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
20309         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
20310         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
20311         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
20312         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
20313         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
20314         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
20315         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
20316
20317         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
20318         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
20319
20320         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
20321         place.  Use VEX encoding when compiling for AVX.
20322
20323 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20324
20325         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
20326         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
20327
20328         * string/test-strchr.c (do_test): Don't generate NUL bytes.
20329
20330 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20331
20332         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
20333         useless if() expression.
20334         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20335         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20336         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20337         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20338         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20339         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20340         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20341         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20342         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20343         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20344         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20345         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20346         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20347         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20348         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20349         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20350         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20351         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20352         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20353
20354         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
20355
20356 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20357
20358         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
20359         condition.
20360         * elf/dl-fini.c (_dl_sort_fini): Likewise.
20361
20362 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20363
20364         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
20365         .text section.  Avoid duplicate constants.
20366         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20367         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20368         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20369         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20370         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20371         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20372         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20373         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20374         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
20375         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
20376         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
20377         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
20378         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
20379         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
20380         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
20381         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
20382         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
20383         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
20384         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20385         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20386         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20387         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20388         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20389         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
20390         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
20391         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
20392         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
20393         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
20394         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
20395         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20396         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
20397         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
20398         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
20399         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
20400         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
20401         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20402         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20403         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
20404         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
20405         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
20406         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
20407         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
20408         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
20409         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20410         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
20411
20412 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
20413
20414         * sysdeps/x86_64/dla.h: Move to ...
20415         * sysdeps/x86_64/fpu/dla.h: ...here.
20416         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
20417         situations.  Use __builtin_fma only for gcc 4.6 and up.
20418
20419         * config.make.in: Add have-mfma4 entry.
20420         * configure.in: Substitute libc_cv_cc_fma4.
20421         * math/Makefile (dbl-only-routines): Add sincostab.
20422         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
20423         Use __sincostab not sincos.
20424         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
20425         name is a macro.
20426         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20427         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20428         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20429         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
20430         using __copysign.
20431         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
20432         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
20433         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
20434         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
20435         and __inv.
20436         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
20437         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
20438         __copysign.
20439         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
20440         define aliases when function name is a macro.
20441         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
20442         sysdeps/ieee754/dbl-64/sincos.tbl.
20443         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
20444         fma4-enabled routines.
20445         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
20446         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
20447         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
20448         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
20449         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
20450         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
20451         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
20452         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
20453         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
20454         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
20455         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
20456         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
20457         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
20458         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
20459         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
20460         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
20461         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
20462         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
20463         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
20464         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
20465         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
20466         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
20467         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
20468         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
20469         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
20470         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
20471         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
20472         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
20473         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
20474         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
20475
20476         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
20477         rename.
20478         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20479         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20480         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20481         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20482         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20483         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20484         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20485         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20486
20487 2011-10-24  Andreas Schwab  <schwab@redhat.com>
20488
20489         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
20490
20491 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20492
20493         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
20494
20495         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
20496         prediction.
20497         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
20498
20499         * string/strnlen.c: Don't define STRNLEN, reverse logic.
20500         Remove unused variable magic_bits.
20501         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
20502
20503         * string/strnlen.c: Define and use STRNLEN macro.
20504         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
20505         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
20506         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
20507         * wcsmbs/wcslen.c: Define and use WCSLEN.
20508         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
20509         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
20510         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
20511         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
20512         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
20513         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
20514         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
20515
20516 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20517
20518         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20519         strnlen-sse2-no-bsf.
20520         Rename strlen-no-bsf to strlen-sse2-no-bsf.
20521         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
20522         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
20523         Add strnlen support.
20524         (USE_AS_STRNLEN): New macro.
20525         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
20526         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
20527         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
20528         * sysdeps/x86_64/wcslen.S: New file.
20529
20530 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
20531
20532         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
20533         XMM-moves are used for copying on small sizes.
20534
20535 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20536
20537         * wcsmbs/Makefile (strop-tests): Add wcschr.
20538         * wcsmbs/test-wcschr.c: New file.
20539         * string/test-strchr.c: Update.
20540         Add wcschr support.
20541         (WIDE): New macro.
20542
20543 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20544
20545         * wcsmbs/Makefile (strop-tests): Add wcslen.
20546         * wcsmbs/test-wcslen.c: New file.
20547         * string/test-strlen.c: Update.
20548         Add wcslen support.
20549         (WIDE): New macro.
20550
20551 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20552
20553         * po/it.po: Update from translation team.
20554
20555 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20556
20557         * sysdeps/x86_64/wcscmp.S: Update.
20558         Fix wrong comparison semantics.
20559         wcscmp shall use signed comparison not unsigned.
20560         Don't use substraction to avoid overflow bug.
20561         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
20562         * wcsmbc/wcscmp.c: Likewise.
20563         * string/test-strcmp.c: Likewise.
20564         Add new tests to check cases with negative values.
20565
20566 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20567
20568         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
20569         * sysdeps/x86_64/dla.h: ...here.  New file.
20570         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
20571         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20572         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20573         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20574         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20575         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20576         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20577         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20578         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20579
20580 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
20581
20582         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
20583         __ynl_finite aliases.
20584
20585 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
20586
20587         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20588
20589         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
20590         define DLA_FMA.
20591         [DLA_FMA] (EMULV): Use DLA_FMA.
20592         [DLA_FMA] (MUL12): Use EMULV.
20593         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
20594         that are not needed.
20595         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20596         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20597         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20598         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20599         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20600         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20601         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20602
20603 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
20604
20605         * math/s_nan.c: Undef __nan.
20606         * math/s_nanf.c: Undef __nanf.
20607         * math/s_nanl.c: Undef __nanl.
20608         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
20609         "math_private.h".
20610
20611 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
20612
20613         * math/s_catan.c: Add branch predictions.
20614         * math/s_catanf.c: Likewise.
20615         * math/s_catanh.c: Likewise.
20616         * math/s_catanhf.c: Likewise.
20617         * math/s_catanhl.c: Likewise.
20618         * math/s_catanl.c: Likewise.
20619         * math/s_cexp.c: Likewise.
20620         * math/s_cexpf.c: Likewise.
20621         * math/s_cexpl.c: Likewise.
20622         * math/s_clog.c: Likewise.
20623         * math/s_clog10.c: Likewise.
20624         * math/s_clog10f.c: Likewise.
20625         * math/s_clog10l.c: Likewise.
20626         * math/s_clogf.c: Likewise.
20627         * math/s_clogl.c: Likewise.
20628         * math/s_csqrt.c: Likewise.
20629         * math/s_csqrtf.c: Likewise.
20630         * math/s_csqrtl.c: Likewise.
20631         * math/s_ctanf.c: Likewise.
20632         * math/s_ctanh.c: Likewise.
20633         * math/s_ctanhf.c: Likewise.
20634         * math/s_ctanhl.c: Likewise.
20635         * math/s_ctanl.c: Likewise.
20636
20637         * math/math_private.h: Define __nan, __nanf, __nanl.
20638         * math/s_cacosh.c: Include <math_private.h>.
20639         * math/s_cacoshl.c: Likewise.
20640         * math/s_casinh.c: Likewise.
20641         * math/s_casinhf.c: Likewise.
20642         * math/s_casinhl.c: Likewise.
20643         * math/s_ccos.c: Rely entire on ccosh.
20644         * math/s_ccosf.c: Rely entire on ccoshf.
20645         * math/s_ccosl.c: Rely entirely on ccoshl.
20646         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
20647         Remove tests for FE_INVALID.
20648         * math/s_ccoshf.c: Likewise.
20649         * math/s_ccoshl.c: Likewise.
20650         * math/s_csin.c: Likewise.
20651         * math/s_csinf.c: Likewise.
20652         * math/s_csinh.c Likewise.
20653         * math/s_csinhf.c: Likewise.
20654         * math/s_csinhl.c: Likewise.
20655         * math/s_csinl.c: Likewise.
20656         * math/s_ctan.c: Likewise.
20657         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
20658         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
20659         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
20660
20661 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
20662
20663         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
20664         compilation problems.
20665
20666         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
20667         __builtin_expect.
20668
20669 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
20670
20671         * sysdeps/i386/configure.in: Test for -mfma4 option.
20672         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
20673         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
20674         COMMON_CPUID_INDEX_80000001.
20675         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
20676         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
20677         use it if FMA3 is not supported.
20678         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20679
20680         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
20681         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20682
20683 2011-10-20  Andreas Schwab  <schwab@redhat.com>
20684
20685         [BZ #12892]
20686         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
20687         it would create a cycle with a link time dependency.
20688
20689 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
20690
20691         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
20692         instruction.
20693         * string/Makefile (strop-tests): Add rawmemchr.
20694         * string/test-rawmemchr.c: New file.
20695
20696         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
20697         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
20698         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
20699         when compiling str{,n}casecmp and when AVX is available.  Hook up
20700         new optimized code in initializers.
20701
20702 2011-10-19  Andreas Schwab  <schwab@redhat.com>
20703
20704         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
20705         __feraiseexcept instead of feraiseexcept.
20706
20707 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
20708
20709         * math/math_private.h: Define defaults for libc_fetestexcept and
20710         libc_feupdateenv.
20711         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
20712         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
20713         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
20714         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20715         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20716         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
20717         libc_fetestexcept and libc_feupdateenv.
20718
20719         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
20720         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
20721         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
20722         * sysdeps/x86_64/fpu/math_private.h: Define special version of
20723         libc_feholdexcept_setround.
20724
20725         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
20726         Add s_nearbyint-c and s_nearbyintf-c.
20727         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
20728         nearbyintf inlines.
20729         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
20730         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
20731         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
20732         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
20733
20734         * math/math_private.h: Define defaults for libc_fegetround,
20735         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
20736         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
20737         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
20738         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
20739         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
20740         standard functions.
20741         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20742         Remove comments and hacks for old compiler versions.
20743         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
20744         libc_fegetround, libc_fesetround, libc_feholdexcept, and
20745         libc_feholdexceptl.
20746
20747 2011-10-18  Andreas Schwab  <schwab@redhat.com>
20748
20749         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
20750         (__feraiseexcept_renamed): Add __NTH.
20751         (feraiseexcept): Add __NTH.  Rename local variables to fix
20752         namespace violations.
20753
20754 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
20755
20756         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
20757
20758         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
20759
20760         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
20761         recently added interfaces.
20762         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
20763
20764         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
20765         about macro parameter expansion.
20766
20767         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
20768         __NO_MATH_INLINES is defined.  Cleanups.
20769
20770         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
20771         and __floorf is target has SSE4.1.
20772         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
20773         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
20774         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
20775         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
20776
20777         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
20778         name.
20779         (floorf): Likewise.
20780
20781         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
20782
20783 2011-10-17  Andreas Schwab  <schwab@redhat.com>
20784
20785         * misc/sys/cdefs.h: Fix last change.
20786
20787         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
20788         database lookup.
20789
20790 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
20791
20792         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
20793
20794         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
20795         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20796         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20797         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20798         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20799         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20800         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20801         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20802         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20803         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
20804         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
20805         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
20806         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
20807         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
20808         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
20809         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
20810         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
20811         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
20812         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
20813         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
20814         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
20815         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
20816
20817         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
20818         ceil, ceilf, floor, floorf.
20819
20820         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
20821         Perform IRELATIVE relocations last.
20822
20823         * elf/do-rel.h: Add another parameter nrelative, replacing the
20824         local variable with the same name.  Change name of the function
20825         to end in Rel or Rela (uppercase).
20826         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
20827         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
20828         elf_dynamic_do_##reloc function.
20829
20830 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20831
20832         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
20833         is sufficient, at least on modern CPUs.
20834
20835         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
20836
20837         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
20838         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
20839
20840         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
20841         __expl_finite.
20842         * math/bits/math-finite.h: Add entries for exp.
20843         * math/e_expl.c: Add __*_finite alias.
20844         * sysdeps/i386/fpu/e_exp.S: Likewise.
20845         * sysdeps/i386/fpu/e_expf.S: Likewise.
20846         * sysdeps/i386/fpu/e_expl.c: Likewise.
20847         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20848         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20849         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
20850         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20851         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
20852         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20853         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20854
20855         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
20856         is sufficient, at least on modern CPUs.
20857
20858         * ctype/ctype-info.c (__ctype_init): Define.
20859         * include/ctype.h (__ctype_init): Declare.
20860         (__ctype_b_loc): The variable is always initialized.
20861         (__ctype_toupper_loc): Likewise.
20862         (__ctype_tolower_loc): Likewise.
20863         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
20864         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
20865
20866 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
20867
20868         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
20869
20870         * configure.in: Also look in $cxxmachine/include for C++ system
20871         headers.
20872
20873 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20874
20875         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
20876         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
20877         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
20878         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
20879         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
20880         (USE_AS_WMEMCMP): New macro.
20881         Fixing indents.
20882         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
20883         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
20884         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
20885         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
20886         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20887         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
20888         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
20889         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
20890         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
20891         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
20892         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
20893         (USE_AS_WMEMCMP): New macro.
20894         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
20895         * sysdeps/string/test-memcmp.c: Update.
20896         Fix simple_wmemcmp.
20897         Add new tests.
20898         * wcsmbs/wmemcmp.c: Update.
20899         (WMEMCMP): New macro.
20900         Fix overflow bug.
20901
20902 2011-10-12  Andreas Jaeger  <aj@suse.de>
20903
20904         [BZ #13268]
20905         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
20906
20907 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20908
20909         * libio/iofwide.c (do_length): Avoid warning.
20910
20911         * ctype/ctype.h (__isctype_f): Add missing __THROW.
20912
20913 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
20914
20915         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
20916
20917         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
20918         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
20919         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
20920         * sysdeps/i386/i686/fpu/e_log.S: New file.
20921         * sysdeps/i386/i686/fpu/e_logf.S: New file.
20922         * sysdeps/i386/i686/fpu/e_logl.S: New file.
20923
20924         * ctype/ctype.h: Add support for inlined isXXX functions when
20925         compiling C++ code.
20926
20927 2011-10-14  Andreas Schwab  <schwab@redhat.com>
20928
20929         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20930
20931         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
20932
20933 2011-10-13  Roland McGrath  <roland@hack.frob.com>
20934
20935         [BZ #13291]
20936         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
20937
20938 2011-10-13  Andreas Schwab  <schwab@redhat.com>
20939
20940         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
20941         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
20942         feraiseexcept.
20943
20944         * sysdeps/x86_64/memrchr.S: Check for zero size.
20945
20946         * string/stratcliff.c: Add memrchr tests.
20947
20948 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20949
20950         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20951         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
20952         rawmemchr-sse2 rawmemchr-sse2-bsf.
20953         * sysdeps/i386/i686/multiarch/memchr.S: New file.
20954         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
20955         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
20956         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
20957         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
20958         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
20959         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
20960         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
20961         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
20962         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
20963         * string/memrchr.c (MEMRCHR): New macro.
20964
20965 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
20966
20967         Add integration with gcc's -ffinite-math-only and optimize wrapper
20968         functions in libm.
20969         * Versions.def: Define GLIBC_2.15 version for libm.
20970         * math/Makefile (headers): Add bits/math-finite.h.
20971         * math/bits/math-finite.h: New file.
20972         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
20973         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
20974         * math/e_acoshl.c: Add __*_finite alias.
20975         * math/e_acosl.c: Likewise.
20976         * math/e_asinl.c: Likewise.
20977         * math/e_atan2l.c: Likewise.
20978         * math/e_atanhl.c: Likewise.
20979         * math/e_coshl.c: Likewise.
20980         * math/e_exp10.c: Likewise.
20981         * math/e_exp10f.c: Likewise.
20982         * math/e_exp10l.c: Likewise.
20983         * math/e_exp2l.c: Likewise.
20984         * math/e_fmodl.c: Likewise.
20985         * math/e_gammal_r.c: Likewise.
20986         * math/e_hypotl.c: Likewise.
20987         * math/e_j0l.c: Likewise.
20988         * math/e_j1l.c: Likewise.
20989         * math/e_jnl.c: Likewise.
20990         * math/e_lgammal_r.c: Likewise.
20991         * math/e_log10l.c: Likewise.
20992         * math/e_log2l.c: Likewise.
20993         * math/e_logl.c: Likewise.
20994         * math/e_powl.c: Likewise.
20995         * math/e_sinhl.c: Likewise.
20996         * math/e_sqrtl.c: Likewise.
20997         * math/e_scalb.c: Completely rewritten and optimized.
20998         * math/e_scalbf.c: Likewise.
20999         * math/e_scalbl.c: Likewise.
21000         * math/w_acos.c: Likewise.
21001         * math/w_acosf.c: Likewise.
21002         * math/w_acosl.c: Likewise.
21003         * math/w_acosh.c: Likewise.
21004         * math/w_acoshf.c: Likewise.
21005         * math/w_acoshl.c: Likewise.
21006         * math/w_asin.c: Likewise.
21007         * math/w_asinf.c: Likewise.
21008         * math/w_asinl.c: Likewise.
21009         * math/w_atan2.c: Likewise.
21010         * math/w_atan2f.c: Likewise.
21011         * math/w_atan2l.c: Likewise.
21012         * math/w_atanh.c: Likewise.
21013         * math/w_atanhf.c: Likewise.
21014         * math/w_atanhl.c: Likewise.
21015         * math/w_exp10.c: Likewise.
21016         * math/w_exp10f.c: Likewise.
21017         * math/w_exp10l.c: Likewise.
21018         * math/w_fmod.c: Likewise.
21019         * math/w_fmodf.c: Likewise.
21020         * math/w_fmodl.c: Likewise.
21021         * math/w_j0.c: Likewise.
21022         * math/w_j0f.c: Likewise.
21023         * math/w_j0l.c: Likewise.
21024         * math/w_j1.c: Likewise.
21025         * math/w_j1f.c: Likewise.
21026         * math/w_j1l.c: Likewise.
21027         * math/w_jn.c: Likewise.
21028         * math/w_jnf.c: Likewise.
21029         * math/w_log.c: Likewise.
21030         * math/w_logf.c: Likewise.
21031         * math/w_logl.c: Likewise.
21032         * math/w_log10.c: Likewise.
21033         * math/w_log10f.c: Likewise.
21034         * math/w_log10l.c: Likewise.
21035         * math/w_log2.c: Likewise.
21036         * math/w_log2f.c: Likewise.
21037         * math/w_log2l.c: Likewise.
21038         * math/w_pow.c: Likewise.
21039         * math/w_powf.c: Likewise.
21040         * math/w_powl.c: Likewise.
21041         * math/w_remainder.c: Likewise.
21042         * math/w_remainderf.c: Likewise.
21043         * math/w_remainderl.c: Likewise.
21044         * math/w_scalb.c: Likewise.
21045         * math/w_scalbf.c: Likewise.
21046         * math/w_scalbl.c: Likewise.
21047         * math/w_sqrt.c: Likewise.
21048         * math/w_sqrtf.c: Likewise.
21049         * math/w_sqrtl.c: Likewise.
21050         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
21051         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
21052         used.
21053         * math/math_private.h: Declare __kernel_standard_f.
21054         * math/w_cosh.c: Remove cruft and optimize a bit.
21055         * math/w_coshf.c: Likewise.
21056         * math/w_coshl.c: Likewise.
21057         * math/w_exp2.c: Likewise.
21058         * math/w_exp2f.c: Likewise.
21059         * math/w_exp2l.c: Likewise.
21060         * math/w_hypot.c: Likewise.
21061         * math/w_hypotf.c: Likewise.
21062         * math/w_hypotl.c: Likewise.
21063         * math/w_lgamma.c: Likewise.
21064         * math/w_lgamma_r.c: Likewise.
21065         * math/w_lgammaf.c: Likewise.
21066         * math/w_lgammaf_r.c: Likewise.
21067         * math/w_lgammal.c: Likewise.
21068         * math/w_lgammal_r.c: Likewise.
21069         * math/w_sinh.c: Likewise.
21070         * math/w_sinhf.c: Likewise.
21071         * math/w_sinhl.c: Likewise.
21072         * math/w_tgamma.c: Likewise.
21073         * math/w_tgammaf.c: Likewise.
21074         * math/w_tgammal.c: Likewise.
21075         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21076         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21077         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
21078         Minor optimizations.  Pretty printing.  Remove cruft.
21079         * sysdeps/i386/fpu/e_acosf.S: Likewise.
21080         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21081         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21082         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21083         * sysdeps/i386/fpu/e_acosl.c: Likewise.
21084         * sysdeps/i386/fpu/e_asin.S: Likewise.
21085         * sysdeps/i386/fpu/e_asinf.S: Likewise.
21086         * sysdeps/i386/fpu/e_atan2.S: Likewise.
21087         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
21088         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
21089         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21090         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21091         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21092         * sysdeps/i386/fpu/e_exp10.S: Likewise.
21093         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
21094         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
21095         * sysdeps/i386/fpu/e_exp2.S: Likewise.
21096         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
21097         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
21098         * sysdeps/i386/fpu/e_fmod.S: Likewise.
21099         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
21100         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
21101         * sysdeps/i386/fpu/e_hypot.S: Likewise.
21102         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
21103         * sysdeps/i386/fpu/e_log.S: Likewise.
21104         * sysdeps/i386/fpu/e_log10.S: Likewise.
21105         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21106         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21107         * sysdeps/i386/fpu/e_log2.S: Likewise.
21108         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21109         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21110         * sysdeps/i386/fpu/e_logf.S: Likewise.
21111         * sysdeps/i386/fpu/e_logl.S: Likewise.
21112         * sysdeps/i386/fpu/e_pow.S: Likewise.
21113         * sysdeps/i386/fpu/e_powf.S: Likewise.
21114         * sysdeps/i386/fpu/e_powl.S: Likewise.
21115         * sysdeps/i386/fpu/e_remainder.S: Likewise.
21116         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
21117         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
21118         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21119         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21120         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21121         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
21122         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
21123         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
21124         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
21125         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21126         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21127         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
21128         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
21129         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
21130         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
21131         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
21132         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
21133         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
21134         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
21135         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
21136         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21137         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
21138         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
21139         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21140         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21141         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
21142         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21143         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21144         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
21145         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
21146         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21147         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21148         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
21149         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
21150         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
21151         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
21152         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
21153         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
21154         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21155         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
21156         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21157         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
21158         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
21159         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
21160         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
21161         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
21162         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
21163         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
21164         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
21165         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
21166         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
21167         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
21168         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21169         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
21170         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
21171         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
21172         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
21173         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
21174         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
21175         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
21176         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
21177         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21178         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
21179         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
21180         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
21181         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
21182         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
21183         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
21184         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
21185         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
21186         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21187         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21188         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
21189         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
21190         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
21191         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
21192         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
21193         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
21194         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
21195         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
21196         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
21197         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
21198         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
21199         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
21200         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21201         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
21202         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21203         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
21204         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21205         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
21206         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
21207         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21208         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21209         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
21210         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21211         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
21212         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
21213         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
21214         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21215         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
21216         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
21217         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
21218         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
21219         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
21220         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
21221         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
21222         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
21223         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
21224         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
21225         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
21226         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
21227         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
21228         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21229         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21230         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21231         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21232         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
21233         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21234         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
21235         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
21236         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
21237         (__isnanf): Likewise.
21238         (__isinf_ns): Likewise.
21239         (__isinf_nsf): Likewise.
21240         (__finite): Likewise.
21241         (__finitef): Likewise.
21242         (__ieee754_sqrt): Define as macro.
21243         (__ieee754_sqrtf): Define as macro.
21244         (__ieee754_sqrtl): Define as macro.
21245         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
21246         inlined copy.
21247         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
21248         __FINITE_MATH_ONLY__ consistent.
21249         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
21250
21251 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
21252
21253         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
21254         of rawmemchr.
21255
21256         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
21257
21258 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
21259
21260         * po/ja.po: Update from translation team.
21261
21262 2011-10-08  Roland McGrath  <roland@hack.frob.com>
21263
21264         * locale/programs/locarchive.c (prepare_address_space): New function.
21265         (create_archive, enlarge_archive, open_archive): Use it.
21266
21267         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
21268         inside [SHARED], where it is used.
21269
21270         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
21271
21272         * nss/getent.c (netgroup_keys): Remove unused variable.
21273         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
21274
21275 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
21276
21277         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
21278         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
21279         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
21280         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
21281         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
21282         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
21283         * math/Makefile (libm-calls): Add s_isinf_ns.
21284         * math/divtc3.c: Use __isinf_nsl instead of isinf.
21285         * math/multc3.c: Likewise.
21286         * math/s_casin.c: Likewise.
21287         * math/s_casinf.c: Likewise.
21288         * math/s_casinl.c: Likewise.
21289         * math/s_ccos.c: Likewise.
21290         * math/s_ccosf.c: Likewise.
21291         * math/s_ccosl.c: Likewise.
21292         * math/s_ctan.c: Likewise.
21293         * math/s_ctanf.c: Likewise.
21294         * math/s_ctanh.c: Likewise.
21295         * math/s_ctanhf.c: Likewise.
21296         * math/s_ctanhl.c: Likewise.
21297         * math/s_ctanl.c: Likewise.
21298         * math/w_fmod.c: Likewise.
21299         * math/w_fmodf.c: Likewise.
21300         * math/w_fmodl.c: Likewise.
21301         * math/w_remainder.c: Likewise.
21302         * math/w_remainderf.c: Likewise.
21303         * math/w_remainderl.c: Likewise.
21304         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
21305         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
21306         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
21307         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
21308         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
21309         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
21310         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
21311         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
21312
21313         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
21314         of the number.
21315         * stdio-common/printf_fphex.c: Likewise.
21316         * stdio-common/printf_size.c: Likewise.
21317
21318         * math/e_exp10.c: Include math_private.h using <...> not "...".
21319         * math/e_exp10f.c: Likewise.
21320         * math/e_exp10l.c: Likewise.
21321         * math/e_exp2l.c: Likewise.
21322         * math/e_j0l.c: Likewise.
21323         * math/e_j1l.c: Likewise.
21324         * math/e_jnl.c: Likewise.
21325         * math/e_lgammal_r.c: Likewise.
21326         * math/e_rem_pio2l.c: Likewise.
21327         * math/e_scalb.c: Likewise.
21328         * math/e_scalbf.c: Likewise.
21329         * math/e_scalbl.c: Likewise.
21330         * math/k_cosl.c: Likewise.
21331         * math/k_sinl.c: Likewise.
21332         * math/k_tanl.c: Likewise.
21333         * math/s_cacoshf.c: Likewise.
21334         * math/s_catan.c: Likewise.
21335         * math/s_catanf.c: Likewise.
21336         * math/s_catanh.c: Likewise.
21337         * math/s_catanhf.c: Likewise.
21338         * math/s_catanhl.c: Likewise.
21339         * math/s_catanl.c: Likewise.
21340         * math/s_ccosh.c: Likewise.
21341         * math/s_ccoshf.c: Likewise.
21342         * math/s_ccoshl.c: Likewise.
21343         * math/s_cexp.c: Likewise.
21344         * math/s_cexpf.c: Likewise.
21345         * math/s_cexpl.c: Likewise.
21346         * math/s_clog.c: Likewise.
21347         * math/s_clog10.c: Likewise.
21348         * math/s_clog10f.c: Likewise.
21349         * math/s_clog10l.c: Likewise.
21350         * math/s_clogf.c: Likewise.
21351         * math/s_clogl.c: Likewise.
21352         * math/s_csin.c: Likewise.
21353         * math/s_csinf.c: Likewise.
21354         * math/s_csinh.c: Likewise.
21355         * math/s_csinhf.c: Likewise.
21356         * math/s_csinhl.c: Likewise.
21357         * math/s_csinl.c: Likewise.
21358         * math/s_csqrt.c: Likewise.
21359         * math/s_csqrtf.c: Likewise.
21360         * math/s_csqrtl.c: Likewise.
21361         * math/s_ctan.c: Likewise.
21362         * math/s_ctanf.c: Likewise.
21363         * math/s_ctanh.c: Likewise.
21364         * math/s_ctanhf.c: Likewise.
21365         * math/s_ctanhl.c: Likewise.
21366         * math/s_ctanl.c: Likewise.
21367         * math/s_ldexp.c: Likewise.
21368         * math/s_ldexpf.c: Likewise.
21369         * math/s_ldexpl.c: Likewise.
21370         * math/s_significand.c: Likewise.
21371         * math/s_significandf.c: Likewise.
21372         * math/s_significandl.c: Likewise.
21373         * math/w_acos.c: Likewise.
21374         * math/w_acosf.c: Likewise.
21375         * math/w_acosh.c: Likewise.
21376         * math/w_acoshf.c: Likewise.
21377         * math/w_acoshl.c: Likewise.
21378         * math/w_acosl.c: Likewise.
21379         * math/w_asin.c: Likewise.
21380         * math/w_asinf.c: Likewise.
21381         * math/w_asinl.c: Likewise.
21382         * math/w_atan2.c: Likewise.
21383         * math/w_atan2f.c: Likewise.
21384         * math/w_atan2l.c: Likewise.
21385         * math/w_atanh.c: Likewise.
21386         * math/w_atanhf.c: Likewise.
21387         * math/w_atanhl.c: Likewise.
21388         * math/w_cosh.c: Likewise.
21389         * math/w_coshf.c: Likewise.
21390         * math/w_coshl.c: Likewise.
21391         * math/w_dremf.c: Likewise.
21392         * math/w_exp10.c: Likewise.
21393         * math/w_exp10f.c: Likewise.
21394         * math/w_exp10l.c: Likewise.
21395         * math/w_exp2.c: Likewise.
21396         * math/w_exp2f.c: Likewise.
21397         * math/w_fmod.c: Likewise.
21398         * math/w_fmodf.c: Likewise.
21399         * math/w_fmodl.c: Likewise.
21400         * math/w_hypot.c: Likewise.
21401         * math/w_hypotf.c: Likewise.
21402         * math/w_hypotl.c: Likewise.
21403         * math/w_j0.c: Likewise.
21404         * math/w_j0f.c: Likewise.
21405         * math/w_j0l.c: Likewise.
21406         * math/w_j1.c: Likewise.
21407         * math/w_j1f.c: Likewise.
21408         * math/w_j1l.c: Likewise.
21409         * math/w_jn.c: Likewise.
21410         * math/w_jnf.c: Likewise.
21411         * math/w_jnl.c: Likewise.
21412         * math/w_lgamma.c: Likewise.
21413         * math/w_lgamma_r.c: Likewise.
21414         * math/w_lgammaf.c: Likewise.
21415         * math/w_lgammaf_r.c: Likewise.
21416         * math/w_lgammal.c: Likewise.
21417         * math/w_lgammal_r.c: Likewise.
21418         * math/w_log.c: Likewise.
21419         * math/w_log10.c: Likewise.
21420         * math/w_log10f.c: Likewise.
21421         * math/w_log10l.c: Likewise.
21422         * math/w_log2.c: Likewise.
21423         * math/w_log2f.c: Likewise.
21424         * math/w_log2l.c: Likewise.
21425         * math/w_logf.c: Likewise.
21426         * math/w_logl.c: Likewise.
21427         * math/w_pow.c: Likewise.
21428         * math/w_powf.c: Likewise.
21429         * math/w_powl.c: Likewise.
21430         * math/w_remainder.c: Likewise.
21431         * math/w_remainderf.c: Likewise.
21432         * math/w_remainderl.c: Likewise.
21433         * math/w_scalb.c: Likewise.
21434         * math/w_scalbf.c: Likewise.
21435         * math/w_scalbl.c: Likewise.
21436         * math/w_sinh.c: Likewise.
21437         * math/w_sinhf.c: Likewise.
21438         * math/w_sinhl.c: Likewise.
21439         * math/w_sqrt.c: Likewise.
21440         * math/w_sqrtf.c: Likewise.
21441         * math/w_sqrtl.c: Likewise.
21442         * math/w_tgamma.c: Likewise.
21443         * math/w_tgammaf.c: Likewise.
21444         * math/w_tgammal.c: Likewise.
21445
21446         * po/ja.po: Update from translation team.
21447
21448 2011-09-29  Andreas Jaeger  <aj@suse.de>
21449
21450         [BZ #13179]
21451         * sunrpc/netname.c (netname2host): Fix logic.
21452
21453         [BZ #6779]
21454         [BZ #6783]
21455         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
21456         correctly.
21457         * math/w_remainder.c (__remainder): Likewise.
21458         * math/w_remainderf.c (__remainderf): Likewise.
21459         * math/libm-test.inc (remainder_test): Add test cases.
21460
21461 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21462
21463         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
21464         sdiv_qrnnd.
21465
21466 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
21467
21468         * string/test-memcmp.c: Avoid unncessary #defines.
21469         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
21470
21471 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21472
21473         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
21474         Use new sse2 version for core i3 - i7 as it's faster
21475         than sse42 version.
21476         (bit_Prefer_PMINUB_for_stringop): New.
21477         * sysdeps/x86_64/rawmemchr.S: Update.
21478         Replace with faster SSE2 version.
21479         * sysdeps/x86_64/memrchr.S: New file.
21480         * sysdeps/x86_64/memchr.S: Update.
21481         Replace with faster SSE2 version.
21482
21483 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
21484
21485         * elf/dl-load.c (lose): Add cast to avoid warning.
21486
21487 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
21488
21489         * po/ca.po: Update from translation team.
21490
21491         * inet/getnetgrent_r.c: Hook up nscd.
21492         * nscd/Makefile (routines): Add nscd_netgroup.
21493         (nscd-modules): Add netgroupcache.
21494         (CFLAGS-netgroupcache.c): Define.
21495         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
21496         (cache_search): Add const to second parameter.
21497         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
21498         INNETGR.
21499         (dbs): Add netgrdb entry.
21500         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
21501         (verify_persistent_db): Handle netgrdb.
21502         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
21503         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
21504         GETFDNETGR.
21505         (netgroup_response_header): Define.
21506         (innetgroup_response_header): Define.
21507         (datahead): Add netgroup_response_header and innetgroup_response_header
21508         elements.
21509         * nscd/nscd.conf: Add entries for netgroup cache.
21510         * nscd/nscd.h (dbtype): Add netgrdb.
21511         (_PATH_NSCD_NETGROUP_DB): Define.
21512         (netgroup_iov_disabled): Declare.
21513         (xmalloc, xcalloc, xrealloc): Move declarations here.
21514         (cache_search): Adjust prototype.
21515         Add netgroup-related prototypes.
21516         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
21517         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
21518         (__nscd_innetgr): Declare.
21519         * nscd/selinux.c (perms): Use access_vector_t as element type and
21520         add netgroup-related initializers.
21521         * nscd/netgroupcache.c: New file.
21522         * nscd/nscd_netgroup.c: New file.
21523         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
21524         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
21525         For four parameters use innetgr.
21526         * nss/nss_files/files-init.c: Add definition and callback for netgr.
21527         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
21528         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
21529         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
21530
21531         * nscd/connections.c (register_traced_file): Don't register file
21532         for disabled databases.
21533
21534 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
21535
21536         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
21537
21538         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
21539         from tree and freeing node.
21540
21541 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
21542
21543         * nss/nsswitch.c (__nss_database_lookup): Handle
21544         nss_parse_service_list out of memory case.
21545
21546 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
21547
21548         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
21549         out of memory case.
21550
21551 2011-10-04  Andreas Schwab  <schwab@redhat.com>
21552
21553         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
21554         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
21555         pass it down.
21556         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
21557         elf_machine_rela, elf_machine_lazy_rel.
21558         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
21559         (ELF_DYNAMIC_DO_REL): Likewise.
21560         (ELF_DYNAMIC_DO_RELA): Likewise.
21561         (ELF_DYNAMIC_RELOCATE): Likewise.
21562         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
21563         to ELF_DYNAMIC_DO_REL.
21564         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
21565         (dl_main): In trace mode always set __RTLD_NOIFUNC.
21566         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
21567         elf_machine_rela.
21568         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
21569         skip_ifunc, don't call ifunc function if non-zero.
21570         (elf_machine_rela): Likewise.
21571         (elf_machine_lazy_rel): Likewise.
21572         (elf_machine_lazy_rela): Likewise.
21573         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
21574         (elf_machine_lazy_rel): Likewise.
21575         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
21576         Likewise.
21577         (elf_machine_lazy_rel): Likewise.
21578         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21579         Likewise.
21580         (elf_machine_lazy_rel): Likewise.
21581         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
21582         (elf_machine_lazy_rel): Likewise.
21583         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
21584         (elf_machine_lazy_rel): Likewise.
21585         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
21586         (elf_machine_lazy_rel): Likewise.
21587         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
21588         (elf_machine_lazy_rel): Likewise.
21589         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
21590         (elf_machine_lazy_rel): Likewise.
21591         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
21592         (elf_machine_lazy_rel): Likewise.
21593
21594 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
21595
21596         * nss/nss_files/files-init.c (_nss_files_init): Use static
21597         initialization for all the *_traced_file variables.
21598
21599 2011-09-28  Andreas Schwab  <schwab@redhat.com>
21600
21601         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21602
21603 2011-09-27  Roland McGrath  <roland@hack.frob.com>
21604
21605         [BZ #13226]
21606         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
21607
21608 2011-09-27  Andreas Schwab  <schwab@redhat.com>
21609
21610         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
21611         Reread the line before reparsing it.
21612
21613 2011-09-26  Andreas Schwab  <schwab@redhat.com>
21614
21615         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
21616
21617 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
21618             Maxim Kuvyrkov  <maxim@codesourcery.com>
21619             Joseph Myers  <joseph@codesourcery.com>
21620
21621         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
21622         if needed for __stack_chk_guard.
21623
21624 2011-09-19  Roland McGrath  <roland@hack.frob.com>
21625
21626         * sysdeps/posix/spawni.c (script_execute): Always define it.
21627         It will be optimized away if unused.
21628         (maybe_script_execute): New function.
21629         (__spawni): Call it.
21630
21631         * Makerules: Don't include tls.make.
21632         (config-tls): Always set to thread.
21633         * tls.make.c: File removed.
21634
21635 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
21636
21637         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
21638         * config.make.in (CPPFLAGS-config): New substituted variable.
21639
21640 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
21641
21642         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
21643
21644         [BZ #13192]
21645         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
21646         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
21647
21648 2011-09-15  Roland McGrath  <roland@hack.frob.com>
21649
21650         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
21651         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
21652         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21653         (CALL_FAIL): Likewise.
21654         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
21655         (CALL_FAIL): Macro removed.
21656         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
21657
21658 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
21659
21660         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
21661         for __FINITE_MATH_ONLY__ == 1.
21662
21663 2011-09-15  Andreas Schwab  <schwab@redhat.com>
21664
21665         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
21666         __ieee754_sqrt instead of sqrt.
21667         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
21668         __ieee754_sqrtf instead of sqrtf.
21669         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
21670         __floorf instead of floorf.
21671         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
21672         __floorf, __truncf instead of floorf, truncf.
21673
21674 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
21675
21676         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
21677
21678         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
21679         __extern_always_inline.
21680         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
21681         32-bit.
21682
21683 2011-09-14  Andreas Schwab  <schwab@redhat.com>
21684
21685         * elf/rtld.c (dl_main): Also relocate in dependency order when
21686         doing symbol dependency testing.
21687
21688 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
21689
21690         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21691         Always define `refsym'.
21692
21693 2011-09-13  Andreas Schwab  <schwab@redhat.com>
21694
21695         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
21696         (__FD_ELT): Renamed from __FDELT.
21697         * misc/bits/select2.h (__FD_ELT): Likewise.
21698         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
21699         __FD_MASK instead of __FDELT, __FDMASK.
21700         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
21701         Likewise.
21702         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
21703         Likewise.
21704
21705         * elf/Makefile (gen-ldd): Fix pattern.
21706
21707         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
21708         (init_tls): Likewise.
21709
21710 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
21711
21712         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
21713
21714 2011-09-12  Andreas Schwab  <schwab@redhat.com>
21715
21716         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
21717         `struct cmsghdr *' instead of `void *'.
21718         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
21719         Likewise.
21720
21721 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
21722
21723         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
21724         if non-absolute.
21725         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
21726         ldd_rewrite_script.
21727
21728 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
21729
21730         * configure.in: Remove --with-tls option.
21731         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
21732         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
21733         out in case it is missing.
21734         * sysdeps/ia64/elf/configure.in: Likewise.
21735         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
21736         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
21737         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
21738         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
21739         * sysdeps/sh/elf/configure.in: Likewise.
21740         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
21741         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21742         * sysdeps/x86_64/elf/configure.in: Likewise.
21743         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
21744         * sysdeps/mach/hurd/tls.h: Likewise.
21745
21746         [BZ #13067]
21747         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
21748
21749         [BZ #13090]
21750         * configure.in: Fix use of AC_INIT.
21751
21752         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
21753
21754 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
21755
21756         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
21757         __set_errno.
21758         * malloc/hooks.c: Likewise.
21759
21760         [BZ #11929]
21761         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
21762         variables statically.
21763         (narenas): Initialize.
21764         (list_lock): Initialize.
21765         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
21766         initializtion of main_arena and list_lock.  Small cleanups.
21767         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
21768         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
21769         Add initializers to main_arena and mp_.
21770         (malloc_state): Remove pagesize member.  Change all users to use
21771         GLRO(dl_pagesize).
21772
21773         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
21774         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
21775         is always initialized.
21776
21777         * malloc/malloc.c: Removed unused configurations and dead code.
21778         * malloc/arena.c: Likewise.
21779         * malloc/hooks.c: Likewise.
21780         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
21781
21782         * include/tls.h: Removed.  USE___THREAD must always be defined.
21783         * bits/libc-tsd.h: Don't handle !USE___THREAD.
21784         * elf/dl-libc.c: Likewise.
21785         * elf/dl-tsd.c: Likewise.
21786         * include/errno.h: Likewise.
21787         * include/netdb.h: Likewise.
21788         * include/resolv.h: Likewise.
21789         * inet/herrno-loc.c: Likewise.
21790         * inet/herrno.c: Likewise.
21791         * malloc/arena.c: Likewise.
21792         * malloc/hooks.c: Likewise.
21793         * malloc/malloc.c: Likewise.
21794         * resolv/res-state.c: Likewise.
21795         * resolv/res_libc.c: Likewise.
21796         * sysdeps/i386/dl-machine.h: Likewise.
21797         * sysdeps/ia64/dl-machine.h: Likewise.
21798         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
21799         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
21800         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
21801         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
21802         * sysdeps/sh/dl-machine.h: Likewise.
21803         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
21804         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
21805         * sysdeps/unix/i386/sysdep.S: Likewise.
21806         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
21807         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
21808         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
21809         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21810         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
21811         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
21812         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
21813         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
21814         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21815         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
21816         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21817         * sysdeps/x86_64/dl-machine.h: Likewise.
21818         * tls.make.c: Likewise.
21819
21820         * configure.in: Remove --with-__thread option.  Make tests for
21821         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
21822         tls_model attribute fail if no support is available.  Remove
21823         USE_IN_LIBIO.
21824         * Makeconfig: Adjust for dropped configure option.  All features are
21825         now mandatory.
21826         * Makerules: Likewise.
21827         * Versions.def: Likewise.
21828         * argp/argp-fmtstream.c: Likewise.
21829         * argp/argp-fmtstream.h: Likewise.
21830         * argp/argp-help.c: Likewise.
21831         * assert/assert.c: Likewise.
21832         * config.h.in: Likewise.
21833         * config.make.in: Likewise.
21834         * configure: Likewise.
21835         * configure.in: Likewise.
21836         * csu/Versions: Likewise.
21837         * csu/init.c: Likewise.
21838         * elf/tst-audit2.c: Likewise.
21839         * elf/tst-tls10.c: Likewise.
21840         * elf/tst-tls10.h: Likewise.
21841         * elf/tst-tls11.c: Likewise.
21842         * elf/tst-tls12.c: Likewise.
21843         * elf/tst-tls14.c: Likewise.
21844         * elf/tst-tlsmod11.c: Likewise.
21845         * elf/tst-tlsmod12.c: Likewise.
21846         * elf/tst-tlsmod13.c: Likewise.
21847         * elf/tst-tlsmod13a.c: Likewise.
21848         * elf/tst-tlsmod14a.c: Likewise.
21849         * elf/tst-tlsmod15b.c: Likewise.
21850         * elf/tst-tlsmod16a.c: Likewise.
21851         * elf/tst-tlsmod16b.c: Likewise.
21852         * elf/tst-tlsmod7.c: Likewise.
21853         * elf/tst-tlsmod8.c: Likewise.
21854         * elf/tst-tlsmod9.c: Likewise.
21855         * gmon/gmon.c: Likewise.
21856         * grp/fgetgrent_r.c: Likewise.
21857         * grp/putgrent.c: Likewise.
21858         * hurd/fopenport.c: Likewise.
21859         * include/libc-symbols.h: Likewise.
21860         * include/tls.h: Likewise.
21861         * intl/gettextP.h: Likewise.
21862         * intl/loadinfo.h: Likewise.
21863         * locale/global-locale.c: Likewise.
21864         * locale/localeinfo.h: Likewise.
21865         * mach/devstream.c: Likewise.
21866         * malloc/arena.c: Likewise.
21867         * malloc/set-freeres.c: Likewise.
21868         * misc/err.c: Likewise.
21869         * misc/getttyent.c: Likewise.
21870         * misc/mntent_r.c: Likewise.
21871         * posix/getopt.c: Likewise.
21872         * posix/wordexp.c: Likewise.
21873         * pwd/fgetpwent_r.c: Likewise.
21874         * resolv/Versions: Likewise.
21875         * resolv/res_hconf.c: Likewise.
21876         * shadow/fgetspent_r.c: Likewise.
21877         * shadow/putspent.c: Likewise.
21878         * stdio-common/printf_fphex.c: Likewise.
21879         * stdio-common/tmpfile.c: Likewise.
21880         * stdlib/abort.c: Likewise.
21881         * stdlib/fmtmsg.c: Likewise.
21882         * sunrpc/auth_unix.c: Likewise.
21883         * sunrpc/clnt_perr.c: Likewise.
21884         * sunrpc/clnt_tcp.c: Likewise.
21885         * sunrpc/clnt_udp.c: Likewise.
21886         * sunrpc/clnt_unix.c: Likewise.
21887         * sunrpc/openchild.c: Likewise.
21888         * sunrpc/svc_simple.c: Likewise.
21889         * sunrpc/svc_tcp.c: Likewise.
21890         * sunrpc/svc_udp.c: Likewise.
21891         * sunrpc/svc_unix.c: Likewise.
21892         * sunrpc/xdr.c: Likewise.
21893         * sunrpc/xdr_array.c: Likewise.
21894         * sunrpc/xdr_rec.c: Likewise.
21895         * sunrpc/xdr_ref.c: Likewise.
21896         * sunrpc/xdr_stdio.c: Likewise.
21897
21898 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21899
21900         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21901
21902 2011-07-03  Andreas Jaeger  <aj@suse.de>
21903
21904         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
21905         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
21906         regenerate with gen-libm-tests.pl.
21907
21908 2010-05-12  Petr Baudis  <pasky@suse.cz>
21909
21910         [BZ #11589]
21911         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
21912         around j0() zero points by switching to j1().
21913         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21914         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21915         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21916         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21917
21918 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21919
21920         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
21921         instead of 0.
21922         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
21923         instead of 0.
21924         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21925         Patch in part by Pavel Roskin <proski@gnu.org>.
21926
21927         [BZ #13138]
21928         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
21929         realloc.
21930         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
21931         Free memory block if necessary.
21932
21933         [BZ #12847]
21934         * libio/genops.c (INTDEF): For string streams the _lock pointer can
21935         be NULL.  Don't lock in this case.
21936
21937 2011-09-09  Roland McGrath  <roland@hack.frob.com>
21938
21939         * elf/elf.h (ELFOSABI_GNU): New macro.
21940         (ELFOSABI_LINUX): Define to that.
21941
21942 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
21943
21944         * string/strncat.c (strncat): Undef the symbol in case it has been
21945         defined in bits/string.h.
21946
21947 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21948
21949         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
21950
21951         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
21952         link map.
21953
21954 2011-08-17  Andreas Jaeger  <aj@suse.de>
21955
21956         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
21957
21958 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
21959             Ian Lance Taylor  <iant@google.com>
21960
21961         * math/libm-test.inc (lround_test): New testcase.
21962         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
21963
21964 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
21965
21966         * Makefile: Remove support for automatic cvs check-ins.
21967         * Makerules: Likewise.
21968         * config.make.in: Likewise.
21969         * configure.in: Likewise.
21970         * intl/Makefile: Likewise.
21971         * locale/Makefile: Likewise.
21972         * po/Makefile: Likewise.
21973         * posix/Makefile: Likewise.
21974         * sysdeps/gnu/Makefile: Likewise.
21975         * sysdeps/mach/hurd/Makefile: Likewise.
21976         * sysdeps/sparc/sparc32/Makefile: Likewise.
21977
21978         [BZ #13118]
21979         * posix/Makefile (bug-regex32-ENV): Define.
21980         Patch by John Stanley <jpsinthemix@verizon.net>.
21981
21982         * misc/Makefile (headers): Add bits/select2.h.
21983         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
21984         * misc/bits/select2.h: New file.
21985         * include/bits/select2.h: New file.
21986         * debug/Makefile (routines): Add fdelt_chk.
21987         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
21988         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
21989         FD_ISSET.
21990         * debug/fdelt_chk.c: New file.
21991
21992         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
21993         * wcsmbs/test-wmemcmp.c: Likewise.
21994         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
21995         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
21996
21997 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21998
21999         * string/Makefile (strop-tests): Add memcmp.
22000         * string/test-wmemcmp.c: New file.
22001         * string/test-memcmp.c: Add wmemcmp support.
22002
22003 2011-09-08  Roland McGrath  <roland@hack.frob.com>
22004
22005         [BZ #13153]
22006         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
22007         2011-07-19 change.
22008
22009         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
22010         garbage value in a __mach_port_mod_refs call in the cases of the
22011         task-self and thread-self ports.
22012
22013 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22014
22015         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
22016
22017 2011-09-08  Andreas Schwab  <schwab@redhat.com>
22018
22019         * elf/dl-load.c (lose): Check for non-null L.
22020
22021 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22022
22023         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
22024
22025         * elf/dl-libc.c (dlerror_run): Pass back error code from
22026         dl_catch_error.
22027
22028         [BZ #13123]
22029         * elf/dl-load.c (lose): Free l_origin if it is valid.
22030
22031         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
22032         names.
22033         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
22034         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22035         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22036         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22037         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
22038         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
22039
22040 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22041
22042         * sysdeps/powerpc/fpu/e_hypot.c: New file.
22043         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
22044         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
22045         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
22046         * sysdeps/powerpc/fpu/k_cosf.c: New file.
22047         * sysdeps/powerpc/fpu/k_sinf.c: New file.
22048         * sysdeps/powerpc/fpu/s_cosf.c: New file.
22049         * sysdeps/powerpc/fpu/s_sinf.c: New file.
22050         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
22051         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
22052
22053 2011-08-15  Alan Modra  <amodra@gmail.com>
22054
22055         [BZ #13092]
22056         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
22057         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
22058         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
22059         ppc_mcount to static-only-routines.
22060         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
22061         __mcount_internal.
22062         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
22063         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
22064
22065 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
22066
22067         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
22068         for finite and infinity parameters.
22069
22070 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22071
22072         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
22073         and add nop instructions for throughput optimization.
22074         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22075
22076 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
22077
22078         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
22079         aligned copy for power7 with vector-scalar instructions.
22080         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
22081
22082 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
22083
22084         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
22085         AVX check.
22086
22087 2011-09-07  Andreas Schwab  <schwab@redhat.com>
22088
22089         [BZ #13144]
22090         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
22091         last change.
22092
22093 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22094
22095         * sysdeps/unix/sysv/linux/x86_64/init-first.c
22096         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
22097         syscall wrapper around clock_gettime in __vdso_clock_gettime.
22098         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
22099         clock_gettime.
22100
22101 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22102
22103         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
22104         Forgot to demangle the pointer.
22105
22106         * sysdeps/i386/sysdep.h: Define atom_text_section.
22107         * sysdeps/x86_64/sysdep.h: Likewise.
22108         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
22109         section with atom_text_section.
22110         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22111         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22112         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
22113         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22114         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
22115
22116         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
22117         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
22118         already be defined.  Change to take two parameters and don't assign
22119         result to variable.  Adjust all users.
22120         Define INTERNAL_GETTIME if not already defined.
22121         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
22122         call.
22123         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
22124         HAVE_CLOCK_GETTIME_VSYSCALL.
22125         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
22126
22127         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
22128         gettimeofday vsyscall, just use time.
22129
22130 2011-09-06  Andreas Schwab  <schwab@redhat.com>
22131
22132         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
22133         <errno.h>.
22134
22135 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22136
22137         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
22138         syscall on x86-64.
22139         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
22140         syscall.
22141         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
22142         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
22143         syscall if possible.
22144
22145 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22146
22147         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
22148         e_ident.  Don't pass to find_mapsXX.
22149         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
22150
22151 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22152
22153         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22154         strchr-sse2-no-bsf strrchr-sse2-no-bsf
22155         * sysdeps/x86_64/multiarch/strchr.S: Update.
22156         Check bit_slow_BSF bit.
22157         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
22158         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
22159         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
22160
22161 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22162
22163         [BZ #13134]
22164         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
22165         before glibc 2.15.
22166         (tryshell): Define.
22167         (__spawni): Change last parameter to be flag.  Test
22168         SPAWN_XFLAGS_USE_PATH flag to use path or not.
22169         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
22170         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
22171         * posix/spawni.c: Likewise.
22172         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
22173         * posix/spawnp.c: Likewise.  Change normal version to use
22174         SPAWN_XFLAGS_USE_PATH.
22175         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
22176         SPAWN_XFLAGS_TRY_SHELL.
22177
22178         [BZ #13150]
22179         * posix/glob.h: Remove gcc 1.x support.
22180
22181         [BZ #13068]
22182         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
22183
22184 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22185
22186         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22187         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
22188         strrchr-sse2-bsf
22189         * sysdeps/i386/i686/multiarch/strchr.S: New file.
22190         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
22191         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
22192         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
22193         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
22194         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
22195
22196 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22197
22198         * sysdeps/x86_64/wcscmp.S: New file.
22199
22200         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
22201         wcscmp-c wcscmp-sse2
22202         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
22203         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
22204         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
22205         * wcsmbs/wcscmp.c: Allow renaming.
22206
22207 2011-09-05  David S. Miller  <davem@davemloft.net>
22208
22209         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
22210         stack slot, rather than the struct return pointer slot.
22211         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
22212         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
22213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
22214         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
22215
22216 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22217
22218         * po/ja.po: Update from translation team.
22219
22220         [BZ #13144]
22221         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
22222         kernel in 64-bit binaries.
22223
22224 2011-09-01  David S. Miller  <davem@davemloft.net>
22225
22226         * elf/elf.h (HWCAP_SPARC_*): Move to..
22227         * sysdeps/sparc/sysdep.h: this new file and add new values.
22228         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
22229         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
22230         _DL_HWCAP_COUNT to 24.
22231         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
22232         entries.
22233         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
22234         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
22235         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
22236         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
22237         instead of magic constants.
22238         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22239
22240 2011-08-31  David S. Miller  <davem@davemloft.net>
22241
22242         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
22243         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
22244         Reimplement to do errno handling inline.
22245         (SYSCALL_ERROR_HANDLER): New macro.
22246         (__SYSCALL_STRING): Do not do errno handling in asm.
22247         (__CLONE_SYSCALL_STRING): Delete.
22248         (__INTERNAL_SYSCALL_STRING): Delete.
22249         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
22250         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
22251         (PSEUDO): Reimplement to do errno handling inline.
22252         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
22253         (SYSCALL_ERROR_HANDLER): New macro.
22254         (__SYSCALL_STRING): Do not do errno handling in asm.
22255         (__CLONE_SYSCALL_STRING): Delete.
22256         (__INTERNAL_SYSCALL_STRING): Delete.
22257         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
22258         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
22259         i386.
22260         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
22261         (inline_syscall*): Add 'err' argument.
22262         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
22263         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
22264         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
22265         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
22266
22267         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
22268         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
22269
22270 2011-08-30  Andreas Schwab  <schwab@redhat.com>
22271
22272         * elf/rtld.c (dl_main): Relocate objects in dependency order.
22273
22274 2011-08-29  Jiri Olsa <jolsa@redhat.com>
22275
22276         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
22277         directive.
22278
22279 2011-08-24  David S. Miller  <davem@davemloft.net>
22280
22281         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
22282
22283 2011-08-24  Andreas Schwab  <schwab@redhat.com>
22284
22285         * elf/Makefile: Add rules to build and run unload8 test.
22286         * elf/unload8.c: New file.
22287         * elf/unload8mod1.c: New file.
22288         * elf/unload8mod1x.c: New file.
22289         * elf/unload8mod2.c: New file.
22290         * elf/unload8mod3.c: New file.
22291
22292         * elf/dl-close.c (_dl_close_worker): Reset private search list if
22293         it wasn't used.
22294
22295 2011-08-23  David S. Miller  <davem@davemloft.net>
22296
22297         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
22298         subtract stack bias.
22299         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
22300         %sp not %fp in calculations.
22301         (_JMPBUF_UNWINDS_ADJ): Likewise.
22302
22303         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
22304         (aio_suspend): Call it to force an exception region around the
22305         AIO_MISC_WAIT() invocation.
22306
22307 2011-08-23  Andreas Schwab  <schwab@redhat.com>
22308
22309         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
22310         backslash.
22311
22312 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
22313
22314         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
22315         protection macro.
22316         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
22317         and <dl-machine.h>.
22318         (Elf64_FuncDesc): Remove.
22319
22320 2011-08-22  David S. Miller  <davem@davemloft.net>
22321
22322         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
22323         sigaltstack check, add missing cfi directives.
22324         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
22325         missing cfi directives, and sigaltstack handling.
22326
22327 2011-08-16  Andreas Schwab  <schwab@redhat.com>
22328
22329         [BZ #11724]
22330         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
22331         object is seen twice.
22332         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22333
22334         * elf/Makefile (distribute): Add tst-initorder2.c.
22335         (tests): Add tst-initorder2.
22336         (modules-names): Add tst-initorder2a tst-initorder2b
22337         tst-initorder2c tst-initorder2d.  Add rules to build them.
22338         ($(objpfx)tst-initorder2.out): New rule.
22339         * elf/tst-initorder2.c: New file.
22340         * elf/tst-initorder2.exp: New file.
22341
22342 2011-08-22  Andreas Schwab  <schwab@redhat.com>
22343
22344         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
22345
22346         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
22347         dependencies back to end of function.
22348
22349         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22350         $(elfobjdir)/ld.so.
22351
22352 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
22353
22354         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
22355         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
22356         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
22357         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
22358         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
22359         of __vdso_gettimeofday.
22360         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
22361         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
22362         attribute_hidden.
22363         (_libc_vdso_platform_setup): Remove initialization of
22364         __vdso_gettimeofday and __vdso_time.
22365
22366 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
22367
22368         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
22369         and fgetc_unlocked.
22370         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
22371         getc_unlocked.
22372
22373         * elf/dl-open.c (add_to_global): Report additions to the global scope
22374         for LD_DEBUG=scopes.
22375         (dl_open_worker): Also print scope of newly loaded dependencies.
22376         (_dl_show_scope): Indicate if there is no scope.
22377
22378         [BZ #13114]
22379         * stdio-common/Makefile (tests): Add bug24.
22380         * stdio-common/bug24.c: New file.
22381
22382 2011-08-19  Andreas Jaeger  <aj@suse.de>
22383
22384         [BZ #13114]
22385         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
22386         non-existant file when using close-on-exec mode.
22387
22388 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
22389
22390         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
22391         the very first instruction.
22392
22393         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
22394         the CFI state in the end.
22395         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
22396         inclusion of dl-trampoline.h.
22397         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
22398
22399 2011-08-19  Andreas Schwab  <schwab@redhat.com>
22400
22401         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
22402         expectations for long double.
22403
22404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
22405         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
22406
22407 2011-08-14  David S. Miller  <davem@davemloft.net>
22408
22409         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
22410         artificual limit depends upon the system page size.
22411
22412 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
22413
22414         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
22415         * resolv/Makefile: Define CFLAGS-libresolv.
22416
22417 2011-08-17  Andreas Schwab  <schwab@redhat.com>
22418
22419         * nss/makedb.c (compute_tables): Make variables used in nested
22420         function static.
22421
22422 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
22423
22424         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
22425         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
22426         if buffer was too small.
22427
22428         * elf/pldd.c (main): Attach to all threads in the process.
22429         Rewrite /proc handling to use *at functions.
22430
22431 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
22432
22433         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
22434         specifies first scope to show.
22435         (dl_open_worker): Update callers.  Move printing scope of new
22436         object to before the relocation.
22437         * elf/rtld.c (dl_main): Update _dl_show_scope call.
22438         * sysdeps/generic/ldsodefs.h: Update declaration.
22439
22440         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
22441         string for the scope number.
22442
22443 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
22444
22445         * nscd/servicescache.c (cache_addserv): Make sure written is always
22446         initialized.
22447
22448 2011-08-14  Roland McGrath  <roland@hack.frob.com>
22449
22450         * sysdeps/i386/i486/bits/atomic.h
22451         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
22452         statement expression, so as to suppress "set but not used" warning.
22453         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
22454
22455         * string/strncat.c (STRNCAT): Use prototype definition.
22456
22457         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
22458         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
22459         -Iprograms here.
22460         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
22461         (localedef-modules): Add localedef.
22462         (locale-modules): Add locale.
22463
22464         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
22465         * elf/rtld.c (dl_main): Invert order of assignment in last change,
22466         to avoid a warning.
22467
22468 2011-08-14  David S. Miller  <davem@davemloft.net>
22469
22470         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
22471         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
22472
22473 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
22474
22475         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
22476         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
22477         * elf/rtld.c (dl_main): Set l_name of vDSO.
22478         Call _dl_show_scope when DL_DEBUG_SCOPES.
22479         (process_dl_debug): Recognize scopes flag and also set it for all.
22480         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
22481         Declare _dl_show_scope.
22482
22483         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
22484         (do_dlopen): Pass caller_dlopen to dl_open.
22485         (__libc_dlopen_mode): Initialize caller_dlopen.
22486
22487         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
22488         of libc.  Make tolower call locale-independent.  Optimize a bit by
22489         using isdigit instead of isalnum.
22490         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
22491
22492 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
22493
22494         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
22495         was a dependency or dynamically loaded.
22496
22497 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
22498
22499         * intl/l10nflist.c: Allow architecture-specific pop function.
22500         * sysdeps/x86_64/l10nflist.c: New file.
22501
22502         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
22503         classification.
22504
22505 2011-08-10  Andreas Schwab  <schwab@redhat.com>
22506
22507         * include/dirent.h: Add libc_hidden_proto for scandirat and
22508         scandirat64.  Don't declare __scandirat64.
22509         * dirent/scandirat.c: Add libc_hidden_def.
22510         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
22511         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
22512
22513 2011-08-10  David S. Miller  <davem@davemloft.net>
22514
22515         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
22516         enum.
22517         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22518         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22519         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22520
22521 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
22522
22523         * Versions.def [libc]: Add GLIBC_2.15.
22524         * dirent/Makefile (routines): Add scandirat and scandirat64.
22525         * dirent/Versions [libc]: Export scandirat and scandirat64 for
22526         GLIBC_2.15.
22527         * dirent/dirent.h: Declare scandirat and scandirat64.
22528         * dirent/scandirat.c: New file.
22529         * dirent/scandirat64.c: New file.
22530         * sysdeps/wordsize-64/scandirat.c: New file.
22531         * sysdeps/wordsize-64/scandirat64.c: New file.
22532         * dirent/opendir.c: Define opendirat.
22533         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
22534         using scandirat.
22535         * dirent/scandir64.c: Adjust for scandir.c change.
22536         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
22537         __scandirat64, and __scandir_cancel_handler.
22538         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
22539         additional parameter and use openat instead of open (outside of ld.so).
22540         Add new __opendir as wrapper around __opendirat.
22541         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
22542         here without requiring old scandirat implementation.
22543
22544 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
22545
22546         * dirent/scandir.c (cancel_handler): Renamed to
22547         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
22548         defined.  Adjust users.
22549         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
22550         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
22551
22552 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
22553
22554         * string/test-string.h (IMPL): Use __STRING to expand name and then
22555         stringify it.
22556
22557         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
22558         of cleanups.
22559
22560 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22561
22562         * string/Makefile: Update.
22563         (strop-tests): Append strncat.
22564         * string/test-wcscmp.c: New file.
22565         New comprehensive test for wcscmp.
22566         * string/test-strcmp.c: Update.
22567         (WIDE): New define.
22568
22569 2011-07-22  Andreas Schwab  <schwab@redhat.com>
22570
22571         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
22572         line.
22573
22574 2011-07-26  Andreas Schwab  <schwab@redhat.com>
22575
22576         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
22577         encoding to ACE if AI_IDN.
22578
22579 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
22580
22581         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
22582         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
22583
22584 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22585
22586         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
22587         Fix overflow bug in strncat.
22588         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
22589
22590         * string/test-strncat.c: Update.
22591         Add new tests for checking overflow bugs.
22592
22593 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22594
22595         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22596         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
22597         * sysdeps/i386/i686/multiarch/strcat.S: New file.
22598         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
22599         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
22600         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
22601         * sysdeps/i386/i686/multiarch/strncat.S: New file.
22602         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
22603         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
22604
22605         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
22606         (USE_AS_STRCAT): Define.
22607         Add strcat and strncat support.
22608         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22609
22610 2011-07-25  Andreas Schwab  <schwab@redhat.com>
22611
22612         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
22613         __n bigger than INT_MAX+1.
22614         (__strncmp_g): Likewise.
22615
22616 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
22617
22618         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
22619         * libio/stido.h: Likewise.
22620
22621         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
22622         (AF_NFC): Define.
22623         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
22624         (AF_NFC): Define.
22625
22626         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
22627         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22628         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22629         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22630         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22631
22632         [BZ #13021]
22633         * scripts/test-installation.pl: Don't expect libnss_test1 to be
22634         installed.
22635
22636         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
22637         typo.
22638         (_dl_x86_64_save_sse): Likewise.
22639
22640 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
22641
22642         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
22643         OSXSAVE.
22644         (_dl_x86_64_save_sse): Likewise.
22645
22646         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
22647
22648         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
22649
22650 2011-07-21  Andreas Schwab  <schwab@redhat.com>
22651
22652         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
22653         change.
22654         (_dl_x86_64_save_sse): Use correct AVX check.
22655
22656 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22657
22658         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
22659         bug in strncpy/strncat.
22660         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
22661
22662 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
22663
22664         * string/tester.c (test_strcat): Add tests for different alignments
22665         of source and destination.
22666         (test_strncat): Likewise.
22667
22668 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
22669
22670         [BZ #12852]
22671         * posix/glob.c (glob): Check passed in values before using them in
22672         expressions to avoid some overflows.
22673         (glob_in_dir): Likewise.
22674
22675         [BZ #13007]
22676         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
22677         check for AVX enablement so that we don't crash with old kernels and
22678         new hardware.
22679         * elf/tst-audit4.c: Add same checks here.
22680         * elf/tst-audit6.c: Likewise.
22681
22682         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
22683
22684 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
22685
22686         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
22687
22688 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
22689
22690         * po/cs.po: Update from translation team.
22691         * po/bg.po: Likewise.
22692
22693 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
22694
22695         * misc/sys/cdefs.h: Add support for const attribute.
22696         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
22697         to gnu_dev_{major,minor,makedev} functions.
22698
22699 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
22700
22701         * intl/dcigettext.c (get_output_charset): Add missing bracket.
22702
22703 2011-07-20  Andreas Schwab  <schwab@redhat.com>
22704
22705         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
22706         strlen results.
22707
22708 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22709
22710         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
22711         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
22712         register in order to avoid conflicts with the soft frame pointer
22713         being held in r11 when necessary.
22714         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22715         (INTERNAL_VSYSCALL_NCS): Likewise.
22716
22717 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
22718
22719         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
22720         * elf/dl-fini.c (_dl_fini): Adjust caller.
22721         * elf/dl-close.c (_dl_close_worker): Likewise.
22722         * sysdeps/generic/ldsodefs.h: Adjust declaration.
22723
22724 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
22725
22726         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
22727         "aux_cache->nlibs < 0".
22728
22729         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
22730         in the reload-count case.
22731
22732 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22733
22734         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22735         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
22736         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
22737         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
22738         * sysdeps/x86_64/multiarch/strcat.S: New file.
22739         * sysdeps/x86_64/multiarch/strncat.S: New file.
22740         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
22741         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
22742         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
22743         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
22744         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
22745         (USE_AS_STRCAT): Define.
22746         Add strcat and strncat support.
22747         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22748         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
22749         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
22750         * string/strncat.c: Update.
22751         (USE_AS_STRNCAT): Define.
22752         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22753         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
22754         and i7.
22755         * sysdeps/x86_64/multiarch/init-arch.h
22756         (bit_Prefer_PMINUB_for_stringop): New.
22757         (index_Prefer_PMINUB_for_stringop): Likewise.
22758         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
22759         bit_Prefer_PMINUB_for_stringop.
22760
22761 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
22762
22763         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
22764         buffer64.
22765         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
22766         of casting of buffer.
22767         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
22768         buffer32 and buffer64.
22769         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
22770         writes instead of casting of buffer.
22771         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
22772         buffer32.
22773         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
22774         casting of buffer.
22775
22776 2011-07-19  Andreas Schwab  <schwab@redhat.com>
22777
22778         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
22779
22780 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
22781
22782         * nscd/nscd.c (termination_handler): Don't do anything for a database
22783         if it has not yet been initialized.
22784
22785 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
22786
22787         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
22788
22789 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
22790
22791         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
22792
22793 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
22794
22795         * po/nl.po: Update from translation team.
22796         * po/sv.po: Likewise.
22797
22798 2011-07-16  Roland McGrath  <roland@hack.frob.com>
22799
22800         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
22801         now disallowed by GCC.
22802
22803         * configure.in (use-default-link): Default to yes if a test -shared
22804         link meets our qualifications.
22805         * configure: Regenerated.
22806
22807         * config.make.in (output-format): New variable.
22808         * configure.in: Check for ld --print-output-format support.
22809         * configure: Regenerated.
22810         * Makerules ($(common-objpfx)format.lds)
22811         [$(output-format) != unknown]: Just use $(output-format),
22812         instead of the linker-script munging.
22813
22814 2011-07-14  Roland McGrath  <roland@hack.frob.com>
22815
22816         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
22817         of $(common-objpfx)shlib.lds.
22818         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
22819
22820         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
22821         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
22822
22823         * configure.in (-z relro check): Adjust test code to add a large
22824         writable data section after it.
22825         * configure: Regenerated.
22826
22827 2011-07-11  Roland McGrath  <roland@hack.frob.com>
22828
22829         * configure.in (-z relro check): Fix test code to make the variable
22830         truly const.
22831         * configure: Regenerated.
22832
22833 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
22834
22835         * nscd/nscd.h (struct traced_file): Define.
22836         (struct database_dyn): Remove inotify_descr, reset_res, and filename
22837         elements.  Add traced_files.
22838         (inotify_fd): Declare.
22839         (register_traced_file): Declare.
22840         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
22841         (inotify_fd): Export.
22842         (resolv_conf_descr): Remove.
22843         (nscd_init): Move inotify descriptor creation to main.
22844         Don't register files for notification here.
22845         (register_traced_file): New function.
22846         (invalidate_cache): Don't use reset_res to determine whether to call
22847         res_init, go through the list of registered files.
22848         (main_loop_poll): The inotify descriptors are now stored in the
22849         structures for the traced files.
22850         (main_loop_epoll): Likewise
22851         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
22852         to __nss_disable_nscd.
22853         * nscd/cache.c (prune_cache): There is no single inotify descriptor
22854         for a database anymore.  Check the records for all the registered
22855         files instead.
22856         * nss/Makefile (libnss_files-routines): Add files-init.
22857         (libnss_db-routines): Add db-init.
22858         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
22859         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
22860         * nss/nss_db/db-init.c: New file.
22861         * nss/nss_files/files-init.c: New file.
22862         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
22863         __nss_lookup_function.
22864         (__nss_lookup_function): Call nss_load_library.
22865         (nss_load_all_libraries): New function.
22866         (__nss_disable_nscd): Take parameter with callback function for files
22867         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
22868         used for the cached services.
22869         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
22870         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
22871         options for features to all the files in nscd.
22872
22873         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
22874
22875 2011-07-10  Roland McGrath  <roland@hack.frob.com>
22876
22877         * csu/elf-init.c (__libc_csu_init): Comment typo.
22878
22879 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
22880
22881         * po/pl.po: Update from translation team.
22882         * po/ja.po: Likewise.
22883         * po/ru.po: Likewise.
22884         * po/ko.po: Likewise.
22885         * po/fr.po: Likewise.
22886
22887 2011-07-09  Roland McGrath  <roland@hack.frob.com>
22888
22889         * configure.in (.ctors/.dtors header and trailer check):
22890         Use an empirical test on a built program.
22891         * configure: Regenerated.
22892
22893         * configure.in (-z relro check): Use an empirical test on a built DSO.
22894         Detect, but do not require, on ia64.
22895         * configure: Regenerated.
22896
22897         * configure.in (READELF): Find it with AC_CHECK_TOOL.
22898         Update tests that use readelf to use $READELF instead.
22899         * configure: Regenerated.
22900
22901 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
22902
22903         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
22904         if the result is not used.
22905
22906 2011-07-05  Andreas Jaeger  <aj@suse.de>
22907
22908         [BZ#9696]
22909         * stdlib/tst-strtod.c: Add testcase.
22910
22911 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
22912
22913         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
22914         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
22915         The latter has a higher limit.  Take additional parameter to pass to
22916         the new function.
22917         (__pathconf): Pass file to __statfs_link_max.
22918         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
22919         __statfs_link_max.
22920         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
22921         __statfs_link_max.
22922
22923         [BZ #12868]
22924         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
22925         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22926         Handle Lustre.
22927         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
22928         (__statfs_filesize_max): Likewise.
22929         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
22930
22931 2011-07-05  Andreas Jaeger  <aj@suse.de>
22932
22933         * resolv/res_comp.c (dn_skipname): Remove unused variable.
22934
22935 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
22936
22937         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
22938         `status' variable.
22939         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
22940         Likewise.
22941
22942 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
22943
22944         * Makefile (strop-tests): Add strncat.
22945         * string/test-strncat.c: New file.
22946
22947 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
22948
22949         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
22950
22951 2011-06-21  Andreas Jaeger  <aj@suse.de>
22952
22953         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
22954         Copy rule from iconvdata/Makefile.
22955
22956 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22957
22958         [BZ #12922]
22959         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
22960         but no long options are defined, just return 'W'.
22961
22962 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
22963
22964         [BZ #9696]
22965         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
22966
22967 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22968
22969         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
22970         netgroups to read.
22971         (innetgr): Likewise.
22972
22973 2011-07-05  Roland McGrath  <roland@hack.frob.com>
22974
22975         * config.make.in (install_root): Default to $(DESTDIR).
22976
22977 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
22978
22979         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
22980
22981 2011-07-02  Roland McGrath  <roland@hack.frob.com>
22982
22983         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
22984
22985         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
22986         containing directory rather than embedding absolute directory names.
22987
22988         * scripts/check-local-headers.sh: Rewritten using awk.
22989         Match by word, not by line.  Print error messages for matches.
22990         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
22991
22992         * Makerules [shlib-lds-flags empty]:
22993         ($(common-objpfx)libc_pic.opts): New target.
22994         ($(common-objpfx)libc_pic.os.clean): New target.
22995         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
22996
22997         * config.make.in (OBJCOPY): New variable.
22998         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
22999         * configure: Regenerated.
23000
23001         * config.make.in (use-default-link): New variable.
23002         * configure.in (use_default_link): Grok --with-default-link to set it.
23003         * configure: Regenerated.
23004         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
23005         (shlib-lds, shlib-lds-flags): Define to empty.
23006
23007         * Makerules (shlib-lds): New variable.
23008         (shlib-lds-flags): New variable.
23009         (build-shlib, build-moduile, build-module-asneeded): Use it.
23010         ($(common-objpfx)libc.so): Use $(shlib-lds).
23011         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
23012         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
23013
23014         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
23015         DT_FLAGS/DT_FLAGS_1 with zero flags.
23016
23017         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
23018         linker script munging.
23019
23020 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
23021
23022         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
23023         as 128-bit value.
23024         * crypt/sha512.c (sha512_process_block): Perform total addition using
23025         128-bit if possible.
23026         (__sha512_finish_ctx): Likewise.
23027         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
23028         as 64-bit value.
23029         * crypt/sha256.c (SWAP64): Define.
23030         (sha256_process_block): Perform total addition using 64-bit if
23031         possible.
23032         (__sha256_finish_ctx): Likewise.
23033
23034 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
23035
23036         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
23037         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23038         * nscd/hstcache.c (cache_addhst): Likewise.
23039         * nscd/grpcache.c (cache_addgr): Likewise.
23040         * nscd/aicache.c (addhstaiX): Likewise
23041         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
23042
23043 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
23044
23045         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
23046         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23047         * nscd/hstcache.c (cache_addhst): Likewise.
23048         * nscd/grpcache.c (cache_addgr): Likewise.
23049         * nscd/aicache.c (addhstaiX): Likewise
23050
23051 2011-07-01  Andreas Schwab  <schwab@redhat.com>
23052
23053         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
23054         domain only when needed.
23055
23056 2011-06-30  Andreas Schwab  <schwab@redhat.com>
23057
23058         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
23059         is always restored.
23060
23061 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
23062
23063         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
23064         are re-adding the entry.
23065         * nscd/servicescache.c (cache_addserv): Likewise.
23066
23067 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
23068
23069         * sysdeps/generic/dl-irel.h: fix protection against multiple
23070         inclusions.
23071         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
23072
23073 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
23074
23075         [BZ #12935]
23076         * malloc/memusage.sh: Fix quoting in message.
23077         * debug/xtrace.sh: Likewise.
23078
23079         * configure.in: Remove support for --experimental-malloc option, make
23080         it the default.
23081         * config.make.in: Likewise.
23082         * malloc/Makefile: Likewise.
23083
23084 2011-06-27  Andreas Schwab  <schwab@redhat.com>
23085
23086         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
23087         two-byte characters.
23088
23089 2011-06-27  Roland McGrath  <roland@hack.frob.com>
23090
23091         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
23092         AC_CACHE_CHECK invocation.
23093         * configure: Regenerated.
23094
23095         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
23096
23097 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
23098
23099         [BZ #12350]
23100         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
23101         bit from old_res_options.
23102
23103         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
23104
23105         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
23106         value type for setfct.
23107
23108 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23109
23110         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23111         __gettimeofday instead of gettimeofday.
23112
23113 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
23114
23115         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
23116
23117 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23118
23119         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
23120
23121         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
23122         info.
23123
23124 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23125
23126         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23127         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23128         strcpy-sse2-unaligned strncpy-sse2-unaligned
23129         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
23130         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
23131         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
23132         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
23133         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
23134         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
23135         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
23136         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
23137         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
23138         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
23139         (STRCPY): Support SSE2 and SSSE3 versions.
23140
23141 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
23142
23143         [BZ #12874]
23144         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
23145         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
23146         kernels which artificially limit size of requests.
23147
23148 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23149
23150         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23151         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23152         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
23153         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
23154         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
23155         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
23156         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
23157         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
23158         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
23159         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
23160         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
23161         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
23162         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
23163         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
23164         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
23165         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23166         Enable unaligned load optimization for Intel Core i3, i5 and i7
23167         processors.
23168         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
23169         Define.
23170         (index_Fast_Unaligned_Load): Define.
23171         (HAS_FAST_UNALIGNED_LOAD): Define.
23172
23173 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
23174
23175         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
23176
23177 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23178
23179         [BZ #12907]
23180         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
23181         until it is clear that the information is realy needed.
23182         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
23183
23184 2011-06-22  Andreas Schwab  <schwab@redhat.com>
23185
23186         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
23187
23188 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23189
23190         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23191         /sys/devices/system/cpu/online if it is usable.
23192
23193         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
23194         reading the information from the /proc filesystem to once a second.
23195
23196 2011-06-21  Andreas Jaeger  <aj@suse.de>
23197
23198         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
23199         NULL after inclusion of kernel headers.
23200
23201 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
23202
23203         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
23204         calls to internal_setent.
23205
23206         [BZ #12885]
23207         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
23208         addresses using gethostbyname4_r ignore IPv4 addresses.
23209
23210         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
23211         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
23212
23213         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
23214
23215 2011-06-20  David S. Miller  <davem@davemloft.net>
23216
23217         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
23218         inclusions.
23219         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
23220
23221         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
23222         (elf_irel): Use it.
23223         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
23224         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
23225         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
23226         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
23227         * sysdeps/x86_64/dl-irel.h: Likewise.
23228
23229         * elf/dl-runtime.c: Use elf_ifunc_invoke.
23230         * elf/dl-sym.c: Likewise.
23231
23232 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23233
23234         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
23235         need to dereference resplen2.
23236
23237 2011-06-14  Andreas Schwab  <schwab@redhat.com>
23238
23239         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
23240
23241 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23242
23243         * Makeconfig: Define vardbdir and inst_vardbdir.
23244         * nss/Makefile: Add rules to install db-Makefile.
23245
23246         * nss/nss_db/db-XXX.c: Cleanup.
23247
23248         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
23249         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
23250         GLIBC_PRIVATE.
23251         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
23252         * nss/makedb.c: Implement -g option to specify that value strings
23253         are generated and should not be added to table iterated over for
23254         get*ent calls.
23255         * nss/nss_db/db-initgroups.c: New file.
23256
23257         * nss/getent.c: Add support for initgroups lookups through getgrouplist
23258         interface.
23259
23260         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
23261         (internal_getgrouplist): Adjust to name change.
23262         Update use_initgroups_entry if this is not the first call.
23263         * nss/databases.def: Add initgroups entry.
23264
23265         * nss/makedb.c (compute_tables): Check result of multiple hash table
23266         sizes to minimize maximum chain length.
23267
23268 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
23269
23270         * Versions.def: Add entry for libnss_db.
23271         * shlib-versions: Likewise.
23272         * nss/Makefile: Add rules to build libnss_db.
23273         * nss/Versions: Add libnss_db information.  Organize libnss_files
23274         entries better.
23275         * nss/db-Makefile: Add gshadow support.  Change rules for the new
23276         makedb progra.  Some minor improvements to generate smaller files.
23277         * nss/nss_db/nss_db.h: Move NSS database header data structures to
23278         here from...
23279         * nss/makedb.c: ...here.
23280         Improve database format to be smaller and require less memory at
23281         runtime.
23282         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
23283         db anymore.
23284         * nss/nss_db/db-netgrp.c: Likewise.
23285         * nss/nss_db/db-open.c: Likewise.
23286         * nss/nss_files/flies-XXX.x: Adjust comments.
23287         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
23288         * nss/nss_files/files-grp.c: Likewise.
23289         * nss/nss_files/files-hosts.c: Likewise.
23290         * nss/nss_files/files-network.c: Likewise.
23291         * nss/nss_files/files-proto.c: Likewise.
23292         * nss/nss_files/files-pwd.c: Likewise.
23293         * nss/nss_files/files-rpc.c: Likewise.
23294         * nss/nss_files/files-service.c: Likewise.
23295         * nss/nss_files/files-sgrp.c: Likewise.
23296         * nss/nss_files/files-spwd.c: Likewise.
23297         * nss/nss_db/db-alias.c: Removed.
23298         * nss/nss_db/dummy-db.h: Removed.
23299
23300 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
23301
23302         * nss/makedb.c: Rewritten to not use database library.
23303         * nss/Makefile: Update to build new makedb program.
23304
23305 2011-06-14  Andreas Jaeger  <aj@suse.de>
23306
23307         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
23308         memset declaration.
23309
23310 2011-06-10  Andreas Schwab  <schwab@redhat.com>
23311
23312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
23313         tmpbuf.
23314
23315 2011-06-10  Roland McGrath  <roland@hack.frob.com>
23316
23317         * Makerules (shlib.lds): Fail if the linker script comes out empty.
23318         * elf/Makefile ($(objpfx)ld.so): Likewise.
23319
23320         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
23321         Don't list ld.so twice in dependencies.
23322
23323         * posix/bug-regex31.c: Include <stdlib.h>.
23324
23325         * nscd/hstcache.c (cache_addhst): Remove unused variable.
23326
23327         * nis/nss_compat/compat-spwd.c
23328         (getspent_next_nss_netgr): Remove unused variable.
23329         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
23330
23331         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
23332         nonmembers" output to use the right array.
23333
23334         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
23335
23336         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
23337
23338         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
23339         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
23340         * catgets/gencat.c (read_input_file): Likewise.
23341         * locale/programs/locarchive.c (enlarge_archive): Likewise.
23342
23343         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
23344         variable definition inside #if's controlling its use.
23345
23346         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
23347
23348         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
23349
23350         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
23351
23352         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
23353         unreachable code.
23354
23355         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
23356
23357         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
23358         * configure: Regenerated.
23359
23360         * Makerules: Revert last change.
23361         * elf/Makefile: Likewise.
23362
23363 2011-06-09  Roland McGrath  <roland@hack.frob.com>
23364
23365         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
23366         * elf/Makefile ($(objpfx)librtld.os): Likewise.
23367         (reloc-link): Likewise.
23368
23369 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
23370
23371         * elf/Makefile: Add rules to build pldd.
23372         * elf/pldd.c: New file.
23373         * elf/pldd-xx.c: New file.
23374
23375 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
23376
23377         * version.h: Update for 2.15 development version.
23378
23379 2011-06-07  David S. Miller  <davem@davemloft.net>
23380
23381         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
23382         ifuncs.
23383         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
23384         elf_machine_lazy_rel): Likewise.
23385         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
23386         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
23387         elf_machine_lazy_rel): Likewise.
23388         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
23389         dl_hwcap via passed in argument.
23390         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
23391         Likewise.
23392
23393 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23394
23395         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
23396
23397 2011-06-06  Roland McGrath  <roland@hack.frob.com>
23398
23399         [BZ #12849]
23400         * manual/fdl-1.1.texi: New file, verbatim from:
23401         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
23402         * manual/lgpl-2.1.texi: New file, verbatim from:
23403         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
23404         * manual/Makefile (licenses): New variable, list those new file names.
23405         (texis): Use it.
23406         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
23407
23408         * manual/fdl.texi: File removed.
23409         * manual/lesser.texi: File removed.
23410         * manual/libc.texinfo (Copying, Documentation License):
23411         Use new @include file names, put @appendix directive before @include.
23412
23413 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
23414
23415         [BZ #12841]
23416         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
23417         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
23418         (mq_open): Add __NTH.
23419
23420 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
23421
23422         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23423         Assume Intel Core i3/i5/i7 processor if AVX is available.
23424
23425 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23426
23427         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
23428         typo.
23429
23430 2011-05-31  Andreas Schwab  <schwab@redhat.com>
23431
23432         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
23433         memory.  Use alloca_account.  Fix memory leak when retrying.
23434
23435 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23436
23437         * version.h (RELEASE): Bump for 2.14 release.
23438         * include/features.h (__GLIBC_MINOR__): Bump to 14.
23439
23440         * config.make.in (RANLIB): Remove entry.
23441
23442 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
23443
23444         * po/Makefile (po-sed-cmd): Add ksh to extensions.
23445         (libc.pot): Work around missing support for .ksh extension in xgettext.
23446
23447         [BZ #12684]
23448         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
23449         if both request failed.
23450         (send_dg): In case of server errors clear resplen or *resplen2.
23451
23452         [BZ #12454]
23453         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
23454         when there are multiple maps.
23455         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
23456         (_dl_fini): Remove test here.
23457
23458         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
23459
23460 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
23461
23462         [BZ #12350]
23463         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
23464         bit from old_res_options.
23465         (gaih_inet): Likewise.
23466
23467         [BZ #11099]
23468         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
23469         as signed.
23470
23471         * resolv/res_init.c (res_setoptions): Make the code more compact.
23472
23473         [BZ #11558]
23474         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
23475         set RES_USEVC.
23476
23477         [BZ #11634]
23478         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
23479
23480         * malloc/malloc.h: Mark malloc hook variables as deprecated.
23481
23482         [BZ #11781]
23483         * malloc/malloc.h: Declare malloc hook variables as volatile.
23484
23485         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
23486         in last patch.
23487
23488         [BZ #11799]
23489         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
23490         raise in the comment.
23491         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
23492         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
23493         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
23494
23495 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
23496
23497         [BZ #12811]
23498         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
23499         grow the buffers more if it already has to be sufficient.
23500         (build_wcs_upper_buffer): Likewise.
23501         * posix/regexec.c (check_matching): Likewise.
23502         (clean_state_log_if_needed): Likewise.
23503         (extend_buffers): Don't enlarge buffers beyond size of the input
23504         buffer.
23505         Patches mostly by Emil Wojak <emil@wojak.eu>.
23506         * posix/bug-regex32.c: New file.
23507         * posix/Makefile (tests): Add bug-regex32.
23508
23509         * locale/findlocale.c (_nl_find_locale): Return right away if
23510         _nl_explode_name failed.
23511         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
23512
23513         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
23514
23515         * debug/xtrace.sh: Unify messages.
23516         * malloc/memusage.sh: Likewise.
23517
23518         [BZ #12813]
23519         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
23520         time symbol from vDSO.  Substitute with vsyscall if not available.
23521         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
23522         __vdso_time.
23523
23524         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
23525         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
23526         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
23527         Add sendmmsg and internal_sendmmsg.
23528         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
23529         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
23530         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
23531
23532         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
23533         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
23534         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
23535
23536 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
23537
23538         [BZ #12813]
23539         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
23540         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
23541         available.
23542         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
23543         __vdso_getcpu.
23544
23545         [BZ #12814]
23546         * iconvdata/Makefile (tests): Add bug-iconv9.
23547         * iconvdata/bug-iconv9.c: New file.
23548
23549 2011-05-27  Andreas Schwab  <schwab@redhat.com>
23550
23551         [BZ #12814]
23552         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
23553
23554 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
23555
23556         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
23557         (struct user_regs_struct): Change intcs field back to cs.
23558
23559 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
23560
23561         * po/ja.po: Update from translation team.
23562
23563 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
23564
23565         [BZ #12795]
23566         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
23567         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
23568
23569 2011-05-20  Andreas Schwab  <schwab@redhat.com>
23570
23571         * stdlib/longlong.h: Update from GCC.
23572
23573 2011-05-23  Andreas Schwab  <schwab@redhat.com>
23574
23575         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
23576         parameter name.
23577         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
23578         Add parameter name.
23579         (__sysconf): Pass it down.
23580
23581 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
23582
23583         [BZ #12671]
23584         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
23585         some situations.
23586         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
23587         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
23588         add in in __libc_use_alloca calls.  Adjust callers.
23589         (glob): Use malloc in some situations.
23590
23591         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
23592         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
23593         pltexit.
23594
23595 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
23596
23597         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
23598         and CLOCK_BOOTTIME_ALARM.
23599
23600         [BZ #12782]
23601         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
23602         is returned.
23603
23604         * string/_strerror.c (__strerror_r): Print negative errors as signed
23605         numbers.
23606
23607         [BZ #12777]
23608         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
23609         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
23610         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
23611
23612         * configure.in: Fix typo in redirection and correct removal of test
23613         files in two cases.
23614
23615         [BZ #12788]
23616         * locale/setlocale.c (new_composite_name): Fix test to check for
23617         identical name of all categories.
23618
23619         [BZ #12792]
23620         * libio/filedoalloc.c (local_isatty): New function.
23621         (_IO_file_doallocate): Use local_isatty.
23622         * stdio-common/perror.c (perror): In case a new stream is used
23623         forward the stream error.
23624         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
23625         error flag.
23626
23627 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
23628
23629         [BZ #11869]
23630         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
23631         alloca.
23632         * include/alloca.h (extend_alloca_account): Define.
23633
23634         [BZ #11857]
23635         * posix/regex.h: Fix comments with documentation of user-accessible
23636         fields after compilation and describe correct free'ing of pattern
23637         after re_compile_pattern.
23638         Patch by Reuben Thomas <rrt@sc3d.org>.
23639
23640 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
23641
23642         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
23643         and -mno-altivec to prevent the compiler from using Altivec and/or
23644         VSX instructions when the corresponding registers are not available.
23645
23646 2011-05-19  Andreas Schwab  <schwab@redhat.com>
23647
23648         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
23649
23650 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
23651
23652         * libio/freopen.c (freopen): Use __dup2, not dup2.
23653         * libio/freopen64.c (freopen64): Likewise.
23654
23655 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23656
23657         [BZ #12775]
23658         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
23659         * math/Makefile (tests): Add test-powl.
23660         (CFLAGS-test-powl.c): Define.
23661         * math/test-powl.c: New file.
23662
23663 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23664
23665         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
23666
23667 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
23668
23669         [BZ #11837]
23670         * iconvdata/gb18030.c: Update to GB18020-2005.
23671
23672 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
23673
23674         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
23675         RE_SYNTAX_POSIX_AWK): Update to match recent development.
23676         Patch by Aharon Robbins <arnold@skeeve.com>.
23677
23678         [BZ #11892]
23679         * stdlib/putenv.c (putenv): Don't always create copy of the variable
23680         on the stack.
23681
23682         [BZ #11895]
23683         * misc/pselect.c (__pselect): Handle timeout value errors hidden
23684         through underflows.
23685
23686         [BZ #12766]
23687         * misc/error.c (error_at_line): Ensure file_name and old_file_name
23688         point to strings before performing equality test for error_one_per_line
23689         mode.
23690
23691         [BZ #11697]
23692         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
23693
23694         [BZ #11820]
23695         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
23696         (struct user_fpregs_struct): Avoid __uint*_t types.
23697
23698         [BZ #6420]
23699         * malloc/mtrace.c (tr_where): Add additional parameter to point to
23700         symbol info.  Use it instead of calling _dl_addr locally.
23701         (lock_and_info): New function.
23702         (tr_freehook): Call lock_and_info and pass symbol info as additional
23703         parameter to tr_where.
23704         (tr_mallochook): Likewise.
23705         (tr_reallochook): Likewise.
23706         (tr_memalignhook): Likewise.
23707
23708         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
23709         used and couldn't be at all thread-safe.
23710
23711 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
23712
23713         * libio/freopen.c (freopen): Don't close old file descriptor
23714         before the new one is opened.  Instead dup the new file descriptor
23715         to the old one after the new stream is created.
23716         * libio/freopen64.c (freopen64): Likewise.
23717         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
23718         * libio/fileops.c (_IO_new_file_close_it): Handle new
23719         _IO_FLAGS2_NOCLOSE flag.
23720         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
23721         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
23722         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
23723         _IO_FLAGS2_NOCLOSE flag.
23724         * include/unistd.h: Add hidden_proto for dup3.
23725         Define __have_dup3.
23726         * io/dup3.c: Define hidden symbol.
23727         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
23728
23729         [BZ #7101]
23730         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
23731         when an incomplete long option is used.
23732         * posix/tst-getopt_long1.c: New file.
23733         * posix/Makefile (tests): Add tst-getopt_long1.
23734
23735         [BZ #10138]
23736         * scripts/config.guess: Update from autoconf-2.68.
23737         * scripts/config.sub: Likewise.
23738
23739         [BZ #10157]
23740         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
23741         tests into ...
23742         (has_cpuclock): ...this.  New function.
23743         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
23744         macro here based on has_cpuclock code.
23745
23746         [BZ #10149]
23747         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23748         First byte (not low byte) is now always NUL.
23749         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
23750
23751         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23752         Use non-cancelable interfaces.
23753
23754         [BZ #9809]
23755         * locale/iso-639.def: Add entry for Sorani.
23756
23757         [BZ #11901]
23758         * include/stdlib.h: Move include protection to the right place.
23759         Define abort_msg_s.  Declare __abort_msg with it.
23760         * stdlib/abort.c (__abort_msg): Adjust type.
23761         * assert/assert.c (__assert_fail_base): New function.  Majority
23762         of code from __assert_fail.  Allocate memory for __abort_msg with
23763         mmap.
23764         (__assert_fail): Now call __assert_fail_base.
23765         * assert/assert-perr.c: Remove bulk of implementation.  Use
23766         __assert_fail_base.
23767         * include/assert.hL Declare __assert_fail_base.
23768         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
23769         mmap.
23770         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
23771
23772 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
23773
23774         [BZ #11952]
23775         [BZ #12453]
23776         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
23777         until all modules are registered in the DTV.
23778         * elf/Makefile: Add rules to build and run tst-tls19.
23779         * elf/tst-tls19.c: New file.
23780         * elf/tst-tls19mod1.c: New file.
23781         * elf/tst-tls19mod2.c: New file.
23782         * elf/tst-tls19mod3.c: New file.
23783         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
23784
23785         [BZ #12083]
23786         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
23787         correctly.
23788
23789         [BZ #12601]
23790         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
23791         two-byte sequence errors.
23792         * iconvdata/Makefile (tests): Add bug-iconv8.
23793         * iconvdata/bug-iconv8.c: New file.
23794
23795         [BZ #12626]
23796         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
23797         buf2 definition.
23798
23799         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
23800
23801         [BZ #12432]
23802         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
23803         (dummy_getcfa): New function.
23804         (init): Get _Unwind_GetCFA address, use dummy if not found.
23805         (backtrace_helper): In recursion check, also check whether CFA changes.
23806         (__backtrace): Completely initialize arg.
23807
23808         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
23809         storing incomplete byte sequence in state object.  Avoid testing for
23810         guaranteed too small input if we know there is enough data available.
23811
23812 2011-05-11  Andreas Schwab  <schwab@redhat.com>
23813
23814         * Makeconfig (+link-pie): Indent.
23815         * Rules (binaries-pie): Define if $(have-fpie) and
23816         $(build-shared).
23817         (binaries-shared): Also filter out $(binaries-pie).
23818         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
23819         * nscd/Makefile (others-pie): Add nscd.
23820         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
23821         ($(objpfx)nscd): Remove command override.
23822         * login/Makefile (others-pie): Add pt_chown.
23823         ($(objpfx)pt_chown): Remove command override.
23824         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
23825         remove command overrides.
23826
23827 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
23828
23829         * libio/tst_putwc.c: Fix error messages.
23830
23831         [BZ #12724]
23832         * libio/fileops.c (_IO_new_file_close_it): Always flush when
23833         currently writing and seek to current position when not.
23834         * libio/Makefile (tests): Add bug-fclose1.
23835         * libio/bug-fclose1.c: New file.
23836
23837 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
23838
23839         [BZ #12511]
23840         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
23841         don't set DF_1_NODELETE here.
23842         (do_lookup_x): When entering new entry test for copy relocation
23843         and if necessary set DF_1_NODELETE flag.
23844         * elf/tst-unique4.cc: New file.
23845         * elf/tst-unique4.h: New file.
23846         * elf/tst-unique4lib.cc: New file.
23847         * elf/Makefile: Add rules to build and run tst-unique4.
23848         Patch by Piotr Bury <pbury@goahead.com>.
23849
23850 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
23851
23852         [BZ #12052]
23853         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
23854
23855         [BZ #12625]
23856         * misc/mntent_r.c (addmntent): Flush the stream after the output
23857
23858         [BZ #12393]
23859         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
23860         (is_trusted_path_normalize): Skip initial colon.  Append slash
23861         to empty buffer.  Duplicate is_trusted_path code but allow
23862         constructed patch to be prefix.
23863         (is_dst): Allow $ORIGIN followed by /.
23864         (_dl_dst_substitute): Correct clearing of check_for_trusted.
23865         Correct testing of result of is_trusted_path_normalize
23866         (decompose_rpath): Fix warning.
23867
23868 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
23869
23870         [BZ #11257]
23871         * grp/initgroups.c (internal_getgrouplist): When we found the service
23872         list through the initgroups entry in nsswitch.conf do not always
23873         continue on a successful lookup.  Don't always use the
23874         __nss_group_database value if it is set.
23875         * nss/nsswitch.conf (initgroups): Change action for successful db
23876         lookup to continue for compatibility.
23877
23878 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
23879
23880         [BZ #11532]
23881         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
23882         and CP774 modules.
23883         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
23884         and CP774 modules.
23885         * iconvdata/tst-tables.sh: Likewise.
23886         * iconvdata/cp770.c: New file.
23887         * iconvdata/cp771.c: New file.
23888         * iconvdata/cp772.c: New file.
23889         * iconvdata/cp773.c: New file.
23890         * iconvdata/cp774.c: New file.
23891         * iconvdata/testdata/CP770: New file.
23892         * iconvdata/testdata/CP770..UTF8: New file.
23893         * iconvdata/testdata/CP771: New file.
23894         * iconvdata/testdata/CP771..UTF8: New file.
23895         * iconvdata/testdata/CP772: New file.
23896         * iconvdata/testdata/CP772..UTF8: New file.
23897         * iconvdata/testdata/CP773: New file.
23898         * iconvdata/testdata/CP773..UTF8: New file.
23899         * iconvdata/testdata/CP774: New file.
23900         * iconvdata/testdata/CP774..UTF8: New file.
23901
23902         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
23903         END CHARMAP line.
23904         * iconvdata/gen-8bit-gap.sh: Likewise.
23905         * iconvdata/gen-8bit.sh: Likewise.
23906
23907         * locale/iso-639.def: Add ary entry.
23908
23909         [BZ #11258]
23910         * locale/C-translit.h.in: Add U20A1 transliteration.
23911
23912         [BZ #12178]
23913         * locale/iso-639.def: Add wae entry.
23914         Patch by Kevin Bortis <bortis@translate-wae.ch>.
23915
23916         [BZ #12545]
23917         * locale/programs/localedef.c (construct_output_path): Use ssize_t
23918         for n.
23919
23920         [BZ #12711]
23921         * locale/C-translit.h.in: Add entry for U20B9.
23922         Patch by pravin.d.s@gmail.com.
23923
23924 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
23925
23926         [BZ #12713]
23927         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
23928         ENAMETOOLONG use generic getcwd.
23929         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
23930         in rtld.  Use *stat64.
23931         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
23932         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
23933         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
23934         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
23935         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
23936         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
23937         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
23938         __fstatat64 macros.
23939         * include/dirent.h: Add libc_hidden_proto for rewinddir.
23940         * dirent/rewinddir.c: Add libc_hidden_def.
23941         * sysdeps/mach/hurd/rewinddir.c: Likewise.
23942         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
23943
23944         * include/dirent.h (__alloc_dir): Add flags parameter.
23945         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
23946         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
23947         __alloc_dir.
23948         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
23949         from fdopendir if O_CLOEXEC is already set.
23950
23951 2011-03-15  Alan Modra  <amodra@gmail.com>
23952
23953         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
23954         l_tls_firstbyte_offset non-zero.  Save padding offset in
23955         l_tls_firstbyte_offset for later use.
23956         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
23957         freeing static tls block.
23958
23959 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
23960
23961         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
23962         where #ifdef was intended.  The intent is to prevent ARG_MAX from
23963         being defined by the kernel headers.
23964
23965 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
23966
23967         [BZ #12734]
23968         * resolv/resolv.h: Define RES_NOTLDQUERY.
23969         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
23970         no-tld-query and set RES_NOTLDQUERY.
23971         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
23972         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
23973         modern BIND to search name as TLD unless forbidden.
23974
23975 2011-05-07  Petr Baudis  <pasky@suse.cz>
23976             Ulrich Drepper  <drepper@gmail.com>
23977
23978         [BZ #12393]
23979         * elf/dl-load.c (fillin_rpath): Move trusted path check...
23980         (is_trusted_path): ...to here.
23981         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
23982         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
23983         using is_trusted_path_normalize() in setuid scripts.
23984
23985 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23986
23987         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
23988         __BEGIN/__END_DECLS.
23989
23990 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
23991
23992         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
23993         NSS_STATUS_NOTFOUND if no record was found.
23994
23995 2011-05-05  Andreas Schwab  <schwab@redhat.com>
23996
23997         * sunrpc/Makefile (headers): Add rpc/netdb.h.
23998         (headers-not-in-tirpc): Remove rpc/netdb.h
23999         * resolv/netdb.h: Revert last change.
24000
24001 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24002
24003         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
24004         circular dependency between libgcc.a and libc.a.
24005
24006 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24007
24008         * resolv/netdb.h: Don't include <rpc/netdb.h>.
24009         * nis/Makefile: Don't install rpcsvc/*.
24010         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
24011         instead of <rpc/types.h>.
24012         (MAXHOSTNAMELEN): Define.
24013
24014 2011-05-03  Andreas Schwab  <schwab@redhat.com>
24015
24016         * elf/ldconfig.c (add_dir): Don't crash on empty path.
24017
24018 2011-04-28  Maciej Babinski  <mbabinski@google.com>
24019
24020         [BZ #12714]
24021         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
24022         gethostbyname4_r when IPv6 results are possible.
24023
24024 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
24025
24026         [BZ #12723]
24027         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
24028         _PC_PIPE_BUF handling.
24029
24030 2011-04-30  Bruno Haible  <bruno@clisp.org>
24031
24032         [BZ #12717]
24033         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
24034         * resolv/netdb.h (getnameinfo): Change type of flags parameter
24035         to 'int'.
24036         * inet/getnameinfo.c (getnameinfo): Likewise.
24037
24038 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
24039
24040         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
24041         to groups setting in database lookup.
24042         * nss/nsswitch.conf: Add initgroups entry.
24043
24044 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
24045
24046         [BZ #12685]
24047         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
24048         mode string.
24049         Patch by Eric Blake <eblake@redhat.com>.
24050
24051 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
24052
24053         * sunrpc/Makefile (need-export-routines): Add svc_run.
24054         (routines): Remove svc_run.
24055         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
24056         * sunrpc/clnt_perr.c (clnt_perrno): Export.
24057         * sunrpc/svc_run.c (svc_run): Likewise.
24058         * sunrpc/svc_udp.c (svcudp_create): Likewise.
24059
24060 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
24061
24062         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
24063         problem in reallocation in last patch.
24064
24065 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
24066
24067         * sunrpc/Makefile: Move inclusion of Rules.
24068
24069 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24070
24071         * nss/nss_files/files-initgroups.c: New file.
24072         * nss/Makefile (libnss_files-routines): Add files-initgroups.
24073         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
24074         _nss_files_initgroups_dyn.
24075
24076 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
24077
24078         * elf/elf.h (R_ARM_IRELATIVE): Define.
24079
24080 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24081
24082         * po/ru.po: Update from translation team.
24083
24084 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24085
24086         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
24087         dependencies.
24088
24089 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
24090
24091         [BZ #12653]
24092         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
24093         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
24094         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24095         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24096         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24097
24098 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
24099
24100         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
24101         differing bytes.
24102         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24103         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24104         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24105
24106 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24107
24108         [BZ #12420]
24109         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
24110         storing it.
24111         * stdlib/bug-getcontext.c: New file.
24112         * stdlib/Makefile: Add rules to build and run bug-getcontext.
24113
24114 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24115
24116         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
24117         instructions into .machine "z9-109".
24118         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
24119         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
24120
24121 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24122
24123         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
24124         between environment variables and auxiliary vector.
24125
24126 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
24127
24128         * Makefile: Add rules to build linkobj/libc.so.
24129         * include/libc-symbols.h: Define libc_hidden_nolink.
24130         * include/rpc/auth.h: Mark functions which are to be hidden.
24131         * include/rpc/auth_des.h: Likewise.
24132         * include/rpc/auth_unix.h: Likewise.
24133         * include/rpc/clnt.h: Likewise.
24134         * include/rpc/des_crypt.h: Likewise.
24135         * include/rpc/key_prot.h: Likewise.
24136         * include/rpc/pmap_clnt.h: Likewise.
24137         * include/rpc/pmap_prot.h: Likewise.
24138         * include/rpc/pmap_rmt.h: Likewise.
24139         * include/rpc/rpc_msg.h: Likewise.
24140         * include/rpc/svc.h: Likewise.
24141         * include/rpc/svc_auth.h: Likewise.
24142         * include/rpc/xdr.h: Likewise.
24143         * nis/Makefile: Link all DSOs against linkobj/libc.so.
24144         * nss/Makefile: Likewise.
24145         * sunrpc/Makefile: Don't install headers.  Build library with normal
24146         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
24147         * sunrpc/auth_des.c: Hide exported symbols by default, export some
24148         for the compat linking library.  Remove use of INTDEF/INTUSE.
24149         * sunrpc/auth_none.c: Likewise.
24150         * sunrpc/auth_unix.c: Likewise.
24151         * sunrpc/authdes_prot.c: Likewise.
24152         * sunrpc/authuxprot.c: Likewise.
24153         * sunrpc/clnt_gen.c: Likewise.
24154         * sunrpc/clnt_perr.c: Likewise.
24155         * sunrpc/clnt_raw.c: Likewise.
24156         * sunrpc/clnt_simp.c: Likewise.
24157         * sunrpc/clnt_tcp.c: Likewise.
24158         * sunrpc/clnt_udp.c: Likewise.
24159         * sunrpc/clnt_unix.c: Likewise.
24160         * sunrpc/des_crypt.c: Likewise.
24161         * sunrpc/des_soft.c: Likewise.
24162         * sunrpc/get_myaddr.c: Likewise.
24163         * sunrpc/key_call.c: Likewise.
24164         * sunrpc/key_prot.c: Likewise.
24165         * sunrpc/netname.c: Likewise.
24166         * sunrpc/pm_getmaps.c: Likewise.
24167         * sunrpc/pm_getport.c: Likewise.
24168         * sunrpc/pmap_clnt.c: Likewise.
24169         * sunrpc/pmap_prot.c: Likewise.
24170         * sunrpc/pmap_prot2.c: Likewise.
24171         * sunrpc/pmap_rmt.c: Likewise.
24172         * sunrpc/publickey.c: Likewise.
24173         * sunrpc/rpc_cmsg.c: Likewise.
24174         * sunrpc/rpc_common.c: Likewise.
24175         * sunrpc/rpc_dtable.c: Likewise.
24176         * sunrpc/rpc_prot.c: Likewise.
24177         * sunrpc/rpc_thread.c: Likewise.
24178         * sunrpc/rtime.c: Likewise.
24179         * sunrpc/svc.c: Likewise.
24180         * sunrpc/svc_auth.c: Likewise.
24181         * sunrpc/svc_authux.c: Likewise.
24182         * sunrpc/svc_raw.c: Likewise.
24183         * sunrpc/svc_run.c: Likewise.
24184         * sunrpc/svc_simple.c: Likewise.
24185         * sunrpc/svc_tcp.c: Likewise.
24186         * sunrpc/svc_udp.c: Likewise.
24187         * sunrpc/svc_unix.c: Likewise.
24188         * sunrpc/svcauth_des.c: Likewise.
24189         * sunrpc/xcrypt.c: Likewise.
24190         * sunrpc/xdr.c: Likewise.
24191         * sunrpc/xdr_array.c: Likewise.
24192         * sunrpc/xdr_float.c: Likewise.
24193         * sunrpc/xdr_intXX_t.c: Likewise.
24194         * sunrpc/xdr_mem.c: Likewise.
24195         * sunrpc/xdr_rec.c: Likewise.
24196         * sunrpc/xdr_ref.c: Likewise.
24197         * sunrpc/xdr_sizeof.c: Likewise.
24198         * sunrpc/xdr_stdio.c: Likewise.
24199
24200 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
24201
24202         [BZ #12650]
24203         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
24204         * sysdeps/ia64/dl-tls.h: Likewise.
24205         * sysdeps/powerpc/dl-tls.h: Likewise.
24206         * sysdeps/s390/dl-tls.h: Likewise.
24207         * sysdeps/sh/dl-tls.h: Likewise.
24208         * sysdeps/sparc/dl-tls.h: Likewise.
24209         * sysdeps/x86_64/dl-tls.h: Likewise.
24210         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
24211
24212 2011-03-14  Andreas Schwab  <schwab@redhat.com>
24213
24214         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
24215         rpath element also skip the following colon.
24216         (expand_dynamic_string_token): Add is_path parameter and pass
24217         down to DL_DST_REQUIRED and _dl_dst_substitute.
24218         (decompose_rpath): Call expand_dynamic_string_token with
24219         non-zero is_path.  Ignore empty rpaths.
24220         (_dl_map_object_from_fd): Call expand_dynamic_string_token
24221         with zero is_path.
24222
24223 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
24224
24225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
24226         Make cancelable.
24227
24228 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
24229
24230         [BZ #12655]
24231         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
24232         Patch by Filipe David Manana <fdmanana@apache.org>.
24233
24234 2011-04-07  Andreas Schwab  <schwab@redhat.com>
24235
24236         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
24237         Maintain aligned stack.
24238         (CHECK_RSP): Remove unused macro.
24239
24240 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
24241
24242         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
24243         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
24244
24245 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
24246
24247         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
24248
24249         * include/features.h: Mention __USE_XOPEN2K8 in comment.
24250
24251 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
24252
24253         [BZ #12518]
24254         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
24255         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
24256         * sysdeps/x86_64/memmove.c: New file.
24257         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
24258         (memcpy): Renamed to ...
24259         (__new_memcpy): This.
24260         (memcpy): Provide GLIBC_2_14 memcpy.
24261         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
24262         (memcpy): Provide GLIBC_2_2_5 memcpy.
24263
24264 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24265
24266         [BZ #12631]
24267         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
24268
24269 2011-03-30  Andreas Schwab  <schwab@redhat.com>
24270
24271         * misc/syncfs.c: New file.
24272         * misc/Makefile (routines): Add syncfs.
24273         * posix/unistd.h: Declare syncfs.
24274         * sysdeps/unix/syscalls.list: Add syncfs.
24275
24276 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24277
24278         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
24279         open_by_handle_at.
24280         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24281         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24282         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24283         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24284         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24285         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
24286         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24287
24288 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24289
24290         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
24291         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24292         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
24293         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24294         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24296         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24297
24298         * io/Makefile: Compile fallocate.c, fallocate64.c, and
24299         sync_file_range.c with -fexceptions.
24300         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
24301         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
24302         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24303         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24304         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
24305         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
24306         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
24307         sync_file_range as cancellation point
24308         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
24309         now a wrapper around __call_sync_file_range with cancellation handling.
24310         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
24311         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
24312         function name to __call_sync_file_range.
24313         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
24314         Add call_sync_file_range.
24315
24316 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24317
24318         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24319         bits/timex.h.
24320
24321 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24322
24323         * iconv/iconv.h: Fix typo in comment.
24324         * io/fcntl.h: Likewise.
24325         * libio/stdio.h: Likewise.
24326         * posix/spawn.h: Likewise.
24327         * posix/unistd.h: Likewise.
24328         * stdlib/stdlib.h: Likewise.
24329         * time/time.h: Likewise.
24330         * wcsmbs/wchar.h: Likewise.
24331
24332         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
24333         open_by_handle): Add.
24334         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
24335         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
24336         Augment a few comments.
24337         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24338         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24339         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24340         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24341         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24342         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
24343         open_by_handle.
24344
24345         * io/fcntl.h (AT_EMPTY_PATH): Define.
24346
24347 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
24348
24349         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
24350         * sysdeps/unix/sysv/linux/bits/time.h: New file.
24351         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
24352         to...
24353         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
24354         * Versions.def: Add GLIBC_2.14.
24355         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
24356         Export.
24357
24358 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
24359
24360         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
24361         round counter.
24362         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
24363
24364 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24365
24366         [BZ #12597]
24367         * string/test-strncmp.c (do_page_test): New function.
24368         (check2): Likewise.
24369         (test_main): Call check2.
24370         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
24371
24372 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
24373
24374         [BZ #12587]
24375         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
24376         Handle cache information in CPU leaf 4.
24377         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
24378
24379 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
24380
24381         [BZ #12583]
24382         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
24383         character representation.
24384         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
24385
24386 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
24387
24388         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
24389         END(__isnan) to END(__isnanf) to match function entry point/label
24390         EALIGN(__isnanf,...).
24391
24392 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
24393
24394         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
24395
24396 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
24397
24398         [BZ #12510]
24399         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
24400         copy from the symbol referenced in the relocation to initialize the
24401         used variable.
24402         Patch by Piotr Bury <pbury@goahead.com>.
24403         * elf/Makefile: Add rules to build and tst-unique3.
24404         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
24405         * elf/tst-unique3.cc: New file.
24406         * elf/tst-unique3.h: New file.
24407         * elf/tst-unique3lib.cc: New file.
24408         * elf/tst-unique3lib2.cc: New file.
24409
24410         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
24411
24412 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
24413
24414         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
24415         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
24416         to _start.
24417
24418 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
24419
24420         * elf/dl-load.c (_dl_map_object): If we are looking for the first
24421         to-be-loaded object along a path to loader is ld.so.
24422
24423 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24424             Ulrich Drepper  <drepper@gmail.com>
24425
24426         * sysdeps/x86_64/memset.S: After aligning destination, code
24427         branches to different locations depending on the value of
24428         misalignment, when multiarch is enabled. Fix this.
24429
24430 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24431
24432         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
24433         Set _x86_64_preferred_memory_instruction for AMD processsors.
24434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24435         Set bit_Prefer_SSE_for_memop for AMD processors.
24436
24437 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
24438
24439         * libio/fmemopen.c (fmemopen): Optimize a bit.
24440
24441 2011-03-03  Andreas Schwab  <schwab@redhat.com>
24442
24443         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
24444
24445 2011-03-03  Roland McGrath  <roland@redhat.com>
24446
24447         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
24448
24449 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
24450
24451         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
24452         __bzero_ultra1 instead of __memset_ultra1.
24453
24454 2011-02-23  Andreas Schwab  <schwab@redhat.com>
24455             Ulrich Drepper  <drepper@gmail.com>
24456
24457         [BZ #12509]
24458         * include/link.h (struct link_map): Add l_orig_initfini.
24459         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
24460         returning unsuccessfully.
24461         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
24462         close of a file loaded at startup, restore the original l_initfini
24463         list.
24464         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
24465         list, store the pointer.
24466         * elf/Makefile ($(objpfx)noload-mem): New rule.
24467         (noload-ENV): Define.
24468         (tests): Add $(objpfx)noload-mem.
24469         * elf/noload.c: Include <memcheck.h>.
24470         (main): Call mtrace.  Close all opened handles.
24471
24472 2011-02-17  Andreas Schwab  <schwab@redhat.com>
24473
24474         [BZ #12454]
24475         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
24476         dependencies are missing.
24477
24478 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24479
24480         Fix __if_freereq crash: Unlike the generic version which uses free,
24481         Hurd needs munmap.
24482         * sysdeps/mach/hurd/ifreq.h: New file.
24483
24484 2011-01-27  Petr Baudis  <pasky@suse.cz>
24485             Ulrich Drepper  <drepper@gmail.com>
24486
24487         [BZ 12445]#
24488         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
24489         to extend_alloca().
24490         * stdio-common/bug23.c: New file.
24491         * stdio-common/Makefile (tests): Add bug23.
24492
24493 2010-09-28  Andreas Schwab  <schwab@redhat.com>
24494             Ulrich Drepper  <drepper@gmail.com>
24495
24496         [BZ #12489]
24497         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
24498         before performing relro protection.  At old place add assertion
24499         to make sure nothing changed.
24500
24501 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
24502             Glauber de Oliveira Costa  <glommer@gmail.com>
24503
24504         * elf/elf.h: Add new ARM TLS relocs.
24505
24506 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
24507
24508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
24509         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
24510         cast from r3.
24511         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
24512         'tests' variable.
24513         * sysdeps/wordsize-64/tst-writev.c: New file.
24514
24515 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
24516
24517         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
24518         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
24519         insns in _dl_start to prevent a TOC reference before relocs are
24520         resolved.
24521
24522 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
24523
24524         [BZ #12469]
24525         * Makeconfig: Remove RANLIB definition.
24526         * Makerules: Don't use RANLIB.
24527         * aclocal.m4: Remove ranlib test.
24528         * configure.in: No need to check for ranlib.
24529         * elf/rtld-Rules: Don't use RANLIB.
24530
24531 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24532
24533         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
24534         protection macro.
24535         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
24536         inclusion protection macro.
24537
24538         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
24539         SIGRTMIN and SIGRTMAX and print information in that case only when
24540         SIGRTMIN is defined.
24541
24542 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24543
24544         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
24545         arginfo fn returning -1.
24546
24547         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
24548         and thousands string is zero terminated.
24549
24550 2011-02-03  Andreas Schwab  <schwab@redhat.com>
24551
24552         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
24553         sysdeps/unix/sysv/linux/bits/socket.h.
24554
24555 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24556
24557         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
24558         (__CPU_COUNT): Remove old macros.
24559         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
24560         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
24561         (__CPU_ALLOC, __CPU_FREE): Add macros.
24562         (__sched_cpualloc, __sched_cpufree): Add declarations.
24563
24564 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
24565
24566         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
24567         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
24568         * nscd/aicache.c (addhstaiX): Return timeout of added value.
24569         (readdhstai): Return value of addhstaiX call.
24570         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
24571         (addgrbyX): Return value returned by cache_addgr.
24572         (readdgrbyname): Return value returned by addgrbyX.
24573         (readdgrbygid): Likewise.
24574         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
24575         (addpwbyX): Return value returned by cache_addpw.
24576         (readdpwbyname): Return value returned by addhstbyX.
24577         (readdpwbyuid): Likewise.
24578         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
24579         (addservbyX): Return value returned by cache_addserv.
24580         (readdservbyname): Return value returned by addservbyX:
24581         (readdservbyport): Likewise.
24582         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
24583         (addhstbyX): Return value returned by cache_addhst.
24584         (readdhstbyname): Return value returned by addhstbyX.
24585         (readdhstbyaddr): Likewise.
24586         (readdhstbynamev6): Likewise.
24587         (readdhstbyaddrv6): Likewise.
24588         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
24589         (readdinitgroups): Return value returned by addinitgroupsX.
24590         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
24591         (prune_cache): Keep track of timeout value of re-added entries.
24592         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
24593         * nscd/nscd.h: Adjust prototypes of readd* functions.
24594
24595 2011-02-04  Roland McGrath  <roland@redhat.com>
24596
24597         * nis/nis_server.c (nis_servstate): Use the right name for 0.
24598         (nis_stats): Likewise.
24599         * nis/nis_modify.c (nis_modify): Likewise.
24600         * nis/nis_remove.c (nis_remove): Likewise.
24601         * nis/nis_add.c (nis_add): Likewise.
24602
24603         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
24604
24605         * posix/fnmatch_loop.c: Add some consts.
24606
24607         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
24608
24609 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
24610
24611         [BZ #12460]
24612         * config.make.in (config-cflags-novzeroupper): Define.
24613         * configure.in: Substitute libc_cv_cc_novzeroupper.
24614         * elf/Makefile (AVX-CFLAGS): Define.
24615         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
24616         (CFLAGS-tst-auditmod4a.c): Likewise.
24617         (CFLAGS-tst-auditmod4b.c): Likewise.
24618         (CFLAGS-tst-auditmod6b.c): Likewise.
24619         (CFLAGS-tst-auditmod6c.c): Likewise.
24620         (CFLAGS-tst-auditmod7b.c): Likewise.
24621         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
24622
24623 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
24624
24625         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
24626         function to the callback.
24627         Patch partly by Jiri Olsa <jolsa@redhat.com>.
24628
24629 2011-02-02  Andreas Schwab  <schwab@redhat.com>
24630
24631         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
24632         of errno.
24633
24634 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
24635
24636         [BZ #11724]
24637         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
24638         of constructors.
24639         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
24640         of destructors.
24641         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
24642
24643         [BZ #11724]
24644         * elf/Makefile: Add rules to build and run new test.
24645         * elf/tst-initorder.c: New file.
24646         * elf/tst-initorder.exp: New file.
24647         * elf/tst-initordera1.c: New file.
24648         * elf/tst-initordera2.c: New file.
24649         * elf/tst-initordera3.c: New file.
24650         * elf/tst-initordera4.c: New file.
24651         * elf/tst-initorderb1.c: New file.
24652         * elf/tst-initorderb2.c: New file.
24653         * elf/tst-order-a1.c: New file.
24654         * elf/tst-order-a2.c: New file.
24655         * elf/tst-order-a3.c: New file.
24656         * elf/tst-order-a4.c: New file.
24657         * elf/tst-order-b1.c: New file.
24658         * elf/tst-order-b2.c: New file.
24659         * elf/tst-order-main.c: New file.
24660         New test case by George Gensure <werkt0@gmail.com>.
24661
24662 2010-10-01  Andreas Schwab  <schwab@redhat.com>
24663
24664         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24665         decoding ACE if AI_CANONIDN.
24666
24667 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
24668
24669         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
24670
24671 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
24672
24673         * version.h (RELEASE): Bump for 2.13 release.
24674         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
24675
24676         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
24677
24678         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
24679         MADV_NOHUGEPAGE.
24680         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
24681         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
24682         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
24683         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
24684         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
24685         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24686
24687         * posix/getconf.c: Update copyright year.
24688         * catgets/gencat.c: Likewise.
24689         * csu/version.c: Likewise.
24690         * debug/catchsegv.sh: Likewise.
24691         * debug/xtrace.sh: Likewise.
24692         * elf/ldconfig.c: Likewise.
24693         * elf/ldd.bash.in: Likewise.
24694         * elf/sprof.c (print_version): Likewise.
24695         * iconv/iconv_prog.c: Likewise.
24696         * iconv/iconvconfig.c: Likewise.
24697         * locale/programs/locale.c: Likewise.
24698         * locale/programs/localedef.c: Likewise.
24699         * malloc/memusage.sh: Likewise.
24700         * malloc/mtrace.pl: Likewise.
24701         * nscd/nscd.c (print_version): Likewise.
24702         * nss/getent.c: Likewise.
24703
24704         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
24705         PF_CAIF, and PF_ALG.
24706         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24707
24708 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
24709
24710         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
24711         (modules-names): Use them.
24712         (ifunc-test-modules, ifunc-pie-tests): Define.
24713         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
24714         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
24715         (test-extras): Likewise.
24716         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
24717         $(compile-command.c).
24718         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
24719         (all-built-dso): Define.
24720         (check-textrel.out, check-execstack.out): Depend on it.
24721
24722         * configure.in: Don't override --enable-multi-arch.
24723
24724 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
24725
24726         [BZ #6812]
24727         * nscd/hstcache.c (tryagain): Define.
24728         (cache_addhst): Return tryagain not notfound for temporary errors.
24729         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
24730         failed.
24731
24732 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
24733
24734         [BZ #10563]
24735         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
24736         to make the syscall.
24737         * sysdeps/unix/sysv/linux/setgroups.c: New file.
24738
24739         [BZ #12378]
24740         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
24741         and fall back to matching as normal character if the string ends before
24742         the matching ']' is found.  This is what POSIX requires.
24743         * posix/testfnm.c: Adjust test result.
24744         * posix/globtest.sh: Adjust test result.  Add new test.
24745         * posix/tst-fnmatch.input: Likewise.
24746         * posix/tst-fnmatch2.c: Add new test.
24747
24748 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
24749
24750         * elf/Makefile (check-execstack): Revert last change.  Depend on
24751         check-execstack.h.
24752         (check-execstack.h): New target.
24753         (generated): Add check-execstack.h.
24754         * elf/check-execstack.c: Include "check-execstack.h".
24755         (main): Revert last change.
24756         (handle_file): Return zero if GNU_STACK is absent and
24757         DEFAULT_STACK_PERMS doesn't include PF_X.
24758
24759 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
24760
24761         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
24762         in child fails because the descriptor is already closed.
24763         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
24764         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
24765         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
24766
24767         [BZ #12397]
24768         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
24769         syscall.
24770
24771         [BZ #10484]
24772         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
24773         temporary buffer used to handle multi lookups locally.
24774         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
24775
24776 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
24777
24778         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
24779         loader is ld.so.
24780
24781 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
24782
24783         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
24784         alignment for SSE2.
24785
24786 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
24787
24788         [BZ #12394]
24789         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
24790         characters.  When rounding increased number of integer digits recompute
24791         number of groups.
24792         * stdio-common/tst-grouping.c: New file.
24793         * stdio-common/Makefile: Add rules to build and run tst-grouping.
24794
24795 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
24796
24797         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
24798         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
24799
24800         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
24801         void.
24802         * bits/select.h: Likewise.
24803
24804 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
24805
24806         * po/ja.po: Update from translation team.
24807
24808 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
24809
24810         [BZ #11155]
24811         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
24812         implementation just like for lxstat, fxstatat, et al.
24813
24814 2010-12-27  Jim Meyering  <meyering@redhat.com>
24815
24816         [BZ #12348]
24817         * posix/regexec.c (build_trtable): Return failure indication upon
24818         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24819
24820 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
24821
24822         [BZ #12201]
24823         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
24824         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
24825         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
24826         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
24827
24828         [BZ #12207]
24829         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
24830
24831         [BZ #12204]
24832         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
24833         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
24834
24835 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
24836
24837         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
24838         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
24839         script has SORT_BY_INIT_PRIORITY.
24840         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
24841         NO_CTORS_DTORS_SECTIONS is defined.
24842         * elf/soinit.c: Likewise.
24843         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
24844         NO_CTORS_DTORS_SECTIONS is defined.
24845         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
24846         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
24847         * sysdeps/sh/init-first.c: Likewise.
24848         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
24849
24850 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
24851
24852         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
24853         always use the slow path.
24854
24855 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
24856
24857         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
24858         similar rule which adds the sysdep directories to the header search in
24859         order to pick up the correct platform stackinfo.h.
24860         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
24861         perform test if it is, otherwise return successfully without testing.
24862         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
24863         DEFAULT_STACK_PERMS define in stackinfo.h.
24864         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
24865         defined in stackinfo.h.
24866         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
24867         DEFAULT_STACK_PERMS defined in stackinfo.h.
24868         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
24869         * sysdeps/ia64/stackinfo.h: Likewise.
24870         * sysdeps/s390/stackinfo.h: Likewise.
24871         * sysdeps/sh/stackinfo.h: Likewise.
24872         * sysdeps/sparc/stackinfo.h: Likewise.
24873         * sysdeps/x86_64/stackinfo.h: Likewise.
24874         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
24875         PF_X for powerpc64.  Retain PF_X for powerpc32.
24876
24877 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
24878
24879         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
24880         accurately.
24881         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
24882         GETDENTS_64BIT_ALIGNED.
24883
24884 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
24885
24886         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
24887
24888 2010-12-10  Andreas Schwab  <schwab@redhat.com>
24889
24890         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
24891         _GNU_SOURCE.
24892
24893         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
24894         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
24895         Remove __restrict.
24896         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
24897         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
24898
24899 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
24900
24901         [BZ #11655]
24902         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
24903         are initialized.
24904
24905 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
24906
24907         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
24908
24909 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
24910
24911         * po/it.po: Update from translation team.
24912
24913 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
24914
24915         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
24916         unused codes.
24917
24918 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
24919
24920         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
24921
24922 2010-11-24  Andreas Schwab  <schwab@redhat.com>
24923
24924         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
24925         specially.
24926         (gaih_getanswer_slice): Likewise.
24927
24928 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
24929
24930         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
24931
24932 2010-05-31  Petr Baudis  <pasky@suse.cz>
24933
24934         [BZ #11149]
24935         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
24936         silently even in the chroot mode.
24937
24938 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
24939
24940         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
24941         last patch a bit.  Pretty printing
24942
24943 2010-05-31  Petr Baudis <pasky@suse.cz>
24944
24945         [BZ #10085]
24946         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
24947         initialization of skip_initgroups_dyn.
24948
24949 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
24950
24951         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
24952         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24953
24954 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
24955
24956         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
24957
24958 2010-11-11  Andreas Schwab  <schwab@redhat.com>
24959
24960         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
24961         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
24962         (tst-fnmatch-ENV): Set MALLOC_TRACE.
24963         ($(objpfx)tst-fnmatch-mem): New rule.
24964         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
24965         * posix/tst-fnmatch.c (main): Call mtrace.
24966
24967 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
24968
24969         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24970         Support Intel processor model 6 and model 0x2c.
24971
24972 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
24973
24974         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
24975           signed comparison.
24976
24977 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
24978
24979         [BZ #12205]
24980         * string/test-strncasecmp.c (check_result): New function.
24981         (do_one_test): Use it.
24982         (check1): New function.
24983         (test_main): Use it.
24984         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
24985         Support strcasecmp and strncasecmp.
24986
24987 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
24988
24989         [BZ #12194]
24990         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
24991         * sysdeps/x86_64/bits/byteswap.h: Likewise.
24992
24993 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24994
24995         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
24996         IFUNC support.
24997         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24998         memset-x86-64.
24999         * sysdeps/x86_64/multiarch/bzero.S: New file.
25000         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
25001         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
25002         * sysdeps/x86_64/multiarch/memset.S: New file.
25003         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
25004         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25005         Set bit_Prefer_SSE_for_memop for Intel processors.
25006         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
25007         Define.
25008         (index_Prefer_SSE_for_memop): Define.
25009         (HAS_PREFER_SSE_FOR_MEMOP): Define.
25010
25011 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
25012
25013         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
25014         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
25015
25016 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
25017
25018         [BZ #12191]
25019         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25020         (__x86_64_raw_data_cache_size_half): Likewise.
25021         (__x86_64_raw_shared_cache_size): Likewise.
25022         (__x86_64_raw_shared_cache_size_half): Likewise.
25023
25024         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25025         (__x86_64_raw_data_cache_size_half): Likewise.
25026         (__x86_64_raw_shared_cache_size): Likewise.
25027         (__x86_64_raw_shared_cache_size_half): Likewise.
25028         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
25029         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
25030         and __x86_64_raw_shared_cache_size_half.  Round
25031         __x86_64_data_cache_size_half, __x86_64_data_cache_size
25032         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
25033         to multiple of 256 bytes.
25034
25035 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
25036
25037         [BZ #12167]
25038         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
25039         of inacessible symlinks.  Verify result of symlink before returning it.
25040         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25041         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
25042
25043 2010-10-28  Erich Ritz  <erichritz@gmail.com>
25044
25045         * math/math.h (isinf): Fix typo in comment.
25046
25047 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
25048
25049         * po/da.po: Update from translation team.
25050
25051 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
25052
25053         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
25054         is added to the list.
25055
25056 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25057             Ulrich Drepper  <drepper@gmail.com>
25058
25059         * elf/dl-object.c (_dl_new_object): Don't append the new object to
25060         the global list here.  Move code to...
25061         (_dl_add_to_namespace_list): ...here.  New function.
25062         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
25063         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
25064         * elf/dl-load.c (lose): Don't remove the element from the list.
25065         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
25066         (_dl_map_object): Likewise.
25067
25068 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
25069
25070         [BZ #12159]
25071         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
25072         into all bytes of SSE register.
25073         Patch by Richard Li <richardpku@gmail.com>.
25074
25075 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
25076
25077         [BZ #12140]
25078         * malloc/malloc.c (_int_free): Fill correct number of bytes when
25079         perturbing.
25080
25081 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
25082
25083         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
25084         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
25085         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
25086         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
25087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
25088         submachine.
25089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
25090
25091 2010-10-22  Andreas Schwab  <schwab@redhat.com>
25092
25093         * include/dlfcn.h (__RTLD_SECURE): Define.
25094         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
25095         mode & __RTLD_SECURE instead.
25096         (open_path): Rename preloaded parameter to secure.
25097         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
25098         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
25099         * elf/dl-deps.c (openaux): Likewise.
25100         * elf/rtld.c (struct map_args): Remove is_preloaded.
25101         (map_doit): Don't use it.
25102         (dl_main): Likewise.
25103         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
25104         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
25105
25106 2010-09-09  Andreas Schwab  <schwab@redhat.com>
25107
25108         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
25109         (sysd-rules-targets): Remove duplicates.
25110         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
25111         rtld-%.$o dependency.
25112
25113 2010-10-18  Andreas Schwab  <schwab@redhat.com>
25114
25115         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
25116         _dl_map_object do it.
25117
25118 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
25119
25120         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
25121         fast fma builtins, define the macros in the C99 standard.
25122         (FP_FAST_FMAF): Likewise.
25123         (FP_FAST_FMAL): Likewise.
25124         * sysdeps/x86_64/bits/mathdef.h: Likewise.
25125
25126         * bits/mathdef.h: Update copyright year.
25127         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25128
25129 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
25130
25131         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
25132         builtins, define the macros in the C99 standard.
25133         (FP_FAST_FMAF): Likewise.
25134         (FP_FAST_FMAL): Likewise.
25135         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
25136         multiply/add.
25137         (FP_FAST_FMAF): Likewise.
25138
25139 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
25140
25141         [BZ #3268]
25142         * math/libm-test.inc (fma_test): Some new testcases.
25143         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
25144         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
25145         y and infinite z.  Do multiplication by C already in long double.
25146         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
25147         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
25148         y and infinite z.  Do bitwise or of inexact bit into u.d.
25149         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
25150         * sysdeps/i386/fpu/s_fmaf.S: Removed.
25151         * sysdeps/i386/fpu/s_fma.S: Removed.
25152         * sysdeps/i386/fpu/s_fmal.S: Removed.
25153
25154 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
25155
25156         [BZ #3268]
25157         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
25158         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
25159         computation is not scheduled after fetestexcept.  Fix value
25160         of minimum denormal long double.
25161
25162 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
25163
25164         [BZ #3268]
25165         * math/libm-test.inc (fma_test): Add some more tests.
25166         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
25167         correctly.
25168
25169 2010-10-15  Andreas Schwab  <schwab@redhat.com>
25170
25171         * scripts/data/localplt-s390-linux-gnu.data: New file.
25172         * scripts/data/localplt-s390x-linux-gnu.data: New file.
25173
25174 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
25175
25176         [BZ #3268]
25177         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
25178         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
25179         instead of dbl-64.
25180         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
25181         inlines.
25182         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
25183         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
25184         if one of x and y is very large and the other is subnormal.
25185         * sysdeps/s390/fpu/s_fmaf.c: New file.
25186         * sysdeps/s390/fpu/s_fma.c: New file.
25187         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
25188         * sysdeps/powerpc/fpu/s_fma.S: New file.
25189         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
25190         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
25191         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
25192
25193 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
25194
25195         [BZ #3268]
25196         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
25197         fma tests.
25198         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
25199         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
25200         * sysdeps/i386/i686/multiarch/s_fma.c: Include
25201         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
25202         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
25203         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
25204         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
25205
25206 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
25207
25208         [BZ #12078]
25209         * posix/regcomp.c (parse_branch): One more memory leak plugged.
25210         * posix/bug-regex31.input: Add test case.
25211
25212 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25213
25214         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
25215         * posix/bug-regex31.input: New file.
25216
25217         [BZ #12078]
25218         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
25219         (parse_sub_exp): Fix last change, use postorder.
25220
25221         * posix/bug-regex31.c: New file.
25222         * posix/Makefile: Add rules to build and run bug-regex31.
25223
25224         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
25225
25226         [BZ #12078]
25227         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
25228
25229         [BZ #12108]
25230         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
25231         to have entries in sys_siglist.
25232
25233         [BZ #12093]
25234         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
25235         be NULL.
25236
25237 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
25238
25239         [BZ #3268]
25240         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
25241         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
25242         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
25243         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
25244         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
25245         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
25246         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
25247         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
25248         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
25249         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
25250         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
25251         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
25252         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25253         * math/ftestexcept.c (fetestexcept): Likewise.
25254         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
25255         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
25256         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
25257         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
25258         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
25259         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
25260         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
25261
25262 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25263
25264         [BZ #12107]
25265         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
25266         newline.
25267
25268 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
25269
25270         * string/bug-strstr1.c: New file.
25271         * string/Makefile: Add rules to build and run bug-strstr1.
25272
25273 2010-10-05  Eric Blake  <eblake@redhat.com>
25274
25275         [BZ #12092]
25276         * string/str-two-way.h (two_way_long_needle): Always clear memory
25277         when skipping input due to the shift table.
25278
25279 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
25280
25281         [BZ #12005]
25282         * malloc/mcheck.c: Handle large requests.
25283
25284         [BZ #12077]
25285         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
25286         for strncmp and strncasecmp.
25287         * string/stratcliff.c: Add tests for strcmp and strncmp.
25288         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
25289
25290 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25291
25292         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
25293         __set_fpscr.
25294
25295 2010-09-30  Andreas Jaeger  <aj@suse.de>
25296
25297         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
25298         (CGROUP_SUPER_MAGIC): Define.
25299         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25300         Handle btrfs and cgroup file systems.
25301         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
25302         Likewise.
25303
25304 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
25305
25306         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
25307         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
25308
25309 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25310
25311         [BZ #12067]
25312         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
25313         trying to locate the ELF header.
25314
25315 2010-09-27  Andreas Schwab  <schwab@redhat.com>
25316
25317         [BZ #11611]
25318         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
25319         Mask out sign-bit copies when constructing f_fsid.
25320
25321 2010-09-24  Petr Baudis <pasky@suse.cz>
25322
25323         * debug/stack_chk_fail_local.c: Add missing licence exception.
25324         * debug/warning-nop.c: Likewise.
25325
25326 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
25327
25328         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
25329         implementing getdents64 using getdents syscall, set d_type if
25330         __ASSUME_GETDENTS32_D_TYPE.
25331
25332 2010-09-16  Andreas Schwab  <schwab@redhat.com>
25333
25334         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
25335         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
25336
25337 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
25338
25339         [BZ #12037]
25340         * posix/unistd.h: Undo change of feature selection for ftruncate from
25341         2010-01-11.
25342
25343 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
25344
25345         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
25346         detection.
25347
25348 2010-09-20  Andreas Schwab  <schwab@redhat.com>
25349
25350         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
25351         fanotify_mark.
25352         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
25353
25354 2010-09-14  Andreas Schwab  <schwab@redhat.com>
25355
25356         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
25357         variables after CHECK_SP call.
25358         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
25359
25360 2010-09-13  Andreas Schwab  <schwab@redhat.com>
25361             Ulrich Drepper  <drepper@redhat.com>
25362
25363         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
25364         re-relocationg ld.so.
25365         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
25366         _dl_init_paths call.
25367         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
25368         here anymore.
25369
25370 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
25371
25372         * resolv/res_init.c (__res_vinit): Count the default server we added.
25373
25374 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
25375             Ulrich Drepper  <drepper@redhat.com>
25376
25377         [BZ #11968]
25378         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25379         (____longjmp_chk): Use %ebx for saving value across system call.
25380         Add unwind info.
25381
25382 2010-09-06  Andreas Schwab  <schwab@redhat.com>
25383
25384         * manual/Makefile: Don't mix pattern rules with normal rules.
25385
25386 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25387
25388         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
25389         operation.
25390         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
25391         * libio/iofopncook.c (_IO_cookie_init): Likewise.
25392         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
25393         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
25394         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25395         Likewise.
25396
25397 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
25398
25399         [BZ #11979]
25400         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
25401         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
25402
25403 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
25404
25405         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
25406         * sysdeps/x86_64/addmul_1.S: Likewise.
25407         * sysdeps/x86_64/lshift.S: Likewise.
25408         * sysdeps/x86_64/mul_1.S: Likewise.
25409         * sysdeps/x86_64/rshift.S: Likewise.
25410         * sysdeps/x86_64/sub_n.S: Likewise.
25411         * sysdeps/x86_64/submul_1.S: Likewise.
25412
25413 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25414
25415         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
25416         Define __sched_param instead of SCHED_* and sched_param when
25417         <bits/sched.h> is included with __need_schedparam defined.
25418         * bits/sched.h [__need_schedparam]
25419         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
25420         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
25421         (__defined_schedparam): Define to 1.
25422         (__sched_param): New structure, identical to sched_param.
25423         (__need_schedparam): Undefine.
25424
25425 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
25426
25427         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
25428         (epoll_create1): Declare.
25429
25430         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
25431
25432 2010-08-31  Andreas Schwab  <schwab@redhat.com>
25433
25434         [BZ #7066]
25435         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
25436         shifting retval into place.
25437
25438 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
25439
25440         * nis/rpcsvc/nis.h: Update copyright notice.
25441         * nis/rpcsvc/nis.x: Likewise.
25442         * nis/rpcsvc/nis_callback.h: Likewise.
25443         * nis/rpcsvc/nis_callback.x: Likewise.
25444         * nis/rpcsvc/nis_object.x: Likewise.
25445         * nis/rpcsvc/nis_tags.h: Likewise.
25446         * nis/rpcsvc/yp.h: Likewise.
25447         * nis/rpcsvc/yp.x: Likewise.
25448         * nis/rpcsvc/ypupd.h: Likewise.
25449         * nis/yp_xdr.c: Likewise.
25450         * nis/ypupdate_xdr.c: Likewise.
25451
25452         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
25453         mainly the body of pmap_getport.  Add parameters to specify timeouts.
25454         (pmap_getport): Use __libc_rpc_getport.
25455         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
25456         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
25457         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
25458
25459 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
25460
25461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
25462         fanotify_mark.
25463
25464 2010-08-27  Roland McGrath  <roland@redhat.com>
25465
25466         * sysdeps/i386/i686/multiarch/Makefile
25467         (CFLAGS-varshift.c): New variable.
25468
25469 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
25470
25471         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
25472         * sysdeps/i386/i686/multiarch/varshift.c: New file.
25473
25474         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
25475
25476         * sysdeps/x86_64/strlen.S: Minimal code improvement.
25477
25478 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
25479
25480         * sysdeps/x86_64/strlen.S: Unroll the loop.
25481         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25482         strlen-sse2 strlen-sse2-bsf.
25483         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
25484         __strlen_no_bsf if bit_Slow_BSF is set.
25485         (__strlen_sse42): Removed.
25486         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
25487         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
25488
25489 2010-08-25  Roland McGrath  <roland@redhat.com>
25490
25491         * sysdeps/x86_64/multiarch/varshift.S: File removed.
25492         * sysdeps/x86_64/multiarch/varshift.c: New file.
25493         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
25494         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
25495         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
25496         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
25497
25498 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
25499
25500         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25501         strlen-sse2 strlen-sse2-bsf.
25502         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
25503         __strlen_sse2_bsf if bit_Slow_BSF is unset.
25504         (__strlen_sse2): Removed.
25505         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
25506         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
25507         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
25508         bit_Slow_BSF for Atom.
25509         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
25510         (index_Slow_BSF): Define.
25511         (HAS_SLOW_BSF): Define.
25512
25513 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
25514
25515         [BZ #10851]
25516         * resolv/res_init.c (__res_vinit): When no server address at all
25517         is given default to loopback.
25518
25519 2010-08-24  Roland McGrath  <roland@redhat.com>
25520
25521         * configure.in: Remove config-name.h generation.
25522         * configure: Regenerated.
25523         * config-name.in: File removed.
25524         * scripts/config-uname.sh: New file.
25525         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
25526         ($(objdir)config-name.h): New target.
25527
25528         * sunrpc/rpc_parse.h: Avoid nested comment.
25529
25530 2010-08-24  Richard Henderson  <rth@redhat.com>
25531             Ulrich Drepper  <drepper@redhat.com>
25532             H.J. Lu  <hongjiu.lu@intel.com>
25533
25534         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
25535         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
25536         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
25537         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
25538         _mm_alignr_epi8 with _mm_loadu_si128.
25539         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
25540         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
25541         (__m128i_shift_right): Removed.
25542         * sysdeps/i386/i686/multiarch/varshift.h: New file.
25543         * sysdeps/i386/i686/multiarch/varshift.S: New file.
25544         * sysdeps/x86_64/multiarch/varshift.h: New file.
25545         * sysdeps/x86_64/multiarch/varshift.S: New file.
25546
25547 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
25548
25549         * configure.in: Move assembler checks to before sysdep dir checking.
25550
25551 2010-08-20  Petr Baudis  <pasky@suse.cz>
25552
25553         * LICENSES: Sync the sunrpc license.
25554
25555 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
25556
25557         * sunrpc/auth_des.c: Update copyright notice once again.
25558         * sunrpc/auth_none.c: Likewise.
25559         * sunrpc/auth_unix.c: Likewise.
25560         * sunrpc/authdes_prot.c: Likewise.
25561         * sunrpc/authuxprot.c: Likewise.
25562         * sunrpc/bindrsvprt.c: Likewise.
25563         * sunrpc/clnt_gen.c: Likewise.
25564         * sunrpc/clnt_perr.c: Likewise.
25565         * sunrpc/clnt_raw.c: Likewise.
25566         * sunrpc/clnt_simp.c: Likewise.
25567         * sunrpc/clnt_tcp.c: Likewise.
25568         * sunrpc/clnt_udp.c: Likewise.
25569         * sunrpc/clnt_unix.c: Likewise.
25570         * sunrpc/des_crypt.c: Likewise.
25571         * sunrpc/des_soft.c: Likewise.
25572         * sunrpc/get_myaddr.c: Likewise.
25573         * sunrpc/getrpcport.c: Likewise.
25574         * sunrpc/key_call.c: Likewise.
25575         * sunrpc/key_prot.c: Likewise.
25576         * sunrpc/openchild.c: Likewise.
25577         * sunrpc/pm_getmaps.c: Likewise.
25578         * sunrpc/pm_getport.c: Likewise.
25579         * sunrpc/pmap_clnt.c: Likewise.
25580         * sunrpc/pmap_prot.c: Likewise.
25581         * sunrpc/pmap_prot2.c: Likewise.
25582         * sunrpc/pmap_rmt.c: Likewise.
25583         * sunrpc/rpc/auth.h: Likewise.
25584         * sunrpc/rpc/auth_unix.h: Likewise.
25585         * sunrpc/rpc/clnt.h: Likewise.
25586         * sunrpc/rpc/des_crypt.h: Likewise.
25587         * sunrpc/rpc/key_prot.h: Likewise.
25588         * sunrpc/rpc/netdb.h: Likewise.
25589         * sunrpc/rpc/pmap_clnt.h: Likewise.
25590         * sunrpc/rpc/pmap_prot.h: Likewise.
25591         * sunrpc/rpc/pmap_rmt.h: Likewise.
25592         * sunrpc/rpc/rpc.h: Likewise.
25593         * sunrpc/rpc/rpc_des.h: Likewise.
25594         * sunrpc/rpc/rpc_msg.h: Likewise.
25595         * sunrpc/rpc/svc.h: Likewise.
25596         * sunrpc/rpc/svc_auth.h: Likewise.
25597         * sunrpc/rpc/types.h: Likewise.
25598         * sunrpc/rpc/xdr.h: Likewise.
25599         * sunrpc/rpc_clntout.c: Likewise.
25600         * sunrpc/rpc_cmsg.c: Likewise.
25601         * sunrpc/rpc_common.c: Likewise.
25602         * sunrpc/rpc_cout.c: Likewise.
25603         * sunrpc/rpc_dtable.c: Likewise.
25604         * sunrpc/rpc_hout.c: Likewise.
25605         * sunrpc/rpc_main.c: Likewise.
25606         * sunrpc/rpc_parse.c: Likewise.
25607         * sunrpc/rpc_parse.h: Likewise.
25608         * sunrpc/rpc_prot.c: Likewise.
25609         * sunrpc/rpc_sample.c: Likewise.
25610         * sunrpc/rpc_scan.c: Likewise.
25611         * sunrpc/rpc_scan.h: Likewise.
25612         * sunrpc/rpc_svcout.c: Likewise.
25613         * sunrpc/rpc_tblout.c: Likewise.
25614         * sunrpc/rpc_util.c: Likewise.
25615         * sunrpc/rpc_util.h: Likewise.
25616         * sunrpc/rpcinfo.c: Likewise.
25617         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
25618         * sunrpc/rpcsvc/key_prot.x: Likewise.
25619         * sunrpc/rpcsvc/klm_prot.x: Likewise.
25620         * sunrpc/rpcsvc/mount.x: Likewise.
25621         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
25622         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
25623         * sunrpc/rpcsvc/rex.x: Likewise.
25624         * sunrpc/rpcsvc/rstat.x: Likewise.
25625         * sunrpc/rpcsvc/rusers.x: Likewise.
25626         * sunrpc/rpcsvc/sm_inter.x: Likewise.
25627         * sunrpc/rpcsvc/spray.x: Likewise.
25628         * sunrpc/rpcsvc/yppasswd.x: Likewise.
25629         * sunrpc/rtime.c: Likewise.
25630         * sunrpc/svc.c: Likewise.
25631         * sunrpc/svc_auth.c: Likewise.
25632         * sunrpc/svc_authux.c: Likewise.
25633         * sunrpc/svc_raw.c: Likewise.
25634         * sunrpc/svc_run.c: Likewise.
25635         * sunrpc/svc_simple.c: Likewise.
25636         * sunrpc/svc_tcp.c: Likewise.
25637         * sunrpc/svc_udp.c: Likewise.
25638         * sunrpc/svc_unix.c: Likewise.
25639         * sunrpc/svcauth_des.c: Likewise.
25640         * sunrpc/xcrypt.c: Likewise.
25641         * sunrpc/xdr.c: Likewise.
25642         * sunrpc/xdr_array.c: Likewise.
25643         * sunrpc/xdr_float.c: Likewise.
25644         * sunrpc/xdr_mem.c: Likewise.
25645         * sunrpc/xdr_rec.c: Likewise.
25646         * sunrpc/xdr_ref.c: Likewise.
25647         * sunrpc/xdr_sizeof.c: Likewise.
25648         * sunrpc/xdr_stdio.c: Likewise.
25649
25650         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
25651         handling.
25652
25653 2010-08-19  Andreas Schwab  <schwab@redhat.com>
25654
25655         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
25656
25657 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
25658
25659         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
25660         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
25661         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
25662         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
25663         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
25664         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
25665         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
25666         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
25667         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
25668         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
25669         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
25670         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
25671         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
25672         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
25673
25674 2010-07-26  Anton Blanchard  <anton@samba.org>
25675
25676         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
25677         * malloc/arena.c (heap_trim): Likewise.
25678
25679 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
25680
25681         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
25682         here.  Not...
25683         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
25684         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
25685
25686 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
25687
25688         * sysdeps/i386/elf/Makefile: New file.
25689
25690 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
25691
25692         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
25693         from fanotify_init.
25694         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
25695         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
25696
25697 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
25698
25699         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
25700         of strncasecmp_l.
25701         * sysdeps/multiarch/strcmp.S: Likewise.
25702
25703 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
25704
25705         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25706         strncase_l-nonascii.
25707         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25708         Add strncase_l-ssse3.
25709         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
25710         * sysdeps/x86_64/strcmp.S: Likewise.
25711         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
25712         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
25713         * sysdeps/x86_64/strncase.S: New file.
25714         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
25715         * sysdeps/x86_64/strncase_l.S: New file.
25716         * string/Makefile (strop-tests): Add strncasecmp.
25717         * string/test-strncasecmp.c: New file.
25718
25719         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
25720         warning.
25721
25722         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
25723         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
25724
25725 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
25726
25727         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
25728
25729 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
25730
25731         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
25732         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
25733         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
25734
25735 2010-05-01  Alan Modra  <amodra@gmail.com>
25736
25737         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
25738         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
25739         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
25740         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
25741         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
25742         tidying.  Don't tail-call __sigjmp_save for static lib.
25743         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
25744         save location.
25745         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
25746         (CALL_MCOUNT): Add eh info, and nop after bl.
25747         (TAIL_CALL_SYSCALL_ERROR): New macro.
25748         (PSEUDO_RET): Use it.
25749         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
25750         Correct save location of integer regs and cr.
25751         (_dl_profile_resolve): Correct cr save location.  Delete nops
25752         after bl when SHARED.  Reduce cfi size a little by better
25753         placement of cfi directives.
25754         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
25755         make a stack frame.  Instead use parm save area as a temp.
25756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
25757         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
25758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
25759         Don't make a stack frame for parent, use parm save area.
25760         Increase child stack frame to 112 bytes.  Don't save unused reg,
25761         and adjust reg usage.  Set up cfi on error recovery and
25762         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
25763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
25764         (__makecontext): Add dummy nop after jump to exit.
25765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
25766         Use correct parm save area and cr save, reduce stack frame.
25767         Correct cfi for possible PSEUDO_RET frame setup.
25768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
25769         Branch to local label emitted by PSEUDO_RET rather than
25770         __syscall_error.
25771
25772 2010-08-12  Andreas Schwab  <schwab@redhat.com>
25773
25774         [BZ #11904]
25775         * locale/programs/locale.c (print_assignment): New function.
25776         (show_locale_vars): Use it.
25777
25778 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
25779
25780         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
25781         field.
25782         (struct statfs64): Likewise.
25783         (_STATFS_F_FLAGS): Define.
25784         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
25785         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25786         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
25787         (ST_VALID): Define locally.
25788         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
25789         __statvfs_getflags, use the provided value.
25790         * sysdeps/unix/sysv/linux/kernel-features.h: Define
25791         __ASSUME_STATFS_F_FLAGS.
25792
25793         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
25794
25795         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
25796         Add sys/fanotify.h.
25797         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
25798         fanotify_mask for GLIBC_2.13.
25799         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
25800         fanotify_init and fanotify_mark.
25801         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
25802         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
25803
25804         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
25805         Add prlimit.
25806         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
25807         prlimit64 for GLIBC_2.13.
25808         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
25809         prlimit64.
25810         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
25811         syscall.
25812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
25813         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
25814         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
25815         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
25816         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
25817         add prlimit alias.
25818         * sysdeps/unix/sysv/linux/prlimit.c: New file.
25819
25820         [BZ #11903]
25821         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
25822         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
25823
25824         * nss/Makefile: Add rules to build and run tst-nss-test1.
25825         * shlib-versions: Add entry for libnss_test1.
25826         * nss/nss_test1.c: New file.
25827         * nss/tst-nss-test1.c: New file.
25828
25829         * nss/nsswitch.c (__nss_database_custom): Define new variable.
25830         (__nss_configure_lookup): Set appropriate entry in
25831         __nss_configure_lookup to true.
25832         * nss/nsswitch.h: Define enum with indeces of databases in
25833         databases and __nss_database_custom arrays.  Declare
25834         __nss_database_custom.
25835         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
25836         to avoid using nscd when custom rules are installed.
25837         * nss/getXXbyYY_r.c: Likewise.
25838         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
25839
25840         * nss/nss_files/files-parse.c: Whitespace fixes.
25841
25842 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
25843
25844         [BZ #11883]
25845         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
25846         * posix/fnmatch_loop.c: Likewise.
25847
25848 2010-07-17  Andi Kleen  <ak@linux.intel.com>
25849
25850         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
25851         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
25852         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
25853         * Versions.def [GLIBC_2.13]: Add.
25854
25855 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
25856
25857         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25858         Also fail if tpwd after pwuid call is NULL.
25859
25860 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25861
25862         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
25863         when converting to ms.
25864
25865 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25866
25867         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
25868         EOPNOTSUPP errors with ENOTTY.
25869         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
25870         EOPNOTSUPP errors with ENOTTY.
25871
25872 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
25873
25874         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25875         Add strcasecmp_l-ssse3.
25876         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
25877         strcasecmp.
25878         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
25879         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
25880         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
25881
25882 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
25883
25884         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
25885
25886         * string/Makefile (strop-tests): Add strcasecmp.
25887         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25888         strcasecmp_l-nonascii.
25889         (gen-as-const-headers): Add locale-defines.sym.
25890         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
25891         * sysdeps/x86_64/strcasecmp.S: New file.
25892         * sysdeps/x86_64/strcasecmp_l.S: New file.
25893         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
25894         * sysdeps/x86_64/locale-defines.sym: New file.
25895         * string/test-strcasecmp.c: New file.
25896
25897         * string/test-strcasestr.c: Test both ends of the range of characters.
25898         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
25899
25900 2010-07-29  Roland McGrath  <roland@redhat.com>
25901
25902         [BZ #11856]
25903         * manual/locale.texi (Yes-or-No Questions): Fix example code.
25904
25905 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
25906
25907         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
25908         for ld.so.
25909
25910 2010-07-27  Andreas Schwab  <schwab@redhat.com>
25911
25912         * manual/memory.texi (Malloc Tunable Parameters): Document
25913         M_PERTURB.
25914
25915 2010-07-26  Roland McGrath  <roland@redhat.com>
25916
25917         [BZ #11840]
25918         * configure.in (-fgnu89-inline check): Set and substitute
25919         gnu89_inline, not libc_cv_gnu89_inline.
25920         * configure: Regenerated.
25921         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
25922
25923 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
25924
25925         * string/test-strnlen.c: New file.
25926         * string/Makefile (strop-tests): Add strnlen.
25927         * string/tester.c (test_strnlen): Add a few more test cases.
25928         * string/tst-strlen.c: Better error reporting.
25929
25930         * sysdeps/x86_64/strnlen.S: New file.
25931
25932 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
25933
25934         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
25935         lower-latency instructions.
25936
25937 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
25938
25939         * string/test-strcasestr.c: New file.
25940         * string/test-strstr.c: New file.
25941         * string/Makefile (strop-tests): Add strstr and strcasestr.
25942         * string/str-two-way.h: Don't undefine MAX.
25943         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
25944
25945 2010-07-21  Andreas Schwab  <schwab@redhat.com>
25946
25947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25948         strcasestr-nonascii.
25949         (CFLAGS-strcasestr-nonascii.c): Define.
25950         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
25951         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
25952         Remove unused attribute.
25953
25954 2010-07-20  Roland McGrath  <roland@redhat.com>
25955
25956         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
25957         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
25958         ld.so.cache was broken.  With it, there is no way to disable dsocaps
25959         like LD_HWCAP_MASK can disable hwcaps.
25960
25961 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
25962
25963         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
25964
25965 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
25966
25967         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
25968         call in strcasestr.
25969         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
25970         __strcasestr_sse42_nonascii.
25971         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
25972         strcasestr-nonascii.c.
25973         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
25974
25975 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
25976
25977         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
25978         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
25979         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
25980         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
25981
25982 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
25983
25984         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
25985         fcntl.
25986
25987 2010-07-06  Andreas Schwab  <schwab@redhat.com>
25988
25989         [BZ #11577]
25990         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
25991         dl_signal_cerror.
25992
25993 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
25994
25995         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
25996         _PC_PIPE_BUF using F_GETPIPE_SZ.
25997
25998 2010-07-05  Roland McGrath  <roland@redhat.com>
25999
26000         * manual/arith.texi (Rounding Functions): Fix rint description
26001         implicit in round description.
26002
26003 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
26004
26005         * elf/Makefile: Fix linking for a few tests to make recent linker
26006         happy.
26007
26008 2010-06-30  Andreas Schwab  <schwab@redhat.com>
26009
26010         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
26011         $(common-objpfx)libc_nonshared.a.
26012
26013 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
26014
26015         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
26016         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
26017         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26018         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26019         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
26020         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
26021         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26022         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
26024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
26025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
26026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
26028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
26030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
26031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
26032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
26033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
26035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
26037         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
26038         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
26039         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
26040         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
26041         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
26042         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
26043         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
26044         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
26045         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
26046         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
26047         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
26048         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
26049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
26050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
26051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
26052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
26053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
26054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
26055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
26056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
26057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
26058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
26059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
26060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
26061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
26062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
26063
26064 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
26065
26066         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
26067         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
26068         * string/memmove.c (memmove): Renamed to ...
26069         (MEMMOVE): ...this.  Default to memmove.
26070         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
26071         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
26072         (END_CHK): Define.
26073         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26074         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
26075         mempcpy-ssse3-back memmove-ssse3-back.
26076         * sysdeps/x86_64/multiarch/bcopy.S: New file .
26077         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
26078         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
26079         * sysdeps/x86_64/multiarch/memcpy.S: New file.
26080         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
26081         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
26082         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
26083         * sysdeps/x86_64/multiarch/memmove.c: New file.
26084         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
26085         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
26086         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
26087         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
26088         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
26089         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
26090         Define.
26091         (index_Fast_Copy_Backward): Define.
26092         (HAS_ARCH_FEATURE): Define.
26093         (HAS_FAST_REP_STRING): Define.
26094         (HAS_FAST_COPY_BACKWARD): Define.
26095
26096 2010-06-21  Andreas Schwab  <schwab@redhat.com>
26097
26098         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26099         Restore proper fallback handling.
26100
26101 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
26102
26103         [BZ #11701]
26104         * posix/group_member.c (__group_member): Correct checking loop.
26105
26106         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
26107         OOM in getpwuid_r correctly.  Return error number when the caller
26108         should return, otherwise -1.
26109         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
26110         call returning > 0 value.
26111         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
26112
26113 2010-06-07  Andreas Schwab  <schwab@redhat.com>
26114
26115         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
26116         libc_nonshared.a from targets in modules-names.
26117
26118 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
26119
26120         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
26121         requires it.
26122
26123 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
26124
26125         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
26126         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
26127         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
26128         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
26129
26130 2010-06-02  Andreas Schwab  <schwab@redhat.com>
26131
26132         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
26133
26134 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
26135
26136         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
26137         and F_GETPIPE_SZ.
26138         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26139         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26140         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26141         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26142         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26143         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
26144
26145 2010-06-14  Roland McGrath  <roland@redhat.com>
26146
26147         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
26148
26149 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
26150
26151         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
26152         __REDIRECT followed by __THROW.
26153         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
26154         * posix/getopt.h (getopt): Likewise.
26155
26156 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
26157
26158         * hurd/lookup-at.c (__file_name_lookup_at): Accept
26159         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
26160         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
26161         in AT_FLAGS.
26162         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
26163         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
26164
26165 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
26166
26167         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
26168
26169 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
26170
26171         [BZ #11640]
26172         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26173         Properly check family and model.
26174
26175 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
26176
26177         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
26178
26179 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
26180
26181         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
26182
26183 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
26184
26185         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
26186         symbol reference.
26187
26188 2010-05-19  Andreas Schwab  <schwab@redhat.com>
26189
26190         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
26191         symbol reference.
26192
26193 2010-05-21  Andreas Schwab  <schwab@redhat.com>
26194
26195         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
26196         and internal_recvmmsg.
26197         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
26198         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
26199         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
26200         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
26201
26202         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
26203         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
26204         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
26205
26206 2010-05-20  Andreas Schwab  <schwab@redhat.com>
26207
26208         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
26209
26210 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
26211
26212         POWER7 optimizations.
26213         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
26214         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
26215
26216 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
26217
26218         * version.h: Update for 2.13 development version.
26219
26220 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
26221
26222         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
26223         exceptions.  Return 0.
26224
26225 2010-05-07  Roland McGrath  <roland@redhat.com>
26226
26227         * elf/ldconfig.c (main): Add a const.
26228
26229 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
26230
26231         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
26232         (args_options): Add no-idn option.
26233         (ahosts_keys_int): Add idn_flags to ai_flags.
26234         (parse_option): Handle 'i' option to clear idn_flags.
26235
26236         * malloc/malloc.c (_int_free): Possible race in the most recently
26237         added check.  Only act on the data if no current modification
26238         happened.
26239
26240 See ChangeLog.17 for earlier changes.