Format mplog.c
[glibc.git] / ChangeLog
blob9cd6b9a12351ce2549f4cb30194ae03428164bfb
1 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
5 2013-02-26  Roland McGrath  <roland@hack.frob.com>
7         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
8         [$(build-shared = yes].
10 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
13         (__mul): Reduce iterations for calculating mantissa.
15         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
16         MPTWO.
17         (__mpranred): Likewise.
19         [BZ #15160]
20         * malloc/memusagestat.c (main): Draw graphs for heap and stack
21         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
23 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
26         Define __attribute__.
28 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
30         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
31         unused.
32         * posix/regex_internal.h (__attribute): Remove.
33         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
34         (re_string_context_at): Likewise.
35         (bitset_not): Use __attribute__ and mark function as possibly
36         unused.
37         (bitset_merge): Likewise.
38         (bitset_mask): Likewise.
39         (re_string_char_size_at): Likewise.
40         (re_string_wchar_at): Likewise.
41         (re_string_elem_size_at): Likewise.
43 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
45         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
46         code.
47         (cc32): Likewise.
49         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50         (__acr): Likewise.
51         (__cpy): Likewise.
52         (norm): Likewise.
53         (denorm): Likewise.
54         (__dbl_mp): Likewise.
55         (add_magnitudes): Likewise.
56         (sub_magnitudes): Likewise.
57         (__mul): Likewise.
58         (__inv): Likewise.
60         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
61         style.
63         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
64         style.
66         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
67         code.
69         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
70         up changes with default code.
71         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
72         Likewise.
74 2013-02-24  Allan McRae  <allan@archlinux.org>
76         * manual/socket.texi (The Internet Namespace): Order menu items
77         to match that in the file.
79         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
80         node listing of the info page menu.
82 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
84         [BZ #13550]
85         * sysdeps/i386/bp-asm.h: Remove file.
86         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
87         (PARMS): Do not use macros from bp-asm.h.
88         (S1): Likewise.
89         (S2): Likewise.
90         (SIZE): Likewise.
91         (__mpn_add_n): Do not use BP_SYM
92         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
93         "bp-asm.h".
94         (PARMS): Do not use macros from bp-asm.h.
95         (S1): Likewise.
96         (SIZE): Likewise.
97         (__mpn_addmul_1): Do not use BP_SYM
98         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
99         "bp-asm.h".
100         (PARMS): Do not use macros from bp-asm.h.
101         (SIGMSK): Likewise.
102         (_setjmp): Likewise.  Do not use BP_SYM.
103         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
104         "bp-asm.h".
105         (PARMS): Do not use macros from bp-asm.h.
106         (SIGMSK): Likewise.
107         (setjmp): Likewise.  Do not use BP_SYM.
108         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
109         "bp-asm.h".
110         (PARMS): Do not use macros from bp-asm.h.
111         (__frexp): Do not use BP_SYM.
112         (frexp): Likewise.
113         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
114         "bp-asm.h".
115         (PARMS): Do not use macros from bp-asm.h.
116         (__frexpf): Do not use BP_SYM.
117         (frexpf): Likewise.
118         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
119         "bp-asm.h".
120         (PARMS): Do not use macros from bp-asm.h.
121         (__frexpl): Do not use BP_SYM.
122         (frexpl): Likewise.
123         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
124         "bp-asm.h".
125         (PARMS): Do not use macros from bp-asm.h.
126         (__remquo): Do not use BP_SYM.
127         (remquo): Likewise.
128         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
129         "bp-asm.h".
130         (PARMS): Do not use macros from bp-asm.h.
131         (__remquof): Do not use BP_SYM.
132         (remquof): Likewise.
133         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
134         "bp-asm.h".
135         (PARMS): Do not use macros from bp-asm.h.
136         (__remquol): Do not use BP_SYM.
137         (remquol): Likewise.
138         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
139         "bp-asm.h".
140         (PARMS): Do not use macros from bp-asm.h.
141         (DEST): Likewise.
142         (SRC): Likewise.
143         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
144         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
145         "bp-asm.h".
146         (PARMS): Do not use macros from bp-asm.h.
147         (strlen): Do not use BP_SYM.
148         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
149         "bp-asm.h".
150         (PARMS): Do not use macros from bp-asm.h.
151         (S1): Likewise.
152         (S2): Likewise.
153         (SIZE): Likewise.
154         (__mpn_add_n): Do not use BP_SYM.
155         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
156         "bp-asm.h".
157         (PARMS): Do not use macros from bp-asm.h.
158         (S1): Likewise.
159         (SIZE): Likewise.
160         (__mpn_addmul_1): Do not use BP_SYM.
161         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
162         weak_alias.
163         (bzero): Likewise.
164         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
165         "bp-asm.h".
166         (PARMS): Do not use macros from bp-asm.h.
167         (S): Likewise.
168         (SIZE): Likewise.
169         (__mpn_lshift): Do not use BP_SYM.
170         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
171         "bp-asm.h".
172         (PARMS): Do not use macros from bp-asm.h.
173         (DEST): Likewise.
174         (SRC): Likewise.
175         (LEN): Likewise.
176         (memcpy): Likewise.  Do not use BP_SYM.
177         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
178         libc_hidden_def and weak_alias.
179         (mempcpy): Do not use BP_SYM in weak_alias.
180         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
181         "bp-asm.h".
182         (PARMS): Do not use macros from bp-asm.h.
183         (DEST): Likewise.
184         (LEN): Likewise.
185         [!BZERO_P] (CHR): Likewise.
186         (memset): Likewise.  Do not use BP_SYM.
187         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
188         "bp-asm.h".
189         (PARMS): Do not use macros from bp-asm.h.
190         (S1): Likewise.
191         (SIZE): Likewise.
192         (__mpn_mul_1): Do not use BP_SYM.
193         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
194         "bp-asm.h".
195         (PARMS): Do not use macros from bp-asm.h.
196         (S): Likewise.
197         (SIZE): Likewise.
198         (__mpn_rshift): Do not use BP_SYM.
199         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
200         "bp-asm.h".
201         (PARMS): Do not use macros from bp-asm.h.
202         (STR): Likewise.
203         (CHR): Likewise.
204         (strchr): Likewise.  Do not use BP_SYM.
205         (index): Do not use BP_SYM in weak_alias.
206         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
207         "bp-asm.h".
208         (PARMS): Do not use macros from bp-asm.h.
209         (DEST): Likewise.
210         (SRC): Likewise.
211         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
212         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
213         "bp-asm.h".
214         (PARMS): Do not use macros from bp-asm.h.
215         (strlen): Do not use BP_SYM.
216         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
217         "bp-asm.h".
218         (PARMS): Do not use macros from bp-asm.h.
219         (S1): Likewise.
220         (S2): Likewise.
221         (SIZE): Likewise.
222         (__mpn_sub_n): Do not use BP_SYM.
223         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
224         "bp-asm.h".
225         (PARMS): Do not use macros from bp-asm.h.
226         (S1): Likewise.
227         (SIZE): Likewise.
228         (__mpn_submul_1): Do not use BP_SYM.
229         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
230         "bp-asm.h".
231         (PARMS): Do not use macros from bp-asm.h.
232         (S1): Likewise.
233         (S2): Likewise.
234         (SIZE): Likewise.
235         (__mpn_add_n): Do not use BP_SYM.
236         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
237         weak_alias.
238         (bzero): Likewise.
239         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
240         "bp-asm.h".
241         (PARMS): Do not use macros from bp-asm.h.
242         (BLK2): Likewise.
243         (LEN): Likewise.
244         (memcmp): Do not use BP_SYM.
245         (bcmp): Do not use BP_SYM in weak_alias.
246         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
247         "bp-asm.h".
248         (PARMS): Do not use macros from bp-asm.h.
249         (DEST): Likewise.
250         (SRC): Likewise.
251         (LEN): Likewise.
252         (memcpy): Likewise.  Do not use BP_SYM.
253         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
254         "bp-asm.h".
255         (PARMS): Do not use macros from bp-asm.h.
256         (DEST): Likewise.
257         (SRC): Likewise.
258         (LEN): Likewise.
259         (memmove): Likewise.  Do not use BP_SYM.
260         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
261         "bp-asm.h".
262         (PARMS): Do not use macros from bp-asm.h.
263         (DEST): Likewise.
264         (SRC): Likewise.
265         (LEN): Likewise.
266         (__mempcpy): Likewise.  Do not use BP_SYM.
267         (mempcpy): Do not use BP_SYM in weak_alias.
268         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
269         "bp-asm.h".
270         (PARMS): Do not use macros from bp-asm.h.
271         (DEST): Likewise.
272         (LEN): Likewise.
273         [!BZERO_P] (CHR): Likewise.
274         (memset): Likewise.  Do not use BP_SYM.
275         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
276         "bp-asm.h".
277         (PARMS): Do not use macros from bp-asm.h.
278         (STR2): Likewise.
279         (strcmp): Do not use BP_SYM.
280         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
281         "bp-asm.h".
282         (PARMS): Do not use macros from bp-asm.h.
283         (STR): Likewise.
284         (DELIM): Likewise.
285         [USE_AS_STRTOK_R] (SAVE): Likewise.
286         (FUNCTION): Likewise.  Do not use BP_SYM.
287         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
288         aliases.
289         (strtok_r): Likewise.
290         (__GI___strtok_r): Likewise.
291         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
292         (PARMS): Do not use macros from bp-asm.h.
293         (S): Likewise.
294         (SIZE): Likewise.
295         (__mpn_lshift): Do not use BP_SYM.
296         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
297         (PARMS): Do not use macros from bp-asm.h.
298         (STR): Likewise.
299         (CHR): Likewise.
300         (__memchr): Do not use BP_SYM.
301         (memchr): Do not use BP_SYM in weak_alias.
302         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
303         (PARMS): Do not use macros from bp-asm.h.
304         (BLK2): Likewise.
305         (LEN): Likewise.
306         (memcmp): Do not use BP_SYM.
307         (bcmp): Do not use BP_SYM in weak_alias.
308         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
309         (PARMS): Do not use macros from bp-asm.h.
310         (S1): Likewise.
311         (SIZE): Likewise.
312         (__mpn_mul_1): Do not use BP_SYM.
313         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
314         "bp-asm.h".
315         (PARMS): Do not use macros from bp-asm.h.
316         (STR): Likewise.
317         (CHR): Likewise.
318         (__rawmemchr): Do not use BP_SYM.
319         (rawmemchr): Do not use BP_SYM in weak_alias.
320         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
321         (PARMS): Do not use macros from bp-asm.h.
322         (S): Likewise.
323         (SIZE): Likewise.
324         (__mpn_rshift): Do not use BP_SYM.
325         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
326         (PARMS): Do not use macros from bp-asm.h.
327         (SIGMSK): Likewise.
328         (__sigsetjmp): Likewise.  Do not use BP_SYM.
329         * sysdeps/i386/start.S: Do not include "bp-sym.h".
330         (_start): Do not use BP_SYM.
331         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
332         (PARMS): Do not use macros from bp-asm.h.
333         (DEST): Likewise.
334         (SRC): Likewise.
335         (__stpcpy): Likewise.  Do not use BP_SYM.
336         (stpcpy): Do not use BP_SYM in weak_alias.
337         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
338         "bp-asm.h".
339         (PARMS): Do not use macros from bp-asm.h.
340         (DEST): Likewise.
341         (SRC): Likewise.
342         (LEN): Likewise.
343         (__stpncpy): Likewise.  Do not use BP_SYM.
344         (stpncpy): Do not use BP_SYM in weak_alias.
345         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
346         (PARMS): Do not use macros from bp-asm.h.
347         (STR): Likewise.
348         (CHR): Likewise.
349         (strchr): Likewise.  Do not use BP_SYM.
350         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
351         "bp-asm.h".
352         (PARMS): Do not use macros from bp-asm.h.
353         (STR): Likewise.
354         (CHR): Likewise.
355         (__strchrnul): Likewise.  Do not use BP_SYM.
356         (strchrnul): Do not use BP_SYM in weak_alias.
357         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
358         "bp-asm.h".
359         (PARMS): Do not use macros from bp-asm.h.
360         (STOP): Likewise.
361         (strcspn): Do not use BP_SYM.
362         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
363         "bp-asm.h".
364         (PARMS): Do not use macros from bp-asm.h.
365         (STR): Likewise.
366         (STOP): Likewise.
367         (strpbrk): Likewise.  Do not use BP_SYM.
368         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
369         "bp-asm.h".
370         (PARMS): Do not use macros from bp-asm.h.
371         (STR): Likewise.
372         (CHR): Likewise.
373         (strrchr): Likewise.  Do not use BP_SYM.
374         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
375         (PARMS): Do not use macros from bp-asm.h.
376         (SKIP): Likewise.
377         (strspn): Do not use BP_SYM.
378         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
379         (PARMS): Do not use macros from bp-asm.h.
380         (STR): Likewise.
381         (DELIM): Likewise.
382         (SAVE): Likewise.
383         (FUNCTION): Likewise.  Do not use BP_SYM.
384         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
385         aliases.
386         (strtok_r): Likewise.
387         (__GI___strtok_r): Likewise.
388         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
389         (PARMS): Do not use macros from bp-asm.h.
390         (S1): Likewise.
391         (S2): Likewise.
392         (SIZE): Likewise.
393         (__mpn_sub_n): Do not use BP_SYM.
394         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
395         "bp-asm.h".
396         (PARMS): Do not use macros from bp-asm.h.
397         (S1): Likewise.
398         (SIZE): Likewise.
399         (__mpn_submul_1): Do not use BP_SYM.
400         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
401         <bp-sym.h>.
402         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
403         and <bp-asm.h>.
404         (PARMS): Do not use macros from bp-asm.h.
405         (FLAGS): Likewise.
406         (PTID): Likewise.
407         (TLS): Likewise.
408         (CTID): Likewise.
409         (__clone): Do not use BP_SYM.
410         (clone): Do not use BP_SYM in weak_alias.
411         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
412         and <bp-asm.h>.
413         (PARMS): Do not use macros from bp-asm.h.
414         (LEN): Likewise.
415         (__mmap64): Do not use BP_SYM.
416         (mmap64): Do not use BP_SYM in weak_alias.
417         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
418         <bp-sym.h> and <bp-asm.h>.
419         (PARMS): Do not use macros from bp-asm.h.
420         (__posix_fadvise64_l64): Do not use BP_SYM.
421         * sysdeps/unix/sysv/linux/i386/semtimedop.S
422         (PARMS): Do not use macros from bp-asm.h.
423         (NSOPS): Likewise.
424         (semtimedop): Do not use BP_SYM.
425         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
426         and <bp-asm.h>.
428 2013-02-21  Allan McRae  <allan@archlinux.org>
430         * manual/message.texi (Charset conversion in gettext):
431         Move @end statement to beginning of line.
433 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
435         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
436         static.
437         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
438         Likewise.
440         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
441         (denorm): Likewise.
442         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
443         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
445 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
447         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
448         tail-call to the resolved function if pltexit isn't needed.
450 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
452         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
453         or Y being zero as being unlikely.
454         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
455         Likewise.
457 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
459         * manual/nss.texi (System Databases and Name Service Switch):
460         Remove frobnicate @pxref.
462 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
464         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
465         __attribute__ ((unused)) to __attribute__ ((__unused__)).
467 2013-02-20  Petr Machata  <pmachata@redhat.com>
469         * elf/elf.h (R_ARM_TARGET1): New macro.
470         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
471         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
472         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
473         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
474         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
475         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
476         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
477         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
478         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
479         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
480         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
481         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
482         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
483         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
484         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
485         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
486         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
487         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
488         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
489         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
490         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
491         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
492         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
493         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
494         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
495         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
496         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
497         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
498         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
499         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
500         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
501         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
502         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
503         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
504         (R_ARM_THM_GOT_BREL12): Likewise.
505         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
506         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
507         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
508         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
509         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
510         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
511         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
512         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
513         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
515 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
517         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
518         __attribute_used__ to __attribute__ ((unused)).
520 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
522         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
523         powerpc mpa.c.
524         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
525         comment formatting.
526         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
528 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
530         [BZ #13550]
531         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
532         Remove macro.
533         (ENTER): Remove both macro definitions.
534         (LEAVE): Likewise.
535         (CHECK_BOUNDS_LOW): Likewise.
536         (CHECK_BOUNDS_HIGH): Likewise.
537         (CHECK_BOUNDS_BOTH): Likewise.
538         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
539         (RETURN_BOUNDED_POINTER): Likewise.
540         (RETURN_NULL_BOUNDED_POINTER): Likewise.
541         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
542         (POP_ERRNO_LOCATION_RETURN): Likewise.
543         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
544         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
545         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
546         macros.
547         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
548         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
549         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
550         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
551         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
552         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
553         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
554         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
555         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
556         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
557         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
558         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
559         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
560         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
561         removed macros.
562         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
563         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
564         macros.
565         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
566         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
567         * sysdeps/i386/i586/memset.S (memset): Likewise.
568         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
569         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
570         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
571         macros.
572         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
573         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
574         Change uses of L(2) to L(out).
575         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
576         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
577         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
578         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
579         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
580         removed macros.
581         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
582         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
583         macros.
584         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
585         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
586         (RETURN): Do not use macro LEAVE.
587         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
588         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
589         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
590         * sysdeps/i386/i686/memset.S (memset): Likewise.
591         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
592         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
593         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
594         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
595         Likewise.
596         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
597         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
598         L(1_2) and L(1_3) into L(1).
599         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
600         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
601         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
602         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
603         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
604         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
605         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
606         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
607         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
608         macros.
609         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
610         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
611         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
612         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
613         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
614         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
615         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
616         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
617         * sysdeps/i386/strcspn.S (strcspn): Likewise.
618         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
619         * sysdeps/i386/strrchr.S (strrchr): Likewise.
620         * sysdeps/i386/strspn.S (strspn): Likewise.
621         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
622         conditional code.
623         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
624         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
625         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
626         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
627         L(1_3) into L(1_1).
628         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
629         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
630         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
631         macros.
632         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
634 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
636         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
637         macro.
639 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
641         * math/atest-exp.c (exp_mpn): Remove ROUND.
642         * math/atest-exp2.c (exp_mpn): Likewise.
643         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
645         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
646         * stdlib/tst-tls-atexit-lib.c: Likewise.
647         * stdlib/tst-tls-atexit.c: Likewise.
649 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
651         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
652         and __attribute_alloc_size__.
654 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
656         * include/programs/xmalloc.h: Change __attribute_alloc_size to
657         __attribute_alloc_size__.
658         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
659         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
661 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
663         * include/programs/xmalloc.h: New file.
664         * catgets/gencat.c: Include it.
665         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
666         * elf/pldd.c: Likewise.
667         * iconv/iconv_charmap.c: Likewise.
668         * iconv/iconvconfig.c: Likewise.
669         * iconv/strtab.c: Likewise.
670         * locale/programs/locale.c: Likewise.
671         * locale/programs/localedef.h: Likewise.
672         * locale/programs/simple-hash.c: Likewise.
673         * nscd/nscd.h: Likewise.
674         * nss/makedb.c: Likewise.
675         * sysdeps/generic/ldconfig.h: Likewise.
677 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
679         * Versions.def: Add GLIBC_2.18.
680         * include/link.h (struct link_map): New member l_tls_dtor_count.
681         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
682         (__call_tls_dtors): Likewise.
683         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
684         __cxa_thread_atexit_impl.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
686         Likewise.
687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
688         Likewise.
689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
690         Likewise.
691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
692         Likewise.
693         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
694         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
695         Likewise.
696         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
697         Likewise.
698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
700         Likewise.
701         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
702         (tests): Add test case tst-tls-atexit.
703         (modules-names): Add shared library for tst-tls-atexit.
704         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
705         (GLIBC_PRIVATE): Add __call_tls_dtors.
706         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
707         for libstdc++.
708         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
709         * stdlib/tst-tls-atexit.c: New test case.
710         * stdlib/tst-tls-atexit-lib.c: New test case.
712         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
714         * elf/Versions (ld): Add _dl_find_dso_for_object.
715         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
716         * elf/dl-open.c (_dl_find_dso_for_object): New function.
717         (dl_open_worker): Use _dl_find_dso_for_object.
718         * elf/dl-sym.c (do_sym): Likewise.
719         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
721 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
723         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
724         Syntactic changes only.
725         (_dl_runtime_profile): Do a tail-call to the resolved function.
727 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
729         [BZ #13550]
730         * sysdeps/x86_64/bp-asm.h: Remove file.
731         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
732         <bp-sym.h> and <bp-asm.h>.
733         (__clone): Do not use BP_SYM.
734         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
735         <bp-sym.h> and <bp-asm.h>.
736         * sysdeps/unix/x86_64/sysdep.S: Likewise.
737         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
738         "bp-asm.h".
739         (_setjmp): Do not use BP_SYM.
740         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
741         "bp-asm.h".
742         (setjmp): Do not use BP_SYM.
743         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
744         libc_hidden_def.
745         (mempcpy): Do not use BP_SYM in weak_alias.
746         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
747         "bp-asm.h".
748         (strchr): Do not use BP_SYM.
749         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
750         "bp-asm.h".
751         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
752         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
753         (_start): Do not use BP_SYM.
754         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
755         "bp-asm.h".
756         (strcat): Do not use BP_SYM.
757         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
758         "bp-asm.h".
759         (STRCMP): Do not use BP_SYM.
760         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
761         "bp-asm.h".
762         (STRCPY): Do not use BP_SYM.
763         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
764         "bp-asm.h".
765         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
766         "bp-asm.h".
767         (FUNCTION): Do not use BP_SYM.
768         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
769         weak_alias.
770         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
772 2013-02-17  Andreas Jaeger  <aj@suse.de>
774         * time/Versions: Sort entries.
775         * string/Versions: Likewise.
776         * resolv/Versions: Likewise.
777         * posix/Versions: Likewise.
778         * iconv/Versions: Likewise.
779         * elf/Versions: Likewise.
780         * wcsmbs/Versions: Likewise.
782 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
784         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
785         loop termination condition.
787         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
788         variable to calculate EZ.
789         (__sqr): Likewise.
791         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
792         the lower precision input.
794 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
796         [BZ #13550]
797         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
798         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
799         (run-via-rtld-prefix): Do not handle %-bp tests.
800         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
801         (all-object-suffixes): Remove .ob.
802         (bppfx): Remove variable.
803         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
804         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
805         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
806         [$(build-bounded) = yes] (libtype.ob): Likewise.
807         * Makerules (elide-routines.ob): Remove variable.
808         (do-tests-clean): Do not handle *-bp.out.
809         (common-mostlyclean): Do not handle *-bp and *-bp.out.
810         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
811         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
812         (tests): Do not include $(tests-bp.out).
813         (xtests): Do not include $(xtests-bp.out).
814         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
815         [$(build-bounded) = yes] ($(addprefix
816         $(objpfx),$(binaries-bounded))): Remove rule.
817         ($(objpfx)%-bp.out): Remove rule.
818         * config.make.in (build-bounded): Remove variable.
819         * crypt/Makefile [$(build-bounded) = yes]
820         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
821         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
822         append to variable.
823         [$(build-bounded) = yes] (install-lib): Likewise.
824         [$(build-bounded) = yes] (generated): Likewise.
825         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
826         Remove rule.
827         * intl/Makefile [$(build-bounded) = yes]
828         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
829         * math/Makefile [$(build-bounded) = yes]
830         ($(tests:%=$(objpfx)%-bp): Likewise.
831         * misc/Makefile [$(build-bounded) = yes]
832         ($(objpfx)tst-tsearch-bp): Likewise.
833         * nptl/Makeconfig (bounded-thread-library): Remove variable.
834         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
835         Remove dependency.
836         * string/Makefile (o-objects.ob): Remove variable.
837         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
838         (CFLAGS-.ob): Remove variable.
839         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
840         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
841         both definitions of variable.
842         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
843         (ASFLAGS-.ob): Remove variable.
845 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
847         [BZ #13550]
848         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
849         Remove __BOUNDED_POINTERS__ from condition.
850         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
851         * string/bits/string2.h [!__NO_STRING_INLINES &&
852         !__BOUNDED_POINTERS__]: Likewise.
853         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
854         Likewise.
855         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
856         Remove conditional code.
857         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
858         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
859         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
860         condition.
862         [BZ #13550]
863         * csu/libc-start.c: Do not include <bp-sym.h>.
864         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
865         * elf/dl-open.c: Do not include <bp-sym.h>.
866         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
867         * math/fegetenv.c: Do not include <bp-sym.h>.
868         (fegetenv): Do not use BP_SYM in versioned symbols.
869         * nptl/sysdeps/pthread/bits/libc-lockP.h
870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
871         <bp-sym.h>.
872         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
873         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
874         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
875         (__pthread_mutex_destroy): Likewise.
876         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
877         (__pthread_mutex_lock): Likewise.
878         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
879         (__pthread_mutex_trylock): Likewise.
880         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
881         (__pthread_mutex_unlock): Likewise.
882         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
883         (__pthread_mutexattr_init): Likewise.
884         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
885         (__pthread_mutexattr_destroy): Likewise.
886         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
887         (__pthread_mutexattr_settype): Likewise.
888         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
889         (__pthread_rwlock_init): Likewise.
890         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
891         (__pthread_rwlock_destroy): Likewise.
892         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
893         (__pthread_rwlock_rdlock): Likewise.
894         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
895         (__pthread_rwlock_tryrdlock): Likewise.
896         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
897         (__pthread_rwlock_wrlock): Likewise.
898         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
899         (__pthread_rwlock_trywrlock): Likewise.
900         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
901         (__pthread_rwlock_unlock): Likewise.
902         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
903         (__pthread_key_create): Likewise.
904         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
905         (__pthread_setspecific): Likewise.
906         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
907         (__pthread_getspecific): Likewise.
908         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
909         Likewise.
910         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
911         (_pthread_cleanup_push_defer): Likewise.
912         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
913         (_pthread_cleanup_pop_restore): Likewise.
914         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
915         (pthread_setcancelstate): Likewise.
916         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
917         <bp-sym.h>.
918         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
919         (memchr): Do not use BP_SYM in weak_alias.
920         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
921         (fegetenv): Do not use BP_SYM in versioned symbols.
922         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
923         (fesetenv): Do not use BP_SYM in versioned symbols.
924         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
925         (feupdateenv): Do not use BP_SYM in versioned symbols.
926         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
927         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
928         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
929         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
930         (open64): Do not use BP_SYM in weak_alias.
931         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
932         (fegetenv): Do not use BP_SYM in versioned symbols.
933         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
934         (fesetenv): Do not use BP_SYM in versioned symbols.
935         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
936         (feupdateenv): Do not use BP_SYM in versioned symbols.
937         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
938         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
939         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
940         (feraiseexcept): Do not use BP_SYM in versioned symbols.
941         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
942         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
943         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
944         <bp-sym.h>.
945         (__libc_start_main): Do not use BP_SYM.
947 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
949         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
950         redundant return line.
951         (norm): Likewise.
952         (denorm): Likewise.
953         (dbl_mp): Likewise.
954         (sub_magnitudes): Likewise.
955         (__add): Likewise.
956         (__sub): Likewise.
957         (__mul): Likewise.
958         (__inv): Likewise.
959         (__dvd): Likewise.
960         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
961         (norm): Likewise.
962         (denorm): Likewise.
963         (dbl_mp): Likewise.
964         (sub_magnitudes): Likewise.
965         (__add): Likewise.
966         (__sub): Likewise.
967         (__mul): Likewise.
968         (__inv): Likewise.
969         (__dvd): Likewise.
971         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
972         instead of __mul.
973         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
974         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
975         (cc32): Likewise.
977         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
978         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
979         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
980         of __mul for squares.
981         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
982         function
983         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
984         Likewise.
985         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
986         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
988 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
990         [BZ #13550]
991         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
992         code.
993         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
994         prototype or function definition.  Rename ubp_* variables and
995         parameters.  Remove argv definitions conditional on
996         [__BOUNDED_POINTERS__].
997         * debug/backtrace.c (__backtrace): Do not use __unbounded.
998         * elf/dl-runtime.c (_dl_fixup): Likewise.
999         * include/set-hooks.h (RUN_HOOK): Likewise.
1000         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
1001         definition.
1002         * string/strcpy.c (strcpy): Do not use __unbounded.
1003         * sysdeps/generic/frame.h (struct layout): Likewise.
1004         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
1005         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
1006         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
1007         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
1008         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
1009         (__backtrace): Likewise.
1010         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
1011         use __ptrvalue.
1012         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1013         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
1014         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
1015         Likewise.
1016         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
1017         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1018         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
1019         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1020         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
1021         Do not use __unbounded.
1022         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
1023         Rename __unboundedrlimits parameter to rlimits in prototype.
1024         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
1025         Do not use __unbounded.
1026         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
1027         not use __ptrvalue.
1028         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1029         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
1030         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1031         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
1032         __ptrvalue or __unbounded.
1033         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
1034         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
1035         use __unbounded.
1036         (__new_msgctl): Do not use __ptrvalue.
1037         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
1038         __unbounded.
1039         (__libc_msgrcv): Do not use __ptrvalue.
1040         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
1041         startup_info): Do not use __unbounded.
1042         (__libc_start_main): Likewise.  Rename ubp_* variables and
1043         parameters.  Remove argv definitions conditional on
1044         [__BOUNDED_POINTERS__].
1045         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
1046         __ptrvalue.
1047         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
1048         use __unbounded.
1049         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
1050         or __ptrvalue.
1051         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
1052         use __unbounded.
1053         (__new_shmctl): Do not use __ptrvalue.
1054         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
1055         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
1056         Likewise.
1057         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
1058         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
1059         (__libc_sigaction): Likewise.
1060         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1061         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
1062         Likewise.
1063         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1065 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
1067         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
1069         * string/mempcpy.c: Implement by calling memcpy.
1071 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1073         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
1075         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
1076         evaluation.
1078         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
1079         values in the mantissa.
1081         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
1082         minimize writes to Z.
1083         (sub_magnitudes): Simplify code a bit.
1085 2013-02-12  Roland McGrath  <roland@hack.frob.com>
1087         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
1088         from the message.  The linker prefixes all warnings with that already.
1090 2013-02-12  Andreas Schwab  <schwab@suse.de>
1092         [BZ #15078]
1093         * posix/regexec.c (extend_buffers): Add parameter min_len.
1094         (check_matching): Pass minimum needed length.
1095         (clean_state_log_if_needed): Likewise.
1096         (get_subexp): Likewise.
1097         * posix/Makefile (tests): Add bug-regex34.
1098         (bug-regex34-ENV): Define.
1099         * posix/bug-regex34.c: New file.
1101         [BZ #11561]
1102         * posix/regcomp.c (parse_bracket_exp): When looking up collating
1103         elements compare against the byte sequence of it, not its name.
1104         * posix/Makefile (tests): Add bug-regex35.
1105         (bug-regex35-ENV): Define.
1106         * posix/bug-regex35.c: New file.
1108 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1110         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
1111         comment.
1112         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
1113         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
1114         (CHECK_EOL): Add undef.
1116 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
1118         * bits/stdlib-bsearch.h: New file.
1119         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
1120         * stdlib/stdlib.h: Likewise.
1122 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1124         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
1125         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
1126         declaration.
1127         * manual/search.texi (Array Search Function): Add missing const in
1128         lfind prototype.
1129         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
1130         declaration to use rlim_t.
1131         (Basic Scheduling Functions): Remove erroneous const from
1132         sched_getparam prototype.  Remove erroneous * from
1133         sched_get_priority_max and sched_get_priority_min prototypes.
1134         (Resource Usage): Fix summary @comment on vtimes to refer to
1135         sys/vtimes.h rather than vtimes.h.
1136         Add missing *s in vtimes prototype.
1137         (Limits on Resources): Fix ulimit prototype to return long int.
1138         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
1139         prototypes to use long int rather than double.
1140         (BSD Random): Fix initstate and setstate to use char *, not void *.
1141         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
1142         prototype to make second argument 'struct aiocb64 *const[]'.
1143         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
1144         (Status of AIO Operations): Remove erroneous const in aio_return and
1145         aio_return64 prototypes.
1146         (Synchronizing I/O): Fix sync prototype to return void.
1147         * manual/startup.texi (Suboptions): Remove an erroneous const in
1148         getsubopt prototype.
1149         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
1150         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
1151         use size_t rather than int.
1152         (Scanning All Users): Likewise for getpwent_r.
1153         (Setting Groups): Add missing const to setgroups prototype.
1154         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
1155         * manual/socket.texi (Host Names): Fix gethostbyaddr and
1156         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
1157         'const void *' rather than 'const char *'.
1158         (Host Address Functions): Likewise for inet_ntop.
1159         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
1160         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
1161         ssize_t for return value.
1162         (Sending Data): Likewise for send, sendto, sendmsg.
1163         (Socket Option Functions): Add a missing const in setsockopt prototype.
1164         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
1165         use wchar_t for the argument.
1166         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
1167         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
1168         take no arguments.
1169         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
1170         double/float/long double for second argument.
1171         Fix return types of significand, significandf, significandl.
1172         * manual/filesys.texi (Setting Permissions): Use mode_t for second
1173         argument in fchmod prototype.
1174         (File Owner): Use uid_t and gid_t in fchown prototype.
1175         (File Times): Add const to utimes, futimes, and lutimes prototypes.
1176         (Making Special Files): Use mode_t and dev_t in mknod prototype.
1177         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
1178         use 'const struct dirent **' as argument types to CMP function pointer
1179         argument.
1180         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
1181         (File Times): Fix summary magic @comment for struct utimbuf and utime
1182         to refer to utime.h, not time.h.
1183         * manual/string.texi (Argz Functions): Add missing const in
1184         argz_extract and argz_next prototypes.
1185         (Finding Tokens in a String): Likewise for basename.
1186         (String/Array Comparison): Fix typo in wcscasecmp prototype.
1187         (Copying and Concatenation): Fix typo in wmemmove prototype.
1188         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
1189         (Signal Stack): Remove erroneous const in sigstack prototype.
1190         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
1191         prototype.
1192         (Simple Calendar Time): Likewise for stime.
1193         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
1194         prototype.
1195         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
1196         say sys/sysctl.h instead.
1197         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
1198         and vsyslog prototypes.
1200 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1202         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
1203         Remove.
1205 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1207         * misc/sys/mman.h: Fix typo in mremap comment.
1209 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1211         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
1212         the '\0' terminator.
1214 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1216         [BZ #13550]
1217         * debug/segfault.c: Don't include <bp-checks.h>.
1218         * sysdeps/generic/bp-checks.h: Remove file.
1219         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
1220         (__GETDENTS): Don't use CHECK_N.
1221         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
1222         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1223         (__getgroups): Don't use CHECK_N.
1224         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1225         (setgroups): Don't use CHECK_N.
1226         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
1227         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1228         (__libc_msgrcv): Don't use CHECK_N.
1229         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
1230         (__libc_msgsnd): Don't use CHECK_N.
1231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
1232         <bp-checks.h>.
1233         (__libc_pread): Don't use CHECK_N.
1234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
1235         include <bp-checks.h>.
1236         (__libc_pread64): Don't use CHECK_N.
1237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
1238         include <bp-checks.h>.
1239         (__libc_pwrite): Don't use CHECK_N.
1240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
1241         include <bp-checks.h>.
1242         (__libc_pwrite64): Don't use CHECK_N.
1243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
1244         <bp-checks.h>.
1245         (__libc_pread): Don't use CHECK_N.
1246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
1247         include <bp-checks.h>.
1248         (__libc_pread64): Don't use CHECK_N.
1249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
1250         include <bp-checks.h>.
1251         (__libc_pwrite): Don't use CHECK_N.
1252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
1253         include <bp-checks.h>.
1254         (__libc_pwrite64): Don't use CHECK_N.
1255         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
1256         (do_pread): Don't use CHECK_N.
1257         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
1258         (do_pread64): Don't use CHECK_N.
1259         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
1260         (do_pwrite): Don't use CHECK_N.
1261         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
1262         (do_pwrite64): Don't use CHECK_N.
1263         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
1264         (__libc_readv): Don't use CHECK_N.
1265         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
1266         (semop): Don't use CHECK_N.
1267         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
1268         <bp-checks.h>.
1269         (semtimedop): Don't use CHECK_N.
1270         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
1271         (__libc_pread): Don't use CHECK_N.
1272         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
1273         <bp-checks.h>.
1274         (__libc_pread64): Don't use CHECK_N.
1275         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
1276         <bp-checks.h>.
1277         (__libc_pwrite): Don't use CHECK_N.
1278         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
1279         <bp-checks.h>.
1280         (__libc_pwrite64): Don't use CHECK_N.
1281         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
1282         <bp-checks.h>.
1283         (__libc_msgrcv): Don't use CHECK_N.
1284         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
1285         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
1286         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
1287         (__libc_writev): Don't use CHECK_N.
1289 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1291         * string/strcpy.c: Removed unused variable.
1293         * Makeconfig (+sysdep-includes): Define with := rather than =.
1294         Use an existing include/ subdir of each sysdeps dir before it.
1296 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1298         * nscd/connection.c (register_traced_file): Comment function.
1299         [HAVE_INOTIFY] (union __inev): Define.
1300         [HAVE_INOTIFY] (inotify_check_files): New function.
1301         [HAVE_INOTIFY] (clear_db_cache): Likewise.
1302         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
1303         clear_db_cache.
1304         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
1306 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1308         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
1309         loaded if not already and that a failure is permanent.
1311 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1313         [BZ #15006]
1314         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
1315         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
1317 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1319         [BZ #13550]
1320         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
1321         (CHECK_1_NULL_OK): Likewise.
1322         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
1323         (__fxstat): Do not use CHECK_1.
1324         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
1325         <bp-checks.h>.
1326         (___fxstat64): Do not use CHECK_1.
1327         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
1328         <bp-checks.h>.
1329         (__fxstatat): Do not use CHECK_1.
1330         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
1331         <bp-checks.h>.
1332         (__fxstatat64): Do not use CHECK_1.
1333         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
1334         <bp-checks.h>.
1335         (__fxstat): Do not use CHECK_1.
1336         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
1337         <bp-checks.h>.
1338         (__fxstatat): Do not use CHECK_1.
1339         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1340         <bp-checks.h>.
1341         (__getresgid): Do not use CHECK_1.
1342         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1343         <bp-checks.h>.
1344         (__getresuid): Do not use CHECK_1.
1345         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
1346         <bp-checks.h>.
1347         (__lxstat): Do not use CHECK_1.
1348         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1349         <bp-checks.h>.
1350         (__old_msgctl): Do not use CHECK_1.
1351         (__new_msgctl): Likewise.
1352         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
1353         <bp-checks.h>.
1354         (__new_setrlimit): Do not use CHECK_1.
1355         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1356         <bp-checks.h>.
1357         (__old_shmctl): Do not use CHECK_1.
1358         (__new_shmctl): Likewise.
1359         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
1360         <bp-checks.h>.
1361         (__xstat): Do not use CHECK_1.
1362         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
1363         (__lxstat): Do not use CHECK_1.
1364         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
1365         <bp-checks.h>.
1366         (___lxstat64): Do not use CHECK_1.
1367         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
1368         (__old_msgctl): Do not use CHECK_1.
1369         (__new_msgctl): Likewise.
1370         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
1371         <bp-checks.h>.
1372         (__gettimeofday): Do not use CHECK_1.
1373         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
1374         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
1375         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
1376         <bp-checks.h>.
1377         (__gettimeofday): Do not use CHECK_1.
1378         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
1379         (__old_shmctl): Do not use CHECK_1_NULL_OK.
1380         (__new_shmctl): Do not use CHECK_1.
1381         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
1382         <bp-checks.h>.
1383         (do_sigtimedwait): Do not use CHECK_1.
1384         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
1385         <bp-checks.h>.
1386         (do_sigwaitinfo): Do not use CHECK_1.
1387         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
1388         <bp-checks.h>.
1389         (msgctl): Do not use CHECK_1.
1390         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
1391         <bp-checks.h>.
1392         (shmctl): Do not use CHECK_1.
1393         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
1394         (ustat): Do not use CHECK_1.
1395         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
1396         <bp-checks.h>.
1397         (__fxstat): Do not use CHECK_1.
1398         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
1399         <bp-checks.h>.
1400         (__fxstatat): Do not use CHECK_1.
1401         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
1402         <bp-checks.h>.
1403         (__lxstat): Do not use CHECK_1.
1404         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
1405         <bp-checks.h>.
1406         (__xstat): Do not use CHECK_1.
1407         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
1408         (__xstat): Do not use CHECK_1.
1409         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
1410         (___xstat64): Do not use CHECK_1.
1412         [BZ #13550]
1413         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
1414         definitions.
1415         (CHECK_BOUNDS_HIGH): Likewise.
1416         * string/strcpy.c: Do not include <bp-checks.h>.
1417         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
1419 2013-02-07  Roland McGrath  <roland@hack.frob.com>
1421         * nscd/nscd-client.h (__nscd_drop_map_ref):
1422         Add __attribute__ ((unused)).
1423         * nis/nss-nisplus.h (niserr2nss): Likewise.
1425         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
1426         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
1428         * csu/libc-tls.c (init_static_tls, init_slotinfo):
1429         Remove inline keyword.
1430         * include/rounding-mode.h (round_away): Likewise.
1431         * libio/wfileops.c (adjust_wide_data): Likewise.
1432         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
1433         (__m128i_strloadu_tolower): Likewise.
1434         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
1435         (__m128i_strloadu_tolower): Likewise.
1436         * time/mktime.c (ydhms_diff): Likewise.
1437         * locale/elem-hash.h (elem_hash): Likewise.
1438         * locale/setlocale.c (setdata): Likewise.
1439         * posix/regex_internal.h (re_string_char_size_at): Likewise.
1440         (re_string_wchar_at): Likewise.
1441         (bitset_not, bitset_merge, bitset_mask): Likewise.
1442         [!(__GNUC__ > 3)] (inline): Remove macro.
1443         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
1444         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
1445         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
1446         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1447         * string/memcmp.c (memcmp_bytes): Likewise.
1448         * locale/programs/locarchive.c (compute_hashval): Likewise.
1449         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
1450         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
1451         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
1452         * nss/getent.c (print_rpc, print_protocols): Likewise.
1453         (print_passwd, print_group, print_aliases): Likewise.
1454         * nis/nss-nisplus.h (niserr2nss): Likewise.
1455         * nscd/connections.c (restart_p): Likewise.
1456         Change return type to bool.
1458 2013-02-05  Roland McGrath  <roland@hack.frob.com>
1460         * Makeconfig (all-Depend-files): Add existing
1461         $(sorted-subdirs:=/Depend) files.
1462         (all-subdirs): Remove nss.
1463         * sysdeps/unix/inet/Subdirs: Add it here instead.
1464         * hesiod/Depend: New file.
1466         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
1467         instead of calling alloca.
1469         * io/lseek.c (__lseek): Rename to __libc_lseek.
1470         Define __lseek as an alias.
1472         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
1474 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
1476         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
1477         else clause and remove check for non-standard endianness.
1479 2013-02-04  David S. Miller  <davem@davemloft.net>
1481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1483 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
1485         [BZ #13550]
1486         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
1487         (__ubp_memchr): Remove prototype.
1488         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
1489         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1490         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
1491         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1492         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
1493         Remove alias.
1494         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
1495         (__ubp_memchr): Likewise.
1496         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
1497         (__ubp_memchr): Likewise.
1498         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
1499         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
1500         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
1501         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
1502         CHECK_STRING.
1503         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
1504         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
1505         (__getcwd): Do not use CHECK_STRING.
1506         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1507         <bp-checks.h>.
1508         (__real_chown): Do not use CHECK_STRING.
1509         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
1510         <bp-checks.h>.
1511         (fchownat): Do not use CHECK_STRING.
1512         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
1513         CHECK_STRING.
1514         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1515         <bp-checks.h>.
1516         (__lchown): Do not use CHECK_STRING.
1517         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1518         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1519         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1520         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
1521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1522         include <bp-checks.h>.
1523         (truncate64): Do not use CHECK_STRING.
1524         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
1525         <bp-checks.h>.
1526         (__real_chown): Do not use CHECK_STRING.
1527         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
1528         <bp-checks.h>.
1529         (__lchown): Do not use CHECK_STRING.
1530         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
1531         <bp-checks.h>.
1532         (__chown): Do not use CHECK_STRING.
1533         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
1534         <bp-checks.h>.
1535         (truncate64): Do not use CHECK_STRING.
1536         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
1537         Likewise.
1538         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
1539         (__xmknod): Do not use CHECK_STRING.
1540         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
1541         <bp-checks.h>.
1542         (__xmknodat): Do not use CHECK_STRING.
1543         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1544         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
1546 2013-02-04  Andreas Schwab  <schwab@suse.de>
1548         [BZ #14142]
1549         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
1550         * include/netdb.h: Likewise for h_errno.
1551         * elf/tst-stackguard1.c: Include <tls.h>.
1553 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1555         * elf/link.h (struct link_map): Extend the l_addr comment.
1556         * include/link.h (struct link_map): Likewise.
1558 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
1560         [BZ #13550]
1561         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
1562         (BOUNDED_1): Remove macro.
1563         * debug/backtrace.c: Don't include <bp-checks.h>.
1564         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
1565         (__backtrace): Likewise.
1566         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
1567         <bp-checks.h>.
1568         (__backtrace): Don't use BOUNDED_1.
1569         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
1570         <bp-checks.h>.
1571         (__backtrace): Don't use BOUNDED_1.
1572         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
1573         (__backtrace): Don't use BOUNDED_1.
1574         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
1575         (shmat): Don't use BOUNDED_N.
1577 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
1579         [BZ #13550]
1580         * sysdeps/generic/bp-start.h: Remove file.
1581         * csu/libc-start.c: Don't include <bp-start.h>.
1582         (LIBC_START_MAIN): Set up __environ directly instead of using
1583         INIT_ARGV_and_ENVIRON.
1584         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
1585         <bp-start.h>.
1587         [BZ #13550]
1588         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
1589         definitions.
1590         (CHECK_FCNTL): Likewise.
1591         (CHECK_N_PAGES): Likewise.
1593         [BZ #13550]
1594         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
1595         definitions.
1596         (CHECK_SIGSET_NULL_OK): Likewise.
1597         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
1598         <bp-checks.h>.
1599         (sigpending): Don't use CHECK_SIGSET.
1600         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
1601         <bp-checks.h>.
1602         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1603         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
1604         <bp-checks.h>.
1605         (do_sigsuspend): Don't use CHECK_SIGSET.
1606         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
1607         use CHECK_SIGSET.
1608         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
1609         (do_sigwait): Don't use CHECK_SIGSET.
1610         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
1611         use CHECK_SIGSET.
1612         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
1613         include <bp-checks.h>.
1614         (sigpending): Don't use CHECK_SIGSET.
1615         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
1616         include <bp-checks.h>.
1617         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1618         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
1619         <bp-checks.h>.
1620         (sigpending): Don't use CHECK_SIGSET.
1621         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
1622         <bp-checks.h>.
1623         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1625         [BZ #13550]
1626         * sysdeps/generic/bp-semctl.h: Remove file.
1627         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
1628         <bp-checks.h> and <bp-semctl.h>.
1629         (__old_semctl): Don't use CHECK_SEMCTL.
1630         (__new_semctl): Likewise.
1631         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
1632         and <bp-semctl.h>.
1633         (__old_semctl): Don't use CHECK_SEMCTL.
1634         (__new_semctl): Likewise.
1635         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
1636         <bp-checks.h> and <bp-semctl.h>.
1637         (__old_semctl): Don't use CHECK_SEMCTL.
1638         (__new_semctl): Likewise.
1639         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
1640         <bp-checks.h> and <bp-semctl.h>.
1641         (semctl): Don't use CHECK_SEMCTL.
1643         [BZ #13550]
1644         * Makerules (elide-bp-thunks): Remove variable.
1645         (elide-routines.oS): Don't use $(elide-bp-thunks).
1646         (elide-routines.os): Likewise.
1647         (elide-routines.o): Likewise.
1648         (elide-routines.op): Likewise.
1649         (elide-routines.og): Likewise.
1650         (objects): Don't use $(bp-thunks).
1651         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
1652         include.
1653         (common-generated): Do not add s-proto-bp.d.
1654         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
1655         (int): Likewise.
1656         (typ): Likewise.
1657         Do not generate makefile rules for bounded-pointer thunks.
1658         * sysdeps/generic/bp-thunks.h: Remove file.
1659         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1660         * sysdeps/unix/s-proto-bp.S: Likewise.
1662         [BZ #15062]
1663         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
1664         parts of result separately when argument is not close to line from
1665         -i to i and one part of argument is small.
1666         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1667         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1668         * math/libm-test.inc (cacos_test): Add more tests.
1669         (casin_test): Likewise.
1670         (casinh_test): Likewise.
1671         * sysdeps/i386/fpu/libm-test-ulps: Update.
1672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1674 2013-01-31  David S. Miller  <davem@davemloft.net>
1676         * po/de.po: Update from translation team.
1678 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
1680         * time/tzfile.c: Include stdint.h for SIZE_MAX.
1682 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
1684         * configure.in (_AC_PROG_CC_C89): New definition.
1685         * configure: Regenerate.
1687         * configure.in (AC_PROG_CPP): New definition.
1688         * configure: Regenerate.
1690 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
1692         * debug/tst-backtrace.h: New file.
1693         * debug/tst-backtrace2.c: Include tst-backtrace.h.
1694         (ret): Remove variable.
1695         (x): Likewise.
1696         (FAIL): Remove macro.
1697         (NO_INLINE): Likewise.
1698         (fn1): Use match function instead of strstr.
1699         * debug/tst-backtrace3.c: Include tst-backtrace.h.
1700         (ret): Remove variable.
1701         (x): Likewise.
1702         (FAIL): Remove macro.
1703         (NO_INLINE): Likewise.
1704         (fn): Use match function instead of strstr.
1705         * debug/tst-backtrace4.c: Include tst-backtrace.h.
1706         (ret): Remove variable.
1707         (x): Likewise.
1708         (FAIL): Remove macro.
1709         (NO_INLINE): Likewise.
1710         (handle_signal): Use match function instead of strstr.
1711         * debug/tst-backtrace5.c: Include tst-backtrace.h.
1712         (ret): Remove variable.
1713         (x): Likewise.
1714         (FAIL): Remove macro.
1715         (NO_INLINE): Likewise.
1716         (handle_signal): Use match function instead of strstr.
1718 2013-01-23  Roland McGrath  <roland@hack.frob.com>
1720         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
1722 2013-01-23  David S. Miller  <davem@davemloft.net>
1724         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1725         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
1726         argument of CAS if possible.
1727         * sysdeps/sparc/sparc64/bits/atomic.h
1728         (__arch_compare_and_exchange_val_32_acq): Likewise.
1729         (__arch_compare_and_exchange_val_64_acq): Likewise.
1731 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
1733         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
1734         * sysdeps/posix/ulimit.c: ... this.
1735         Include <limits.h>.
1736         * sysdeps/unix/bsd/ulimit.c: Remove file.
1738 2013-01-23  Adam Conrad  <adconrad@0c3.net>
1740         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
1741         (LDFLAGS-tst-array5): Likewise.
1743 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
1745         [BZ #15036]
1746         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
1747         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
1748         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
1749         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
1751 2013-01-21  David S. Miller  <davem@davemloft.net>
1753         * sysdeps/sparc/backtrace.c: New file.
1754         * sysdeps/sparc/sparc32/backtrace.h: New file.
1755         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
1756         * sysdeps/sparc/sparc64/backtrace.h: New file.
1757         * sysdeps/sparc/sparc64/backtrace.c: Delete.
1758         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
1759         -funwind-tables.
1761 2013-01-21  Andreas Schwab  <schwab@suse.de>
1763         [BZ #15020]
1764         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
1765         closed its stdout.
1767 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
1769         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
1770         "mpa2.h".
1771         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1773 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
1774             Mark Mitchell  <mark@codesourcery.com>
1775             Tom de Vries  <tom@codesourcery.com>
1776             Paul Pluzhnikov  <ppluzhnikov@google.com>
1778         * debug/tst-backtrace2.c: New file.
1779         * debug/tst-backtrace3.c: Likewise.
1780         * debug/tst-backtrace4.c: Likewise.
1781         * debug/tst-backtrace5.c: Likewise.
1782         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
1783         (CFLAGS-tst-backtrace3.c): Likewise.
1784         (CFLAGS-tst-backtrace4.c): Likewise.
1785         (CFLAGS-tst-backtrace5.c): Likewise.
1786         (LDFLAGS-tst-backtrace2): Likewise.
1787         (LDFLAGS-tst-backtrace3): Likewise.
1788         (LDFLAGS-tst-backtrace4): Likewise.
1789         (LDFLAGS-tst-backtrace5): Likewise.
1790         (tests): Add new tests tst-backtrace2, tst-backtrace3,
1791         tst-backtrace4 and tst-backtrace5.
1793 2013-01-18  Anton Blanchard  <anton@samba.org>
1794             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1796         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
1797         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
1798         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
1799         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
1800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1801         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
1802         "+r" and remove output regs list as redundant.  Add explicit inline
1803         asm to specify register of return val to work around compiler codegen
1804         bug.  Remove (int) cast on return value.  Add return type parameter to
1805         use in macro so that this macro does not truncate return value for
1806         64-bit values.
1807         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
1808         pass to INTERNAL_VSYSCALL_NCS.
1809         (INLINE_VSYSCALL): Add 'long int' as return type to
1810         INTERNAL_VSYSCALL_NCS macro invocation.
1811         (INTERNAL_VSYSCALL): Add 'long int' as return type to
1812         INTERNAL_VSYSCALL_NCS macro invocation.
1813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1815 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1817         [BZ #14496]
1818         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
1819         Fix application of SIMD FP exception mask.
1821         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
1822         mp_no from a power of two.
1823         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
1824         __mpexp_twomm1.  Use __pow_mp.
1826         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
1827         multiplication.
1829 2013-01-17  David S. Miller  <davem@davemloft.net>
1831         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1833 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1835         [BZ #15023]
1836         * include/complex.h: Condition contents on [!_COMPLEX_H].
1837         (__kernel_casinhf): New prototype.
1838         (__kernel_casinh): Likewise.
1839         (__kernel_casinhl): Likewise.
1840         * math/Makefile (libm_calls): Add k_casinh.
1841         * math/k_casinh.c: New file.
1842         * math/k_casinhf.c: Likewise.
1843         * math/k_casinhl.c: Likewise.
1844         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
1845         finite nonzero arguments.
1846         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
1847         finite nonzero arguments.
1848         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
1849         finite nonzero arguments.
1850         * math/s_casinh.c: Do not include <float.h>.
1851         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
1852         * math/s_casinhf.c: Do not include <float.h>.
1853         (__casinhf): Move code for finite nonzero arguments to
1854         k_casinhf.c.
1855         * math/s_casinhl.c: Do not include <float.h>.
1856         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
1857         redefine.
1858         (__casinhl): Move code for finite nonzero arguments to
1859         k_casinhl.c.
1860         * math/libm-test.inc (cacos_test): Add more tests.
1861         * sysdeps/i386/fpu/libm-test-ulps: Update.
1862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1864 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
1866         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
1867         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
1868         [!HAVE_MREMAP]: Remove [defined linux] case.
1869         * malloc/arena.c: Do not include <malloc-sysdep.h>.
1871 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1873         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
1875 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1877         * elf/elf.h (R_386_SIZE32): New relocation.
1878         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
1879         R_386_SIZE32.
1880         (elf_machine_rela): Likewise.
1881         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1882         R_X86_64_SIZE64 and R_X86_64_SIZE32.
1884 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1886         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
1887         (FP_FAST_FMA): Do not define.
1888         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
1889         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
1890         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
1891         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
1892         !_SOFT_FLOAT]: Likewise.
1893         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
1894         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
1895         value.
1896         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
1897         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
1898         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
1899         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
1900         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
1901         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
1902         file.
1904 2013-01-16  Andreas Schwab  <schwab@suse.de>
1906         [BZ #14327]
1907         * include/stdlib.h (__mktemp): Add declaration.
1908         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
1909         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
1911 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1913         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
1914         definitions.
1915         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1916         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
1917         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
1918         definitions here.
1919         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
1920         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
1921         definitions.
1922         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
1923         and ONE.
1924         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
1925         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
1926         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
1927         definitions.
1928         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
1929         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
1930         definitions.
1931         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1933         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
1935 2013-01-15  David S. Miller  <davem@davemloft.net>
1937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1938         trunc{,f} to libm-sysdep_routes.
1939         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
1941         file.
1942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
1943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
1944         file.
1945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
1946         file.
1947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
1948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
1949         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
1950         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
1951         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
1952         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
1953         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
1954         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
1956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1957         nearbyint{,f} to libm-sysdep_routes.
1958         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
1960         New file.
1961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
1962         file.
1963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
1964         New file.
1965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
1966         file.
1967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
1968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
1969         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
1970         file.
1971         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
1972         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
1973         file.
1974         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
1975         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
1976         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
1978         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
1979         libc_feholdexcept and libc_fesetenv.
1981 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
1983         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
1985 2013-01-14  David S. Miller  <davem@davemloft.net>
1987         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
1988         (SPARC_ASM_VIS2_IFUNC): Likewise.
1989         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
1990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
1991         use of 'siam' instruction.
1992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
1993         Likewise.
1994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
1995         Likewise.
1996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
1997         Likewise.
1998         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
1999         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
2000         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
2001         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
2002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
2003         file.
2004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
2005         file.
2006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
2007         file.
2008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
2009         file.
2010         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
2011         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
2012         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
2013         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
2014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
2015         new VIS2 routines.
2016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
2019         Likewise.
2020         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2021         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2022         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2023         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
2025         routines to libm-sysdep_routines.
2026         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2029         fdim/fdimf to libm-sysdep_routines.
2030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
2031         file.
2032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
2033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
2034         file.
2035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
2036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
2037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
2038         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
2039         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
2040         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
2041         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
2043 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2045         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
2046         to optimize copies.
2048         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
2049         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2050         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2052         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
2053         local variable MPTWO.
2054         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2055         Likewise.
2057 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2059         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
2060         GLOB_NOESCAPE.
2062 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2064         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
2066 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2068         * manual/pattern.texi (glob_t): Document gl_flags.
2069         (glob64_t): Likewise.
2071 2013-01-11  David S. Miller  <davem@davemloft.net>
2073         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
2074         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
2075         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
2076         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
2077         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
2078         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
2079         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
2080         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
2081         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
2082         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
2083         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
2084         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
2085         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
2087         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2088         sparc V9 rather than using V8 code.
2089         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2090         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2092         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2093         Move to...
2094         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
2095         Here.
2097 2013-01-11  Roland McGrath  <roland@hack.frob.com>
2099         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
2100         not in the main loop.
2101         * configure: Regenerated.
2103 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
2105         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
2106         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
2107         to just #else.
2108         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
2109         [!__GLIBC_HAVE_LONG_LONG] case.
2110         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
2111         condition to just #else.
2112         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
2113         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
2114         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
2115         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
2116         unconditional.
2117         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
2118         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2119         #elif condition to just #else.
2120         * sysdeps/unix/sysv/linux/sys/sysmacros.h
2121         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
2122         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2123         #elif condition to just #else.
2125 2013-01-11  Steve Ellcey  <sellcey@mips.com>
2127         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
2128         (EF_MIPS_ARCH_64): Fix value.
2129         (EF_MIPS_ARCH_32R2): New.
2130         (EF_MIPS_ARCH_64R2): New.
2132 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
2134         * Makeconfig (+link-pie-before-libc): New.
2135         (+link-pie-after-libc): Likewise.
2136         (+link-pie-tests): Likewise.
2137         (+link-pie): Rewritten.
2138         (link-before-libc): Remove $(config-LDFLAGS).
2139         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
2140         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
2141         (config-LDFLAGS): Renamed to ...
2142         (rtld-LDFLAGS): This.
2143         (rtld-tests-LDFLAGS): New macro.
2144         (link-libc-rpath-link): Likewise.
2145         (link-libc-tests-rpath-link): Likewise.
2146         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
2147         (link-libc): Prepand $(link-libc-rpath-link).
2148         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
2149         (test-program-prefix): New macro.
2150         (test-via-rtld-prefix): Likewise.
2151         (test-program-cmd): Likewise.
2152         (host-test-program-cmd): Likewise.
2153         * Makefile ($(common-objpfx)testrun.sh): Replace
2154         $(run-program-prefix) with $(test-program-prefix).
2155         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
2156         $(rtld-LDFLAGS).
2157         ($(common-objpfx)shlib.lds): Likewise.
2158         (build-module-helper): Likewise.
2159         ($(common-objpfx)format.lds): Likewise.
2160         * Rules (binaries-pie-tests): New.
2161         (binaries-pie-notests): Likewise.
2162         (binaries-pie): Rewritten.
2163         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
2164         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
2165         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
2166         (make-test-out): Replace $(host-built-program-cmd) with
2167         $(host-test-program-cmd).
2168         * config.make.in (build-hardcoded-path-in-tests): New variable.
2169         * configure.in (--enable-hardcoded-path-in-tests): New configure
2170         option.
2171         (hardcoded_path_in_tests): New AC_SUBST.
2172         * configure: Regenerated.
2173         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
2174         $(built-program-cmd) with $(test-program-cmd).
2175         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
2176         (test_program_cmd): This.
2177         * elf/Makefile ($(objpfx)order.out): Run test with
2178         $(test-program-prefix).
2179         ($(objpfx)order2.out): Likewise.
2180         ($(objpfx)tst-initorder.out): Likewise.
2181         ($(objpfx)tst-initorder2.out): Likewise.
2182         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
2183         $(test-program-cmd).
2184         ($(objpfx)tst-array1-static.out): Likewise.
2185         ($(objpfx)tst-array2.out): Likewise.
2186         ($(objpfx)tst-array3.out): Likewise.
2187         ($(objpfx)tst-array4.out): Likewise.
2188         ($(objpfx)tst-array5.out): Likewise.
2189         ($(objpfx)tst-array5-static.out): Likewise.
2190         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
2191         $(test-program-cmd).
2192         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
2193         $(run-program-prefix) with $(test-program-prefix).
2194         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
2195         (test_program_prefix): This.
2196         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
2197         $(run-program-prefix) with $(test-program-prefix).
2198         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
2199         (test_program_prefix): This.
2200         * iconvdata/tst-tables.sh: Likewise.
2201         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
2202         $(run-program-prefix) with $(test-program-prefix).
2203         ($(objpfx)tst-translit.out): Likewise.
2204         ($(objpfx)tst-gettext2.out): Likewise.
2205         ($(objpfx)tst-gettext4.out): Likewise.
2206         ($(objpfx)tst-gettext6.out): Likewise.
2207         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
2208         (test_program_prefix): This.
2209         * intl/tst-gettext2.sh: Likewise.
2210         * intl/tst-gettext4.sh  Likewise.
2211         * intl/tst-gettext6.sh: Likewise.
2212         * intl/tst-translit.sh: Likewise.
2213         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
2214         with $(test-program-cmd).
2215         * libio/Makefile ($(objpfx)test-freopen.out): Replace
2216         $(run-program-prefix) with $(test-program-prefix).
2217         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
2218         (test_program_prefix): This.
2219         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
2220         $(run-program-prefix) with $(test-program-prefix).
2221         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
2222         (test_program_prefix): This.
2223         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
2224         * posix/Makefile ($(objpfx)globtest.out): Replace
2225         $(run-via-rtld-prefix) and $(test-wrapper) with
2226         $(test-program-prefix) and $(test-via-rtld-prefix).
2227         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
2228         $(test-program-prefix).
2229         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
2230         $(host-test-program-cmd).
2231         (tst-spawn-ARGS): Likewise.
2232         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
2233         $(test-program-prefix).
2234         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
2235         (test_via_rtld_prefix): This.
2236         (test_wrapper): Renamed to ...
2237         (test_program_prefix): This.
2238         (run_program_prefix): Replaced by test_program_prefix.
2239         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
2240         (test_program_prefix): This.
2241         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
2242         with $(host-test-program-cmd).
2243         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
2244         $(run-program-prefix) with $(test-program-prefix).
2245         ($(objpfx)tst-printf.out): Likewise.
2246         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
2247         $(test-program-cmd).
2248         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
2249         (test_program_prefix): This.
2250         * stdio-common/tst-unbputc.sh: Likewise.
2251         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
2252         $(run-program-prefix) with $(test-program-prefix).
2253         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
2254         (test_program_prefix): This.
2255         * string/Makefile ($(objpfx)tst-svc.out):  Replace
2256         $(built-program-cmd) with $(test-program-cmd).
2258 2013-01-11  Andreas Jaeger  <aj@suse.de>
2260         [BZ #15003]
2261         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
2262         value. Sync with Linux 3.7.
2264 2013-01-10  David S. Miller  <davem@davemloft.net>
2266         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
2267         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2268         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2270 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2272         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
2273         never set.
2274         * configure: Regenerated.
2276 2013-01-10  David S. Miller  <davem@davemloft.net>
2278         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2279         sparc V9 rather than using V8 code.
2280         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2281         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2283 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2285         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
2286         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
2287         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
2288         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
2289         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
2290         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
2291         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
2292         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
2293         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
2294         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
2295         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
2296         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
2297         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
2298         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
2299         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
2300         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
2301         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
2302         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
2303         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
2304         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
2305         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
2306         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
2307         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
2308         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
2309         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
2310         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
2311         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
2313 2013-01-10  David S. Miller  <davem@davemloft.net>
2315         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2317 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2319         * posix/Makefile (tests-static): New variable.
2320         (tests): Add $(tests-static).
2321         (tst-exec-static-ARGS): New variable.
2322         (tst-spawn-static-ARGS): Likewise.
2323         * posix/tst-exec-static.c: New file.
2324         * posix/tst-spawn-static.c: Likewise.
2325         * posix/tst-exec.c: Support run directly.
2326         * posix/tst-spawn.c: Likewise.
2328 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
2330         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
2331         long.
2332         * math/bits/mathcalls.h (llrint): Likewise.
2333         (llround): Likewise.
2334         * stdlib/stdlib.h (struct drand48_data): Likewise.
2335         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
2336         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
2337         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
2338         Likewise.
2339         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
2340         Likewise.
2341         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
2342         (elf_greg_t): Likewise.
2343         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
2344         (__jmp_buf): Likewise.
2345         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
2346         definitions.
2347         (llrint): Likewise, for all definitions.
2348         (llrintl): Likewise.
2350         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
2351         Remove [__GNUC__] condition.
2352         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
2353         condition to just [__USE_ISOC99].
2354         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
2356 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2358         [BZ #14200]
2359         * sysdeps/unix/sysv/linux/x86/bits/environments.h
2360         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
2361         defined.
2362         (_POSIX_V6_ILP32_OFF32): Likewise.
2363         (_XBS5_ILP32_OFF32): Likewise.
2364         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
2365         (__ILP32_OFFBIG_LDFLAGS): Likewise.
2367 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2369         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
2371         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
2372         doubles __mpexp_twomm1.  Adjust usage.
2373         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
2374         Remove.
2376 2013-01-10  Andreas Schwab  <schwab@suse.de>
2378         [BZ #14964]
2379         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
2380         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
2382 2013-01-09  David S. Miller  <davem@davemloft.net>
2384         [BZ #15003]
2385         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
2386         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
2387         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
2388         TCP_FASTOPEN): Define.
2389         (tcp_repair_opt): New structure.
2390         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
2391         enum values.
2392         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
2393         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
2394         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
2395         (tcp_cookie_transactions): New structure.
2397 2013-01-09  Anton Blanchard  <anton@samba.org>
2399         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
2400         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
2401         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
2402         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
2404 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
2406         * include/features.h (__USE_ANSI): Remove.
2408 2013-01-09  Roland McGrath  <roland@hack.frob.com>
2410         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
2412         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
2414 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
2416         * sysdeps/s390/fpu/libm-test-ulps: Update.
2418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2420         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
2421         (__acr): Likewise.
2422         (__cpy): Likewise.
2423         (norm): Likewise.
2424         (denorm): Likewise.
2425         (__mp_dbl): Likewise.
2426         (__dbl_mp): Likewise.
2427         (add_magnitudes): Likewise.
2428         (sub_magnitudes): Likewise.
2429         (__add): Likewise.
2430         (__sub): Likewise.
2431         (__mul): Likewise.
2432         (__inv): Likewise.
2433         (__dvd): Likewise.
2434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
2435         (__acr): Likewise.
2436         (__cpy): Likewise.
2437         (norm): Likewise.
2438         (denorm): Likewise.
2439         (__mp_dbl): Likewise.
2440         (__dbl_mp): Likewise.
2441         (add_magnitudes): Likewise.
2442         (sub_magnitudes): Likewise.
2443         (__add): Likewise.
2444         (__sub): Likewise.
2445         (__mul): Likewise.
2446         (__inv): Likewise.
2447         (__dvd): Likewise.
2448         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
2449         (__acr): Likewise.
2450         (__cpy): Likewise.
2451         (norm): Likewise.
2452         (denorm): Likewise.
2453         (__mp_dbl): Likewise.
2454         (__dbl_mp): Likewise.
2455         (add_magnitudes): Likewise.
2456         (sub_magnitudes): Likewise.
2457         (__add): Likewise.
2458         (__sub): Likewise.
2459         (__mul): Likewise.
2460         (__inv): Likewise.
2461         (__dvd): Likewise.
2463 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
2465         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
2466         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
2467         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
2468         2 && __USE_EXTERN_INLINES]: Likewise.
2470 2013-01-08  Andreas Jaeger  <aj@suse.de>
2472         [BZ# 14985]
2473         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
2474         Remove.
2475         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2476         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2478 2013-01-07  Anton Blanchard  <anton@samba.org>
2480         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
2481         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2482         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
2483         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
2484         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2485         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2486         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2487         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2488         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2489         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2490         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2491         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2492         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2493         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2494         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
2495         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2496         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2497         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2498         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
2499         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2500         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
2501         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
2502         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
2503         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
2504         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
2505         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2506         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2507         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
2508         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
2509         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2510         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
2511         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2512         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2513         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2514         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2515         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
2516         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2517         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2518         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
2519         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
2520         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
2521         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
2522         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2524 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
2526         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
2527         (__MALLOC_PMT): Likewise.
2528         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
2529         [__GNUC__], only on [_LIBC].
2530         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
2531         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
2532         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
2533         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
2534         forward declaration.
2535         (realloc_hook_ini): Likewise.
2536         (memalign_hook_ini): Likewise.
2537         (__libc_memalign): Do not use __MALLOC_PMT in variable
2538         declaration.
2539         (__libc_valloc): Likewise.
2540         (__libc_pvalloc): Likewise.
2541         (__libc_calloc): Likewise.
2542         (__posix_memalign): Likewise.
2544         [BZ #14996]
2545         * math/s_casinh.c: Include <float.h>.
2546         (__casinh): Do not do computation with squaring and square root
2547         for large arguments.
2548         * math/s_casinhf.c: Include <float.h>.
2549         (__casinhf): Do not do computation with squaring and square root
2550         for large arguments.
2551         * math/s_casinhl.c: Include <float.h>.
2552         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
2553         (__casinhl): Do not do computation with squaring and square root
2554         for large arguments.
2555         * math/libm-test.inc (casin_test): Add more tests.
2556         (casinh_test): Likewise.
2557         * sysdeps/i386/fpu/libm-test-ulps: Update.
2558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2560 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2562         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
2563         (__x86_64_raw_data_cache_size): Likewise.
2564         (__x86_64_data_cache_size_half): Likewise.
2565         (__x86_64_raw_data_cache_size_half): Likewise.
2566         (__x86_64_shared_cache_size): Likewise.
2567         (__x86_64_raw_shared_cache_size): Likewise.
2568         (__x86_64_shared_cache_size_half): Likewise.
2569         (__x86_64_raw_shared_cache_size_half): Likewise.
2570         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
2571         to ...
2572         (__x86_data_cache_size): This.
2573         (__x86_64_raw_data_cache_size): Renamed to ...
2574         (__x86_raw_data_cache_size): This.
2575         (__x86_64_data_cache_size_half): Renamed to ...
2576         (__x86_data_cache_size_half): This.
2577         (__x86_64_raw_data_cache_size_half): Renamed to ...
2578         (__x86_raw_data_cache_size_half): This.
2579         (__x86_64_shared_cache_size): Renamed to ...
2580         (__x86_shared_cache_size): This.
2581         (__x86_64_raw_shared_cache_size): Renamed to ...
2582         (__x86_raw_shared_cache_size): This.
2583         (__x86_64_shared_cache_size_half): Renamed to ...
2584         (__x86_shared_cache_size_half): This.
2585         (__x86_64_raw_shared_cache_size_half): Renamed to ...
2586         (__x86_raw_shared_cache_size_half): This.
2587         * sysdeps/x86_64/memcpy.S: Updated.
2588         * sysdeps/x86_64/memset.S: Likewise.
2589         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2590         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
2591         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2593 2013-01-04  David S. Miller  <davem@davemloft.net>
2595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2597 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
2599         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
2600         1 to avoid redefinition warning.
2601         (__USE_GNU): Don't define.
2602         (init_signaling_nan): Protoize.
2604         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2606 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2608         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
2609         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
2610         (__cpymn): Likewise.
2611         (norm): Remove commented code.
2612         (denorm): Likewise.
2613         (__mp_dbl): Likewise.
2614         (__inv): Likewise.
2615         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
2616         (__cpymn): Likewise.
2617         (norm): Remove commented code.
2618         (denorm): Likewise.
2619         (__mp_dbl): Likewise.
2620         (__inv): Likewise.
2622         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
2623         mp_no value for 1.0 and 2.0.
2624         (norm): Use RADIXI instead of radixi.d.
2625         (denorm): Likewise.
2626         (__mul): Use 0.0 instead of zero.d.
2627         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
2628         mp_no value for 1.0 and 2.0.
2629         (norm): Use RADIXI instead of radixi.d.
2630         (denorm): Likewise.
2631         (__mul): Use 0.0 instead of zero.d.
2633 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
2635         [BZ #14994]
2636         * math/s_casinh.c (__casinh): Reduce finite argument to first
2637         quadrant then set signs of results at the end.
2638         * math/s_casinhf.c (__casinhf): Likewise.
2639         * math/s_casinhl.c (__casinhl): Likewise.
2640         * math/libm-test.inc (casin_test): Add more tests.
2641         (casinh_test): Likewise.
2642         * sysdeps/i386/fpu/libm-test-ulps: Update.
2643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2645 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2647         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
2649         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
2651         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
2652         declarations.
2653         (denorm): Likewise.
2654         (__mp_dbl): Likewise.
2655         (__inv): Likewise.
2657         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
2658         and adjust the header comment.
2660         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
2661         variable name from declaration.
2663 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2666         Initialize COMMON_CPUID_INDEX_7 element.
2667         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
2668         (CPUID_RTM): Likewise.
2669         (HAS_RTM): Likewise.
2670         (COMMON_CPUID_INDEX_7): New enum.
2672 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
2674         [BZ #14981]
2675         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
2676         size is zero, record memory as freed.
2678 2013-01-03  Andreas Jaeger  <aj@suse.de>
2680         * po/ia.po: Add new Interlingua translation.
2682 2012-01-03  Allan McRae  <allan@archlinux.org>
2684         * locale/programs/localedef.c: Fix description of '--posix' flag.
2686 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
2688         * NEWS: Update dates in second copyright notice.
2689         * README: Update copyright dates in example.
2690         * manual/libc.texinfo: Update copyright dates.
2691         * scripts/test-installation.pl: Update copyright date in --version
2692         output.
2694         * hurd/ctty-input.c: Fix copyright notice formatting.
2695         * hurd/ctty-output.c: Likewise.
2696         * hurd/dtable.c: Likewise.
2697         * hurd/hurd-raise.c: Likewise.
2698         * hurd/hurdprio.c: Likewise.
2699         * hurd/msgportdemux.c: Likewise.
2700         * misc/sys/file.h: Likewise.
2701         * misc/sys/ioctl.h: Likewise.
2702         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2703         * sysdeps/mach/hurd/chdir.c: Likewise.
2704         * sysdeps/mach/hurd/fchdir.c: Likewise.
2705         * sysdeps/mach/hurd/rename.c: Likewise.
2706         * sysdeps/mach/hurd/rmdir.c: Likewise.
2707         * sysdeps/mach/hurd/seekdir.c: Likewise.
2708         * sysdeps/mach/hurd/setsid.c: Likewise.
2709         * sysdeps/posix/wait3.c: Likewise.
2711         * All files with FSF copyright notices: Update copyright dates
2712         using scripts/update-copyrights.
2713         * intl/plural.c: Regenerated.
2714         * locale/programs/charmap-kw.h: Likewise.
2715         * locale/programs/locfile-kw.h: Likewise.
2717 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2719         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
2720         four values.
2722         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
2723         calculation loop and add branch prediction.
2725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
2726         check access beyond bounds of m1np.
2728         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2729         MPTWO.
2730         (__inv): Remove local variable MPTWO to use the global
2731         constant.
2732         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
2733         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2734         variable MPTWO.
2735         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
2736         MP3HALFS static const.
2738 2013-01-01  David S. Miller  <davem@davemloft.net>
2740         * po/ca.po: Update from translation team.
2742 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
2744         * scripts/update-copyrights: New file.
2745         * Makeconfig: Reformat copyright notice.
2746         * ctype/ctype.h: Likewise.
2747         * debug/swprintf_chk.c: Likewise.
2748         * elf/dl-cache.c: Likewise.
2749         * elf/dl-debug.c: Likewise.
2750         * elf/dl-object.c: Likewise.
2751         * grp/initgroups.c: Likewise.
2752         * hurd/Makefile: Likewise.
2753         * hurd/hurd/signal.h: Likewise.
2754         * hurd/hurdfault.c: Likewise.
2755         * hurd/hurdioctl.c: Likewise.
2756         * hurd/hurdlookup.c: Likewise.
2757         * hurd/intr-msg.c: Likewise.
2758         * iconv/gconv_open.c: Likewise.
2759         * libio/swprintf.c: Likewise.
2760         * locale/lc-ctype.c: Likewise.
2761         * locale/nl_langinfo.c: Likewise.
2762         * mach/Machrules: Likewise.
2763         * mach/Makefile: Likewise.
2764         * malloc/obstack.h: Likewise.
2765         * manual/Makefile: Likewise.
2766         * manual/tsort.awk: Likewise.
2767         * misc/bits/stab.def: Likewise.
2768         * nis/nis_print_group_entry.c: Likewise.
2769         * nis/nis_table.c: Likewise.
2770         * nis/nss_compat/compat-pwd.c: Likewise.
2771         * nis/nss_compat/compat-spwd.c: Likewise.
2772         * po/Makefile: Likewise.
2773         * posix/fnmatch.c: Likewise.
2774         * posix/regex.h: Likewise.
2775         * resolv/Makefile: Likewise.
2776         * resolv/nss_dns/dns-network.c: Likewise.
2777         * resolv/res_hconf.c: Likewise.
2778         * scripts/gen-sorted.awk: Likewise.
2779         * soft-fp/soft-fp.h: Likewise.
2780         * stdio-common/printf.h: Likewise.
2781         * stdlib/monetary.h: Likewise.
2782         * stdlib/random.c: Likewise.
2783         * stdlib/random_r.c: Likewise.
2784         * sysdeps/generic/Makefile: Likewise.
2785         * sysdeps/gnu/Makefile: Likewise.
2786         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2787         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2788         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2789         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2790         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2791         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2792         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2793         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2794         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2795         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2796         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2797         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2798         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2799         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2800         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2801         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2802         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2803         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2804         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2805         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2806         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2807         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2808         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2809         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
2810         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
2811         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
2812         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
2813         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
2814         * sysdeps/mach/hurd/errnos.awk: Likewise.
2815         * sysdeps/mach/hurd/fork.c: Likewise.
2816         * sysdeps/mach/hurd/getcwd.c: Likewise.
2817         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2818         * sysdeps/mach/hurd/mmap.c: Likewise.
2819         * sysdeps/mach/hurd/utimes.c: Likewise.
2820         * sysdeps/mach/hurd/xmknod.c: Likewise.
2821         * sysdeps/posix/profil.c: Likewise.
2822         * sysdeps/posix/readdir_r.c: Likewise.
2823         * sysdeps/powerpc/bits/mathdef.h: Likewise.
2824         * sysdeps/powerpc/bits/setjmp.h: Likewise.
2825         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
2826         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2827         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2828         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2829         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2830         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2831         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2832         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2833         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2834         * sysdeps/pthread/lio_listio.c: Likewise.
2835         * sysdeps/sparc/dl-procinfo.h: Likewise.
2836         * sysdeps/unix/i386/sysdep.S: Likewise.
2837         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2838         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
2839         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2840         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2842         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
2843         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2844         * sysdeps/unix/sysv/linux/speed.c: Likewise.
2845         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
2846         * sysdeps/wordsize-32/divdi3.c: Likewise.
2847         * time/sys/time.h: Likewise.
2848         * wcsmbs/Makefile: Likewise.
2850 2013-01-01  David S. Miller  <davem@davemloft.net>
2852         * po/fr.po: Update from translation team.
2854         * catgets/gencat.c: Update copyright year.
2855         * csu/version.c: Likewise.
2856         * debug/catchsegv.sh: Likewise.
2857         * debug/pcprofiledump.c: Likewise.
2858         * debug/xtrace.sh: Likewise.
2859         * elf/ldconfig.c: Likewise.
2860         * elf/ldd.bash.in: Likewise.
2861         * elf/pldd.c: Likewise.
2862         * elf/sotruss.ksh: Likewise.
2863         * elf/sprof.c: Likewise.
2864         * iconv/iconv_prog.c: Likewise.
2865         * iconv/iconvconfig.c: Likewise.
2866         * locale/programs/locale.c: Likewise.
2867         * locale/programs/localedef.c: Likewise.
2868         * login/programs/pt_chown.c: Likewise.
2869         * malloc/memusage.sh: Likewise.
2870         * malloc/memusagestat.c: Likewise.
2871         * malloc/mtrace.pl: Likewise.
2872         * nscd/nscd.c: Likewise.
2873         * nss/getent.c: Likewise.
2874         * nss/makedb.c: Likewise.
2875         * posix/getconf.c: Likewise.
2877 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2879         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
2880         numbers.
2882 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
2884         * math/bits/mathcalls.h (modf): Use __nonnull.
2886 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2888         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
2889         (split): Use macro CN instead of the bare value.
2890         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
2891         could be used.
2892         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
2893         instead of the bare value.
2894         (power1): Likewise.
2896 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2898         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
2899         __ATAN_TWOM.
2900         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2902         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
2903         their values.
2904         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2905         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2906         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2907         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2909 2012-12-28  Andreas Jaeger  <aj@suse.de>
2911         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
2912         values are from Linux 3.7.
2914         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
2915         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
2917 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2919         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
2920         TRUE case.
2922         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
2923         (norm): Likewise.
2924         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
2925         variables with preprocessor constants.
2926         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2927         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2928         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2930 2012-12-27  Bruno Haible  <bruno@clisp.org>
2932         [BZ #14317]
2933         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
2934         only if needed.
2936 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2938         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
2939         and use variable directly.
2940         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
2942         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2943         MPONE.
2944         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
2945         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2946         variable MPONE.
2947         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2948         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2949         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
2950         include directive.  Remove local variable MPONE.
2951         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
2952         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
2953         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2955 2012-12-25  David S. Miller  <davem@davemloft.net>
2957         * version.h (RELEASE): Set to "development".
2958         (VERSION): Set to "2.17.90".
2959         * NEWS: Add 2.18 section.
2961 2012-12-21  David S. Miller  <davem@davemloft.net>
2963         * po/hr.po: Update from translation team.
2965 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2967         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
2969 2012-12-19  Steve Ellcey  <sellcey@mips.com>
2971         * NEWS:  Mention new memcpy for MIPS.
2973 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2975         * manual/contrib.texi (Contributors): Spelling correction.
2977 2012-12-15  David S. Miller  <davem@davemloft.net>
2979         * po/ru.po: Update from translation team.
2981 2012-12-13  David S. Miller  <davem@davemloft.net>
2983         * NEWS: Mention IFUNC testsuite enhancements.
2985         * po/pl.po: Update from translation team.
2986         * po/bg.po: Likewise.
2988         * manual/contrib.texi (Contributors): Update entries for Hongjiu
2989         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
2991 2012-12-11  David S. Miller  <davem@davemloft.net>
2993         * po/sv.po: Update from translation team.
2995         * po/vi.po: Update from translation team.
2997         * po/cs.po: Update from translation team.
2999         * po/de.po: Update from translation team.
3000         * po/eo.po: Likewise.
3001         * po/nl.po: Likewise.
3003 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3005         [BZ #14246]
3006         * manual/argp.texi (Argp Helper Functions): Move node to follow
3007         Argp Parsing State.
3009         [BZ #14872]
3010         * manual/conf.texi (Limits on File System Capacity): Mention if
3011         terminating null is included in the max size.
3013 2012-12-10  Andreas Jaeger  <aj@suse.de>
3015         * po/cs.po: Update from translation team.
3017 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3019         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
3020         void pointer and cast to uintptr_t.
3021         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
3022         path.
3023         * sysdeps/s390/s390-64/memcpy.S: Likewise.
3024         * sysdeps/s390/s390-64/memset.S: Likewise.
3026 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
3028         [BZ #14833]
3029         * menual/message.texi (Message Translation): Fix typos.
3030         (Helper programs for gettext): Likewise.
3032 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
3034         [BZ #14898]
3035         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
3036         Change to -1.
3038 2012-12-07  David S. Miller  <davem@davemloft.net>
3040         * po/libc.pot: Update.
3042 2012-12-07  Richard Henderson  <rth@redhat.com>
3044         [BZ #10114]
3045         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
3046         normal/normal case to before the switch.
3047         (_FP_DIV): Likewise.
3049 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
3050             Mike Frysinger  <vapier@gentoo.org>
3052         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
3053         check for __NR_fadvise64_64.
3055 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
3057         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
3058         0, not just to plain "0" as a statement.
3059         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
3060         with cw.
3062 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
3064         * NEWS: Use sourceware.org in Bugzilla URL.
3066 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3069         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3071         * stdio-common/tst-put-error.c (do_test): Add newline to the
3072         padded test to ensure flush.
3074 2012-12-05  Jeff Law  <law@redhat.com>
3076         * sunrpc/etc.rpc (fedfs_admin): Add entry.
3078 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
3080         * README: Don't refer to ports add-on as distributed separately.
3081         Mention AArch64 in list of systems supported in the ports add-on.
3083         * LICENSES: Add more non-FSF copyright and license notices.
3085         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
3086         ((unused)).
3088         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
3090         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
3091         10000 as width of padded output.
3093 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3095         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
3097         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
3098         variable LX with __attribute__ ((unused)).
3099         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3100         Likewise.
3101         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
3102         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3103         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
3104         with __attribute__ ((unused)).
3106 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
3108         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
3110 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3112         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
3113         (CFLAGS-nldbl-acos.c): New variable.
3114         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
3115         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
3116         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
3117         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
3118         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
3119         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
3120         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
3121         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
3122         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
3123         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
3124         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
3125         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
3126         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
3127         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
3128         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
3129         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
3130         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
3131         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
3132         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
3133         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
3134         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
3135         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
3136         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
3137         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
3138         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
3139         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
3140         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
3141         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
3142         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
3143         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
3144         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
3145         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
3146         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
3147         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
3148         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
3149         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
3150         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
3151         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
3152         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
3153         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
3154         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
3155         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
3156         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
3157         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
3158         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
3159         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
3160         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
3161         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
3162         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
3163         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
3164         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
3165         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
3166         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
3167         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
3168         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
3169         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
3170         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
3171         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
3172         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
3173         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
3174         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
3175         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
3176         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
3177         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
3178         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
3179         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
3180         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
3181         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
3182         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
3183         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
3184         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
3185         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
3186         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
3187         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
3188         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
3189         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
3190         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
3191         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
3192         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
3193         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
3194         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
3195         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
3196         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
3197         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
3198         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
3199         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
3200         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
3201         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
3202         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
3203         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
3204         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
3205         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
3206         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
3207         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
3208         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
3209         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
3210         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
3212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3213         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3215         [BZ #14914]
3216         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
3217         whole low double instead of just low 47 bits when splitting values
3218         into two parts.
3220 2012-12-03  Allan McRae  <allan@archlinux.org>
3222         * manual/stdio.texi (Predefined Printf Handlers): Remove
3223         @hsep and @vsep usage.
3225 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
3227         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
3228         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
3230 2012-12-03  Jeff Law  <law@redhat.com>
3232         * time/sys/time.h (settimeofday): Do not mark TV argument
3233         as __nonnull.
3235 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
3237         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
3238         when currently writing and seek to current position when not.
3239         * libio/Makefile (tests): Remove bug-fclose1.
3240         * libio/bug-fclose1.c: Delete.
3242 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
3244         * manual/arith.texi (feenableexcept): Fix typo.
3245         (fedisableexcept): Likewise.
3247 2012-11-30  Roland McGrath  <roland@hack.frob.com>
3249         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
3250         second, differently-typed declaration, rather than a cast.
3252 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3254         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
3255         * include/rpc/svc.h: ... here.
3257 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
3259         [BZ #13013]
3260         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
3261         depending n and resplen2 to catch cases where answer
3262         equals answerp2.
3264 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
3266         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
3267         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
3269 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
3271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
3273 2012-11-29  Roland McGrath  <roland@hack.frob.com>
3275         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
3277 2012-11-28  Jeff Law  <law@redhat.com>
3279         [BZ #13761]
3280         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
3281         dataset_temporary.  Track alloca usage into alloca_used.
3282         If dataset is large allocate and release it via malloc/free.
3284 2012-06-04  Florian Weimer  <fweimer@redhat.com>
3286         [BZ #14197]
3287         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
3289 2012-11-28  David S. Miller  <davem@davemloft.net>
3291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3293 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3295         [BZ #14803]
3296         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
3297         of pi/2 rounded to nearest to 64 bits.
3298         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
3299         nearest to 64 bits.
3300         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
3301         bits.
3303 2012-11-28  Jeff Law <law@redhat.com>
3304             Martin Osvald <mosvald@redhat.com>
3306         [BZ #14889]
3307         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
3308         * sunrpc/svc.c: Include time.h.
3309         (__svc_accept_failed): New function.
3310         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
3311         any reason other than EINTR, call __svc_accept_failed.
3312         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
3313         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
3315 2012-11-28  Andreas Schwab  <schwab@suse.de>
3317         * scripts/abilist.awk: Also handle indirect functions in .opd
3318         section.
3320 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3322         [BZ #13881]
3323         * sysdeps/x86/fpu/powl_helper.c: New file.
3324         * sysdeps/x86/fpu/Makefile: Likewise.
3325         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
3326         (p3): New object.
3327         (__ieee754_powl): Use __powl_helper for finite arguments except
3328         integer exponents below 8.
3329         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
3330         (p3): New object.
3331         (__ieee754_powl): Use __powl_helper for finite arguments except
3332         integer exponents below 8.
3333         * math/libm-test.inc (pow_test): Add more tests and enable some
3334         previously disabled tests.
3335         * sysdeps/i386/fpu/libm-test-ulps: Update.
3336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3338 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3339             Carlos O'Donell  <carlos_odonell@mentor.com>
3341         * nss/makedb.c (is_prime): Assert that input is odd and greater
3342         than 4.  Note that fact in a comment too.
3343         (next_prime): Add 4 to input.
3345 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3347         [BZ #11741]
3348         * libio/Makefile (tests): Add test case tst-fwrite-error.
3349         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
3350         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3351         * libio/tst-fwrite-error.c: New test case.
3353 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
3355         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
3356         before casting to void *.
3357         * include/libc-internal.h (__pointer_type): New macro.
3358         (__integer_if_pointer_type_sub): Likewise.
3359         (__integer_if_pointer_type): Likewise.
3360         (cast_to_integer): Likewise.
3361         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
3362         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
3363         before casting to atomic64_t.
3364         (atomic_exchange_acq): Likewise.
3365         (__arch_exchange_and_add_body): Likewise.
3366         (__arch_add_body): Likewise.
3367         (atomic_add_negative): Likewise.
3368         (atomic_add_zero): Likewise.
3370 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
3372         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
3373         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
3374         (add_fdes): Likewise.
3375         (linear_search_fdes): Likewise.
3376         (binary_search_unencoded_fdes): Likewise.
3378 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
3380         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
3382 2012-11-24  Adam Conrad  <adconrad@0c3.net>
3384         * configure.in: Autodetect C++ header directories.
3385         * configure: Regenerated.
3387 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
3389         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
3391 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
3393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3395 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
3397         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
3398         LDBL_MANT_DIG == 106]: Disable some tests.
3399         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
3400         Likewise.
3401         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
3402         Likewise.
3404         [BZ #14871]
3405         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
3406         input for small inputs.  Return +/- pi/2 for large inputs.
3407         * math/libm-test.inc (atan_test): Add more tests.
3409         * sysdeps/generic/unwind-dw2-fde-glibc.c
3410         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
3411         __attribute__ ((unused)).
3413         [BZ #14645]
3414         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
3415         x * y if x and y are nonzero and z is zero.
3417         [BZ #14811]
3418         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
3419         nonzero exponents with absolute value below 0x1p-117 to +/-
3420         0x1p-117.
3422         [BZ #14869]
3423         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
3424         up arguments below 2**-450, not just those below 2**-500.
3425         * math/libm-test.inc (hypot_test): Add another test.
3427         [BZ #14868]
3428         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
3429         Return a+b for ratio over 2**120, not 2**60.
3430         * math/libm-test.inc (hypot_test): Add another test.
3432         * math/libm-test.inc (clog_test): Use
3433         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
3434         (clog10_test): Likewise.
3436         [BZ #6778]
3437         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
3439 2012-11-22  Andreas Schwab  <schwab@suse.de>
3441         * sysdeps/i386/fpu/libm-test-ulps: Update.
3443 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
3445         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
3446         printf output with newline.
3448 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
3450         [BZ #14865]
3451         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
3452         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
3453         -z nodlopen, -z initfirst and -z execstack support.
3454         * configure: Regenerated.
3456         * elf/elf.h (DF_1_NODIRECT): New macro.
3457         (DF_1_IGNMULDEF): Likewise.
3458         (DF_1_NOKSYMS): Likewise.
3459         (DF_1_NOHDR): Likewise.
3460         (DF_1_EDITED): Likewise.
3461         (DF_1_NORELOC): Likewise.
3462         (DF_1_SYMINTPOSE): Likewise.
3463         (DF_1_GLOBAUDIT): Likewise.
3464         (DF_1_SINGLETON): Likewise.
3465         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
3466         DT_1_SUPPORTED_MASK bits.
3467         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
3469 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
3471         * sysdeps/unix/make-syscalls.sh: Document prefixes.
3473 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
3475         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
3476         macro.
3478         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
3479         (sendmmsg): Move declarations...
3480         * socket/sys/socket.h: ... here.
3481         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
3482         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
3483         include it from...
3484         * socket/recvmmsg.c: ... this new file.
3485         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
3486         (sendmmsg): Rename to __sendmmsg, create weak alias and make
3487         definition of __sendmmsg hidden.
3488         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
3489         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
3490         Move ENOSYS stub into and include it from...
3491         * socket/sendmmsg.c: ... this new file.
3492         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
3493         (sysdep_routines): Move recvmmsg and sendmmsg...
3494         * socket/Makefile (routines): ... here.
3495         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
3496         (GLIBC_PRIVATE): Add __sendmmsg.
3497         * include/sys/socket.h (__sendmmsg): Add declarations.
3498         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
3499         sendmmsg.
3501 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
3503         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
3504         variable I1 with __attribute__ ((unused)).
3505         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3507 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
3509         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
3510         DUMMY variables with __attribute__ ((unused)).
3512         * bits/byteswap.h: Include <bits/types.h>.
3513         (__bswap_64): Use __uint64_t instead of unsigned long long int.
3515 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
3517         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
3518         string_t.  Do not manually set errno.
3519         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
3520         length with __strnlen.  Make sure to both set errno and return it on
3521         failure.
3523 2012-11-19  David S. Miller  <davem@davemloft.net>
3525         With help from Joseph Myers.
3526         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
3527         very large arguments properly.
3528         * math/libm-test.inc (atan_test): New tests.
3529         (atan2_test): New tests.
3530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3531         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3533 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
3535         [BZ #14856]
3536         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
3537         Define to 3.
3539         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
3540         [POSIX] (EADDRNOTAVAIL): Likewise.
3541         [POSIX] (EAFNOSUPPORT): Likewise.
3542         [POSIX] (EALREADY): Likewise.
3543         [POSIX] (ECONNABORTED): Likewise.
3544         [POSIX] (ECONNREFUSED): Likewise.
3545         [POSIX] (ECONNRESET): Likewise.
3546         [POSIX] (EDESTADDRREQ): Likewise.
3547         [POSIX] (EDQUOT): Likewise.
3548         [POSIX] (EHOSTUNREACH): Likewise.
3549         [POSIX] (EIDRM): Likewise.
3550         [POSIX] (EISCONN): Likewise.
3551         [POSIX] (ELOOP): Likewise.
3552         [POSIX] (EMULTIHOP): Likewise.
3553         [POSIX] (ENETDOWN): Likewise.
3554         [POSIX] (ENETUNREACH): Likewise.
3555         [POSIX] (ENOBUFS): Likewise.
3556         [POSIX] (ENODATA): Likewise.
3557         [POSIX] (ENOLINK): Likewise.
3558         [POSIX] (ENOMSG): Likewise.
3559         [POSIX] (ENOPROTOOPT): Likewise.
3560         [POSIX] (ENOSR): Likewise.
3561         [POSIX] (ENOSTR): Likewise.
3562         [POSIX] (ENOTCONN): Likewise.
3563         [POSIX] (ENOTSOCK): Likewise.
3564         [POSIX] (EOPNOTSUPP): Likewise.
3565         [POSIX] (EOVERFLOW): Likewise.
3566         [POSIX] (EPROTO): Likewise.
3567         [POSIX] (EPROTONOSUPPORT): Likewise.
3568         [POSIX] (EPROTOTYPE): Likewise.
3569         [POSIX] (ESTALE): Likewise.
3570         [POSIX] (ETIME): Likewise.
3571         [POSIX] (ETXTBSY): Likewise.
3572         [POSIX] (EWOULDBLOCK): Likewise.
3573         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
3574         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
3575         [POSIX] (SEEK_CUR): Likewise.
3576         [POSIX] (SEEK_END): Likewise.
3577         [POSIX || UNIX98] (mode_t): Do not require.
3578         [POSIX] (off_t): Likewise.
3579         [POSIX] (pid_t): Likewise.
3580         [POSIX] (sys/stat.h): Do not allow header.
3581         [POSIX] (unistd.h): Likewise.
3582         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
3583         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
3584         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
3585         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
3586         require.
3587         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
3588         sigevent): Specify elements.
3589         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
3590         entry.
3591         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
3592         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
3594         * conform/data/cpio.h-data [POSIX]: Disable whole file.
3595         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
3596         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
3597         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
3598         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
3599         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
3600         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
3601         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
3602         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
3603         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
3604         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
3605         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
3606         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
3607         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
3608         Likewise.
3609         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
3610         Likewise.
3611         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
3612         Likewise.
3613         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
3614         Likewise.
3615         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
3616         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
3617         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
3618         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
3619         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
3620         Specify lower bound on value.
3621         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
3622         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
3623         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
3624         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
3625         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
3626         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
3627         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
3628         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
3629         value.
3630         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
3631         as optional.
3632         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
3633         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
3634         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
3635         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
3636         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
3637         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
3638         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
3639         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
3640         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
3641         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
3642         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
3643         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
3644         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
3645         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
3646         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
3647         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
3648         entry.
3649         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
3650         optional.
3651         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
3652         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
3653         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
3654         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
3655         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
3656         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
3657         Likewise.
3658         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
3659         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
3660         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
3661         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
3662         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
3663         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
3664         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
3665         as optional.
3666         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
3667         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
3668         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
3669         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
3670         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
3671         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
3672         specify as optional.
3673         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
3674         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
3675         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
3676         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
3677         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
3678         [XPG3] (NL_LANGMAX): Likewise.
3679         [POSIX || XPG3] (NL_MSGMAX): Likewise.
3680         [POSIX || XPG3] (NL_NMAX): Likewise.
3681         [POSIX || XPG3] (NL_SETMAX): Likewise.
3682         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
3683         [XPG3] (NZERO): Likewise.
3684         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
3685         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
3686         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
3687         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
3688         (REG_ERANGE): Expect.
3689         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
3690         optional-constant.
3691         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
3692         Use (void) in prototype.
3693         [POSIX] (*_t): Allow.
3694         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
3695         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
3696         (WRDE_BADVAL): Expect.
3698         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
3699         expect.
3700         [XPG3 || XPG4] (O_RSYNC): Likewise.
3701         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
3702         Likewise.
3703         [XPG3 || XPG4] (pthread_sigmask): Likewise.
3704         [XPG3 || XPG4] (sigqueue): Likewise.
3705         [XPG3 || XPG4] (sigtimedwait): Likewise.
3706         [XPG3 || XPG4] (sigwaitinfo): Likewise.
3707         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
3708         [XPG3 || XPG4] (vsnprintf): Likewise.
3709         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
3710         Likewise.
3711         [XPG3 || XPG4] (blksize_t): Likewise.
3712         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
3713         Likewise.
3714         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
3715         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
3716         [XPG3 || XPG4] (struct itimerspec): Likewise.
3717         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
3718         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
3719         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
3720         [XPG3 || XPG4] (clockid_t): Likewise.
3721         [XPG3 || XPG4] (timer_t): Likewise.
3722         [XPG3 || XPG4] (clock_getres): Likewise.
3723         [XPG3 || XPG4] (clock_gettime): Likewise.
3724         [XPG3 || XPG4] (clock_settime): Likewise.
3725         [XPG3 || XPG4] (nanosleep): Likewise.
3726         [XPG3 || XPG4] (timer_create): Likewise.
3727         [XPG3 || XPG4] (timer_delete): Likewise.
3728         [XPG3 || XPG4] (timer_gettime): Likewise.
3729         [XPG3 || XPG4] (timer_getoverrun): Likewise.
3730         [XPG3 || XPG4] (timer_settime): Likewise.
3731         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
3732         [XPG3 || XPG4] (getlogin_r): Likewise.
3733         [XPG3 || XPG4] (pread): Likewise.
3734         [XPG3 || XPG4] (pthread_atfork): Likewise.
3735         [XPG3 || XPG4] (pwrite): Likewise.
3737         [BZ #14835]
3738         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
3739         <bits/siginfo.h>.
3741 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
3743         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
3744         finalizing MALLSTREAM.
3746         * sysdeps/mach/hurd/syncfs.c: New file.
3748 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3750         [BZ #14719]
3751         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
3752         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
3753         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
3754         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
3755         (_nss_dns_gethostbyname4_r): Likewise.
3756         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
3757         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
3759 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
3761         [BZ #13763]
3762         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
3764 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
3766         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
3767         * elf/cache.c (print_entry): Print ",AArch64" for
3768         FLAG_AARCH64_LIB64
3770         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
3771         * elf/cache.c (print_entry): Print ",hard-float" for
3772         FLAG_ARM_LIBHF.
3774 2012-11-18  David S. Miller  <davem@davemloft.net>
3776         With help from Joseph Myers.
3777         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
3778         cutoff to 2**-13.
3779         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
3780         cutoff to 2**-25.
3781         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
3782         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
3783         small.
3784         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3785         * math/libm-test.inc (y0_test): New tests.
3786         (y1_test): New tests.
3787         * sysdeps/i386/fpu/libm-test-ulps: Update.
3788         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3791 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
3793         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
3794         64-bit targets.
3795         * configure: Regenerated.
3797 2012-11-17  David S. Miller  <davem@davemloft.net>
3799         [BZ #14811]
3800         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
3801         nonzero exponents with absolute value below 0x1p-128 to +/-
3802         0x1p-128.
3804 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
3806         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
3808         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
3810         * posix/getconf-speclist.c: New file.
3811         * posix/posix-envs.def: Likewise.
3812         * posix/confstr.c (START_ENV_GROUP): New macro.
3813         (END_ENV_GROUP): Likewise.
3814         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
3815         (KNOWN_PRESENT_ENV_STRING): Likewise.
3816         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
3817         (UNKNOWN_ENVIRONMENT): Likewise.
3818         (confstr): Include posix-envs.def instead of handling
3819         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
3820         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
3821         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
3822         (END_ENV_GROUP): Likewise.
3823         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
3824         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
3825         (UNKNOWN_ENVIRONMENT): Likewise.
3826         (__sysconf): Include posix-envs.def instead of handling associated
3827         cases directly here.
3828         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
3829         preprocessing getconf-speclist.c rather than running getconf or
3830         generating empty file.
3832 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
3834         * scripts/check-local-headers.sh: Ignore 'mach' headers.
3836 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
3838         [BZ #14672]
3839         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
3841 2012-11-16  David S. Miller  <davem@davemloft.net>
3843         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
3844         smaller than LDBL_EPSILON/2.0L, just return xm1.
3846 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
3848         * elf/tst-array1.c (init): Set constructor priority to 1000.
3849         (fini): Set destructor priority to 1000.
3850         * elf/tst-array2dep.c: Likewise.
3852 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3854         [BZ #11741]
3855         * libio/fileops.c (_IO_new_file_write): Correctly return error.
3856         (_IO_new_file_xsputn): Also return EOF if none of the input
3857         data was written when overflow failed.
3858         * libio/iopadn.c (_IO_padn): Likewise.
3859         * libio/iowpadn.c (_IO_wpadn): Likewise.
3860         * stdio-common/tst-put-error.c: Add copyright notice.
3861         (do_test): Add case for printing padded string.
3862         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
3863         _IO_padn returned error.
3864         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
3865         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
3866         return EOF.
3868 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3870         * libio/libioP.h: Add comment note that the references to C++
3871         bits are now obsolete.
3873 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3875         * math/libm-test.inc (check_complex): Use asprintf.
3877 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
3879         * debug/pcprofiledump.c (print_version): Update copyright year.
3880         * malloc/memusagestat.c (print_version): Likewise.
3882 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
3884         [BZ #14831]
3885         * elf/Makefile (tests): Add tst-audit8.
3886         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
3887         ($(objpfx)tst-audit8.out): New target.
3888         (tst-audit8-ENV): New variable.
3889         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
3890         audit if l_reloc_result is NULL.
3891         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
3892         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
3893         * elf/tst-audit8.c: New file.
3895 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3897         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
3898         * misc/Makefile (CFLAGS-select.c): Define.
3899         * posix/Makefile (CFLAGS-pause.c): Define.
3901 2012-11-13  David S. Miller  <davem@davemloft.net>
3903         * crypt/Makefile: Move test targets after toplevel Rules
3904         inclusion.  Grab any necessary sysdep routines when linking.
3905         * crypt/md5.c (md5_process_block): Remove define, we will always
3906         name it __md5_process_block.
3907         (md5_finish_ctx): Update md5_process_block call.
3908         (md5_stream): Likewise.
3909         (md5_process_bytes): Likewise.
3910         (md5_process_block): Rename to __md5_process_block and move to ...
3911         * crypt/md5-block.c: ... here.
3912         * crypt/sha256.c (sha256_process_block): Move to ...
3913         * crypt/sha256-block.c: ... here.
3914         * crypt/sha512.c (sha512_process_block): Move to ...
3915         * crypt/sha512-block.c: ... here.
3916         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
3917         path.
3918         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
3919         * sysdeps/sparc/sparc64/multiarch/Makefile
3920         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
3921         crypt subdir.
3922         (localedef-aux): Add md5 crypto assembler when in locale subdir.
3923         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
3924         multiarch changes.
3925         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
3926         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
3927         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
3928         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
3929         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
3930         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
3931         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
3932         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
3933         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
3934         file.
3935         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
3936         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
3937         file.
3938         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
3940 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
3942         * timezone/tzselect.ksh: Update from tzcode git revision
3943         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
3944         * timezone/zdump.c: Likewise.
3945         * timezone/zic.c: Likewise.
3946         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
3947         in TZVERSION setting, not $(PKGVERSION).
3948         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
3949         REPORT_BUGS_TO settings.
3951         [BZ #14838]
3952         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
3953         macro.
3955 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3957         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
3958         detection to immediately after _FP_ROUND().
3959         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
3960         bits are 0.
3962 2012-11-11  David S. Miller  <davem@davemloft.net>
3964         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
3965         inttypes.h
3966         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
3967         __close rather than their public counterparts.
3969 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
3971         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
3972         file.
3973         [UNIX98] (sem_timedwait): Do not expect.
3974         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
3975         [XPG4 || UNIX98] (sockatmark): Do not expect.
3976         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
3977         (clock_getcpuclockid): Do not expect.
3978         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
3979         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
3980         Do not expect.
3981         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
3982         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
3983         [UNIX98] (vwscanf): Likewise.
3984         [UNIX98] (vswscanf): Likewise.
3986 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
3988         * timezone/version.h: Remove file.
3989         * timezone/README: Do not refer to version.h.
3990         * timezone/Makefile ($(objpfx)zic.o): New dependency on
3991         $(objpfx)version.h.
3992         ($(objpfx)zdump.o): Likewise.
3993         ($(objpfx)version.h): New target.
3995         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
3996         2012i.
3997         * timezone/README: Don't mention modification to tzselect.ksh.
3998         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
3999         work on unmodified tzselect.ksh.  Substitute version numbers in
4000         tzselect.ksh.
4002         * Makefile (format-me): Remove.
4003         (INSTALL): Adjust indentation.  Use commands directly instead of
4004         using $(format-me).
4006         * aclocal.m4 (ACX_PKGVERSION): New macro.
4007         (ACX_BUGURL): Likewise.
4008         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
4009         (PKGVERSION): New AC_DEFINE_UNQUOTED.
4010         (REPORT_BUGS_TO): Likewise.
4011         * configure: Regenerated.
4012         * config.h.in (PKGVERSION): New macro.
4013         (REPORT_BUGS_TO): Likewise.
4014         * config.make.in (PKGVERSION): New variable.
4015         (PKGVERSION_TEXI): Likewise.
4016         (REPORT_BUGS_TO): Likewise.
4017         (REPORT_BUGS_TEXI): Likewise.
4018         * Makefile (format-me): Use -I$(common-objpfx)manual.
4019         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
4020         ($(common-objpfx)manual/%): New target.
4021         (manual/%): Remove target.
4022         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
4023         (print_version): Use PKGVERSION.
4024         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
4025         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
4026         and REPORT_BUGS_TO.
4027         ($(objpfx)xtrace): Likewise.
4028         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
4029         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
4030         (print_version): Use PKGVERSION.
4031         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
4032         (do_version): Use PKGVERSION.
4033         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
4034         REPORT_BUGS_TO.
4035         (common-ldd-rewrite): Likewise.
4036         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
4037         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
4038         (print_version): Use PKGVERSION.
4039         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
4040         * elf/pldd.c (argp_program_bug_address): Remove variable.
4041         (more_help): New function.
4042         (argp): Use more_help.
4043         (print_version): Use PKGVERSION.
4044         * elf/sln.c (main): Use PKGVERSION.
4045         (usage): Use REPORT_BUGS_TO.
4046         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
4047         (top level): Use PKGVERSION.
4048         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
4049         (print_version): Use PKGVERSION.
4050         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
4051         (print_version): Use PKGVERSION.
4052         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
4053         (print_version): Use PKGVERSION.
4054         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
4055         (print_version): Use PKGVERSION.
4056         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
4057         (print_version): Use PKGVERSION.
4058         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
4059         (print_version): Use PKGVERSION.
4060         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
4061         and BUGURL.
4062         ($(objpfx)memusage): Likewise.
4063         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
4064         (do_version): Use PKGVERSION.
4065         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
4066         (print_version): Use PKGVERSION.
4067         * malloc/mtrace.pl ($PACKAGE): Remove variable.
4068         ($PKGVERSION): New variable.
4069         ($REPORT_BUGS_TO): Likewise.
4070         (usage): Use $REPORT_BUGS_TO.
4071         (top level): Use $PKGVERSION.
4072         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
4073         ($(objpfx)pkgvers.texi): New rule.
4074         ($(objpfx)stamp-pkgvers): Likewise.
4075         * manual/install.texi: Include pkgvers.texi.
4076         (--with-pkgversion): Document new configure option.
4077         (--with-bugurl): Likewise.
4078         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
4079         than necessarily for this particular distribution.  Use
4080         REPORT_BUGS_TO for where to report bugs.
4081         * INSTALL: Regenerated.
4082         * manual/libc.texinfo: Include pkgvers.texi.
4083         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
4084         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
4085         (print_version): Use PKGVERSION.
4086         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
4087         (print_version): Use PKGVERSION.
4088         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
4089         (print_version): Use PKGVERSION.
4090         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
4091         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
4092         macro.
4093         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
4094         (print_version): Use PKGVERSION.
4095         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
4096         (print_version): Use PKGVERSION.
4097         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
4098         and PKGVERSION.
4100         * timezone/checktab.awk: Update from tzcode 2012i.
4101         * timezone/ialloc.c: Likewise.
4102         * timezone/private.h: Likewise.
4103         * timezone/scheck.c: Likewise.
4104         * timezone/tzfile.h: Likewise.
4105         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
4106         (TZVERSION): Hardcode tzcode version number.
4107         * timezone/zdump.c: Update from tzcode 2012i.
4108         * timezone/zic.c: Likewise.
4109         * timezone/version.h: New file.
4110         * timezone/README: Describe version.h.  Update upstream location.
4112         [BZ #14824]
4113         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
4114         (mktemp): Enable declaration.
4115         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
4116         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
4117         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
4118         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
4119         Likewise.
4120         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
4121         Likewise.
4122         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
4123         Likewise.
4124         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
4125         Likewise.
4126         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
4127         Likewise.
4128         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
4129         Likewise.
4131         [BZ #14821]
4132         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
4133         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
4134         for copies of such integer values.
4135         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
4136         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
4138 2012-11-09  Andreas Jaeger  <aj@suse.de>
4140         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
4141         definitions and declarations that are provided by
4142         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
4144 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4146         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
4147         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
4148         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
4149         definition.
4151 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4153         * elf/elf.h: Update comment before AArch64 relocations.
4155 2012-11-07  David S. Miller  <davem@davemloft.net>
4157         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
4158         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4159         (__start_context): Declare.
4160         (__makecontext_ret): Delete.
4161         (__makecontext): Hook up __start_context instead of
4162         __makecontext_ret.
4163         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4164         (sysdep_routines): Add __start_context when in stdlib.
4166 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4168         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
4169         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
4170         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
4171         hardcoded "nm".
4172         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
4173         (READELF): New variable.  Use it instead of hardcoded "readelf".
4175 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4177         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
4178         * sysdeps/x86/Makefile: Here.
4179         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
4180         * sysdeps/x86/tst-xmmymm.sh: This.
4182 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4184         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
4185         expectations.
4186         [UNIX98] (pthread_barrier_t): Do not expect.
4187         [UNIX98] (pthread_barrierattr_t): Likewise.
4188         [UNIX98] (pthread_spinlock_t): Likewise.
4189         [UNIX98] (pthread_barrier_destroy): Likewise.
4190         [UNIX98] (pthread_barrier_init): Likewise.
4191         [UNIX98] (pthread_barrier_wait): Likewise.
4192         [UNIX98] (pthread_barrierattr_destroy): Likewise.
4193         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
4194         [UNIX98] (pthread_barrierattr_init): Likewise.
4195         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
4196         [UNIX98] (pthread_getcpuclockid): Likewise.
4197         [UNIX98] (pthread_mutex_timedlock): Likewise.
4198         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
4199         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
4200         [UNIX98] (pthread_sigmask): Likewise.
4201         [UNIX98] (pthread_spin_destroy): Likewise.
4202         [UNIX98] (pthread_spin_init): Likewise.
4203         [UNIX98] (pthread_spin_lock): Likewise.
4204         [UNIX98] (pthread_spin_trylock): Likewise.
4205         [UNIX98] (pthread_spin_unlock): Likewise.
4206         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
4207         Do not expect.
4208         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
4209         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
4210         [XPG3 || XPG4] (pthread_cond_t): Likewise.
4211         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
4212         [XPG3 || XPG4] (pthread_key_t): Likewise.
4213         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
4214         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
4215         [XPG3 || XPG4] (pthread_once_t): Likewise.
4216         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
4217         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
4218         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
4219         [XPG3 || XPG4] (pthread_t): Likewise.
4221         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
4222         not expect.
4223         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
4225         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
4226         Change function return type to int.
4228         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
4229         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
4230         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
4231         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
4232         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
4233         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
4234         [!POSIX] (posix_madvise): Likewise.
4235         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
4236         && !UNIX98].
4237         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
4238         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
4239         (mode_t): Likewise.
4240         (posix_mem_offset): Likewise.
4241         (posix_typed_mem_get_info): Likewise.
4242         (posix_typed_mem_open): Likewise.
4244         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
4245         Change condition to [XOPEN2K8].
4247         * conform/conformtest.pl: Preprocess allow-header data with -x c
4248         instead of from stdin.
4249         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
4250         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
4251         [C99-based standards] (cerfc): Likewise.
4252         [C99-based standards] (cexp2): Likewise.
4253         [C99-based standards] (cexpm1): Likewise.
4254         [C99-based standards] (clog10): Likewise.
4255         [C99-based standards] (clog1p): Likewise.
4256         [C99-based standards] (clog2): Likewise.
4257         [C99-based standards] (clgamma): Likewise.
4258         [C99-based standards] (ctgamma): Likewise.
4259         [C99-based standards] (cerff): Likewise.
4260         [C99-based standards] (cerfcf): Likewise.
4261         [C99-based standards] (cexp2f): Likewise.
4262         [C99-based standards] (cexpm1f): Likewise.
4263         [C99-based standards] (clog10f): Likewise.
4264         [C99-based standards] (clog1pf): Likewise.
4265         [C99-based standards] (clog2f): Likewise.
4266         [C99-based standards] (clgammaf): Likewise.
4267         [C99-based standards] (ctgammaf): Likewise.
4268         [C99-based standards] (cerfl): Likewise.
4269         [C99-based standards] (cerfcl): Likewise.
4270         [C99-based standards] (cexp2l): Likewise.
4271         [C99-based standards] (cexpm1l): Likewise.
4272         [C99-based standards] (clog10l): Likewise.
4273         [C99-based standards] (clog1pl): Likewise.
4274         [C99-based standards] (clog2l): Likewise.
4275         [C99-based standards] (clgammal): Likewise.
4276         [C99-based standards] (ctgammal): Likewise.
4277         * conform/data/inttypes.h-data [C99-based standards]: Include
4278         stdint.h-data.  Remove all expectations for stdint.h contents.
4279         [C99-based standards] (PRI*): Do not allow.
4280         [C99-based standards] (SCN*): Likewise.
4281         [C99-based standards] (*_t): Likewise.
4282         [C99-based-standards] (PRId8): Expect macro.
4283         [C99-based-standards] (PRIi8): Likewise.
4284         [C99-based-standards] (PRIo8): Likewise.
4285         [C99-based-standards] (PRIu8): Likewise.
4286         [C99-based-standards] (PRIx8): Likewise.
4287         [C99-based-standards] (PRIX8): Likewise.
4288         [C99-based-standards] (SCNd8): Likewise.
4289         [C99-based-standards] (SCNi8): Likewise.
4290         [C99-based-standards] (SCNo8): Likewise.
4291         [C99-based-standards] (SCNu8): Likewise.
4292         [C99-based-standards] (SCNx8): Likewise.
4293         [C99-based-standards] (PRIdLEAST8): Likewise.
4294         [C99-based-standards] (PRIiLEAST8): Likewise.
4295         [C99-based-standards] (PRIoLEAST8): Likewise.
4296         [C99-based-standards] (PRIuLEAST8): Likewise.
4297         [C99-based-standards] (PRIxLEAST8): Likewise.
4298         [C99-based-standards] (PRIXLEAST8): Likewise.
4299         [C99-based-standards] (SCNdLEAST8): Likewise.
4300         [C99-based-standards] (SCNiLEAST8): Likewise.
4301         [C99-based-standards] (SCNoLEAST8): Likewise.
4302         [C99-based-standards] (SCNuLEAST8): Likewise.
4303         [C99-based-standards] (SCNxLEAST8): Likewise.
4304         [C99-based-standards] (PRIdFAST8): Likewise.
4305         [C99-based-standards] (PRIiFAST8): Likewise.
4306         [C99-based-standards] (PRIoFAST8): Likewise.
4307         [C99-based-standards] (PRIuFAST8): Likewise.
4308         [C99-based-standards] (PRIxFAST8): Likewise.
4309         [C99-based-standards] (PRIXFAST8): Likewise.
4310         [C99-based-standards] (SCNdFAST8): Likewise.
4311         [C99-based-standards] (SCNiFAST8): Likewise.
4312         [C99-based-standards] (SCNoFAST8): Likewise.
4313         [C99-based-standards] (SCNuFAST8): Likewise.
4314         [C99-based-standards] (SCNxFAST8): Likewise.
4315         [C99-based-standards] (PRId16): Likewise.
4316         [C99-based-standards] (PRIi16): Likewise.
4317         [C99-based-standards] (PRIo16): Likewise.
4318         [C99-based-standards] (PRIu16): Likewise.
4319         [C99-based-standards] (PRIx16): Likewise.
4320         [C99-based-standards] (PRIX16): Likewise.
4321         [C99-based-standards] (SCNd16): Likewise.
4322         [C99-based-standards] (SCNi16): Likewise.
4323         [C99-based-standards] (SCNo16): Likewise.
4324         [C99-based-standards] (SCNu16): Likewise.
4325         [C99-based-standards] (SCNx16): Likewise.
4326         [C99-based-standards] (PRIdLEAST16): Likewise.
4327         [C99-based-standards] (PRIiLEAST16): Likewise.
4328         [C99-based-standards] (PRIoLEAST16): Likewise.
4329         [C99-based-standards] (PRIuLEAST16): Likewise.
4330         [C99-based-standards] (PRIxLEAST16): Likewise.
4331         [C99-based-standards] (PRIXLEAST16): Likewise.
4332         [C99-based-standards] (SCNdLEAST16): Likewise.
4333         [C99-based-standards] (SCNiLEAST16): Likewise.
4334         [C99-based-standards] (SCNoLEAST16): Likewise.
4335         [C99-based-standards] (SCNuLEAST16): Likewise.
4336         [C99-based-standards] (SCNxLEAST16): Likewise.
4337         [C99-based-standards] (PRIdFAST16): Likewise.
4338         [C99-based-standards] (PRIiFAST16): Likewise.
4339         [C99-based-standards] (PRIoFAST16): Likewise.
4340         [C99-based-standards] (PRIuFAST16): Likewise.
4341         [C99-based-standards] (PRIxFAST16): Likewise.
4342         [C99-based-standards] (PRIXFAST16): Likewise.
4343         [C99-based-standards] (SCNdFAST16): Likewise.
4344         [C99-based-standards] (SCNiFAST16): Likewise.
4345         [C99-based-standards] (SCNoFAST16): Likewise.
4346         [C99-based-standards] (SCNuFAST16): Likewise.
4347         [C99-based-standards] (SCNxFAST16): Likewise.
4348         [C99-based-standards] (PRId32): Likewise.
4349         [C99-based-standards] (PRIi32): Likewise.
4350         [C99-based-standards] (PRIo32): Likewise.
4351         [C99-based-standards] (PRIu32): Likewise.
4352         [C99-based-standards] (PRIx32): Likewise.
4353         [C99-based-standards] (PRIX32): Likewise.
4354         [C99-based-standards] (SCNd32): Likewise.
4355         [C99-based-standards] (SCNi32): Likewise.
4356         [C99-based-standards] (SCNo32): Likewise.
4357         [C99-based-standards] (SCNu32): Likewise.
4358         [C99-based-standards] (SCNx32): Likewise.
4359         [C99-based-standards] (PRIdLEAST32): Likewise.
4360         [C99-based-standards] (PRIiLEAST32): Likewise.
4361         [C99-based-standards] (PRIoLEAST32): Likewise.
4362         [C99-based-standards] (PRIuLEAST32): Likewise.
4363         [C99-based-standards] (PRIxLEAST32): Likewise.
4364         [C99-based-standards] (PRIXLEAST32): Likewise.
4365         [C99-based-standards] (SCNdLEAST32): Likewise.
4366         [C99-based-standards] (SCNiLEAST32): Likewise.
4367         [C99-based-standards] (SCNoLEAST32): Likewise.
4368         [C99-based-standards] (SCNuLEAST32): Likewise.
4369         [C99-based-standards] (SCNxLEAST32): Likewise.
4370         [C99-based-standards] (PRIdFAST32): Likewise.
4371         [C99-based-standards] (PRIiFAST32): Likewise.
4372         [C99-based-standards] (PRIoFAST32): Likewise.
4373         [C99-based-standards] (PRIuFAST32): Likewise.
4374         [C99-based-standards] (PRIxFAST32): Likewise.
4375         [C99-based-standards] (PRIXFAST32): Likewise.
4376         [C99-based-standards] (SCNdFAST32): Likewise.
4377         [C99-based-standards] (SCNiFAST32): Likewise.
4378         [C99-based-standards] (SCNoFAST32): Likewise.
4379         [C99-based-standards] (SCNuFAST32): Likewise.
4380         [C99-based-standards] (SCNxFAST32): Likewise.
4381         [C99-based-standards] (PRId64): Likewise.
4382         [C99-based-standards] (PRIi64): Likewise.
4383         [C99-based-standards] (PRIo64): Likewise.
4384         [C99-based-standards] (PRIu64): Likewise.
4385         [C99-based-standards] (PRIx64): Likewise.
4386         [C99-based-standards] (PRIX64): Likewise.
4387         [C99-based-standards] (SCNd64): Likewise.
4388         [C99-based-standards] (SCNi64): Likewise.
4389         [C99-based-standards] (SCNo64): Likewise.
4390         [C99-based-standards] (SCNu64): Likewise.
4391         [C99-based-standards] (SCNx64): Likewise.
4392         [C99-based-standards] (PRIdLEAST64): Likewise.
4393         [C99-based-standards] (PRIiLEAST64): Likewise.
4394         [C99-based-standards] (PRIoLEAST64): Likewise.
4395         [C99-based-standards] (PRIuLEAST64): Likewise.
4396         [C99-based-standards] (PRIxLEAST64): Likewise.
4397         [C99-based-standards] (PRIXLEAST64): Likewise.
4398         [C99-based-standards] (SCNdLEAST64): Likewise.
4399         [C99-based-standards] (SCNiLEAST64): Likewise.
4400         [C99-based-standards] (SCNoLEAST64): Likewise.
4401         [C99-based-standards] (SCNuLEAST64): Likewise.
4402         [C99-based-standards] (SCNxLEAST64): Likewise.
4403         [C99-based-standards] (PRIdFAST64): Likewise.
4404         [C99-based-standards] (PRIiFAST64): Likewise.
4405         [C99-based-standards] (PRIoFAST64): Likewise.
4406         [C99-based-standards] (PRIuFAST64): Likewise.
4407         [C99-based-standards] (PRIxFAST64): Likewise.
4408         [C99-based-standards] (PRIXFAST64): Likewise.
4409         [C99-based-standards] (SCNdFAST64): Likewise.
4410         [C99-based-standards] (SCNiFAST64): Likewise.
4411         [C99-based-standards] (SCNoFAST64): Likewise.
4412         [C99-based-standards] (SCNuFAST64): Likewise.
4413         [C99-based-standards] (SCNxFAST64): Likewise.
4414         [C99-based-standards] (PRIdMAX): Likewise.
4415         [C99-based-standards] (PRIiMAX): Likewise.
4416         [C99-based-standards] (PRIoMAX): Likewise.
4417         [C99-based-standards] (PRIuMAX): Likewise.
4418         [C99-based-standards] (PRIxMAX): Likewise.
4419         [C99-based-standards] (PRIXMAX): Likewise.
4420         [C99-based-standards] (SCNdMAX): Likewise.
4421         [C99-based-standards] (SCNiMAX): Likewise.
4422         [C99-based-standards] (SCNoMAX): Likewise.
4423         [C99-based-standards] (SCNuMAX): Likewise.
4424         [C99-based-standards] (SCNxMAX): Likewise.
4425         [C99-based-standards] (PRIdPTR): Likewise.
4426         [C99-based-standards] (PRIiPTR): Likewise.
4427         [C99-based-standards] (PRIoPTR): Likewise.
4428         [C99-based-standards] (PRIuPTR): Likewise.
4429         [C99-based-standards] (PRIxPTR): Likewise.
4430         [C99-based-standards] (PRIXPTR): Likewise.
4431         [C99-based-standards] (SCNdPTR): Likewise.
4432         [C99-based-standards] (SCNiPTR): Likewise.
4433         [C99-based-standards] (SCNoPTR): Likewise.
4434         [C99-based-standards] (SCNuPTR): Likewise.
4435         [C99-based-standards] (SCNxPTR): Likewise.
4436         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
4437         allow.
4438         * conform/data/stdint.h-data: Update comments to clarify
4439         requirements.
4440         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
4441         type.
4442         [C99-based standards] (INT8_MAX): Likewise.
4443         [C99-based standards] (INT16_MIN): Likewise.
4444         [C99-based standards] (INT16_MAX): Likewise.
4445         [C99-based standards] (INT32_MIN): Likewise.
4446         [C99-based standards] (INT32_MAX): Likewise.
4447         [C99-based standards] (INT64_MIN): Likewise.
4448         [C99-based standards] (INT64_MAX): Likewise.
4449         [C99-based standards] (UINT8_MAX): Likewise.
4450         [C99-based standards] (UINT16_MAX): Likewise.
4451         [C99-based standards] (UINT32_MAX): Likewise.
4452         [C99-based standards] (UINT64_MAX): Likewise.
4453         [C99-based standards] (INT_LEAST8_MIN): Likewise.
4454         [C99-based standards] (INT_LEAST8_MAX): Likewise.
4455         [C99-based standards] (INT_LEAST16_MIN): Likewise.
4456         [C99-based standards] (INT_LEAST16_MAX): Likewise.
4457         [C99-based standards] (INT_LEAST32_MIN): Likewise.
4458         [C99-based standards] (INT_LEAST32_MAX): Likewise.
4459         [C99-based standards] (INT_LEAST64_MIN): Likewise.
4460         [C99-based standards] (INT_LEAST64_MAX): Likewise.
4461         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
4462         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
4463         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
4464         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
4465         [C99-based standards] (INT_FAST8_MIN): Likewise.
4466         [C99-based standards] (INT_FAST8_MAX): Likewise.
4467         [C99-based standards] (INT_FAST16_MIN): Likewise.
4468         [C99-based standards] (INT_FAST16_MAX): Likewise.
4469         [C99-based standards] (INT_FAST32_MIN): Likewise.
4470         [C99-based standards] (INT_FAST32_MAX): Likewise.
4471         [C99-based standards] (INT_FAST64_MIN): Likewise.
4472         [C99-based standards] (INT_FAST64_MAX): Likewise.
4473         [C99-based standards] (UINT_FAST8_MAX): Likewise.
4474         [C99-based standards] (UINT_FAST16_MAX): Likewise.
4475         [C99-based standards] (UINT_FAST32_MAX): Likewise.
4476         [C99-based standards] (UINT_FAST64_MAX): Likewise.
4477         [C99-based standards] (INTPTR_MIN): Likewise.
4478         [C99-based standards] (INTPTR_MAX): Likewise.
4479         [C99-based standards] (UINTPTR_MAX): Likewise.
4480         [C99-based standards] (INTMAX_MIN): Likewise.
4481         [C99-based standards] (INTMAX_MAX): Likewise.
4482         [C99-based standards] (UINTMAX_MAX): Likewise.
4483         [C99-based standards] (PTRDIFF_MIN): Likewise.
4484         [C99-based standards] (PTRDIFF_MAX): Likewise.
4485         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
4486         [C99-based standards] (SIZE_MAX): Likewise.
4487         [C99-based standards] (WCHAR_MAX): Likewise.
4488         [C99-based standards] (WINT_MAX): Likewise.
4489         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
4490         constraint on value.
4491         [C99-based standards] (WCHAR_MIN): Likewise.
4492         [C99-based standards] (WINT_MIN): Likewise.
4493         [C99-based standards] (*_t): Allow.
4494         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
4495         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
4496         Include math.h-data and complex.h-data.  Remove all expectations
4497         of math.h and complex.h contents.
4498         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
4499         at end of line.
4500         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
4501         (struct tm): Expect tag.
4502         [C99-based-standards] (wcstof): Expect function.
4503         [C99-based-standards] (wcstold): Likewise.
4504         [C99-based-standards] (wcstoll): Likewise.
4505         [C99-based-standards] (wcstoull): Likewise.
4506         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
4507         macro-int-constant.  Specify type.
4508         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
4509         constraint on value.
4510         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
4511         Specify type.
4512         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
4513         Specify value.
4514         [ISO C standards]: Do not allow headers.
4515         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
4516         wcs[abcdefghijklmnopqrstuvwxyz]*.
4517         [ISO C standards] (*_t): Do not allow.
4518         * conform/data/wctype.h-data [C99-based standards] (iswblank):
4519         Expect function.
4520         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
4521         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
4522         Specify type.
4523         [ISO C standards]: Do not allow headers.
4524         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
4525         is[abcdefghijklmnopqrstuvwxyz]*.
4526         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
4527         to[abcdefghijklmnopqrstuvwxyz]*.
4528         [ISO C standards] (*_t): Do not allow.
4529         * conform/data/stdalign.h-data: New file.
4530         * conform/data/stdbool.h-data: Likewise.
4531         * conform/data/stdnoreturn.h-data: Likewise.
4533 2012-11-07  Roland McGrath  <roland@hack.frob.com>
4535         [BZ #14815]
4536         * manual/filesys.texi (Directory Entries): Typo fix.
4537         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
4539 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4541         * elf/elf.h (EM_AARCH64): New macro.
4542         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
4543         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
4544         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
4545         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
4546         (R_AARCH64_TLSDESC): Likewise.
4547         (NT_ARM_TLS): Likewise.
4548         (NT_ARM_HW_BREAK): Likewise.
4549         (NT_ARM_HW_WATCH): Likewise.
4551 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4553         [BZ #14811]
4554         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
4555         (__ieee754_powl): Saturate nonzero exponents with absolute value
4556         below 0x1p-79 to +/- 0x1p-79.
4557         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
4558         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
4559         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
4560         nonzero exponents with absolute value below 0x1p-32 to +/-
4561         0x1p-32.
4562         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
4563         (__ieee754_powl): Saturate nonzero exponents with absolute value
4564         below 0x1p-79 to +/- 0x1p-79.
4565         * math/libm-test.inc (pow_test): Add more tests.
4567 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4569         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
4570         _dl_s390_cap_flags with kernel. Increase string length.
4571         (_dl_s390_platforms): Add z196 and zEC12.
4573 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4575         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
4576         Change XOPEN21K to XOPEN2K.
4578 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4580         * string/memmove.c: Use memcpy when possible.
4582 2012-11-06  Andreas Jaeger  <aj@suse.de>
4584         * po/eo.po: Update from translation team.
4586 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
4588         [BZ #14793]
4589         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
4590         exponent and small x and y exponents, scale x or y up.  Increase
4591         by 2 the exponent used in scaling up.
4592         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4593         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4594         * math/libm-test.inc (fma_test): Add more tests.
4595         (fma_test_towardzero): Likewise.
4596         (fma_test_downward): Likewise.
4597         (fma_test_upward): Likewise.
4599 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
4601         [BZ #14805]
4602         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
4603         fenv_t *.
4605         [BZ #14801]
4606         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
4607         namespace for names of struct fields.
4608         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
4609         fenv_t fields.
4610         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
4611         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
4613 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4615         [BZ #3665]
4616         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
4618 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4620         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
4621         PTR_DEMANGLE.
4623         [BZ #5246]
4624         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
4625         PTR_DEMANGLE.
4627 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
4629         [BZ #14797]
4630         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
4631         definitely overflow as x * y not x * y + z.
4632         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4633         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4634         * math/libm-test.inc (fma_test): Add more tests.
4635         (fma_test_towardzero): Likewise.
4636         (fma_test_downward): Likewise.
4637         (fma_test_upward): Likewise.
4639 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4641         [BZ #157]
4643         * include/stub-tag.h: Remove file.
4644         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
4645         '#include' of it.
4646         * manual/maint.texi (Porting): Don't reference it.
4647         * Makerules ($(objpfx)stubs): Likewise.
4648         * dirent/closedir.c: Don't include <stub-tag.h>.
4649         * dirent/dirfd.c: Likewise.
4650         * dirent/fdopendir.c: Likewise.
4651         * dirent/getdents.c: Likewise.
4652         * dirent/getdents64.c: Likewise.
4653         * dirent/opendir.c: Likewise.
4654         * dirent/readdir.c: Likewise.
4655         * dirent/readdir64.c: Likewise.
4656         * dirent/readdir64_r.c: Likewise.
4657         * dirent/readdir_r.c: Likewise.
4658         * dirent/rewinddir.c: Likewise.
4659         * dirent/seekdir.c: Likewise.
4660         * dirent/telldir.c: Likewise.
4661         * gmon/profil.c: Likewise.
4662         * grp/setgroups.c: Likewise.
4663         * inet/if_index.c: Likewise.
4664         * io/access.c: Likewise.
4665         * io/chdir.c: Likewise.
4666         * io/chmod.c: Likewise.
4667         * io/chown.c: Likewise.
4668         * io/close.c: Likewise.
4669         * io/dup.c: Likewise.
4670         * io/dup2.c: Likewise.
4671         * io/dup3.c: Likewise.
4672         * io/euidaccess.c: Likewise.
4673         * io/faccessat.c: Likewise.
4674         * io/fchdir.c: Likewise.
4675         * io/fchmod.c: Likewise.
4676         * io/fchmodat.c: Likewise.
4677         * io/fchown.c: Likewise.
4678         * io/fchownat.c: Likewise.
4679         * io/fcntl.c: Likewise.
4680         * io/flock.c: Likewise.
4681         * io/fstatfs.c: Likewise.
4682         * io/fstatfs64.c: Likewise.
4683         * io/fstatvfs.c: Likewise.
4684         * io/fstatvfs64.c: Likewise.
4685         * io/futimens.c: Likewise.
4686         * io/fxstat.c: Likewise.
4687         * io/fxstat64.c: Likewise.
4688         * io/fxstatat.c: Likewise.
4689         * io/fxstatat64.c: Likewise.
4690         * io/getcwd.c: Likewise.
4691         * io/isatty.c: Likewise.
4692         * io/lchmod.c: Likewise.
4693         * io/lchown.c: Likewise.
4694         * io/link.c: Likewise.
4695         * io/linkat.c: Likewise.
4696         * io/lseek.c: Likewise.
4697         * io/lseek64.c: Likewise.
4698         * io/lxstat64.c: Likewise.
4699         * io/mkdir.c: Likewise.
4700         * io/mkdirat.c: Likewise.
4701         * io/mkfifo.c: Likewise.
4702         * io/mkfifoat.c: Likewise.
4703         * io/open.c: Likewise.
4704         * io/open64.c: Likewise.
4705         * io/openat.c: Likewise.
4706         * io/openat64.c: Likewise.
4707         * io/pipe.c: Likewise.
4708         * io/pipe2.c: Likewise.
4709         * io/poll.c: Likewise.
4710         * io/posix_fadvise.c: Likewise.
4711         * io/posix_fadvise64.c: Likewise.
4712         * io/posix_fallocate.c: Likewise.
4713         * io/posix_fallocate64.c: Likewise.
4714         * io/read.c: Likewise.
4715         * io/readlink.c: Likewise.
4716         * io/readlinkat.c: Likewise.
4717         * io/rmdir.c: Likewise.
4718         * io/sendfile.c: Likewise.
4719         * io/sendfile64.c: Likewise.
4720         * io/statfs.c: Likewise.
4721         * io/statfs64.c: Likewise.
4722         * io/statvfs.c: Likewise.
4723         * io/statvfs64.c: Likewise.
4724         * io/symlink.c: Likewise.
4725         * io/symlinkat.c: Likewise.
4726         * io/ttyname.c: Likewise.
4727         * io/ttyname_r.c: Likewise.
4728         * io/umask.c: Likewise.
4729         * io/unlink.c: Likewise.
4730         * io/unlinkat.c: Likewise.
4731         * io/utime.c: Likewise.
4732         * io/utimensat.c: Likewise.
4733         * io/write.c: Likewise.
4734         * io/xmknod.c: Likewise.
4735         * io/xmknodat.c: Likewise.
4736         * io/xstat.c: Likewise.
4737         * io/xstat64.c: Likewise.
4738         * login/getpt.c: Likewise.
4739         * login/grantpt.c: Likewise.
4740         * login/unlockpt.c: Likewise.
4741         * math/e_acoshl.c: Likewise.
4742         * math/e_acosl.c: Likewise.
4743         * math/e_asinl.c: Likewise.
4744         * math/e_atan2l.c: Likewise.
4745         * math/e_atanhl.c: Likewise.
4746         * math/e_coshl.c: Likewise.
4747         * math/e_expl.c: Likewise.
4748         * math/e_fmodl.c: Likewise.
4749         * math/e_gammal_r.c: Likewise.
4750         * math/e_hypotl.c: Likewise.
4751         * math/e_j0l.c: Likewise.
4752         * math/e_j1l.c: Likewise.
4753         * math/e_jnl.c: Likewise.
4754         * math/e_lgammal_r.c: Likewise.
4755         * math/e_log10l.c: Likewise.
4756         * math/e_log2l.c: Likewise.
4757         * math/e_logl.c: Likewise.
4758         * math/e_powl.c: Likewise.
4759         * math/e_rem_pio2l.c: Likewise.
4760         * math/e_sinhl.c: Likewise.
4761         * math/e_sqrtl.c: Likewise.
4762         * math/fclrexcpt.c: Likewise.
4763         * math/fedisblxcpt.c: Likewise.
4764         * math/feenablxcpt.c: Likewise.
4765         * math/fegetenv.c: Likewise.
4766         * math/fegetexcept.c: Likewise.
4767         * math/fegetround.c: Likewise.
4768         * math/feholdexcpt.c: Likewise.
4769         * math/fesetenv.c: Likewise.
4770         * math/fesetround.c: Likewise.
4771         * math/feupdateenv.c: Likewise.
4772         * math/fgetexcptflg.c: Likewise.
4773         * math/fraiseexcpt.c: Likewise.
4774         * math/fsetexcptflg.c: Likewise.
4775         * math/ftestexcept.c: Likewise.
4776         * math/k_cosl.c: Likewise.
4777         * math/k_rem_pio2l.c: Likewise.
4778         * math/k_sinl.c: Likewise.
4779         * math/k_tanl.c: Likewise.
4780         * math/s_asinhl.c: Likewise.
4781         * math/s_atanl.c: Likewise.
4782         * math/s_cbrtl.c: Likewise.
4783         * math/s_erfl.c: Likewise.
4784         * math/s_expm1l.c: Likewise.
4785         * math/s_log1pl.c: Likewise.
4786         * math/s_tanhl.c: Likewise.
4787         * misc/acct.c: Likewise.
4788         * misc/brk.c: Likewise.
4789         * misc/chflags.c: Likewise.
4790         * misc/chroot.c: Likewise.
4791         * misc/fchflags.c: Likewise.
4792         * misc/fgetxattr.c: Likewise.
4793         * misc/flistxattr.c: Likewise.
4794         * misc/fremovexattr.c: Likewise.
4795         * misc/fsetxattr.c: Likewise.
4796         * misc/fsync.c: Likewise.
4797         * misc/ftruncate.c: Likewise.
4798         * misc/futimes.c: Likewise.
4799         * misc/futimesat.c: Likewise.
4800         * misc/getdomain.c: Likewise.
4801         * misc/getdtsz.c: Likewise.
4802         * misc/gethostid.c: Likewise.
4803         * misc/gethostname.c: Likewise.
4804         * misc/getloadavg.c: Likewise.
4805         * misc/getpagesize.c: Likewise.
4806         * misc/getsysstats.c: Likewise.
4807         * misc/getxattr.c: Likewise.
4808         * misc/gtty.c: Likewise.
4809         * misc/ioctl.c: Likewise.
4810         * misc/lgetxattr.c: Likewise.
4811         * misc/listxattr.c: Likewise.
4812         * misc/llistxattr.c: Likewise.
4813         * misc/lremovexattr.c: Likewise.
4814         * misc/lsetxattr.c: Likewise.
4815         * misc/lutimes.c: Likewise.
4816         * misc/madvise.c: Likewise.
4817         * misc/mincore.c: Likewise.
4818         * misc/mlock.c: Likewise.
4819         * misc/mlockall.c: Likewise.
4820         * misc/mmap.c: Likewise.
4821         * misc/mprotect.c: Likewise.
4822         * misc/msync.c: Likewise.
4823         * misc/munlock.c: Likewise.
4824         * misc/munlockall.c: Likewise.
4825         * misc/munmap.c: Likewise.
4826         * misc/preadv.c: Likewise.
4827         * misc/preadv64.c: Likewise.
4828         * misc/ptrace.c: Likewise.
4829         * misc/pwritev.c: Likewise.
4830         * misc/pwritev64.c: Likewise.
4831         * misc/readv.c: Likewise.
4832         * misc/reboot.c: Likewise.
4833         * misc/remap_file_pages.c: Likewise.
4834         * misc/removexattr.c: Likewise.
4835         * misc/revoke.c: Likewise.
4836         * misc/select.c: Likewise.
4837         * misc/setdomain.c: Likewise.
4838         * misc/setegid.c: Likewise.
4839         * misc/seteuid.c: Likewise.
4840         * misc/sethostid.c: Likewise.
4841         * misc/sethostname.c: Likewise.
4842         * misc/setregid.c: Likewise.
4843         * misc/setreuid.c: Likewise.
4844         * misc/setxattr.c: Likewise.
4845         * misc/sstk.c: Likewise.
4846         * misc/stty.c: Likewise.
4847         * misc/swapoff.c: Likewise.
4848         * misc/swapon.c: Likewise.
4849         * misc/sync.c: Likewise.
4850         * misc/syncfs.c: Likewise.
4851         * misc/syscall.c: Likewise.
4852         * misc/truncate.c: Likewise.
4853         * misc/ualarm.c: Likewise.
4854         * misc/usleep.c: Likewise.
4855         * misc/ustat.c: Likewise.
4856         * misc/utimes.c: Likewise.
4857         * misc/vhangup.c: Likewise.
4858         * misc/writev.c: Likewise.
4859         * posix/_exit.c: Likewise.
4860         * posix/alarm.c: Likewise.
4861         * posix/execve.c: Likewise.
4862         * posix/fexecve.c: Likewise.
4863         * posix/fork.c: Likewise.
4864         * posix/fpathconf.c: Likewise.
4865         * posix/getaddrinfo.c: Likewise.
4866         * posix/getegid.c: Likewise.
4867         * posix/geteuid.c: Likewise.
4868         * posix/getgid.c: Likewise.
4869         * posix/getgroups.c: Likewise.
4870         * posix/getlogin.c: Likewise.
4871         * posix/getlogin_r.c: Likewise.
4872         * posix/getpgid.c: Likewise.
4873         * posix/getpid.c: Likewise.
4874         * posix/getppid.c: Likewise.
4875         * posix/getresgid.c: Likewise.
4876         * posix/getresuid.c: Likewise.
4877         * posix/getsid.c: Likewise.
4878         * posix/getuid.c: Likewise.
4879         * posix/glob64.c: Likewise.
4880         * posix/nanosleep.c: Likewise.
4881         * posix/pathconf.c: Likewise.
4882         * posix/pause.c: Likewise.
4883         * posix/posix_madvise.c: Likewise.
4884         * posix/pread.c: Likewise.
4885         * posix/pread64.c: Likewise.
4886         * posix/pwrite.c: Likewise.
4887         * posix/pwrite64.c: Likewise.
4888         * posix/sched_getaffinity.c: Likewise.
4889         * posix/sched_getp.c: Likewise.
4890         * posix/sched_gets.c: Likewise.
4891         * posix/sched_primax.c: Likewise.
4892         * posix/sched_primin.c: Likewise.
4893         * posix/sched_rr_gi.c: Likewise.
4894         * posix/sched_setaffinity.c: Likewise.
4895         * posix/sched_setp.c: Likewise.
4896         * posix/sched_sets.c: Likewise.
4897         * posix/sched_yield.c: Likewise.
4898         * posix/setgid.c: Likewise.
4899         * posix/setlogin.c: Likewise.
4900         * posix/setpgid.c: Likewise.
4901         * posix/setresgid.c: Likewise.
4902         * posix/setresuid.c: Likewise.
4903         * posix/setsid.c: Likewise.
4904         * posix/setuid.c: Likewise.
4905         * posix/sleep.c: Likewise.
4906         * posix/spawni.c: Likewise.
4907         * posix/sysconf.c: Likewise.
4908         * posix/times.c: Likewise.
4909         * posix/wait.c: Likewise.
4910         * posix/wait3.c: Likewise.
4911         * posix/wait4.c: Likewise.
4912         * posix/waitpid.c: Likewise.
4913         * resolv/gai_sigqueue.c: Likewise.
4914         * resource/getpriority.c: Likewise.
4915         * resource/getrlimit.c: Likewise.
4916         * resource/getrusage.c: Likewise.
4917         * resource/nice.c: Likewise.
4918         * resource/setpriority.c: Likewise.
4919         * resource/setrlimit.c: Likewise.
4920         * resource/ulimit.c: Likewise.
4921         * rt/aio_cancel.c: Likewise.
4922         * rt/aio_fsync.c: Likewise.
4923         * rt/aio_read.c: Likewise.
4924         * rt/aio_sigqueue.c: Likewise.
4925         * rt/aio_suspend.c: Likewise.
4926         * rt/aio_write.c: Likewise.
4927         * rt/clock_getres.c: Likewise.
4928         * rt/clock_gettime.c: Likewise.
4929         * rt/clock_nanosleep.c: Likewise.
4930         * rt/clock_settime.c: Likewise.
4931         * rt/lio_listio.c: Likewise.
4932         * rt/mq_close.c: Likewise.
4933         * rt/mq_getattr.c: Likewise.
4934         * rt/mq_notify.c: Likewise.
4935         * rt/mq_open.c: Likewise.
4936         * rt/mq_receive.c: Likewise.
4937         * rt/mq_send.c: Likewise.
4938         * rt/mq_setattr.c: Likewise.
4939         * rt/mq_timedreceive.c: Likewise.
4940         * rt/mq_timedsend.c: Likewise.
4941         * rt/mq_unlink.c: Likewise.
4942         * rt/shm_open.c: Likewise.
4943         * rt/shm_unlink.c: Likewise.
4944         * rt/timer_create.c: Likewise.
4945         * rt/timer_delete.c: Likewise.
4946         * rt/timer_getoverr.c: Likewise.
4947         * rt/timer_gettime.c: Likewise.
4948         * rt/timer_settime.c: Likewise.
4949         * setjmp/__longjmp.c: Likewise.
4950         * setjmp/setjmp.c: Likewise.
4951         * signal/kill.c: Likewise.
4952         * signal/killpg.c: Likewise.
4953         * signal/raise.c: Likewise.
4954         * signal/sigaction.c: Likewise.
4955         * signal/sigaltstack.c: Likewise.
4956         * signal/sigblock.c: Likewise.
4957         * signal/sigignore.c: Likewise.
4958         * signal/sigintr.c: Likewise.
4959         * signal/signal.c: Likewise.
4960         * signal/sigpause.c: Likewise.
4961         * signal/sigpending.c: Likewise.
4962         * signal/sigqueue.c: Likewise.
4963         * signal/sigreturn.c: Likewise.
4964         * signal/sigset.c: Likewise.
4965         * signal/sigsetmask.c: Likewise.
4966         * signal/sigstack.c: Likewise.
4967         * signal/sigsuspend.c: Likewise.
4968         * signal/sigtimedwait.c: Likewise.
4969         * signal/sigvec.c: Likewise.
4970         * signal/sigwait.c: Likewise.
4971         * signal/sigwaitinfo.c: Likewise.
4972         * signal/sysv_signal.c: Likewise.
4973         * socket/accept.c: Likewise.
4974         * socket/accept4.c: Likewise.
4975         * socket/bind.c: Likewise.
4976         * socket/connect.c: Likewise.
4977         * socket/getpeername.c: Likewise.
4978         * socket/getsockname.c: Likewise.
4979         * socket/getsockopt.c: Likewise.
4980         * socket/isfdtype.c: Likewise.
4981         * socket/listen.c: Likewise.
4982         * socket/recv.c: Likewise.
4983         * socket/recvfrom.c: Likewise.
4984         * socket/recvmsg.c: Likewise.
4985         * socket/send.c: Likewise.
4986         * socket/sendmsg.c: Likewise.
4987         * socket/sendto.c: Likewise.
4988         * socket/setsockopt.c: Likewise.
4989         * socket/shutdown.c: Likewise.
4990         * socket/sockatmark.c: Likewise.
4991         * socket/socket.c: Likewise.
4992         * socket/socketpair.c: Likewise.
4993         * stdio-common/ctermid.c: Likewise.
4994         * stdio-common/cuserid.c: Likewise.
4995         * stdio-common/remove.c: Likewise.
4996         * stdio-common/rename.c: Likewise.
4997         * stdio-common/renameat.c: Likewise.
4998         * stdio-common/tempname.c: Likewise.
4999         * stdlib/getcontext.c: Likewise.
5000         * stdlib/makecontext.c: Likewise.
5001         * stdlib/setcontext.c: Likewise.
5002         * stdlib/swapcontext.c: Likewise.
5003         * stdlib/system.c: Likewise.
5004         * streams/fattach.c: Likewise.
5005         * streams/fdetach.c: Likewise.
5006         * streams/getmsg.c: Likewise.
5007         * streams/getpmsg.c: Likewise.
5008         * streams/putmsg.c: Likewise.
5009         * streams/putpmsg.c: Likewise.
5010         * sysdeps/unix/bsd/getpt.c: Likewise.
5011         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
5012         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
5013         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
5014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
5015         Likewise.
5016         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
5017         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
5018         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
5019         * sysvipc/msgctl.c: Likewise.
5020         * sysvipc/msgget.c: Likewise.
5021         * sysvipc/msgrcv.c: Likewise.
5022         * sysvipc/msgsnd.c: Likewise.
5023         * sysvipc/semctl.c: Likewise.
5024         * sysvipc/semget.c: Likewise.
5025         * sysvipc/semop.c: Likewise.
5026         * sysvipc/semtimedop.c: Likewise.
5027         * sysvipc/shmat.c: Likewise.
5028         * sysvipc/shmctl.c: Likewise.
5029         * sysvipc/shmdt.c: Likewise.
5030         * sysvipc/shmget.c: Likewise.
5031         * termios/tcdrain.c: Likewise.
5032         * termios/tcflow.c: Likewise.
5033         * termios/tcflush.c: Likewise.
5034         * termios/tcgetattr.c: Likewise.
5035         * termios/tcgetpgrp.c: Likewise.
5036         * termios/tcsendbrk.c: Likewise.
5037         * termios/tcsetattr.c: Likewise.
5038         * termios/tcsetpgrp.c: Likewise.
5039         * time/adjtime.c: Likewise.
5040         * time/clock.c: Likewise.
5041         * time/getitimer.c: Likewise.
5042         * time/gettimeofday.c: Likewise.
5043         * time/setitimer.c: Likewise.
5044         * time/settimeofday.c: Likewise.
5045         * time/stime.c: Likewise.
5046         * time/time.c: Likewise.
5048 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
5050         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
5051         /usr/old/bin.
5053         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
5054         instead of spaces.
5055         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
5057 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
5059         [BZ #14796]
5060         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
5061         FE_TONEAREST before applying Dekker multiplication and Knuth
5062         addition.  Clear inexact exceptions and check for exact zero
5063         results afterwards.
5064         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5065         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5066         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5067         * math/libm-test.inc (fma_test): Add more tests.
5068         (fma_test_towardzero): Likewise.
5069         (fma_test_downward): Likewise.
5070         (fma_test_upward): Likewise.
5071         * sysdeps/generic/math_private.h (default_libc_fesetround): New
5072         function.
5073         (libc_fesetround): New macro.
5074         (libc_fesetroundf): Likewise.
5075         (libc_fesetroundl): Likewise.
5076         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
5077         function.
5078         (libc_fesetround_387): Likewise.
5079         (libc_fesetroundf): New macro.
5080         (libc_fesetround): Likewise.
5081         (libc_fesetroundl): Likewise.
5082         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
5083         function.
5084         (libc_fesetroundf): New macro.
5085         (libc_fesetround): Likewise.
5086         (libc_fesetroundl): Likewise.
5087         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
5088         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
5089         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
5090         libm_hidden_ver.
5091         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
5092         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
5093         libm_hidden_def.
5094         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
5095         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
5096         libm_hidden_ver.
5097         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
5098         libm_hidden_def.
5100         [BZ #3439]
5101         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
5102         integer constant usable in #if and use that to give value to enum
5103         constant.
5104         (FE_DIVBYZERO): Likewise.
5105         (FE_UNDERFLOW): Likewise.
5106         (FE_OVERFLOW): Likewise.
5107         (FE_INVALID): Likewise.
5108         (FE_INVALID_SNAN): Likewise.
5109         (FE_INVALID_ISI): Likewise.
5110         (FE_INVALID_IDI): Likewise.
5111         (FE_INVALID_ZDZ): Likewise.
5112         (FE_INVALID_IMZ): Likewise.
5113         (FE_INVALID_COMPARE): Likewise.
5114         (FE_INVALID_SOFTWARE): Likewise.
5115         (FE_INVALID_SQRT): Likewise.
5116         (FE_INVALID_INTEGER_CONVERSION): Likewise.
5117         (FE_TONEAREST): Likewise.
5118         (FE_TOWARDZERO): Likewise.
5119         (FE_UPWARD): Likewise.
5120         (FE_DOWNWARD): Likewise.
5121         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
5122         (FE_DIVBYZERO): Likewise.
5123         (FE_OVERFLOW): Likewise.
5124         (FE_UNDERFLOW): Likewise.
5125         (FE_INEXACT): Likewise.
5126         (FE_TONEAREST): Likewise.
5127         (FE_DOWNWARD): Likewise.
5128         (FE_UPWARD): Likewise.
5129         (FE_TOWARDZERO): Likewise.
5130         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
5131         (FE_UNDERFLOW): Likewise.
5132         (FE_OVERFLOW): Likewise.
5133         (FE_DIVBYZERO): Likewise.
5134         (FE_INVALID): Likewise.
5135         (FE_TONEAREST): Likewise.
5136         (FE_TOWARDZERO): Likewise.
5137         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
5138         (FE_OVERFLOW): Likewise.
5139         (FE_UNDERFLOW): Likewise.
5140         (FE_DIVBYZERO): Likewise.
5141         (FE_INEXACT): Likewise.
5142         (FE_TONEAREST): Likewise.
5143         (FE_TOWARDZERO): Likewise.
5144         (FE_UPWARD): Likewise.
5145         (FE_DOWNWARD): Likewise.
5146         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
5147         (FE_DIVBYZERO): Likewise.
5148         (FE_OVERFLOW): Likewise.
5149         (FE_UNDERFLOW): Likewise.
5150         (FE_INEXACT): Likewise.
5151         (FE_TONEAREST): Likewise.
5152         (FE_DOWNWARD): Likewise.
5153         (FE_UPWARD): Likewise.
5154         (FE_TOWARDZERO): Likewise.
5156 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
5158         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
5160 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
5162         * scripts/cross-test-ssh.sh (command): Use newlines to separate
5163         commands.  Quote $PWD.
5164         (blacklist_exports): Don't use remove_newlines.  Replace "declare
5165         -x" by "export".
5166         (remove_newlines): Remove.
5168 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5170         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
5171         * stdlib/stdlib.h (atof): Moved to ...
5172         * include/bits/stdlib-float.h: Here.  New file.
5173         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
5174         * stdlib/bits/stdlib-float.h: New file.
5175         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
5176         -mno-sse -mno-mmx.
5177         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
5178         <xmmintrin.h>.
5180 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5182         * conform/conformtest.pl (@headers): Add fenv.h.
5183         * conform/data/fenv.h-data: New file.
5184         * include/fenv.h [_ISOMAC]: Disable all contents of file except
5185         include of <math/fenv.h>.
5187         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
5188         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
5189         && !UNIX98].  Enables tests for XOPEN2K8.
5190         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
5191         POSIX2008]: Likewise.
5193         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
5194         (struct rusage): Do not expect type or its members.
5196         [BZ #3439]
5197         * math/math.h (FP_NAN): Define macro to integer constant usable in
5198         #if and use that to give value to enum constant.
5199         (FP_INFINITE): Likewise.
5200         (FP_ZERO): Likewise.
5201         (FP_SUBNORMAL): Likewise.
5202         (FP_NORMAL): Likewise.
5204 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
5206         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
5207         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
5208         arguments.
5210 2012-11-02  Roland McGrath  <roland@hack.frob.com>
5212         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
5213         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
5214         autoconf-time if not.
5215         * configure.in: Remove AC_PREREQ.
5217 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5219         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
5220         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
5221         of the internal implementation.
5223 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5225         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
5226         except include of <misc/sys/syslog.h>.
5228 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
5231         function returns with a NULL context exit with zero.
5233 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5235         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
5237 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
5239         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
5240         (run_program_cmd): This.
5241         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
5242         (tst_langinfo): New variable.  Use it.
5244 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
5246         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
5247         floating point opcodes.
5249 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5251         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
5252         variable.
5254         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
5256         * sysdeps/mach/hurd/powerpc: Remove directory.
5257         * sysdeps/mach/powerpc: Likewise.
5259 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5261         * scripts/check-local-headers.sh: Ignore c++ headers.
5263 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5265         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
5266         __libc_cleanup_region_start argument.
5268 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
5270         [BZ #14784]
5271         [BZ #14785]
5272         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
5273         x * y using scaling, not as x * y + z.
5274         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5275         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5276         * math/libm-test.inc (fma_test): Add more tests.
5277         (fma_test_towardzero): Likewise.
5278         (fma_test_downward): Likewise.
5279         (fma_test_upward): Likewise.
5281 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5283         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
5285 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5287         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
5288         New variable.
5290 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
5292         * rt/tst-shm.c (worker): Correct checking for mmap failure.
5294 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5297         Fix sort order.
5298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5299         Likewise.
5301 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5304         Fix the order of the list for glibc 2.17.
5305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5306         Likewise.
5308 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5310         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5312 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5314         [BZ #14610]
5315         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
5316         for low part of x being zero before using __atanl (y).
5317         * math/libm-test.inc (atan2_test): Add another test.
5319         * manual/install.texi (Configuring and compiling): Document
5320         general use of test-wrapper and test-wrapper-env.
5321         * INSTALL: Regenerated.
5323         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
5324         (__fma): Do not extract and scale down low bits on after-rounding
5325         systems when result rounded to normal precision would have normal
5326         exponent.
5327         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
5328         (__fmal): Do not extract and scale down low bits on after-rounding
5329         systems when result rounded to normal precision would have normal
5330         exponent.
5331         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
5332         (__fmal): Do not extract and scale down low bits on after-rounding
5333         systems when result rounded to normal precision would have normal
5334         exponent.
5335         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
5336         macro.
5337         (fma_test): Add more tests.
5338         (fma_test_towardzero): Likewise.
5339         (fma_test_downward): Likewise.
5340         (fma_test_upward): Likewise.
5342 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5344         * sysdeps/i386/tininess.h: Renamed to ...
5345         * sysdeps/x86/tininess.h: This.
5346         * sysdeps/x86_64/tininess.h: Removed.
5348 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5350         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
5351         input.  Use $(build-program-cmd).
5352         ($(objpfx)tst-array1-static.out): Likewise.
5353         ($(objpfx)tst-array2.out): Likewise.
5354         ($(objpfx)tst-array3.out): Likewise.
5355         ($(objpfx)tst-array4.out): Likewise.
5356         ($(objpfx)tst-array5.out): Likewise.
5357         ($(objpfx)tst-array5-static.out): Likewise.
5359 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
5361         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
5362         if defined.
5364         * nss/nsswitch.h (nss_interface_function): Provide new
5365         macro for use with NSS functions.
5366         * grp/initgroups.c: Use new macro.
5367         * nss/getXXbyYY.c: Likewise.
5368         * nss/getXXbyYY_r.c: Likewise.
5369         * nss/getXXent.c: Likewise.
5370         * nss/getXXent_r.c: Likewise.
5371         * sysdeps/posix/getaddrinfo.c: Likewise.
5373 2012-10-30  Andreas Jaeger  <aj@suse.de>
5375         * po/ru.po: Update Russion translation from translation project.
5377 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5379         [BZ #14152]
5380         [BZ #14783]
5381         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
5382         result and shift together with sticky bit instead of replicating
5383         round-to-nearest rounding.
5384         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5385         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5386         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
5387         missing underflow exceptions.
5388         (fma_test_towardzero): Add more tests.
5389         (fma_test_downward): Likewise.
5390         (fma_test_upward): Likewise.
5392         [BZ #14047]
5393         * sysdeps/generic/tininess.h: New file.
5394         * sysdeps/i386/tininess.h: Likewise.
5395         * sysdeps/sh/tininess.h: Likewise.
5396         * sysdeps/x86_64/tininess.h: Likewise.
5397         * stdlib/tst-strtod-underflow.c: Likewise.
5398         * stdlib/tst-tininess.c: Likewise.
5399         * stdlib/strtod_l.c: Include <tininess.h>.
5400         (round_and_return): Do not set errno for exact underflow cases.
5401         Force an underflow exception when setting errno for underflow.
5402         Determine underflow based on rounding to normal precision if
5403         TININESS_AFTER_ROUNDING.
5404         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
5405         ERANGE for exact underflow cases.
5406         * stdlib/Makefile (tests): Add tst-tininess and
5407         tst-strtod-underflow.
5408         ($(objpfx)tst-tininess): Use $(link-libm).
5409         ($(objpfx)tst-strtod-underflow): Likewise.
5411 2012-10-30  Andreas Jaeger  <aj@suse.de>
5413         [BZ#14767]
5414         * elf/Makefile (tests): Remove conditional for have-initfini-array
5415         since this is now always required and the variable does not exist
5416         anymore.
5417         (tests-static): Likewise.
5418         (modules-names): Likewise.
5420         * po/eo.po: Add Esperanto translation from translation project.
5422         * elf/tst-array1.c (fini_array): Make writeable so that it can be
5423         merged with constructor/destructor.
5424         (init_array): Likewise.
5425         * elf/tst-array2dep.c (fini_array): Likewise.
5426         (init_array): Likewise.
5428 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
5430         * manual/message.texi: Delete @cartouche tags.
5432 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
5434         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
5435         EOPNOTSUPP.
5436         * sysdeps/mach/hurd/fsync.c: Likewise.
5438         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
5439         [_POSIX_REALTIME_SIGNALS]: Change condition to
5440         [_POSIX_REALTIME_SIGNALS > 0].
5442 2012-10-27  Andreas Jaeger  <aj@suse.de>
5444         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
5445         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
5446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
5447         [__WORDSIZE != 64]: Likewise.
5449 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5451         *  iconvdata/tst-table.sh: Remove ${SHELL}.
5452         *  iconvdata/tst-tables.sh: Likewise.
5454 2012-10-25  David S. Miller  <davem@davemloft.net>
5456         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5457         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
5458         of strtoull.
5460         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
5461         ifunc-impl-list.c
5462         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5463         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
5464         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
5465         file.
5467 2012-10-25  Roland McGrath  <roland@hack.frob.com>
5469         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5470         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
5471         __getdirentries.
5473 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5474             Jim Blandy  <jimb@codesourcery.com>
5476         * scripts/cross-test-ssh.sh: New file.
5477         * manual/install.texi (Configuring and compiling): Document use of
5478         cross-test-ssh.sh.
5479         * INSTALL: Regenerated.
5481 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
5483         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
5484         EOPNOTSUPP.
5486 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5488         * Makeconfig (run-program-prefix): Fix comment.
5490 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5491             Jim Blandy  <jimb@codesourcery.com>
5493         * Makeconfig (test-wrapper): New variable,
5494         (test-wrapper-env): Likewise.
5495         [$(cross-compiling) = yes && $(test-wrapper) != ""]
5496         (run-built-tests): Define to yes.
5497         (run-program-prefix): Use $(test-wrapper).
5498         (built-program-cmd): Likewise.
5499         * Rules (make-test-out): Use $(test-wrapper-env) and
5500         $(host-built-program-cmd).
5501         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
5502         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
5503         tst-pathopt.sh.
5504         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
5505         $(test-wrapper-env) to tst-rtld-load-self.sh.
5506         ($(objpfx)order2.out): Use $(test-wrapper).
5507         ($(objpfx)tst-initorder.out): Likewise.
5508         ($(objpfx)tst-initorder2.out): Likewise.
5509         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
5510         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
5511         (test_wrapper_env): New variable.  Use it to run ld.so.
5512         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
5513         Use it to run ld.so.
5514         (test_wrapper_env): Likewise.
5515         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
5516         $(test-wrapper) to run-iconv-test.sh.
5517         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
5518         (ICONV): Use $test_wrapper.
5519         * posix/Makefile ($(objpfx)globtest.out): Pass
5520         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
5521         globtest.sh, not $(run-program-prefix).
5522         * posix/globtest.sh (run_via_rtld_prefix): New variable.
5523         (test_wrapper): Likewise.
5524         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
5525         set together with run_via_rtld_prefix.
5526         (run_program_prefix): Define in terms of test_wrapper and
5527         run_via_rtld_prefix.
5529 2012-10-24  Roland McGrath  <roland@hack.frob.com>
5531         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
5532         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
5533         Targets removed.
5535         [BZ #14743]
5536         * include/time.h: Remove librt_hidden_proto (clock_gettime).
5537         Declare __clock_getres, __clock_gettime, __clock_settime,
5538         __clock_nanosleep, and __clock_getcpuclockid.
5539         * rt/clock_gettime.c: Define __clock_gettime as an alias.
5540         Remove librt_hidden_def (clock_gettime).
5541         * sysdeps/unix/clock_gettime.c: Likewise.
5542         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
5543         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
5544         * rt/clock_getres.c: Define __clock_getres as an alias.
5545         * sysdeps/posix/clock_getres.c: Likewise.
5546         * rt/clock_settime.c: Define __clock_settime as an alias.
5547         * sysdeps/unix/clock_settime.c: Likewise.
5548         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
5549         * sysdeps/unix/clock_nanosleep.c: Likewise.
5550         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5551         * rt/clock-compat.c: New file.
5552         * rt/Makefile (librt-routines): Add clock-compat and move
5553         $(clock-routines) to ...
5554         (routines): ... here, new variable.
5555         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
5556         Don't add get_clockfreq here.
5557         * rt/Versions (libc: GLIBC_2.17): New version set.
5558         Add clock_* symbols here.
5559         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
5560         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
5561         (GLIBC_2.17): Add clock_* symbols.
5562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5564         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5566         Likewise.
5567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5568         Likewise.
5569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5570         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5573         * NEWS: Mention the move.
5575         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
5576         Use __open, __read, __close rather than their public counterparts.
5577         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5578         (__get_clockfreq_via_cpuinfo): Likewise.
5579         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
5580         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
5582         * config.h.in (HAVE_IFUNC): New #undef.
5583         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
5584         was successful.
5585         * configure: Regenerated.
5587 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
5589         * configure.in: Move READELF check to start of file.
5590         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
5591         libc_cv_asm_gnu_indirect_function in the process.
5592         * configure: Regenerated.
5594 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
5596         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
5597         send the output to /dev/null.
5598         (libc_cv_cc_with_libunwind): Likewise.
5599         (libc_cv_as_noexecstack): Likewise.
5600         * configure: Regenerate.
5602 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5604         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
5606         * posix/globtest.sh (TMPDIR): Do not set.
5607         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
5608         (testout): Likewise.
5610 2012-10-24  Andreas Jaeger  <aj@suse.de>
5612         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
5613         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
5614         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
5615         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
5616         posix_fadvise64, posix_fallocate64.
5618         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
5619         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
5620         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
5621         Likewise.
5622         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
5623         Likewise.
5624         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
5626         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
5627         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
5628         <bits/fcntl-linux.h>.
5629         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
5631         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
5632         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
5633         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
5634         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
5635         [__WORDSIZE != 64]: Likewise.
5637 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5639         * Makeconfig (run-built-tests): New variable.
5640         * Rules [$(cross-compiling) = yes]: Change condition to
5641         [$(run-built-tests) = no].
5642         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
5643         to [$(run-built-tests) = yes].
5644         * elf/Makefile [$(cross-compiling) = no]: Likewise
5645         * grp/Makefile [$(cross-compiling) = no]: Likewise.
5646         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
5647         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
5648         * intl/Makefile [$(cross-compiling) = no]: Likewise.
5649         * io/Makefile [$(cross-compiling) = no]: Likewise.
5650         * libio/Makefile [$(cross-compiling) = no]: Likewise.
5651         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
5652         * misc/Makefile [$(cross-compiling) = no]: Likewise.
5653         * posix/Makefile [$(cross-compiling) = no]: Likewise.
5654         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
5655         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
5656         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
5657         * string/Makefile [$(cross-compiling) = no]: Likewise.
5659         * posix/Makefile ($(objpfx)globtest.out): Pass
5660         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
5661         $(rtld-installed-name).
5662         * posix/globtest.sh (elf_objpfx): Remove variable.
5663         (rtld_installed_name): Likewise.
5664         (library_path): Likewise.
5665         (run_program_prefix): New variable.  Use for running globtest
5666         binary.
5668 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
5669             Joseph Myers  <joseph@codesourcery.com>
5671         * Makeconfig (host-built-program-cmd): New variable.
5672         * elf/Makefile (tst-stackguard1-ARGS): Use
5673         $(host-built-program-cmd).
5674         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
5675         (tst-spawn-ARGS): Likewise.
5676         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
5678 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5679             Jim Blandy  <jimb@codesourcery.com>
5681         * Makeconfig (run-via-rtld-prefix): New variable.
5682         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
5683         (built-program-cmd): Likewise.
5685 2012-10-22  Andreas Jaeger  <aj@suse.de>
5687         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
5688         __O_RSYNC if it exists, otherwise to O_SYNC.
5690 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
5691             Joseph Myers  <joseph@codesourcery.com>
5693         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
5694         /dev/null.
5695         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
5696         from /dev/null
5697         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
5698         /dev/null.
5700 2012-10-22  Andreas Jaeger  <aj@suse.de>
5702         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
5703         Define always.
5704         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
5706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5707         bits/fcntl-linux.h.
5709         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
5710         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
5712         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
5713         to __O_LARGEFILE.
5714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
5715         to __O_LARGEFILE.
5717 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
5718             Joseph Myers  <joseph@codesourcery.com>
5720         * config.make.in (NM): New variable.
5722 2012-10-21  Andreas Jaeger  <aj@suse.de>
5724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
5725         definitions and declarations that are provided by
5726         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
5728 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5730         [BZ #14683]
5731         * elf/Makefile (tests-static): Add tst-leaks1-static.
5732         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
5733         ($(objpfx)tst-leaks1-static): New rule.
5734         ($(objpfx)tst-leaks1-static-mem): Likewise.
5735         (tst-leaks1-static-ENV): New macro.
5736         * elf/dl-open.c (dl_open_worker): Check the main application
5737         only if SHARED is defined.
5738         * elf/tst-leaks1-static.c: New file.
5740 2012-10-20  Andreas Jaeger  <aj@suse.de>
5742         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
5743         generic values for Linux.
5744         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
5745         and declarations that are provided by <bits/fcntl-linux.h> and
5746         include <bits/fcntl-linux.h>.
5747         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5748         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5750 2012-10-20  Roland McGrath  <roland@hack.frob.com>
5752         * io/fcntl.h: Move include of <bits/types.h> to the top and
5753         include it unconditionally.
5755 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5757         * wcsmbs/Makefile (tests-ifunc): New variable.
5758         (tests): Add $(tests-ifunc).
5759         * wcsmbs/test-wcschr-ifunc.c: New file.
5760         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
5761         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
5762         * wcsmbs/test-wcslen-ifunc.c: Likewise.
5763         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
5764         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
5766         * string/Makefile (tests-ifunc): New variable.
5767         (tests): Add $(tests-ifunc).
5768         * string/test-memccpy.c (TEST_NAME): New macro.
5769         * string/test-memchr.c (TEST_NAME): Likewise.
5770         * string/test-memcmp.c (TEST_NAME): Likewise.
5771         * string/test-memcpy.c (TEST_NAME): Likewise.
5772         * string/test-memmem.c (TEST_NAME): Likewise.
5773         * string/test-memmove.c (TEST_NAME): Likewise.
5774         * string/test-memset.c (TEST_NAME): Likewise.
5775         * string/test-rawmemchr.c (TEST_NAME): Likewise.
5776         * string/test-stpcpy.c (TEST_NAME): Likewise.
5777         * string/test-stpncpy.c (TEST_NAME): Likewise.
5778         * string/test-strcasecmp.c (TEST_NAME): Likewise.
5779         * string/test-strcasestr.c (TEST_NAME): Likewise.
5780         * string/test-strcat.c (TEST_NAME): Likewise.
5781         * string/test-strchr.c (TEST_NAME): Likewise.
5782         * string/test-strcmp.c(TEST_NAME): Likewise.
5783         * string/test-strcpy.c (TEST_NAME): Likewise.
5784         * string/test-strcspn.c (TEST_NAME): Likewise.
5785         * string/test-strlen.c (TEST_NAME): Likewise.
5786         * string/test-strncasecmp.c (TEST_NAME): Likewise.
5787         * string/test-strncmp.c (TEST_NAME): Likewise.
5788         * string/test-strncpy.c (TEST_NAME): Likewise.
5789         * string/test-strnlen.c (TEST_NAME): Likewise.
5790         * string/test-strpbrk.c (TEST_NAME): Likewise.
5791         * string/test-strrchr.c (TEST_NAME): Likewise.
5792         * string/test-strspn.c (TEST_NAME): Likewise.
5793         * string/test-strstr.c (TEST_NAME): Likewise.
5794         * string/test-bcopy-ifunc.c: New file.
5795         * string/test-bzero-ifunc.c: Likewise.
5796         * string/test-memccpy-ifunc.c: Likewise.
5797         * string/test-memchr-ifunc.c: Likewise.
5798         * string/test-memcmp-ifunc.c: Likewise.
5799         * string/test-memcpy-ifunc.c: Likewise.
5800         * string/test-memmem-ifunc.c: Likewise.
5801         * string/test-memmove-ifunc.c: Likewise.
5802         * string/test-mempcpy-ifunc.c: Likewise.
5803         * string/test-memset-ifunc.c: Likewise.
5804         * string/test-rawmemchr-ifunc.c: Likewise.
5805         * string/test-stpcpy-ifunc.c: Likewise.
5806         * string/test-stpncpy-ifunc.c: Likewise.
5807         * string/test-strcasecmp-ifunc.c: Likewise.
5808         * string/test-strcasestr-ifunc.c: Likewise.
5809         * string/test-strcat-ifunc.c: Likewise.
5810         * string/test-strchr-ifunc.c: Likewise.
5811         * string/test-strchrnul-ifunc.c: Likewise.
5812         * string/test-strcmp-ifunc.c: Likewise.
5813         * string/test-strcpy-ifunc.c: Likewise.
5814         * string/test-strcspn-ifunc.c: Likewise.
5815         * string/test-strlen-ifunc.c: Likewise.
5816         * string/test-strncasecmp-ifunc.c: Likewise.
5817         * string/test-strncat-ifunc.c: Likewise.
5818         * string/test-strncmp-ifunc.c: Likewise.
5819         * string/test-strncpy-ifunc.c: Likewise.
5820         * string/test-strnlen-ifunc.c: Likewise.
5821         * string/test-strpbrk-ifunc.c: Likewise.
5822         * string/test-strrchr-ifunc.c: Likewise.
5823         * string/test-strspn-ifunc.c: Likewise.
5824         * string/test-strstr-ifunc.c: Likewise.
5826         * debug/Makefile (tests-ifunc): New variable.
5827         (tests): Add $(tests-ifunc).
5828         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
5829         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
5830         * debug/test-stpcpy_chk-ifunc.c: New file.
5831         * debug/test-strcpy_chk-ifunc.c: Likewise.
5833 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
5835         [BZ #13601]
5836         * elf/dl-load.c (open_verify): Retry read if the entire ELF
5837         header is not read in.
5839 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
5841         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
5842         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
5843         directly.  Pass built executable to script as
5844         $(built-program-cmd).
5845         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
5846         $testprogram without using LD_LIBRARY_PATH and $ldso.
5848         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
5849         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
5850         $(rtld-installed-name).
5851         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
5852         (rtld_installed_name): Likewise.
5853         (library_path): Likewise.
5854         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
5855         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
5856         $(run-program-prefix) to tst-tables.sh.
5857         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
5858         it to run tst-table-from and tst-table-to.
5859         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
5860         Pass it to tst-table.sh.
5861         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
5862         $(run-program-prefix) to tst-gettext.sh.
5863         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
5864         tst-translit.sh.
5865         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
5866         tst-gettext2.sh.
5867         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
5868         to run tst-gettext.
5869         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
5870         to run tst-gettext2.
5871         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
5872         to run tst-translit.
5873         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
5874         $(run-program-prefix) to tst-mtrace.sh.
5875         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
5876         to run tst-mtrace.
5877         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
5878         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
5879         $(rtld-installed-name).
5880         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
5881         (rtld_installed_name): Likewise.
5882         (run_program_prefix): New variable.  Use it to run wordexp-test.
5884         * Makeconfig (ARCH): Remove all definitions.
5885         (machine): Likewise.
5886         [ARCH]: Remove conditional code.
5887         [!objdir]: Give error.
5888         [!objdir] (objpfx): Remove.
5889         [!objdir] (common-objpfx): Likewise.
5890         [!objdir] (common-objdir): Likewise.
5891         * configure.in (config_makefile): Remove.  Hardcode Makefile in
5892         AC_CONFIG_FILES call.
5893         * configure: Regenerated.
5895         [BZ #13888]
5896         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
5897         or TMPDIR.
5898         (testout): Likewise.
5900         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
5901         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
5902         $(rtld-installed-name).
5903         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
5904         (rtld_installed_name): Likwise.
5905         (runit): Remove function.
5906         (run_getconf): New variable,  Use it for running getconf binary.
5908 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
5910         [BZ #14716]
5911         * string/test-memmem.c (check_result): New function.
5912         (do_one_test): Use it.
5913         (check1): New function.
5914         (test_main): Use it.
5916 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5918         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
5920 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
5922         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
5923         (_G_LSEEK64): Likewise.
5924         (_G_MMAP64): Likewise.
5925         (_G_FSTAT64): Likewise.
5926         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
5927         (_G_LSEEK64): Likewise.
5928         (_G_MMAP64): Likewise.
5929         (_G_FSTAT64): Likewise.
5930         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
5931         unconditional.  Call __mmap64 directly.
5932         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
5933         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
5934         __lseek64 directly.
5935         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
5936         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
5937         __mmap64 directly.
5938         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
5939         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5940         __lseek64 directly.
5941         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
5942         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5943         __lseek64 directly.
5944         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
5945         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
5946         __lseek64 directly.
5947         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
5948         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
5949         __fxstat64 directly.
5950         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
5951         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
5952         unconditional.
5953         (freopen64) [!_G_OPEN64]: Remove conditional code.
5954         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
5955         unconditional.
5956         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
5957         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
5958         unconditional.
5959         (ftello64) [!_G_LSEEK64]: Remove conditional code.
5960         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
5961         unconditional.
5962         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5963         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
5964         unconditional.
5965         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
5966         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
5967         unconditional.
5968         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5969         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
5970         unconditional.
5971         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5972         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
5973         unconditional.
5974         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5976 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5978         [BZ #12140]
5979         * manual/memory.texi (Malloc Tunable Parameters): Add note
5980         about free list pointers overwriting some perturb bytes.
5981         Wording suggested by Roland McGrath.
5983 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
5985         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
5986         (lgamma_test): Likewise.
5987         (tgamma_test): Likewise.
5989 2012-10-16  Florian Weimer  <fweimer@redhat.com>
5991         [BZ #14700]
5992         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
5993         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
5995 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
5997         * NEWS: Mention BZ #14716.
5998         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
5999         when removing AVAILABLE1_USES_J macro.
6001 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
6003         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
6004         (__bswap_64): __uint64_t for unsigned 64-bit int.
6006 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
6008         * include/string.h (memmem): Declare libc hidden alias.
6009         * string/memmem.c (memmem): Define libc hidden alias.
6010         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
6011         __read, __close instead of open, read, close.
6013 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6015         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
6016         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
6017         global and hidden.
6018         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
6019         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
6020         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
6021         Likewise.
6022         (__rawmemchr_sse2): Likewise.
6023         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
6024         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
6025         (__strchr_sse2): Likewise.
6026         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
6027         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
6028         (__strcasecmp_sse2): Likewise.
6029         (__strncasecmp_sse2): Likewise.
6030         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
6031         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
6032         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
6033         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
6034         (__strrchr_sse2): Likewise.
6035         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
6036         ifunc-impl-list.c.
6037         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6038         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6039         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
6040         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
6041         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6042         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6043         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6044         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6045         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
6046         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
6047         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
6048         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
6049         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
6050         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
6051         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
6052         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6053         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
6054         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
6055         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
6056         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
6057         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
6058         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
6059         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
6060         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
6061         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
6062         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6063         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
6064         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
6065         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
6066         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
6068         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
6069         global and hidden.
6070         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
6071         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
6072         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
6073         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
6074         Likewise.
6075         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
6076         Likewise.
6077         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
6078         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
6079         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
6080         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
6081         ifunc-impl-list.c.
6082         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6083         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6084         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6085         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6086         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6087         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6088         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6089         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6090         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6091         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6092         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6093         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6094         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6095         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
6096         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
6097         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6098         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
6099         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
6100         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6101         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6102         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6103         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6104         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6105         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6106         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6107         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
6108         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
6109         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
6110         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
6111         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6112         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
6113         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6114         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6115         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
6116         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6117         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6118         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6119         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6120         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6121         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6122         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
6124         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
6125         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
6126         * include/ifunc-impl-list.h: New file.
6127         * misc/ifunc-impl-list.c: Likewise.
6128         * misc/Makefile (routines): Add ifunc-impl-list.
6129         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
6130         * string/test-string.h: Include <ifunc-impl-list.h>.
6131         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
6132         impl_array): New variables.
6133         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
6134         are defined.
6135         (test_init): Call __libc_ifunc_impl_list to initialize
6136         func_list if TEST_IFUNC and TEST_NAME are defined.
6138         * string/Makefile (strop-tests): Add bcopy and bzero.
6139         * string/test-bcopy.c: New file.
6140         * string/test-bzero.c: Likewise.
6141         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
6142         defined.
6143         * string/test-memset.c: Support bzero test if TEST_BZERO is
6144         defined.
6145         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
6146         __libc_memmove.
6147         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
6148         __libc_memset.
6149         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
6150         of memset.
6152 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
6154         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
6155         * configure: Regenerated.
6157         * Makeconfig (+link-static-before-libc): Don't include
6158         $(link-static-libc).
6160         * libio/libio.h (_IO_pos_t): Remove.
6162 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6164         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
6165         McGrath.
6167 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6169         * crypt/crypt-entry.c: Include fips-private.h.
6170         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
6171         * crypt/md5c-test.c (main): Tolerate disabled MD5.
6172         * sysdeps/unix/sysv/linux/fips-private.h: New file.
6173         * sysdeps/generic/fips-private.h: New file, dummy fallback.
6175 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6177         * crypt/crypt-private.h: Include stdbool.h.
6178         (_ufc_setup_salt_r): Return bool.
6179         * crypt/crypt-entry.c: Include errno.h.
6180         (__crypt_r): Return NULL with EINVAL for bad salt.
6181         * crypt/crypt_util.c (bad_for_salt): New.
6182         (_ufc_setup_salt_r): Check that salt is long enough and within
6183         the specified alphabet.
6184         * crypt/badsalttest.c: New file.
6185         * crypt/Makefile (tests): Add it.
6186         ($(objpfx)badsalttest): New.
6188 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6190         * NEWS: Add entry for BZ #14602.
6192 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6194         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
6195         type-generic.
6196         * math/libm-test.inc: Update comment listing what functions and
6197         macros are tested.
6198         (isgreater_test): New function.
6199         (isgreaterequal_test): Likewise.
6200         (isless_test): Likewise.
6201         (islessequal_test): Likewise.
6202         (islessgreater_test): Likewise.
6203         (isunordered_test): Likewise.
6204         (main): Call the new functions.
6206 2012-10-09  Roland McGrath  <roland@hack.frob.com>
6208         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
6209         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
6210         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
6211         * sysdeps/i386/configure: Regenerated.
6212         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
6213         * sysdeps/mach/configure: Regenerated.
6214         * sysdeps/mach/hurd/configure: Regenerated.
6215         * sysdeps/powerpc/configure: Regenerated.
6216         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6217         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6218         * sysdeps/s390/s390-32/configure: Regenerated.
6219         * sysdeps/s390/s390-64/configure: Regenerated.
6220         * sysdeps/sh/configure: Regenerated.
6221         * sysdeps/sparc/configure: Regenerated.
6222         * sysdeps/unix/sysv/linux/configure: Regenerated.
6223         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
6224         * sysdeps/x86_64/configure: Regenerated.
6226         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
6227         defined.  Don't check if MAP is NULL.
6229 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6231         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
6232         (_G_stat64): Likewise.
6233         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
6234         (_G_stat64): Likewise.
6235         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
6236         instead of struct _G_stat64.
6237         * libio/fileops.c (mmap_remap_check): Likewise.
6238         (decide_maybe_mmap): Likewise.
6239         (_IO_new_file_seekoff): Likewise.
6240         (_IO_file_stat): Likewise.
6241         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
6242         _G_off64_t.
6243         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
6244         instead of struct _G_stat64.
6245         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6247 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
6249         [BZ #14602]
6250         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6251         Replace with ...
6252         (CHECK_EOL): New macro.
6253         (two_way_short_needle): Check beginning of haystack for EOL.  Use
6254         CHECK_EOL.
6255         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6256         Replace with CHECK_EOL.
6257         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6258         Replace with CHECK_EOL.
6260 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
6262         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
6263         type-generic.
6264         * math/libm-test.inc: Update comment listing what functions and
6265         macros are tested.
6266         (finite_test): New function.
6267         (isinf_test): Likewise.
6268         (isnan_test): Likewise.
6269         (fpclassify_test): Test subnormal input.
6270         (isfinite_test): Likewise.
6271         (isnormal_test): Likewise.
6272         (main): Call the new functions.
6274 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
6276         [BZ #14660]
6277         * Makerules (%.dynsym): Force C locale when running
6278         $(OBJDUMP) --dynamic-syms.
6280 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
6282         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
6283         <stdint.h>.
6285 2012-10-06  David S. Miller  <davem@davemloft.net>
6287         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
6288         upper 32-bits of the length value in %o2 since we use branch-on-register
6289         tests which consider the entire 64-bit register.
6291 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6293         * string/test-strstr.c (check2): Add a test for page boundary.
6295 2012-10-05  David S. Miller  <davem@davemloft.net>
6297         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
6298         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
6299         file.
6300         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6301         sysdep_routines.
6302         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6303         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
6304         and bzero when HWCAP_SPARC_CRYPTO is present.
6306 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
6308         [BZ #14602]
6309         * string/test-strstr.c (check2): New function.
6310         (test_main): Call check2.
6312         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
6313         and bug-strchr1.
6314         * string/bug-strcasestr1.c (do_test): Moved to ...
6315         * string/test-strcasestr.c (check1): Here.  New function.
6316         (do_one_test): Break out result checking code into ...
6317         (check_result): This.  New function.
6318         (do_one_test): Call check_result.
6319         (test_main): Call check1.
6320         * string/bug-strchr1.c (do_test): Moved to ...
6321         * string/test-strchr.c (check1): Here.  New function.
6322         (do_one_test): Break out result checking code into ...
6323         (check_result): This.  New function.
6324         (do_one_test): Call check_result.
6325         (test_main): Call check1.
6326         * string/bug-strstr1.c (main): Moved to ...
6327         * string/test-strstr.c (check1): Here.  New function.
6328         (do_one_test): Break out result checking code into ...
6329         (check_result): This.  New function.
6330         (do_one_test): Call check_result.
6331         (test_main): Call check1.
6332         * string/bug-strcasestr1.c: Removed.
6333         * string/bug-strchr1.c: Likewise.
6334         * string/bug-strstr1.c: Likewise.
6336         * elf/Makefile (dl-routines): Add hwcaps.
6337         * elf/dl-support.c (_dl_important_hwcaps): Removed.
6338         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
6339         (_dl_important_hwcaps): Moved to ...
6340         * elf/dl-hwcaps.c: Here.  New file.
6341         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
6343         [BZ #14557]
6344         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
6345         if IS_IN_rtld isn't defined.
6347         * elf/dl-support.c (_dl_sysinfo_map): New.
6348         Include "get-dynamic-info.h" and "setup-vdso.h".
6349         (_dl_non_dynamic_init): Call setup_vdso.
6350         * elf/dynamic-link.h: Don't include <assert.h>.
6351         (elf_get_dynamic_info): Moved to ...
6352         * elf/get-dynamic-info.h: Here.  New file.
6353         * elf/dynamic-link.h: Include "get-dynamic-info.h".
6354         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
6355         * elf/setup-vdso.h: Here.  New file.
6356         * elf/rtld.c: Include "setup-vdso.h".
6357         (dl_main): Call setup_vdso.
6359 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
6361         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
6362         creal in comment listing functions tested.  List finite, isinf,
6363         isnan, isless, islessequal, isgreater, isgreaterequal,
6364         islessgreater, isunordered, lgamma_r and pow10 as functions and
6365         macros not tested.  Mention which functions not tested are aliases
6366         for other functions.  Fix typo.  Note that signs of NaNs are not
6367         tested.
6369         * scripts/config.guess: Update from config.git.
6370         * scripts/config.sub: Likewise.
6372 2012-10-04  Roland McGrath  <roland@hack.frob.com>
6374         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
6375         * misc/madvise.c (madvise): Renamed to __madvise.
6376         Make madvise a weak alias.
6377         * include/sys/mman.h: Declare __madvise.
6378         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
6379         * sysdeps/unix/syscalls.list
6380         (madvise): Make __madvise the strong name, and madvise a weak alias.
6381         * sysdeps/unix/sysv/linux/syscalls.list
6382         (madvise, mmap): Remove redundant entries.
6383         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
6384         * malloc/malloc.c (mtrim): Likewise.
6385         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
6387 2012-10-03  Roland McGrath  <roland@hack.frob.com>
6389         * sysdeps/mach/hurd/dl-cache.c: File removed.
6390         * config.h.in (USE_LDCONFIG): New #undef.
6391         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
6392         * configure: Regenerated.
6393         * elf/Makefile (dl-routines): Add dl-cache only under
6394         [$(use-ldconfig) = yes].
6395         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
6396         cache on [USE_LDCONFIG].
6397         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
6398         [USE_LDCONFIG].
6399         * elf/rtld.c (dl_main): Likewise.
6401 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
6403         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
6404         _SC_LEVEL4_CACHE_LINESIZE.
6406 2012-10-03  Roland McGrath  <roland@hack.frob.com>
6408         * sysdeps/unix/bsd/confstr.h: File removed.
6410 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
6412         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
6413         sys/sdt-config.h.
6415 2012-10-02  Roland McGrath  <roland@hack.frob.com>
6417         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
6418         Make 'mapoff' field ElfW(Off) rather than off_t.
6420 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
6422         * nscd/Makefile: Remove nscd-cflags and all its users.
6423         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
6424         (CFLAGS-nonlib): Add compiler flags for nscd modules.
6426         [BZ #10631]
6427         * malloc.c (malloc_printerr): Clarify error message.
6429 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6431         [BZ #14648]
6432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6433         Set bit_FMA_Usable if FMA is supported.
6434         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
6435         macro.
6436         (bit_FMA4_Usable): Updated.
6437         (index_FMA_Usable): New macro.
6438         (CPUID_FMA): Likewise
6439         (HAS_FMA): Defined with bit_FMA_Usable.
6441 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6443         * bits/types.h (__swblk_t): Type removed.
6444         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
6445         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
6446         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6447         (__SWBLK_T_TYPE): Likewise.
6448         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6449         (__SWBLK_T_TYPE): Likewise.
6450         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6451         (__SWBLK_T_TYPE): Likewise.
6452         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6453         (__SWBLK_T_TYPE): Likewise.
6455 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
6456             Honza Horak <hhorak@redhat.com>
6458         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
6459         (xdr_mapname): Use YPMAXMAP as maxsize.
6460         (xdr_peername): Use YPMAXPEER as maxsize.
6461         (xdr_keydat): Use YPAXRECORD as maxsize.
6462         (xdr_valdat): Use YPMAXRECORD as maxsize.
6464 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6466         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
6468         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
6469         * csu/init-first.c: ... here.
6470         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
6471         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
6472         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
6473         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
6474         * sysdeps/i386/init-first.c: File removed.
6475         * sysdeps/sh/init-first.c: File removed.
6477 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
6479         [BZ #14645]
6480         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
6481         if x * y might underflow to zero and z is zero.
6482         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6483         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6484         * math/libm-test.inc (min_subnorm_value): New variable.
6485         (fma_test): Add more tests.
6486         (fma_test_towardzero): Likewise.
6487         (fma_test_downward): Likewise
6488         (fma_test_upward): Likewise.
6489         (initialize): Set min_subnorm_value.
6491 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
6493         [BZ #14638]
6494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
6495         0 + 0.
6496         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
6497         mode for addition resulting in exact zero.
6498         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
6499         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
6500         exact 0 + 0.
6501         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6502         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6503         * math/libm-test.inc (fma_test): Add more tests.
6504         (fma_test_towardzero): New function.
6505         (fma_test_downward): Likewise.
6506         (fma_test_upward): Likewise.
6507         (main): Call the new functions.
6509 2012-09-28  David S. Miller  <davem@davemloft.net>
6511         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
6513 2012-09-28  Roland McGrath  <roland@hack.frob.com>
6515         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
6516         instead of SIGALRM.
6518         * sysdeps/gnu/_G_config.h: Moved to ...
6519         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
6520         * sysdeps/mach/hurd/_G_config.h: Moved to ...
6521         * sysdeps/generic/_G_config.h: ... here.
6523         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
6525         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
6527         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
6528         Conditionalize target on [libnss_test1.so-version].
6530         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
6532         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
6533         (elfobjdir): Move out of conditionals.
6535         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
6536         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
6537         (__nss_lookup_function): Conditionalize label remove_from_tree on
6538         [!DO_STATIC_NSS || SHARED], matching its only use.
6540 2012-09-28  David S. Miller  <davem@davemloft.net>
6542         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
6543         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
6544         file.
6545         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6546         sysdep_routines.
6547         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6548         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
6549         when HWCAP_SPARC_CRYPTO is present.
6551 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6553         * io/tst-mknodat.c: Create a FIFO instead of a socket.
6555 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
6557         [BZ #6530]
6558         * stdio-common/vfprintf.c (process_string_arg): Revert
6559         2000-07-22 change.
6561 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
6563         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
6564         for testcase.
6565         * stdio-common/tst-sprintf.c: Include <locale.h>
6566         (main): Test sprintf's handling of incomplete multibyte
6567         characters.
6569 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
6571         * elf/dl-runtime.c (VERSYMIDX): Removed.
6572         * elf/dl-version.c (VERSYMIDX): Likewise.
6573         * elf/do-rel.h (VERSYMIDX): Likewise.
6574         (VALIDX): Likewise.
6575         * elf/dynamic-link.h (VERSYMIDX): Likewise.
6576         * elf/rtld.c (VALIDX): Likewise.
6577         (ADDRIDX): Likewise.
6578         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
6579         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
6580         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
6581         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
6582         (VALIDX): Likewise.
6583         (ADDRIDX): Likewise.
6585 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6587         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
6589 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
6591         [BZ #11438]
6592         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
6593         to global scope.
6594         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
6595         addresses are in the same scope as 192.0.2/24.
6596         * posix/gai.conf: Document new scope table defaults.
6598 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6600         [BZ #5298]
6601         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
6602         for ftell.  Compute offsets from write pointers instead.
6603         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6605 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6607         [BZ #14543]
6608         * libio/Makefile (tests): New test case tst-fseek.
6609         * libio/tst-fseek.c: New test case to verify that fseek/ftell
6610         combination works in wide mode.
6611         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
6612         state when the external buffer state changes.
6614 2012-09-27  David S. Miller  <davem@davemloft.net>
6616         [BZ #14376]
6617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
6618         pass reloc->r_addend in as the 'high' argument to
6619         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
6621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6623 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6625         * rt/tst-aio2.c: Include <pthread.h>.
6626         * rt/tst-aio3.c: Likewise.
6628 2012-09-27  Steve Ellcey  <sellcey@mips.com>
6630         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
6632 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
6634         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
6635         contents on [SHARED].
6637 2012-09-26  Marek Polacek  <polacek@redhat.com>
6639         [BZ #14530]
6640         [BZ #13741]
6641         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
6642         for C++ and GCC <4.3 as well as for non GCC compilers.
6644 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6646         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6648 2012-09-25  Roland McGrath  <roland@hack.frob.com>
6650         * Makefile.in (all, install): Declare with .PHONY.
6651         Reported by Michael Hope <michael.hope@linaro.org>.
6653 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6655         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
6656         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
6657         system header.
6658         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
6659         Likewise.
6660         (sydep_routines): Add the new and the internal functions.
6661         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
6662         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
6663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
6664         (GLIBC_2.17): Add the new function.
6665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6666         (GLIBC_2.17): Likewise.
6667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
6668         (GLIBC_2.17): Likewise.
6669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
6670         (GLIBC_2.17): Likewise.
6671         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
6673 2012-09-25  Alan Modra  <amodra@gmail.com>
6675         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6676         Add release barrier before setting once_control to say
6677         initialisation is done.  Add hints on lwarx.  Use macro in
6678         place of isync.
6679         (clear_once_control): Add release barrier.
6681 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
6683         [BZ #13629]
6684         * math/s_clog.c (__clog): Handle more values close to |z| = 1
6685         specially.
6686         * math/s_clog10.c (__clog10): Likewise.
6687         * math/s_clog10f.c (__clog10f): Likewise.
6688         * math/s_clog10l.c (__clog10l): Likewise.
6689         * math/s_clogf.c (__clogf): Likewise.
6690         * math/s_clogl.c (__clogl): Likewise.
6691         * math/Makefile (libm-calls): Add x2y2m1.
6692         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
6693         (__x2y2m1): Likewise.
6694         (__x2y2m1l): Likewise.
6695         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
6696         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
6697         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6698         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6699         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
6700         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6701         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
6702         * sysdeps/i386/fpu/libm-test-ulps: Update.
6703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6705         [BZ #14621]
6706         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
6707         int as type of variable DEPTH.
6708         (glob): Use size_t instead of int as type of variables NEWCOUNT
6709         and OLD_PATHC.
6711 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6713         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
6714         Add s_sincosf-sse2.
6715         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
6716         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
6717         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
6718         macros for using routine as __sincosf_ia32.
6719         Use macro for function declaration and weak_alias.
6720         * sysdeps/i386/fpu/libm-test-ulps: Update.
6722         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
6723         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6725         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
6726         subnormal argument.
6727         * math/s_cexpf.c (__cexpf): Likewise.
6728         * math/s_csinf.c (__csinf): Likewise.
6729         * math/s_csinhf.c (__csinhf): Likewise.
6730         * math/s_ctanf.c (__ctanf): Likewise.
6731         * math/s_ctanhf.c (__ctanhf): Likewise.
6732         * math/s_ccosh.c (__ccoshf): Likewise.
6733         * math/s_cexp.c (__cexpl): Likewise.
6734         * math/s_csin.c (__csin): Likewise.
6735         * math/s_csinh.c (__csinh): Likewise.
6736         * math/s_ctan.c (__ctan): Likewise.
6737         * math/s_ctanh.c (ctanh): Likewise.
6738         * math/s_ccoshl.c (__ccoshl): Likewise.
6739         * math/s_cexpl.c (__cexpl): Likewise.
6740         * math/s_csinl.c (__csinl): Likewise.
6741         * math/s_csinhl.c (__csinhl): Likewise.
6742         * math/s_ctanl.c (__ctanl): Likewise.
6743         * math/s_ctanhl.c (__ctanhl): Likewise.
6745 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
6747         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
6748         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
6749         (_IO_off_t): Define to __off_t, not _G_off_t.
6750         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
6751         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
6752         (_IO_wint_t): Define to wint_t, not _G_wint_t.
6753         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
6754         type of __dummy and __dummy2 fields.
6755         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
6756         (_G_ssize_t): Likewise.
6757         (_G_off_t): Likewise.
6758         (_G_pid_t): Likewise.
6759         (_G_uid_t): Likewise.
6760         (_G_wchar_t): Likewise.
6761         (_G_wint_t): Likewise.
6762         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
6763         (_G_ssize_t): Likewise.
6764         (_G_off_t): Likewise.
6765         (_G_pid_t): Likewise.
6766         (_G_uid_t): Likewise.
6767         (_G_wchar_t): Likewise.
6768         (_G_wint_t): Likewise.
6769         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
6770         (_G_ssize_t): Likewise.
6771         (_G_off_t): Likewise.
6772         (_G_pid_t): Likewise.
6773         (_G_uid_t): Likewise.
6774         (_G_wchar_t): Likewise.
6775         (_G_wint_t): Likewise.
6777 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6779         * malloc/arena.c: Include malloc-sysdep.h.
6780         (shrink_heap): Use check_may_shrink_heap to decide if madvise
6781         is sufficient to shrink the heap or an unmap is needed.
6782         * sysdeps/generic/malloc-sysdep.h: New file.  Define
6783         new function check_may_shrink_heap.
6784         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
6785         new function check_may_shrink_heap.
6787 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6789         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
6790         comments.
6792 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
6794         * catgets/test-gencat.sh: Add "set -e".
6795         * elf/tst-pathopt.sh: Likewise.
6796         * grp/tst_fgetgrent.sh: Likewise.
6797         * iconvdata/run-iconv-test.sh: Likewise.
6798         * intl/tst-gettext.sh: Likewise.
6799         * intl/tst-gettext2.sh: Likewise.
6800         * intl/tst-gettext4.sh: Likewise.
6801         * intl/tst-gettext6.sh: Likewise.
6802         * intl/tst-translit.sh: Likewise.
6803         * io/ftwtest-sh: Likewise.
6804         * libio/test-freopen.sh: Likewise.
6805         * malloc/tst-mtrace.sh: Likewise.
6806         * posix/globtest.sh: Likewise.
6807         * posix/tst-getconf.sh: Likewise.
6808         * posix/wordexp-tst.sh: Likewise.
6809         * stdio-common/tst-printf.sh: Likewise.
6810         * stdio-common/tst-unbputc.sh: Likewise.
6811         * stdlib/tst-fmtmsg.sh: Likewise.
6812         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
6813         * catgets/Makefile: Do not specify -e option when running
6814         testsuite shell scripts.
6815         * elf/Makefile: Likewise.
6816         * grp/Makefile: Likewise.
6817         * iconvdata/Makefile: Likewise.
6818         * intl/Makefile: Likewise.
6819         * io/Makefile: Likewise.
6820         * libio/Makefile: Likewise.
6821         * malloc/Makefile: Likewise.
6822         * posix/Makefile: Likewise.
6823         * stdio-common/Makefile: Likewise.
6824         * stdlib/Makefile: Likewise.
6825         * sysdeps/x86_64/Makefile: Likewise.
6827         * io/ftwtest-sh: Add copyright header.
6828         * posix/globtest.sh: Likewise.
6829         * posix/tst-getconf.sh: Likewise.
6830         * posix/wordexp-tst.sh: Likewise.
6831         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
6833 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
6835         [BZ #13679]
6836         * Makeconfig (+link): Defined as $(+link-static) if
6837         $(build-shared) isn't yes.
6838         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
6839         isn't yes.
6840         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
6842         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
6844         [BZ #14562]
6845         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
6846         new chunk size with MALLOC_ALIGN_MASK.
6848 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
6850         [BZ #5044]
6851         * stdio-common/printf_fphex.c: Include <stdbool.h> and
6852         <rounding-mode.h>.
6853         (__printf_fphex): Determine rounding using get_rounding_mode and
6854         round_away.
6855         * stdio-common/tst-printf-round.c (struct hex_test): New
6856         structure.
6857         (hex_tests): New variable.
6858         (test_hex_in_one_mode): New function.
6859         (do_test): Also run tests for hex float output.
6861 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
6863         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6864         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6865         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
6866         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6867         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6868         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
6869         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6870         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6872 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
6874         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
6875         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
6876         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
6877         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
6879 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
6881         [BZ #14579]
6882         * elf/rtld.c (dl_main): Limit the check for self loading to normal
6883         mode only.
6884         * elf/tst-rtld-load-self.sh: New test.
6885         * elf/Makefile: Run it.
6887 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
6889         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
6890         (tst-writev-ENV): Remove.
6891         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
6893 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
6895         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
6897 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
6899         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
6900         unconditional.
6901         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
6902         Likewise.
6903         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
6904         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
6905         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
6906         Likewise.
6908 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6910         [BZ #14587]
6911         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
6912         * config.make.in (have-cpp-asm-debuginfo): Removed.
6913         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
6914         * configure: Regenerated.
6916 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
6918         [BZ #5044]
6919         * stdio-common/printf_fp.c: Include <stdbool.h> and
6920         <rounding-mode.h>.
6921         (___printf_fp): Determine rounding using get_rounding_mode and
6922         round_away.
6923         * stdio-common/tst-printf-round.c: New file.
6924         * stdio-common/Makefile (tests): Add tst-printf-round.
6925         (link-libm): New variable.
6926         ($(objpfx)tst-printf-round): Depend in $(link-libm).
6928 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6930         [BZ #14576]
6931         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
6932         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
6933         Likewise.
6934         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
6935         Likewise.
6937 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
6939         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
6940         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6941         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6942         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6944 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
6946         [BZ #14518]
6947         * include/rounding-mode.h: New file.
6948         * sysdeps/generic/get-rounding-mode.h: Likewise.
6949         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
6950         * stdlib/strtod_l.c: Include <rounding-mode.h>.
6951         (MAX_VALUE): New macro.
6952         (MIN_VALUE): Likewise.
6953         (overflow_value): New function.
6954         (underflow_value): Likewise.
6955         (round_and_return): Use overflow_value and underflow_value to
6956         determine return values in overflow and underflow cases.  Use
6957         round_away to determine rounding depending on rounding mode.
6958         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
6959         determine return values in overflow and underflow cases.
6960         * stdlib/tst-strtod-round.c: Include <fenv.h>.
6961         (struct test_results): New structure.
6962         (struct test): Use struct test_results to store expected results
6963         for all rounding modes.
6964         (TEST): Include expected results for all rounding modes.
6965         (test_in_one_mode): New function.
6966         (do_test): Use test_in_one_mode to compute and check results.
6967         Check results for all rounding modes.
6968         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
6969         $(link-libm).
6971 2012-12-09  Allan McRae  <allan@archlinux.org>
6973         * sysdeps/i386/fpu/libm-test-ulps: Update
6975 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
6977         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
6978         (_G_int32_t): Likewise.
6979         (_G_uint16_t): Likewise.
6980         (_G_uint32_t): Likewise.
6981         (_G_HAVE_BOOL): Likewise.
6982         (_G_HAVE_ATEXIT): Likewise.
6983         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6984         (_G_HAVE_IO_FILE_OPEN): Likewise.
6985         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
6986         (_G_int32_t): Likewise.
6987         (_G_uint16_t): Likewise.
6988         (_G_uint32_t): Likewise.
6989         (_G_HAVE_BOOL): Likewise.
6990         (_G_HAVE_ATEXIT): Likewise.
6991         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6992         (_G_HAVE_IO_FILE_OPEN): Likewise.
6993         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
6994         (_G_int32_t): Likewise.
6995         (_G_uint16_t): Likewise.
6996         (_G_uint32_t): Likewise.
6997         (_G_HAVE_BOOL): Likewise.
6998         (_G_HAVE_ATEXIT): Likewise.
6999         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7000         (_G_HAVE_IO_FILE_OPEN): Likewise.
7002 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
7004         * csu/libc-tls.c: Update copyright years.
7006 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
7008         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
7009         [!_G_USING_THUNKS]: Remove conditional code.
7010         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
7011         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
7013         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
7014         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
7015         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7016         (_G_VTABLE_LABEL_PREFIX): Likewise.
7017         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7018         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7019         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7020         (_G_VTABLE_LABEL_PREFIX): Likewise.
7021         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
7022         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7023         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7024         (_G_VTABLE_LABEL_PREFIX): Likewise.
7025         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
7027 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
7029         * libio/Makefile: Include ../Makeconfig before tests.
7030         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
7031         only if $(build-shared) is yes.
7033         * iconv/gconv_db.c: Update copyright years.
7035 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7037         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
7038         unwind info if defined PIC. Fix special cases description.
7039         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
7041         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
7042         DP_HI_MASK entry.
7043         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
7045 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7047         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
7049         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
7050         is NULL.
7052         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
7053         (LDLIBS-tst-chk4): This.
7054         (LDFLAGS-tst-chk5): Renamed to ...
7055         (LDLIBS-tst-chk5): This.
7056         (LDFLAGS-tst-chk6): Renamed to ...
7057         (LDLIBS-tst-chk6): This.
7058         (LDFLAGS-tst-lfschk4): Renamed to ...
7059         (LDLIBS-tst-lfschk4): This.
7060         (LDFLAGS-tst-lfschk5): Renamed to ...
7061         (LDLIBS-tst-lfschk5): This.
7062         (LDFLAGS-tst-lfschk6): Renamed to ...
7063         (LDLIBS-tst-lfschk6): This.
7065         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
7066         on $(common-objpfx)soversions.mk.
7068 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
7070         [BZ #10014]
7071         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
7072         example host name.
7074 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7076         * malloc/arena.c (arena_get_retry): New function that gets
7077         another arena for the caller to try its request on.
7078         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
7079         current arena cannot fulfill the request.
7080         (__libc_memalign): Likewise.
7081         (__libc_memalign): Likewise.
7082         (__libc_pvalloc): Likewise.
7083         (__libc_calloc): Likewise.
7085 2012-09-05  John Tobey  <john.tobey@gmail.com>
7087         [BZ #13542]
7088         * manual/arith.texi (Operations on Complex): Fix description
7089         of carg branch cut.
7091 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7093         [BZ #10014]
7094         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
7095         host name.
7097         [BZ #10038]
7098         * manual/memory.texi (Memory): Make order of menu items match
7099         order of sections.
7101 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7103         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
7104         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
7105         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
7107 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7109         * csu/libc-tls.c (static_dtv): Renamed to ...
7110         (_dl_static_dtv): This.  Make it global.
7111         (_dl_initial_dtv): Removed.
7112         (__libc_setup_tls): Updated.
7113         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
7114         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
7115         DL_INITIAL_DTV.
7117 2012-09-06  Petr Machata  <pmachata@redhat.com>
7119         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
7120         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
7121         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
7122         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
7124 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7126         [BZ #14545]
7127         * csu/libc-tls.c (_dl_initial_dtv): New variable.
7128         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
7129         freeing dtv[-1].
7131 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7133         [BZ #14544]
7134         * Makeconfig (link-static-before-libc): Replace $(+prector)
7135         with $(+prectorT).
7136         (link-static-after-libc): Replace $(+postctor) with
7137         $(+postctorT).
7138         (link-bounded): Replace $(+prector)/$(+postctor) with
7139         $(+prectorT)/$(+postctorT).
7140         (+prectorT): New macro.
7141         (+postctorT): Likewise.
7143 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7145         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
7146         (round_str): Handle values above the maximum for IBM long double
7147         as inexact.
7148         * stdlib/tst-strtod-round.c (tests): Regenerated.
7150 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7152         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
7153         assembler flag.
7154         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
7155         zarch_nohighgprs around the zarch optimized routines.
7156         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
7157         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
7158         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
7159         for zarch.
7161 2012-09-05  David S. Miller  <davem@davemloft.net>
7163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7165         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
7166         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
7167         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
7168         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7169         entries.
7171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7173         * malloc/arena.c: Fold copyright years.
7174         * malloc/mcheck.c, malloc/memusage.c: Likewise.
7176 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7178         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
7180 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7182         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
7184 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7186         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
7187         change internal state upon failure.
7189 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7191         * malloc/mcheck.c (mcheck_check_all): Fix typo.
7192         * malloc/memusage.c (mmap): Likewise.
7193         (mmap64, mremap): Likewise.  Adjust name in comment.
7195 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7197         * libio/fileops.c: Fix typos in comments.
7198         * libio/oldfileops.c: Likewise.
7199         * libio/wfileops.c: Likewise.
7201 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7203         [BZ #1349]
7204         * malloc/Makefile (tests): Add tst-malloc-usable test case.
7205         (tst-malloc-usable-ENV): Set environment for test case.
7206         * malloc/hooks.c (malloc_check_get_size): New function to get
7207         requested size.
7208         * malloc/malloc.c (musable): Use malloc_check_get_size.
7209         * malloc/tst-malloc-usable.c: New test case.
7211 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7213         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
7215 2012-09-05  Allan McRae  <allan@archlinux.org>
7217         [BZ #13966]
7218         * configure.in (CXX_SYSINCLUDES): Use compiler output to
7219         determine header location.
7220         * configure: Regenerated.
7222 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7224         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
7225         float format.
7226         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
7227         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
7228         format.
7229         (test): Regenerate.
7231 2012-09-04  David S. Miller  <davem@davemloft.net>
7233         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
7234         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
7235         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
7237 2012-09-04  Florian Weimer  <fweimer@redhat.com>
7239         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
7240         failures.
7242         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
7244 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
7246         [BZ #9914]
7247         * libio/iogetdelim.c: Include <limits.h>.
7248         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
7249         + len + 1 would overflow.
7251 2012-09-03  Andreas Jaeger  <aj@suse.de>
7253         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7254         * sysdeps/i386/fpu/libm-test-ulps: Update.
7256 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7258         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
7259         Add s_sinf-sse2, s_conf-sse2.
7261         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
7262         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
7263         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
7264         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
7266         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
7267         for using routine as __sinf_ia32.
7268         Use macro for function declaration and weak_alias.
7269         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
7270         for using routine as __cosf_ia32.
7271         Use macro for function declaration and weak_alias.
7273         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
7274         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
7276         * sysdeps/x86_64/fpu/s_sinf.S: New file.
7277         * sysdeps/x86_64/fpu/s_cosf.S: New file.
7278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7280         * math/libm-test.inc (cos_test): Add more test cases.
7281         (sin_test): Likewise.
7282         (sincos_test): Likewise.
7284 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7286         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
7287         (IFUNC_RESOLVE): Make pointers to the specialized implementations
7288         hidden.
7289         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7291 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
7293         [BZ #14538]
7294         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
7295         first element of the GOT.
7296         (elf_machine_load_address): Return the difference between
7297         the runtime address of _DYNAMIC and elf_machine_dynamic ().
7299 2012-09-01  Allan McRae  <allan@archlinux.org>
7301         [BZ #13412]
7302         * configure.in (AWK): Require gawk version 3.0 or later.
7303         * configure: Regenerated.
7305 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
7307         * sysdeps/unix/sysv/linux/kernel-features.h
7308         (__ASSUME_POSIX_CPU_TIMERS): Remove.
7309         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7310         [__NR_clock_getres]: Make code unconditional.
7311         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
7312         (clock_getcpuclockid): Remove code left unreachable by removal of
7313         conditionals.
7314         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
7315         code unconditional.
7316         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7317         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7318         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
7319         Make code unconditional.
7320         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7321         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7322         * sysdeps/unix/sysv/linux/clock_settime.c
7323         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
7324         conditional code.
7325         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
7326         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7328 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
7330         [BZ #14476]
7331         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
7332         scripts/test-installation.pl.
7334         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
7335         and $ld_so_version if it is set.
7337 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7339         [BZ #14516]
7340         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
7341         failure if reading from procfs failed.
7342         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
7344 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7346         * sysdeps/unix/sysv/linux/kernel-features.h
7347         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
7348         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7349         Remove conditional code.
7350         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7351         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
7352         Remove conditional code.
7353         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7354         * sysdeps/unix/sysv/linux/i386/fxstat.c
7355         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7356         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7357         * sysdeps/unix/sysv/linux/i386/fxstatat.c
7358         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7359         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7360         * sysdeps/unix/sysv/linux/i386/lxstat.c
7361         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7362         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7363         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
7364         Remove conditional code.
7365         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7366         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7367         Remove conditional code.
7368         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7369         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
7370         <kernel-features.h>.
7371         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
7372         Remove.
7373         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
7374         Remove conditional code.
7375         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7376         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
7377         Remove conditional.
7379 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
7381         [BZ #5400]
7382         * NEWS: Add fixed bug number.
7384 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7386         [BZ #14519]
7387         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
7388         underflowing exponent in case of negative sign.
7389         * stdlib/tst-strtod-round-data: Add more tests.
7390         * stdlib/tst-strtod-round.c (tests): Regenerated.
7392         [BZ #3479]
7393         * stdlib/strtod_l.c (NDIG): Remove.
7394         (HEXNDIG): Likewise.
7395         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
7396         smallest representable value.
7397         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
7398         lie within an exact representation of 1/2 ulp of the result.
7399         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
7400         unconditionally.
7401         (TENS_P9_IDX): Define unconditionally.
7402         (TENS_P9_SIZE): Likewise.
7403         (TENS_P10_IDX): Likewise.
7404         (TENS_P10_SIZE): Likewise.
7405         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
7406         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
7407         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
7408         entries for 10^2^13 and 10^2^14.
7409         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
7410         (TENS_P13_IDX): Define.
7411         (TENS_P13_SIZE): Likewise.
7412         (TENS_P14_IDX): Likewise.
7413         (TENS_P14_SIZE): Likewise.
7414         (_fpioconst_pow10): Change array size to
7415         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
7416         unconditional.
7417         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
7418         1024]: Add entries for 10^2^13 and 10^2^14.
7419         [LAST_POW10 > _LAST_POW10]: Remove #error.
7420         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
7421         (_fpioconst_pow10): Change array size to
7422         FPIOCONST_POW10_ARRAY_SIZE.
7423         * stdlib/gen-fpioconst.c: New file.
7424         * stdlib/gen-tst-strtod-round.c: Likewise.
7425         * stdlib/tst-strtod-round-data: Likewise.
7426         * stdlib/tst-strtod-round.c: Likewise.
7427         * stdlib/Makefile (tests): Add tst-strtod-round.
7429         [BZ #14459]
7430         * stdlib/strtod_l.c: Include <stdint.h>.
7431         (NDEBUG): Do not define.
7432         (round_and_return): Change EXPONENT parameter to type intmax_t.
7433         Rearrange calculations to avoid internal overflow possibilities.
7434         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
7435         Rearrange calculations to avoid internal overflow possibilities.
7436         Assert that number fits inside MPNSIZE limbs.
7437         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
7438         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
7439         calculations and add assertions to avoid internal overflow
7440         possibilities.  Add casts to avoid signed/unsigned operations.
7441         * stdlib/tst-strtod-overflow.c: New file.
7442         * stdlib/Makefile (tests): Add tst-strtod-overflow.
7444 2012-08-25  Marek Polacek  <polacek@redhat.com>
7446         * time/time.h: Fix some typos in comments.
7448 2012-08-23  Roland McGrath  <roland@hack.frob.com>
7450         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
7451         * posix/tst-rfc3484-2.c: Likewise.
7452         * posix/tst-rfc3484-3.c: Likewise.
7454 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
7456         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
7457         (EF_ARM_ABI_FLOAT_HARD): Likewise.
7459 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
7461         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
7462         #include of fxstatat64.c.
7464 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7466         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
7467         * shadow/getspent_r.c: Likewise.
7468         * shadow/getspnam.c: Likewise.
7469         * shadow/getspnam_r.c: Likewise.
7470         * gshadow/getsgent.c: Likewise.
7471         * gshadow/getsgent_r.c: Likewise.
7472         * gshadow/getsgnam.c: Likewise.
7473         * gshadow/getsgnam_r.c: Likewise.
7474         * inet/getnetbyad.c: Likewise.
7475         * inet/getnetbyad_r.c: Likewise.
7476         * inet/getnetbynm.c: Likewise.
7477         * inet/getnetbynm_r.c: Likewise.
7478         * inet/getnetent.c: Likewise.
7479         * inet/getnetent_r.c: Likewise.
7480         * inet/getproto.c: Likewise.
7481         * inet/getproto_r.c: Likewise.
7482         * inet/getprtent.c: Likewise.
7483         * inet/getprtent_r.c: Likewise.
7484         * inet/getprtname.c: Likewise.
7485         * inet/getprtname_r.c: Likewise.
7486         * inet/getrpcbyname.c: Likewise.
7487         * inet/getrpcbyname_r.c: Likewise.
7488         * inet/getrpcbynumber.c: Likewise.
7489         * inet/getrpcbynumber_r.c: Likewise.
7490         * inet/getrpcent.c: Likewise.
7491         * inet/getrpcent_r.c: Likewise.
7492         * inet/getaliasent.c: Likewise.
7493         * inet/getaliasent_r.c: Likewise.
7494         * inet/getaliasname.c: Likewise.
7495         * inet/getaliasname_r.c: Likewise.
7496         * nscd/getgrgid_r.c: Likewise.
7497         * nscd/getgrnam_r.c: Likewise.
7498         * nscd/gethstbyad_r.c: Likewise.
7499         * nscd/gethstbynm3_r.c: Likewise.
7500         * nscd/getpwnam_r.c: Likewise.
7501         * nscd/getpwuid_r.c: Likewise.
7502         * nscd/getsrvbynm_r.c: Likewise.
7503         * nscd/getsrvbypt_r.c: Likewise.
7504         * nscd/gai.c: Likewise.
7506         * configure.in (build_nscd): New substituted variable, set
7507         by --disable-build-nscd and defaults to $use_nscd.
7508         * configure: Regenerated.
7509         * config.make.in (build-nscd): New substituted variable.
7510         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
7511         Change conditional to require [$(build-nscd) = yes] as well.
7512         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
7514         [BZ# 13696]
7515         * configure.in (use_nscd): New substituted variable, set by
7516         --disable-nscd.  If enabled, define USE_NSCD.
7517         * configure: Regenerated.
7518         * config.h.in: Add USE_NSCD.
7519         * config.make.in (use-nscd): New substituted variable.
7520         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
7521         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
7522         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
7523         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
7524         (CFLAGS-getgrnam_r.c): Likewise.
7525         (CFLAGS-initgroups.c): Likewise.
7526         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
7527         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
7528         Variables removed.
7529         * inet/getnetgrent_r.c
7530         (nscd_setnetgrent): New function, broken out of ...
7531         (setnetgrent): ... here.  Call it.
7532         (innetgr): Conditionalize nscd bits on [USE_NSCD].
7533         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
7534         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
7535         * nscd/Makefile (routines, aux): Move definitions after include of
7536         Makeconfig.  Conditionalize on [$(use-nscd) != no].
7537         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
7538         Conditionalize on [USE_NSCD].
7539         (is_nscd, nscd_init_cb): Likewise.
7540         (nss_load_library): Conditionalize init callback on [USE_NSCD].
7541         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
7542         * nss/nss_db/db-init.c: Likewise.
7543         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
7544         [USE_NSCD].
7545         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
7546         (make_request): Use it.
7547         (cache_valid_p): New function.
7548         (__check_pf): Use it.
7549         * NEWS: Add item for --disable-nscd.
7551 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
7553         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
7554         to support sed >= 4.2.1-20-ga9bf076.
7555         * configure: Regenerated.
7557 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7559         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
7560         Conditionalize whole body on [IREL].
7562 2012-08-22  Jeff Law <law@redhat.com>
7564         [BZ #14505]
7565         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
7566         if the family is PF_UNSPEC.
7568 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
7570         * Makerules (lib-version): Rename from V.
7571         (install-lib-nosubdir): Change V to lib-version.
7573 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
7575         [BZ #14252]
7576         * powerpc32/power6/wcschr.c: New file.
7577         * powerpc32/power6/wcscpy.c: New file.
7578         * powerpc32/power6/wcsrchr.c: New file.
7579         * powerpc64/power6/wcschr.c: New file.
7580         * powerpc64/power6/wcscpy.c: New file.
7581         * powerpc64/power6/wcsrchr.c: New file.
7583 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
7585         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
7586         (two_way_short_needle): Use it.
7587         * string/strstr.c (AVAILABLE1_USES_J): Define.
7588         * string/strcasestr.c: Likewise.
7590         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
7591         array references.
7592         * string/strcasestr.c (TOLOWER): Make side-effect safe.
7594         [BZ #11607]
7595         * NEWS: Add an entry.
7596         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
7597         define their defaults.
7598         (two_way_short_needle): Detect end-of-string on-the-fly.
7599         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
7600         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
7601         * string/bug-strcasestr1.c: New test.
7602         * string/Makefile: Run it.
7604 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
7606         [BZ #11607]
7607         * string/str-two-way.h (two_way_short_needle): Optimize matching of
7608         the first character.
7610 2012-08-21  Roland McGrath  <roland@hack.frob.com>
7612         * csu/elf-init.c (__libc_csu_irel): Function removed.
7613         * csu/libc-start.c (apply_irel): New function.
7614         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
7616 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
7618         * sysdeps/unix/sysv/linux/kernel-features.h
7619         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
7620         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
7621         <kernel-features.h>.
7622         [__NR_fadvise64_64]: Make code unconditional.
7623         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
7624         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
7625         !__NR_fadvise64_64)]: Likewise.
7626         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
7627         !__NR_fadvise64_64))]: Likewise.
7628         [__NR_fadvise64]: Make code unconditional.
7629         [!__NR_fadvise64]: Remove conditional code.
7630         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
7631         <kernel-features.h>.
7632         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7633         unconditional.
7634         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7635         conditional code.
7636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
7637         not include <kernel-features.h>.
7638         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7639         unconditional.
7640         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7641         conditional code.
7642         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
7643         include <kernel-features.h>.
7644         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7645         unconditional.
7646         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7647         conditional code.
7649 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
7651         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
7652         slight instruction rearrangements per scrollpipe analysis.
7653         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
7655 2012-08-20  Roland McGrath  <roland@hack.frob.com>
7657         * manual/syslog.texi (syslog; vsyslog, closelog):
7658         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
7659         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
7661         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
7662         DSOCAPS to match condition on defining it.
7664 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
7666         * sysdeps/unix/sysv/linux/kernel-features.h
7667         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
7669         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7670         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
7672         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7673         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
7675         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7676         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7678         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
7679         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
7681         * sysdeps/unix/sysv/linux/kernel-features.h
7682         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
7683         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
7684         unconditional.
7685         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7686         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
7687         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
7688         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7689         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
7690         Make code unconditional.
7691         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7692         (__mmap64) [!__NR_mmap2]: Likewise.
7693         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
7694         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
7695         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7696         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
7697         [__NR_mmap2]: Make code unconditional.
7698         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7699         (__mmap64) [!__NR_mmap2]: Likewise.
7701 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7703         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
7705 2012-08-18  Andreas Jaeger  <aj@suse.de>
7707         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
7709 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
7711         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
7712         * include/unistd.h (__have_sock_cloexec): Likewise.
7713         (__have_pipe2): Likewise.
7714         (__have_dup3): Likewise.
7716 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
7718         [BZ #9685]
7719         * include/unistd.h (__have_pipe2): Change define into an extern int.
7720         (__have_dup3): Likewise.
7721         * socket/have_sock_cloexec.c: Include fcntl.h.
7722         (__have_pipe2): New variable.
7723         (__have_dup3): Likewise.
7725 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
7727         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
7729 2012-08-17  Marek Polacek  <polacek@redhat.com>
7731         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
7732         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
7734 2012-08-17  Roland McGrath  <roland@hack.frob.com>
7736         * configure.in: Add AC_SUBST for sysheaders.
7737         * configure: Regenerated.
7738         * config.make.in (sysheaders): New substituted variable.
7740         * sysdeps/unix/mkfifo.c: Moved ...
7741         * sysdeps/posix/mkfifo.c: ... here.
7742         * sysdeps/unix/mkfifoat.c: Moved ...
7743         * sysdeps/posix/mkfifoat.c: ... here.
7745         * sysdeps/unix/utime.c: Moved ...
7746         * sysdeps/posix/utime.c: ... here.
7748         * sysdeps/unix/time.c: Moved ...
7749         * sysdeps/posix/time.c: ... here.
7750         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
7751         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
7753         * sysdeps/unix/nice.c: Moved ...
7754         * sysdeps/posix/nice.c: ... here.
7756         * sysdeps/unix/alarm.c: Moved ...
7757         * sysdeps/posix/alarm.c: ... here.
7759         * intl/Makefile ($(codeset_mo)): Depend on the input file.
7761 2012-08-17  Jeff Law <law@redhat.com>
7763         * intl/Makefile (codeset_mo): New variable.
7764         ($(codeset_mo)): New target.
7765         (tst-codeset.out): Depend on that.  Remove explicit rule.
7766         (tst-gettext3.out, tst-gettext5.out): Likewise.
7767         (LOCPATH-ENV, tst-codeset-ENV): New variables.
7768         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
7769         * intl/tst-codeset.sh: Remove.
7770         * intl/tst-gettext3.sh: Likewise.
7771         * intl/tst-gettext5.sh: Likewise.
7773 2012-08-17  Roland McGrath  <roland@hack.frob.com>
7775         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
7776         * sysdeps/unix/syscalls.list: ... here.
7778         * sysdeps/posix/getaddrinfo.c
7779         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
7780         (gaiconf_init, gaiconf_reload): Use them.
7781         [!_STATBUF_ST_NSEC]
7782         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
7783         Define using time_t rather than struct timespec.
7785         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
7786         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
7787         Macros removed.
7788         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
7789         [!NO_THREADS].
7790         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
7791         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
7792         Likewise.
7794         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
7795         __libc_cleanup_push argument.
7797         * bits/param.h: New file.
7798         * misc/sys/param.h: New file.
7799         * include/sys/param.h: New file.
7800         * misc/Makefile (headers): Add bits/param.h.
7801         * sysdeps/generic/sys/param.h: File removed.
7802         * sysdeps/unix/sysv/linux/bits/param.h: New file.
7803         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
7804         * sysdeps/mach/hurd/bits/param.h: New file.
7805         * sysdeps/mach/hurd/sys/param.h: File removed.
7807         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
7808         last change.
7810         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
7811         [_IO_MTSAFE_IO].
7812         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
7813         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
7814         New macros.
7816         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
7817         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
7818         rather than -D_IO_MTSAFE_IO conditionally.
7819         * stdio-common/Makefile (CPPFLAGS): Likewise.
7820         * wcsmbs/Makefile (CPPFLAGS): Likewise.
7821         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
7822         Use $(libio-mtsafe).
7823         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
7824         of -D_IO_MTSAFE_IO.
7825         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
7826         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
7827         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
7828         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
7829         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
7830         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
7831         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
7832         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
7833         (CFLAGS-fread_u_chk.c): Likewise.
7834         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
7835         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
7836         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
7837         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
7838         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
7839         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
7840         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
7841         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
7842         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
7844         * libio/Makefile: Test [$(libc-reentrant) = yes]
7845         instead of [$(filter %REENTRANT, $(defines)) nonempty].
7847         * Makeconfig
7848         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
7849         * sysdeps/pthread/configure: File removed.
7850         * sysdeps/pthread/Makeconfig: New file.
7851         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
7852         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
7854 2012-08-16  Gary Benson  <gbenson@redhat.com>
7856         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
7857         unmapping the first object in a namespace.
7859 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7861         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
7862         (__internal_setnetgrent): ... this.  Add internal_function to
7863         definition.  Add libc_hidden_def.
7864         (setnetgrent): Update caller.
7865         (internal_endnetgrent): Renamed to ...
7866         (__internal_endnetgrent): ... this.  Add internal_function to
7867         definition.  Add libc_hidden_def.
7868         (endnetgrent): Update caller.
7869         (internal_getnetgrent_r): Renamed to ...
7870         (__internal_getnetgrent_r): ... this.  Add internal_function to
7871         definition.  Add libc_hidden_def.
7872         (__getnetgrent_r): Update caller.
7873         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
7875 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7877         * stdlib/longlong.h: Update from GCC.
7879 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7881         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
7882         on _QL, which is set by umul_ppmm but never used.
7883         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
7884         variables, which are set by GMP macros but never used.
7885         * stdio-common/_itowa.c (_itowa): Likewise.
7886         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
7887         * stdlib/mod_1.c (mpn_mod_1): Likewise.
7889 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
7891         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
7892         struct La_sh_regs is not constant.
7893         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
7894         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
7895         and struct La_sparc64_regs are not constant.
7897 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7899         * sysdeps/unix/sysv/linux/kernel-features.h
7900         (__ASSUME_POSIX_TIMERS): Remove.
7901         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7902         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7903         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
7904         Make code unconditional.
7905         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7906         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
7907         Make code unconditional.
7908         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7909         * sysdeps/unix/sysv/linux/clock_nanosleep.c
7910         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
7911         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7912         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
7913         Make code unconditional.
7914         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7915         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
7916         (__libc_missing_posix_timers): Remove.
7918 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7920         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
7921         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
7923         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
7925         * elf/dl-sym.c: Include <stdlib.h>.
7927         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
7928         constants, which avoids warnings in 32-bit builds.
7930         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
7931         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
7933         * misc/lseek.c: File moved to ...
7934         * io/lseek.c: ... here.
7936         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
7938         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
7939         shifting LEN more than 31 bits at once.
7941 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7943         [BZ #14195]
7944         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
7945         segmentation fault for a case of two empty input strings.
7946         * string/test-strncasecmp.c (check1): Renamed to...
7947         (bz12205): ...this.
7948         (bz14195): Add new testcase for two empty input strings and N > 0.
7949         (test_main): Call new testcase, adapt for renamed function.
7951 2012-08-15  Andreas Jaeger  <aj@suse.de>
7953         [BZ #14090]
7954         * crypt/md5test2.c: New test, based on test supplied by Serge
7955         Belyshev <belyshev@depni.sinp.msu.ru>.
7956         * crypt/Makefile (xtests): Add md5test-giant..
7957         * crypt/Makefile ($(objpfx)md5test-giant): Add.
7959 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7961         [BZ #14090]
7962         * crypt/md5.c (md5_process_block): Don't assume the buffer
7963         length is less than 2**32.
7964         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
7965         length is less than 2**64.
7967 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7969         * string/str-two-way.h: Include <sys/param.h>.
7970         (MAX): Macro removed.
7972         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
7973         Move #define and #undef of memmove to just before and after
7974         including <string.h>.
7976         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
7977         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
7978         and after including <string.h>.  Move declarations of
7979         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
7980         to before #include "string/memmove.c".
7982         * include/dirent.h: Declare __getdirentries.
7984         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
7985         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
7987 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
7989         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
7990         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
7991         * sysdeps/i386/configure: Regenerated.
7992         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
7993         STABS_CURRENT_FILE, and STABS_FUN.
7994         (END): Remove call to STABS_FUN_END.
7995         (STABS_CURRENT_FILE1): Delete.
7996         (STABS_CURRENT_FILE): Likewise.
7997         (STABS_FUN): Likewise.
7998         (STABS_FUN_END): Likewise.
7999         (STABS_FUN2): Likewise.
8000         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
8001         * sysdeps/x86_64/configure: Regenerated.
8003 2012-08-14  Roland McGrath  <roland@hack.frob.com>
8005         * elf/dl-open.c: Include <atomic.h>.
8006         * elf/dl-lookup.c: Likewise.
8008 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
8010         * sysdeps/unix/sysv/linux/kernel-features.h
8011         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
8012         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
8013         unconditionally.
8014         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
8015         unconditionally.
8016         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
8017         condition on __ASSUME_CLONE_THREAD_FLAGS.
8019 2012-08-14  Andreas Jaeger  <aj@suse.de>
8021         * sysdeps/i386/fpu/libm-test-ulps: Update.
8023 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
8025         * include/atomic.h (atomic_exchange_and_add): Split into ...
8026         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
8027         New atomic macros.
8029 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
8031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8033 2012-08-13  Jeff Law <law@redhat.com>
8035         * manual/stdio.texi (snprintf): Clarify handling of the trailing
8036         null byte in the output string.
8038 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
8040         * sysdeps/unix/sysv/linux/kernel-features.h
8041         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
8042         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
8043         (__ASSUME_ARG_MAX_STACK_BASED): Define.
8044         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
8045         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
8046         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
8047         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
8049 2012-08-09  Jeff Law <law@redhat.com>
8051         [BZ #13939]
8052         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
8053         When avoid_arena is set, don't retry in the that arena.  Pick the
8054         next one, whatever it might be.
8055         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
8056         (arena_lock): Pass in new parameter to arena_get2.
8057         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
8058         arena_get2.
8059         (__libc_malloc): Unify retrying after main arena failure with
8060         __libc_memalign version.
8061         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
8063 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8065         [BZ #14166]
8066         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
8067         to __redirect_strstr.
8068         (__strstr_sse42): Use typeof __redirect_strstr.
8069         (__strstr_ia32): Likewise.
8070         (__libc_strstr): New prototype.
8071         (strstr): Renamed to ...
8072         (__libc_strstr): This.
8073         (strstr): New strong alias of __libc_strstr.
8074         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8075         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
8076         __redirect_time.
8077         Include <time.h>.
8078         (__libc_time): New prototype.
8079         (time_ifunc): Replace time with __libc_time.
8080         (time): New strong alias and hidden definition of __libc_time.
8081         (__GI_time): Remove strong alias.
8082         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
8083         Include <stddef.h>.
8084         (memmove): Redefined to __redirect_memmove.
8085         (__memmove_sse2): Use typeof __redirect_memmove.
8086         (__memmove_ssse3): Likewise.
8087         (__memmove_ssse3_back): Likewise.
8088         (__libc_memmove): New prototype.
8089         (memmove): Renamed to ...
8090         (__libc_memmove): This.
8091         (memmove): New strong alias of __libc_memmove.
8093 2012-08-08  Mark Salter  <msalter@redhat.com>
8095         * elf/elf.h
8096         (R_MN10300_TLS_GD): Define.
8097         (R_MN10300_TLS_LD): Likewise.
8098         (R_MN10300_TLS_LDO): Likewise.
8099         (R_MN10300_TLS_GOTIE): Likewise.
8100         (R_MN10300_TLS_IE): Likewise.
8101         (R_MN10300_TLS_LE): Likewise.
8102         (R_MN10300_TLS_DTPMOD): Likewise.
8103         (R_MN10300_TLS_DTPOFF): Likewise.
8104         (R_MN10300_TLS_TPOFF): Likewise.
8105         (R_MN10300_SYM_DIFF): Likewise.
8106         (R_MN10300_ALIGN): Likewise.
8107         (R_MN10300_NUM): Update.
8109 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
8111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
8112         Remove.
8114 2012-08-08  Roland McGrath  <roland@hack.frob.com>
8116         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
8118         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
8119         sysdeps/unix -> sysdeps/posix move.
8120         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8122 2012-08-07      Allan McRae     <allan@archlinux.org>
8124         [BZ #14303]
8125         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
8126         (SUNOS_CPP): Likewise.
8127         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
8128         not found.
8129         (open_input): Call CPP using execvp.
8131 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8133         * sysdeps/unix/sysv/linux/kernel-features.h
8134         (__ASSUME_PROT_GROWSUPDOWN): Remove.
8135         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8136         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8137         (__ASSUME_WAITID_SYSCALL): Likewise.
8138         * sysdeps/unix/sysv/linux/dl-execstack.c
8139         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
8140         code unconditional.
8141         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
8142         conditional code.
8143         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
8144         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
8145         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
8146         code.
8147         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
8148         unconditional.
8149         [__ASSUME_WAITID_SYSCALL]: Likewise.
8150         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
8152 2012-08-07  Roland McGrath  <roland@hack.frob.com>
8154         * sysdeps/unix/closedir.c: Renamed to ...
8155         * sysdeps/posix/closedir.c: ... here.
8156         * sysdeps/unix/dirfd.c: Renamed to ...
8157         * sysdeps/posix/dirfd.c: ... here.
8158         * sysdeps/unix/dirstream.h: Renamed to ...
8159         * sysdeps/posix/dirstream.h: ... here.
8160         * sysdeps/unix/fdopendir.c: Renamed to ...
8161         * sysdeps/posix/fdopendir.c: ... here.
8162         * sysdeps/unix/opendir.c: Renamed to ...
8163         * sysdeps/posix/opendir.c: ... here.
8164         * sysdeps/unix/readdir.c: Renamed to ...
8165         * sysdeps/posix/readdir.c: ... here.
8166         * sysdeps/unix/readdir_r.c: Renamed to ...
8167         * sysdeps/posix/readdir_r.c: ... here.
8168         * sysdeps/unix/rewinddir.c: Renamed to ...
8169         * sysdeps/posix/rewinddir.c: ... here.
8170         * sysdeps/unix/seekdir.c: Renamed to ...
8171         * sysdeps/posix/seekdir.c: ... here.
8172         * sysdeps/unix/telldir.c: Renamed to ...
8173         * sysdeps/posix/telldir.c: ... here.
8174         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
8175         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
8176         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8177         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
8179         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
8180         * bits/fcntl.h: ... here.
8182         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
8183         not 0.
8184         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
8185         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
8186         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
8187         (struct flock): Move l_start, l_len to the beginning.
8188         Use __pid_t for l_pid.
8189         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
8190         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
8191         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
8192         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
8193         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
8194         [__USE_LARGEFILE64] (struct flock64): New type.
8195         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
8197         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
8198         * bits/dirent.h: ... here.
8200         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
8201         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
8203 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8205         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8206         Change from 2.6.0 to 2.6.16.
8207         * sysdeps/unix/sysv/linux/configure: Regenerated.
8208         * sysdeps/unix/sysv/linux/kernel-features.h
8209         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
8210         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
8211         version.
8212         (__ASSUME_UTIMES): Likewise.
8213         (__ASSUME_CLONE_STOPPED): Remove.
8214         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
8215         architectures, not kernel version.
8216         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
8217         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8218         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8219         (__ASSUME_WAITID_SYSCALL): Likewise.
8220         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
8221         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
8222         * README: State 2.6.16 as minimum Linux kernel version.  Do not
8223         refer to older versions.
8225 2012-08-06  Roland McGrath  <roland@hack.frob.com>
8227         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
8228         Define alphasort64 as an alias.
8229         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
8230         Define versionsort64 as an alias.
8231         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
8232         Define scandir64 as an alias.
8233         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
8234         Define scandirat64 as an alias.
8235         * dirent/alphasort64.c (alphasort64):
8236         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
8237         * dirent/versionsort64.c: Likewise.
8238         * dirent/scandir64.c: Likewise.
8239         * dirent/scandirat64.c: Likewise.
8240         * sysdeps/wordsize-64/alphasort.c: File removed.
8241         * sysdeps/wordsize-64/alphasort64.c: File removed.
8242         * sysdeps/wordsize-64/scandir.c: File removed.
8243         * sysdeps/wordsize-64/scandir64.c: File removed.
8244         * sysdeps/wordsize-64/scandirat.c: File removed.
8245         * sysdeps/wordsize-64/scandirat64.c: File removed.
8246         * sysdeps/wordsize-64/versionsort.c: File removed.
8247         * sysdeps/wordsize-64/versionsort64.c: File removed.
8248         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
8249         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
8250         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
8251         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
8252         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
8253         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
8254         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
8255         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
8257         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
8258         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8259         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
8260         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8261         [defined __arch64__ || defined __sparcv9]
8262         (__INO_T_MATCHES_INO64_T): New macro.
8263         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8264         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
8265         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
8266         * sysdeps/unix/sysv/linux/bits/dirent.h
8267         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
8268         (_DIRENT_MATCHES_DIRENT64): New macro.
8270         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
8271         Define lockf64 as an alias.
8272         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
8273         Define fseeko64 as an alias.
8274         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
8275         Define ftello64 as an alias.
8276         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
8277         Define _IO_fgetpos64 and fgetpos64 as aliases.
8278         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
8279         Define _IO_fsetpos64 and fsetpos64 as aliases.
8280         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
8281         Conditionalize body on this.
8282         * libio/fseeko64.c: Likewise.
8283         * libio/ftello64.c: Likewise.
8284         * libio/iofgetpos64.c: Likewise.
8285         * libio/iofsetpos64.c: Likewise.
8286         * sysdeps/wordsize-64/lockf.c: File removed.
8287         * sysdeps/wordsize-64/lockf64.c: File removed.
8288         * sysdeps/wordsize-64/fseeko.c: File removed.
8289         * sysdeps/wordsize-64/fseeko64.c: File removed.
8290         * sysdeps/wordsize-64/ftello.c: File removed.
8291         * sysdeps/wordsize-64/ftello64.c: File removed.
8292         * sysdeps/wordsize-64/iofgetpos.c: File removed.
8293         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
8294         * sysdeps/wordsize-64/iofsetpos.c: File removed.
8295         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
8296         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
8297         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
8298         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
8299         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
8300         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
8301         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
8302         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
8303         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
8304         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
8305         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
8307         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8308         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8309         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
8310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8311         [defined __arch64__ || defined __sparcv9]
8312         (__OFF_T_MATCHES_OFF64_T): New macro.
8313         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8314         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8315         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8316         (__OFF_T_MATCHES_OFF64_T): New macro.
8318 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8320         * stdlib/secure-getenv.c (__secure_getenv): Replace
8321         GLIBC_2_16 with GLIBC_2_17.
8323 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8325         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
8326         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8328 2012-08-03  David S. Miller  <davem@davemloft.net>
8330         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8332 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8334         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
8335         Remove.
8336         (__ASSUME_CORRECT_SI_PID): Likewise.
8337         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
8338         (__ASSUME_TMPFS_NAME): Likewise.
8339         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
8340         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
8341         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
8342         (HAVE_AUX_SECURE): Make definition unconditional.
8343         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
8344         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
8346 2012-08-03  Roland McGrath  <roland@hack.frob.com>
8348         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
8349         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
8350         * sysdeps/mach/hurd/eloop-threshold.h: New file.
8351         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8352         __eloop_threshold instead of SYMLOOP_MAX.
8354         * sysdeps/generic/eloop-threshold.h: New file.
8355         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
8356         of MAXSYMLINKS.
8357         * elf/chroot_canon.c (chroot_canon): Likewise.
8359 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8361         [BZ #13717]
8362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8363         Change to 2.6.0 everywhere.
8364         * sysdeps/unix/sysv/linux/configure: Regenerated.
8365         * sysdeps/unix/sysv/linux/kernel-features.h
8366         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
8367         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
8368         kernel versions.
8369         (__ASSUME_POSIX_TIMERS): Define unconditionally.
8370         (__ASSUME_FUTEX_REQUEUE): Remove.
8371         (__ASSUME_STATFS64): Define unconditionally.
8372         (__ASSUME_AT_SECURE): Likewise.
8373         (__ASSUME_CORRECT_SI_PID): Likewise.
8374         (__ASSUME_TGKILL): Define without depending on kernel version for
8375         i386.
8376         (__ASSUME_UTIMES): Likewise.
8377         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
8378         kernel version.
8379         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
8380         (__ASSUME_TMPFS_NAME): Likewise.
8381         * README: Update reference to Linux kernel versions.
8383 2012-08-02  Marek Polacek  <polacek@redhat.com>
8385         [BZ# 14150]
8386         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
8387         libc_cv_asm_type_prefix with %.
8388         * configure: Regenerated.
8389         * include/libc-symbols.h: Remove comment about
8390         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
8391         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
8392         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
8393         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
8394         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
8395         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
8396         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
8397         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
8398         * elf/tst-unique2mod1.c: Likewise.
8399         * elf/tst-unique1mod2.c: Likewise.
8400         * elf/tst-unique1mod1.c: Likewise.
8401         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
8402         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
8403         Replace ASM_TYPE_DIRECTIVE with .type.
8404         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8405         * sysdeps/i386/sysdep.h: Likewise.
8406         * sysdeps/x86_64/sysdep.h: Likewise.
8407         * sysdeps/sh/sysdep.h: Likewise.
8408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
8409         Do not define ASM_TYPE_DIRECTIVE.
8410         * sysdeps/powerpc/sysdep.h: Likewise.
8411         * sysdeps/powerpc/powerpc32/sysdep.h:
8412         Replace ASM_TYPE_DIRECTIVE with .type.
8413         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
8414         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8415         * sysdeps/i386/fpu/e_powf.S: Likewise.
8416         * sysdeps/i386/fpu/e_expl.S: Likewise.
8417         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8418         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8419         * sysdeps/i386/fpu/e_pow.S: Likewise.
8420         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8421         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8422         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8423         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8424         * sysdeps/i386/fpu/e_log2.S: Likewise.
8425         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8426         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8427         * sysdeps/i386/fpu/e_powl.S: Likewise.
8428         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8429         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8430         * sysdeps/i386/fpu/e_logl.S: Likewise.
8431         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8432         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8433         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8434         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8435         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8436         * sysdeps/i386/fpu/e_log.S: Likewise.
8437         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8438         * sysdeps/i386/fpu/e_logf.S: Likewise.
8439         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8440         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8441         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8442         * sysdeps/i386/fpu/e_log10.S: Likewise.
8443         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8444         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8445         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8446         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8447         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8448         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
8449         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8450         * sysdeps/i386/i686/strtok.S: Likewise.
8451         * sysdeps/i386/i386-mcount.S: Likewise.
8452         * sysdeps/i386/strtok.S: Likewise.
8453         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
8454         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8455         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8456         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8457         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8458         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8459         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8460         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8461         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8462         * sysdeps/x86_64/_mcount.S: Likewise.
8463         * sysdeps/x86_64/strtok.S: Likewise.
8464         * sysdeps/sh/_mcount.S: Likewise.
8466 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8468         * libio/iofopen.c: Include <fcntl.h>.
8469         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
8470         (_IO_fopen64, fopen64): Define as aliases.
8471         * libio/iofopen64.c: Include <fcntl.h>.
8472         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
8473         Conditionalize body on this.
8474         * sysdeps/wordsize-64/iofopen.c: File removed.
8475         * sysdeps/wordsize-64/iofopen64.c: File removed.
8477 2012-08-01  Marek Polacek  <polacek@redhat.com>
8479         * libc/Makeconfig: Use elf in place of binfmt-subdir.
8480         Use dlfcn directly instead of a variable.
8481         (binfmt-subdir): Do not define.
8482         (dlfcn): Likewise.
8484 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
8486         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
8487         Remove all definitions.
8488         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
8489         <kernel-features.h>.
8490         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8491         (miss_F_GETOWN_EX): Remove all definitions.
8492         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
8493         macro definition.
8494         [!__ASSUME_FCNTL64]: Remove conditional code.
8495         [__ASSUME_FCNTL64]: Make code unconditional.
8496         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
8497         <kernel-features.h>.
8498         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8499         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
8500         (lockf64) [__NR_fcntl64]: Make code unconditional.
8501         (lockf64) [__ASSUME_FCNTL64]: Likewise.
8503         * sysdeps/unix/sysv/linux/kernel-features.h
8504         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
8505         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
8506         Make code unconditional.
8507         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8508         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
8510         [__NR_vfork]: Make code unconditional.
8511         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8512         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
8514         [__NR_vfork]: Make code unconditional.
8515         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8516         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8518 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8520         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
8521         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
8523         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8524         Define mkstemp64 as an alias.
8525         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8526         Define mkstemps64 as an alias.
8527         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8528         Define mkostemp64 as an alias.
8529         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8530         Define mkostemps64 as an alias.
8531         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
8532         Conditionalize body on this.
8533         * misc/mkostemp64.c: Likewise.
8534         * misc/mkostemps64.c: Likewise.
8535         * misc/mkstemps64.c: Likewise.
8536         * sysdeps/wordsize-64/mkstemp64.c: File removed.
8537         * sysdeps/wordsize-64/mkostemp64.c: File removed.
8538         * sysdeps/wordsize-64/mkostemp.c: File removed.
8539         * sysdeps/wordsize-64/mkstemp.c: File removed.
8540         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
8541         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
8542         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
8543         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
8545         [BZ #14138]
8546         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
8547         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
8548         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
8549         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
8551         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
8552         compat_symbol macros from <shlib-compat.h> rather than the underlying
8553         default_symbol_version and symbol_version macros, so that DEFAULT
8554         lines in shlib-versions are respected.
8555         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
8557 2012-08-01  Florian Weimer  <fweimer@redhat.com>
8559         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
8560         Declare with warn_unused_result.
8561         (setgid, setregid, setegid, setresgid): Likewise.
8562         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
8563         Likewise.
8564         * WUR-REPORT: Remove set*id functions.
8566 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
8568         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
8570 2012-07-31  Roland McGrath  <roland@hack.frob.com>
8572         * include/sys/socket.h (__libc_accept, __libc_accept4):
8573         Add attribute_hidden.
8574         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
8576         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
8577         use of PTR_MANGLE.
8578         * inet/getnetgrent_r.c (setup): Likewise.
8580         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
8582 2012-07-31  David S. Miller  <davem@davemloft.net>
8584         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8586 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
8588         [BZ #13629]
8589         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
8590         value between 1.0 and 2.0 and smaller part has absolute value less
8591         than 1.0.
8592         * math/s_clog10.c (__clog10): Likewise.
8593         * math/s_clog10f.c (__clog10f): Likewise.
8594         * math/s_clog10l.c (__clog10l): Likewise.
8595         * math/s_clogf.c (__clogf): Likewise.
8596         * math/s_clogl.c (__clogl): Likewise.
8597         * math/libm-test.inc (clog_test): Add more tests.
8598         (clog10_test): Likewise.
8599         * sysdeps/i386/fpu/libm-test-ulps: Update.
8600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8602 2012-07-31  Florian Weimer  <fweimer@redhat.com>
8604         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
8605         Exit with zero in case no suitable GID is found, and write a
8606         message to standard error.
8608 2012-07-30  Roland McGrath  <roland@hack.frob.com>
8610         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
8611         rather than to 1.
8612         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
8613         (MAXPATHLEN): Removed.
8614         (NOGROUP, NODEV): New macros.
8615         (setbit, clrbit, isset, isclr): New macros.
8616         (howmany, roundup, powerof2): New macros.
8617         (DEV_BSIZE): New macro.
8619         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
8620         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
8622         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
8623         definition on [!__NO_LONG_DOUBLE_MATH].
8625         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
8626         PTR_MANGLE and PTR_DEMANGLE.
8628         * socket/accept4.c (accept4): Rename to __libc_accept4.
8629         Define accept4 as a weak alias.
8631         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
8632         on [_DIRENT_HAVE_D_TYPE].
8633         * io/ftw.c (ftw_dir): Likewise.
8635         * io/xmknod.c (__xmknod): Don't check PATH for being null.
8637         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
8639         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
8640         Use the BSD numbers rather than the arbitrary ones we had.
8641         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
8642         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
8643         (SIGXCPU, SIGXFSZ): New macros.
8644         (_NSIG): Now 32.
8646         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
8647         initializer on [_LIBC_REENTRANT].
8649         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
8650         definitions inside [_POSIX_MAPPED_FILES].
8652         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
8654         * dirent/opendir.c: Include <fcntl.h>.
8656         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
8657         (__libc_getspecific): Likewise.
8658         (__libc_key_create): Likewise.
8660         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
8661         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
8662         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
8663         (tmpfile64): Define as alias.
8664         * sysdeps/wordsize-64/tmpfile.c: File removed.
8665         * sysdeps/wordsize-64/tmpfile64.c: File removed.
8666         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
8667         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
8669         * stdio-common/vfscanf.c: Include <stdbool.h>.
8670         * nss/makedb.c: Likewise.
8671         * stdio-common/_i18n_number.h: Likewise.
8672         * argp/argp-help.c: Likewise.
8673         * posix/wordexp.c: Likewise.
8674         * sysdeps/posix/spawni.c: Likewise.
8675         * nss/nss_files/files-initgroups.c: Likewise.
8676         * stdio-common/reg-modifier.c: Include <stdlib.h>.
8677         * nss/nss_files/files-initgroups.c: Likewise.
8678         * nss/nss_db/db-netgrp.c: Likewise.
8679         * nss/nss_db/db-initgroups.c: Likewise.
8680         * io/fchmodat.c: Include <sys/stat.h>.
8682         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
8683         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
8685         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
8686         [HAVE_MMAP].
8688         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
8689         Add multiple inclusion protection.
8691 2012-07-27  David S. Miller  <davem@davemloft.net>
8693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8695 2012-07-27  Gary Benson  <gbenson@redhat.com>
8697         [BZ #14298]
8698         * elf/rtld.c: Include <stap-probe.h>.
8699         (dl_main): Added static probes "init_start" and "init_complete".
8700         * elf/dl-load.c: Include <stap-probe.h>.
8701         (lose): Take new parameter "nsid".
8702         Added static probe "map_failed".
8703         (_dl_map_object_from_fd): Pass namespace id to lose.
8704         Added static probe "map_start".
8705         (open_verify): Pass namespace id to lose.
8706         * elf/dl-open.c: Include <stap-probe.h>.
8707         (dl_open_worker) Added static probes "map_complete", "reloc_start"
8708         and "reloc_complete".
8709         * elf/dl-close.c: Include <stap-probe.h>.
8710         (_dl_close_worker): Added static probes "unmap_start" and
8711         "unmap_complete".
8712         * elf/rtld-debugger-interface.txt: New file documenting the above.
8714 2012-07-26  Roland McGrath  <roland@hack.frob.com>
8716         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
8717         rather than a string variable.
8718         * sunrpc/rpc_main.c (h_output): Likewise.
8719         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
8721 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
8723         * inet/check_native.c: New file.
8725 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
8727         [BZ #13629]
8728         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
8729         if larger part has absolute value 1.0.
8730         * math/s_clog10.c (__clog10): Likewise.
8731         * math/s_clog10f.c (__clog10f): Likewise.
8732         * math/s_clog10l.c (__clog10l): Likewise.
8733         * math/s_clogf.c (__clogf): Likewise.
8734         * math/s_clogl.c (__clogl): Likewise.
8735         * math/libm-test.inc (clog_test): Add more tests.
8736         (clog10_test): Likewise.
8737         * sysdeps/i386/fpu/libm-test-ulps: Update.
8738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8740         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
8741         (pltexit): Likewise.
8742         (La_regs): Likewise.
8743         (La_retval): Likewise.
8744         (int_retval): Likewise.
8745         Update #error for removed macros to refer only to definitions in
8746         tst-audit.h.
8747         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
8748         macro.
8749         (pltexit): Likewise.
8750         (La_regs): Likewise.
8751         (La_retval): Likewise.
8752         (int_retval): Likewise.
8753         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
8754         macro.
8755         (pltexit): Likewise.
8756         (La_regs): Likewise.
8757         (La_retval): Likewise.
8758         (int_retval): Likewise.
8759         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
8760         macro.
8761         (pltexit): Likewise.
8762         (La_regs): Likewise.
8763         (La_retval): Likewise.
8764         (int_retval): Likewise.
8765         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
8766         macro.
8767         (pltexit): Likewise.
8768         (La_regs): Likewise.
8769         (La_retval): Likewise.
8770         (int_retval): Likewise.
8771         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
8772         macro.
8773         (pltexit): Likewise.
8774         (La_regs): Likewise.
8775         (La_retval): Likewise.
8776         (int_retval): Likewise.
8777         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
8778         macro.
8779         (pltexit): Likewise.
8780         (La_regs): Likewise.
8781         (La_retval): Likewise.
8782         (int_retval): Likewise.
8783         * sysdeps/generic/tst-audit.h: Update comment to refer only to
8784         macro definitions in tst-audit.h.
8785         * sysdeps/i386/tst-audit.h: New file.
8786         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
8787         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
8788         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
8789         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
8790         * sysdeps/sh/tst-audit.h: Likewise.
8791         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
8792         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
8793         * sysdeps/x86_64/tst-audit.h: Likewise.
8795 2012-07-26  Andreas Jaeger  <aj@suse.de>
8797         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
8798         ptrace.
8800         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
8801         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
8802         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
8803         PTRACE_O_MASK.
8804         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
8805         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
8806         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
8808         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
8809         value.
8811         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
8812         _sigsys.
8813         (si_call_addr, si_syscall, si_arch): Define new macro.
8814         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
8815         _sigsys.
8816         (si_call_addr, si_syscall, si_arch): Define new marcro.
8817         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
8818         _sigsys.
8819         (si_call_addr, si_syscall, si_arch): Define new macro.
8820         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
8821         _sigsys.
8822         (si_call_addr, si_syscall, si_arch): Define new macro.
8824 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8826         [BZ #13717]
8827         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8828         Change to 2.4.21 where previously 2.4.1.
8829         * sysdeps/unix/sysv/linux/configure: Regenerated.
8830         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
8831         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
8832         Linux kernel version.
8833         (__ASSUME_STD_AUXV): Remove.
8834         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
8835         kernel version.
8836         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
8837         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
8838         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
8839         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
8840         (__ASSUME_NETLINK_SUPPORT): Likewise.
8841         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
8842         (__no_netlink_support): Remove conditional definition.
8843         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
8844         Remove.
8845         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8846         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
8847         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
8848         (if_nameindex_ioctl): Remove.
8849         (if_nameindex_netlink): Do not handle __no_netlink_support.
8850         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
8851         code.
8852         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
8853         Remove conditional code.
8854         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
8855         code.
8856         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
8857         unconditional.
8858         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8859         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
8860         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
8861         Remove.
8862         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8863         [!__ASSUME_STD_AUXV]: Remove conditional code.
8864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
8865         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
8866         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
8867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
8868         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
8869         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8870         code.
8871         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
8873         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
8874         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8875         conditional code.
8876         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
8878         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8879         code.
8880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
8881         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8882         conditional code.
8883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
8884         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8885         code unconditional.
8886         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8887         conditional code.
8888         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8889         unconditional.
8890         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8891         conditional code.
8892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8893         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8894         unconditional.
8895         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8896         conditional code.
8897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8898         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8899         code unconditional.
8900         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8901         conditional code.
8902         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8903         unconditional.
8904         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8905         conditional code.
8906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8907         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8908         code unconditional.
8909         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8910         conditional code.
8911         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8912         unconditional.
8913         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8914         conditional code.
8916 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
8918         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
8919         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
8920         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8921         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
8922         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8923         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8924         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8925         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
8926         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8927         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8928         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8929         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8930         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
8931         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8932         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8933         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
8934         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
8935         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
8936         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
8937         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
8938         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
8939         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8940         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8942 2012-07-25  Florian Weimer  <fweimer@redhat.com>
8944         * Versions.def: Add GLIBC_2.17.
8945         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
8946         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
8947         Introduce __libc_secure_getenv.
8948         * stdlib/Versions (2.17): Add secure_getenv
8949         (GLIBC_PRIVATE): Add __libc_secure_getenv.
8950         * stdlib/secure-getenv.c: Rename __secure_getenv to
8951         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
8952         symbol __secure_getenv for GLIBC_2.0.
8953         * stdlib/tst-secure-getenv.c: New.
8954         * stdlib/Makefile (tests): Add testcase.
8955         * manual/startup.texi (Environment Access): Document
8956         secure_getenv.
8957         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
8958         __libc_secure_getenv.
8959         * inet/ruserpass.c (ruserpass): Likewise.
8960         * malloc/mtrace.c (mtrace): Likewise.
8961         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
8962         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8963         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
8964         * sysdeps/posix/tempname.c: Likewise.  Evaluate
8965         HAVE_SECURE_GETENV.
8966         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
8967         __secure_getenv to __libc_secure_getenv.
8968         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
8969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8970         Likewise.
8971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8972         Likewise.
8973         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8974         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8975         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8976         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8978         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8981 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8983         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
8984         (struct La_i86_retval): Likewise.
8985         (struct La_x86_64_regs): Likewise.
8986         (struct La_x86_64_retval): Likewise.
8987         (struct La_x32_regs): Likewise.
8988         (struct La_x32_retval): Likewise.
8989         (struct La_ppc32_regs): Likewise.
8990         (struct La_ppc32_retval): Likewise.
8991         (struct La_ppc64_regs): Likewise.
8992         (struct La_ppc64_retval): Likewise.
8993         (struct La_sh_regs): Likewise.
8994         (struct La_sh_retval): Likewise.
8995         (struct La_s390_32_regs): Likewise.
8996         (struct La_s390_32_retval): Likewise.
8997         (struct La_s390_64_regs): Likewise.
8998         (struct La_s390_64_retval): Likewise.
8999         (struct La_sparc32_regs): Likewise.
9000         (struct La_sparc32_retval): Likewise.
9001         (struct La_sparc64_regs): Likewise.
9002         (struct La_sparc64_retval): Likewise.
9003         (struct audit_ifaces): Remove architecture-specific pltenter and
9004         pltexit members.
9005         * sysdeps/i386/ldsodefs.h: New file.
9006         * sysdeps/powerpc/ldsodefs.h: Likewise.
9007         * sysdeps/s390/ldsodefs.h: Likewise.
9008         * sysdeps/sh/ldsodefs.h: Likewise.
9009         * sysdeps/sparc/ldsodefs.h: Likewise.
9010         * sysdeps/x86_64/ldsodefs.h: Likewise.
9012 2012-07-25  Marek Polacek  <polacek@redhat.com>
9014         [BZ #6808]
9015         * math/libm-test.inc (yn_test): Add another test.
9016         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
9017         to ERANGE when the result is +-Inf.
9018         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
9019         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9020         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
9021         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
9023 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
9025         * conform/data/time.h-data (NULL): Use macro-constant.  Require
9026         equal to 0.
9027         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
9028         clock_t.
9029         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
9031 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
9033         * configure.in <sysdeps resolving>: Correct printing
9034         Implies_before.
9035         * configure: Regenerate.
9037 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
9039         * math/w_ilogb.c: Include <limits.h>.
9040         * math/w_ilogbl.c: Likewise.
9042 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9044         * manual/lang.texi (__va_copy): Document primarily as ISO C99
9045         va_copy.  Document allowing for unavailable va_copy only as
9046         pre-C99 compatibility.
9047         * manual/string.texi (Copying and Concatenation): Use va_copy
9048         instead of __va_copy in concat example.
9050 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
9052         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
9053         (__sendto): Use create_address_port.  Initialize APORT and deallocate
9054         it if not null.
9056         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
9057         with O_NOLINK passed to __file_name_lookup.
9059         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
9060         with O_NOLINK passed to __file_name_lookup.
9062         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
9063         negative N or less than NGIDS.
9065         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
9066         type to string_t.  Set ERANGE as errno and return it if NAME is not big
9067         enough.  Use memcpy instead of strncpy.
9069 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9071         * elf/Makefile (check-data): Remove.
9072         (localplt.data): New vpath directive.
9073         ($(objpfx)check-localplt.out): Use localplt.data from vpath
9074         instead of $(check-data).
9075         * scripts/data/localplt-generic.data: Move to ...
9076         * sysdeps/generic/localplt.data: ... here.
9077         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
9078         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
9079         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
9080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
9081         ... here.
9082         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
9083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
9084         ... here.
9085         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
9086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
9087         ... here.
9088         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
9089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
9090         ... here.
9091         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
9092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
9093         ... here.
9094         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
9095         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
9096         ... here.
9098 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9100         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
9101         PPC32 and PPC64 files.
9102         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
9103         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
9105 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9107         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
9108         __makecontext_ret to ...
9109         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
9110         ... here and call exit if uc_link is NULL.  New file.
9111         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
9112         __makecontext_ret.S.
9113         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
9114         __makecontext_ret to ...
9115         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
9116         ... here and call exit if uc_link is NULL.  New file.
9117         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
9118         __makecontext_ret.S.
9120 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9122         * elf/elf.h (R_390_IRELATIVE): New definition.
9123         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
9124         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
9125         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
9126         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9127         (elf_machine_lazy_rel): Likewise.
9128         * sysdeps/s390/dl-irel.h: New file.
9129         * sysdeps/s390/s390-64/memcpy.S: New asm code.
9130         * sysdeps/s390/s390-64/memset.S: New asm code.
9131         * sysdeps/s390/s390-64/memcmp.S: New asm code.
9132         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
9133         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
9134         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
9135         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
9136         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
9137         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
9138         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
9139         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
9140         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
9141         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
9142         * sysdeps/s390/s390-32/memcpy.S: New asm code.
9143         * sysdeps/s390/s390-32/memset.S: New asm code.
9144         * sysdeps/s390/s390-32/memcmp.S: New asm code.
9146 2012-07-17  Marek Polacek  <polacek@redhat.com>
9148         [BZ #14349]
9149         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
9150         * sysdeps/s390/s390-64/configure.in: Likewise.
9151         * sysdeps/sparc/configure.in: Likewise.
9152         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
9153         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
9154         * sysdeps/i386/configure.in: Likewise.
9155         * sysdeps/x86_64/configure.in: Likewise.
9156         * sysdeps/sh/configure.in: Likewise.
9157         * sysdeps/s390/s390-32/configure: Regenerated.
9158         * sysdeps/s390/s390-64/configure: Likewise.
9159         * sysdeps/x86_64/configure: Likewise.
9160         * sysdeps/sh/configure: Likewise.
9161         * sysdeps/powerpc/powerpc64/configure: Likewise.
9162         * sysdeps/powerpc/powerpc32/configure: Likewise.
9163         * sysdeps/sparc/configure: Likwise.
9164         * sysdeps/i386/configure: Likewise.
9166         * elf/dl-open.c: Comment fixes.
9168 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
9170         * Makefile [CXX] (check-data): Remove.
9171         [CXX] (c++-types.data): New vpath directive.
9172         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
9173         vpath.  Do not allow for C++ type data being missing.
9174         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
9175         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
9176         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
9177         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
9178         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
9179         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
9180         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
9181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
9182         ... here.
9183         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
9184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
9185         ... here.
9186         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
9187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
9188         ... here.
9189         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
9190         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
9191         ... here.
9192         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
9193         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
9194         ... here.
9195         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
9196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
9197         ... here.
9198         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
9199         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
9200         ... here.
9201         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
9202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
9204         * elf/tls-macros.h (TLS_LE): Move architecture-specific
9205         definitions to architecture-specific files.
9206         (TLS_IE): Likewise.
9207         (TLS_LD): Likewise.
9208         (TLS_GD): Likewise.
9209         * sysdeps/i386/tls-macros.h: New file.
9210         * sysdeps/powerpc/tls-macros.h: Likewise.
9211         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
9212         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
9213         * sysdeps/sh/tls-macros.h: Likewise.
9214         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
9215         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
9216         * sysdeps/x86_64/tls-macros.h: Likewise.
9218 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9220         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
9221         zero value for regular exit case.
9223         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
9224         (__start_context): Preserve zero value for regular exit case.
9226 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9227             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9229         * manual/setjmp.texi (setcontext): Clarify normal process
9230         termination when uc_link is the null pointer.
9231         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
9232         exit call.
9234 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
9236         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
9237         preprocessor.  Test for each exception mask separately.
9239 2012-07-16  Andreas Jaeger  <aj@suse.de>
9241         * po/ru.po: Update from translation team.
9243 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
9245         * conform/data/string.h-data (NULL): Use macro-constant.  Require
9246         equal to 0.
9247         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
9248         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
9249         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
9250         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
9251         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9253 2012-07-13  Andreas Jaeger  <aj@suse.de>
9255         * po/fr.po: Update from translation team.
9257 2012-07-12  Marek Polacek  <polacek@redhat.com>
9259         [BZ #14173]
9260         * math/libm-test.inc (yn_test): Add test for BZ #14173.
9261         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
9262         loop condition.
9264 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
9266         [BZ #13717]
9267         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9268         Change to 2.4.1 where previously 2.4.0.
9269         * sysdeps/unix/sysv/linux/configure: Regenerated.
9270         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
9271         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
9272         version.
9273         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
9274         (__ASSUME_AT_CLKTCK): Remove.
9275         (__ASSUME_AT_PAGESIZE): Likewise.
9276         (__ASSUME_AT_XID): Likewise.
9277         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
9278         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
9279         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
9280         unconditionally.
9281         (HAVE_AUX_PAGESIZE): Likewise.
9282         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
9283         [__ASSUME_AT_CLKTCK]: Make code unconditional.
9284         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
9286 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
9288         [BZ #14307]
9289         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
9290         the temporary buffer used to invoke __gethostbyname2_r,
9291         __gethostbyaddr_r and gethostbyname4_r to make room for struct
9292         host_data / struct gaih_addrtuple.
9293         * resolv/nss_dns/dns-host.c (global scope): Move definition of
9294         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
9295         header file nss/nsswitch.h.
9296         * nss/nsswitch.h (global scope): Add definition of implementation
9297         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
9298         resolv/nss_dns/dns-host.c).
9300 2012-07-11  Andreas Jaeger  <aj@suse.de>
9302         * po/fr.po: Update from translation team.
9304         * po/sv.po: Update from translation team
9305         * po/fr.po: Another update from translation team.
9307 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9309         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
9310         for subnormals or multiply small sinh result by itself.
9311         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9314 2012-07-11  David S. Miller  <davem@davemloft.net>
9316         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9318 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
9320         [BZ #14347]
9321         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
9322         (INTERNAL_MARK): Shift it here.
9324 2012-07-10  Marek Polacek  <polacek@redhat.com>
9326         [BZ #14151]
9327         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
9328         libc_cv_asm_global_directive with .globl.
9329         * configure: Regenerated.
9330         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
9331         with .globl.
9332         * sysdeps/i386/configure: Regenerated.
9333         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
9334         with .globl.
9335         * sysdeps/x86_64/configure: Regenerated.
9336         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
9337         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
9338         * elf/tst-unique2mod2.c: Likewise.
9339         * elf/tst-unique2mod1.c: Likewise.
9340         * elf/tst-unique1mod2.c: Likewise.
9341         * elf/tst-unique1mod1.c: Likewise.
9342         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9343         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9344         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9345         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9346         * sysdeps/mach/sysdep.h: Likewise.
9347         * sysdeps/i386/sysdep.h: Likewise.
9348         * sysdeps/i386/i386-mcount.S: Likewise.
9349         * sysdeps/x86_64/_mcount.S: Likewise.
9350         * sysdeps/x86_64/sysdep.h: Likewise.
9351         * sysdeps/sh/_mcount.S: Likewise.
9352         * sysdeps/sh/sysdep.h: Likewise.
9353         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
9354         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
9355         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
9356         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9357         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
9358         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
9359         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
9360         * locale/localeinfo.h: Likewise.
9361         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
9362         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
9364 2012-07-09  Roland McGrath  <roland@hack.frob.com>
9366         [BZ #14336]
9367         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
9368         system".
9369         * manual/message.texi (The Uniforum approach): Likewise.
9370         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
9371         (glibc iconv Implementation): Likewise.
9373 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
9375         [BZ #14337]
9376         * math/s_clog.c (__clog): Avoid scaling a value down where that
9377         could result in underflow.
9378         * math/s_clog10.c (__clog10): Likewise.
9379         * math/s_clog10f.c (__clog10f): Likewise.
9380         * math/s_clog10l.c (__clog10l): Likewise.
9381         * math/s_clogf.c (__clogf): Likewise.
9382         * math/s_clogl.c (__clogl): Likewise.
9383         * math/libm-test.inc (clog_test): Add more tests.
9384         (clog10_test): Likewise.
9385         * sysdeps/i386/fpu/libm-test-ulps: Update.
9386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9388 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
9390         [BZ #14283]
9391         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
9392         by 7 not 8 to examine high bit of fractional part.
9394         [BZ #14042]
9395         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
9396         for call to __mcount_internal.
9397         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
9398         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
9399         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
9401 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
9403         [BZ #14154]
9404         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
9405         approximation for values within 0x1p-13f of an odd multiple of
9406         pi/4.
9407         * math/libm-test.inc (tan_test): Do not allow spurious underflow
9408         exception.  Add more tests.
9409         * sysdeps/i386/fpu/libm-test-ulps: Update.
9411         [BZ #6778]
9412         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
9413         inputs and return -1 for them.  Do not check for +Inf in case not
9414         reachable for +Inf.
9415         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9416         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
9417         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
9418         and return -1 for them.  Do not check for +Inf in case not
9419         reachable for +Inf.
9420         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
9421         define.
9422         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
9423         and return -1 for them.  Do not check for +Inf in case not
9424         reachable for +Inf.
9425         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
9426         spurious underflow.
9427         * sysdeps/i386/fpu/libm-test-ulps: Update.
9428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9430 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
9432         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
9434 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
9436         [BZ #14157]
9437         [BZ #14331]
9438         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
9439         could result in spurious underflow.  Scale down values above
9440         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
9441         * math/s_csqrtf.c (__csqrtf): Likewise.
9442         * math/s_csqrtl.c (__csqrtl): Likewise.
9443         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
9444         spurious underflow.
9445         * sysdeps/i386/fpu/libm-test-ulps: Update.
9446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9448 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
9450         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
9451         xopen-msg.sed.
9452         * catgets/xopen-msg.awk: New file.
9453         * catgets/xopen-msg.sed: Removed.
9455         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
9456         po2text.sed.
9457         * intl/po2test.awk: New file.
9458         * intl/po2test.sed: Removed.
9460 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
9462         [BZ #14328]
9463         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
9464         or multiply small sinh result by itself.
9465         * math/s_ctanf.c (__ctanf): Likewise.
9466         * math/s_ctanh.c (__ctanh): Likewise.
9467         * math/s_ctanhf.c (__ctanhf): Likewise.
9468         * math/s_ctanhl.c (__ctanhl): Likewise.
9469         * math/s_ctanl.c (__ctanl): Likewise.
9470         * math/libm-test.inc (ctan_test_tonearest): New function.
9471         (ctan_test_towardzero): Likewise.
9472         (ctan_test_downward): Likewise.
9473         (ctan_test_upward): Likewise.
9474         (ctanh_test_tonearest): Likewise.
9475         (ctanh_test_towardzero): Likewise.
9476         (ctanh_test_downward): Likewise.
9477         (ctanh_test_upward): Likewise.
9478         (main): Call these new functions.
9479         * sysdeps/i386/fpu/libm-test-ulps: Update.
9480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9482 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
9484         * .gitignore: Delete /ports entry.
9486 2012-07-03  Andreas Jaeger  <aj@suse.de>
9488         * po/bg.po: Update from translation team.
9489         * po/cs.po: Likewise.
9490         * po/de.po: Likewise.
9491         * po/hr.po: Likewise.
9492         * po/nl.pl: Likewise.
9493         * po/pl.po: Likewise.
9494         * po/vi.po: Likewise.
9496 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
9498         * Makeconfig [!+link] (+link-before-libc): New variable.
9499         [!+link] (+link-after-libc): Likewise.
9500         [!+link] (+link-tests): Likewise.
9501         [!+link] (+link): Define in terms of $(+link-before-libc) and
9502         $(+link-after-libc).
9503         [!+link-static] (+link-static-before-libc): New variable.
9504         [!+link-static] (+link-static-after-libc): Likewise.
9505         [!+link-static] (+link-static-tests): Likewise.
9506         [!+link-static] (+link-static): Define in terms of
9507         $(+link-static-before-libc) and $(+link-static-after-libc).
9508         [build-shared] (link-libc-before-gnulib): New variable.
9509         [build-shared] (link-libc-tests): Likewise.
9510         [build-shared] (link-libc): Define in terms of
9511         $(link-libc-before-gnulib).
9512         [!build-shared] (link-libc-tests): New variable.
9513         (link-libc-static-tests): New variable.
9514         [!gnulib] (gnulib-arch): New variable.
9515         [!gnulib] (gnulib-tests): Likewise.
9516         [!gnulib] (static-gnulib-arch): Likewise.
9517         [!gnulib] (static-gnulib-tests): Likewise.
9518         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
9519         Define with "=" instead of ":=".
9520         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
9521         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
9522         * Rules (binaries-all-notests): New variable.
9523         (binaries-all-tests): Likewise.
9524         (binaries-static-notests): Likewise.
9525         (binaries-static-tests): Likewise.
9526         (binaries-all): Define using $(binaries-all-notests) and
9527         $(binaries-all-tests).
9528         (binaries-static): Define using $(binaries-static-notests) and
9529         $(binaries-static-tests).
9530         (binaries-shared-tests): New variable.
9531         (binaries-shared-notests): Likewise.
9532         (binaries-shared): Remove variable.
9533         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
9534         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
9535         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
9536         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
9537         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
9538         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
9539         * elf/Makefile (sln-modules): New variable.
9540         (extra-objs): Add $(sln-modules:=.o).
9541         (ldconfig-modules): Add static-stubs.
9542         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
9543         * elf/static-stubs.c: New file.
9545         [BZ #14283]
9546         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
9547         by 7 not 8 to examine high bit of fractional part.  Use volatile
9548         variables when splitting into final array of floats if
9549         __FLT_EVAL_METHOD__ != 0.
9550         * math/libm-test.inc (cos_test): Add another test.
9551         (sin_test): Likewise.
9552         * sysdeps/i386/fpu/libm-test-ulps: Update.
9554         [BZ #14273]
9555         * math/libm-test.inc (cosh_test): Add more tests.
9557         * version.h (RELEASE): Set to "development".
9558         (VERSION): Set to "2.16.90".
9560 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
9562         * NEWS: Update copyright. Remove last-updated date.
9563         Mention math library bug fixes and timezone data changes.
9564         * README: Mention GNU/Hurd, x32, and HPPA support status.
9566 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
9568         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
9570 2012-06-27  Andreas Jaeger  <aj@suse.de>
9572         * manual/contrib.texi (Contributors): Add Samuel Thibault.
9574 2012-06-25  Andreas Jaeger  <aj@suse.de>
9576         * sysdeps/s390/fpu/libm-test-ulps: Update.
9578 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
9579             Thomas Schwinge  <thomas@codesourcery.com>
9581         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
9582         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
9583         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
9584         fanotify_mark.
9586 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
9588         * sysdeps/mach/start.c: Remove file.
9589         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
9590         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
9591         * sysdeps/sh/init-first.c: Likewise.
9593         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
9594         registers for frame unwinding purposes, add CFI directives.
9595         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
9596         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
9597         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9598         Likewise.
9600         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
9601         __fortify_fail returning.
9602         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
9604         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
9605         sysdeps/sh/____longjmp_chk.S.
9606         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
9607         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
9608         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
9609         (gen-as-const-headers): Append sigaltstack-offsets.sym.
9611         * sysdeps/sh/abort-instr.h: New file.
9612         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
9613         process in case exit returns.
9615         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
9616         initialize the GOT register before use.
9618         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
9619         calculation of ARGC > 4.
9621         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
9622         meaningful names to some local labels.
9624 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9625             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9627         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
9628         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
9629         (__arch_compare_and_exchange_val_16_acq): Likewise.
9630         (__arch_compare_and_exchange_val_32_acq): Likewise.
9631         (atomic_exchange_and_add): Fix gUSA sequence.
9632         (atomic_add): Likewise.
9633         (atomic_add_negative): Likewise.
9634         (atomic_add_zero): Likewise.
9635         (atomic_bit_test_set): Likewise.
9637 2012-06-22  Andreas Schwab  <schwab@redhat.com>
9639         [BZ #13579]
9640         * include/link.h (struct link_map): Add l_free_initfini.
9641         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
9642         l_initfini.
9643         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
9644         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
9645         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
9646         set.
9648 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
9650         * configure.in: Use AC_LANG_SOURCE.
9651         * configure: Regenerate.
9653 2012-06-22  Roland McGrath  <roland@hack.frob.com>
9655         * configure.in (libc_cv_localstatedir): New substituted variable.
9656         * configure: Regenerated.
9657         * config.make.in (localstatedir): New variable, substituted from
9658         libc_cv_localstatedir.
9659         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
9660         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
9661         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
9662         * sysdeps/gnu/configure: Regenerated.
9664 2012-06-21  Jeff Law  <law@redhat.com>
9666         [BZ #14277]
9667         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
9668         free.  Simplify list management for _LIBC case.
9670 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
9672         [BZ #14273]
9673         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
9674         Clear sign bit of 64-bit integer value before comparing against
9675         overflow value.
9677         * sysdeps/mach/configure: Regenerated.
9679 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9681         [BZ #14278]
9682         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
9684 2012-06-21  Jeff Law  <law@redhat.com>
9686         [BZ #13882]
9687         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
9688         uint16_t for elements in the "seen" array to avoid char overflows.
9689         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9690         * elf/dl-open.c (dl_open_worker): Likewise.
9692 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
9694         * scripts/list-sources.sh: Scan PORTS for translations.
9695         * po/libc.pot: Regenerated.
9697 2012-06-21  Andreas Jaeger  <aj@suse.de>
9699         [BZ #12194]
9700         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
9701         warning.
9702         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
9703         * bits/byteswap-16.h (__bswap_16): Likewise.
9704         * bits/byteswap.h (__bswap_constant_16): Likewise.
9706 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9708         [BZ #14117]
9709         * sysdeps/i386/fpu_control.h: Removed.
9710         * sysdeps/x86_64/fpu_control.h: Moved to ...
9711         * sysdeps/x86/fpu_control.h: Here.
9713         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
9714         (_FPU_SETCW): Likewise.
9716 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
9718         [BZ #14117]
9719         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
9720         * sysdeps/x86/fpu/bits/mathinline.h: This.
9721         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
9723         [BZ #14050]
9724         [BZ #14117]
9725         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
9726         functions if __x86_64__ is defined.
9728 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
9730         * string/endian.h: Add !__ASSEMBLER__ condition for including
9731         conversion interfaces.
9733 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
9735         [BZ #14241]
9736         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
9737         of ABS(x) in calculating zero to negative powers other than odd
9738         integers.
9739         * math/libm-test.inc (pow_test): Add more tests.
9741 2012-06-15  Andreas Jaeger  <aj@suse.de>
9743         * manual/contrib.texi (Contributors): Update entry of Liubov
9744         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
9745         Machado Filho.
9747 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
9749         * string/string.h: Add __wur to GNU version of strerror_r.
9751 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9753         [BZ #14229]
9754         * string/Makefile (tests): Add tst-strtok_r.
9755         * string/tst-strtok_r.c: New file.
9756         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
9757         RAX_LP/RDX_LP on SAVE_PTR.
9759 2012-06-14  Roland McGrath  <roland@hack.frob.com>
9761         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
9763 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
9765         * libm_test.inc (csqrt_test): Allow more spurious underflow
9766         exceptions.
9767         (j0_test): Likewise.
9768         (j1_test): Likewise.
9769         (y0_test): Likewise.
9770         (y1_test): Likewise.
9772 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
9774         * po/Makefile (libc.pot): Use UTF-8 charset.
9776 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
9778         [BZ #14210]
9779         Suppress sign-conversion warning from FD_SET.
9780         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
9781         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
9782         not unsigned long int.
9783         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
9785 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
9787         [BZ #14050]
9788         [BZ #14117]
9789         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
9790         __extern_always_inline instead of __extern_inline.
9791         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
9792         (__signbit): Likewise.
9793         (__signbitl): Support C++ namespace.
9794         (lrintf): New inline function.
9795         (lrint): Likewise.
9796         (llrintf): Likewise.
9797         (llrint): Likewise.
9798         (fmaxf): Likewise.
9799         (fmax): Likewise.
9800         (fminf): Likewise.
9801         (fmin): Likewise.
9802         (rint): Likewise.
9803         (rintf): Likewise.
9804         (ceil): Likewise.
9805         (ceilf): Likewise.
9806         (floor): Likewise.
9807         (floorf): Likewise.
9808         (nearbyint): Likewise.
9809         (nearbyintf): Likewise.
9811 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
9813         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
9814         non-default versions.
9816 2012-06-11  Roland McGrath  <roland@hack.frob.com>
9818         [BZ #14218]
9819         * manual/argp.texi (Argp): Reword argp_parse description slightly.
9821 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
9823         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
9824         (FE_UPWARD, FE_DOWNWARD): Don't define.
9825         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
9826         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
9828         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
9829         reading it.
9830         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
9831         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
9833 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9835         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9836         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
9837         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
9838         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
9840 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
9842         [BZ #14117]
9843         * sysdeps/i386/fpu/bits/fenv.h: Removed.
9844         * sysdeps/i386/fpu/Implies: New file.
9845         * sysdeps/x86_64/fpu/Implies: Likewise.
9846         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
9847         * sysdeps/x86/fpu/bits/fenv.h: This.
9849         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
9850         __SSE_MATH__.
9852 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9854         [BZ #14134]
9855         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
9856         character 0xffff that matches the last element of the
9857         conversion table.
9859 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9861         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
9862         fmodl commit.
9864 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9866         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
9867         values higher than 25.6283.
9869 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9871         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
9872         subnormal exponent extraction and add some __builtin_expect.
9873         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
9874         Fix for subnormal mantissa calculation.
9876 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
9878         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
9879         cpu2 is -1 and errno is not ENOSYS.
9881 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
9883         [BZ #14117]
9884         * sysdeps/i386/i486/bits/string.h: Renamed to ...
9885         * sysdeps/x86/bits/string.h: This.
9886         * sysdeps/x86_64/bits/string.h: Removed.
9888         * sysdeps/i386/i486/bits/string.h: Define inline functions only
9889         if not compiling for x86-64, but compiling for >= i486.
9891         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
9892         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
9894         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
9895         New macro from Linux kernel 3.4.0.
9896         (FP_XSTATE_MAGIC2): Likewise.
9897         (FP_XSTATE_MAGIC2_SIZE): Likewise.
9898         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
9899         (struct _fpx_sw_bytes): New struct.
9900         (struct _xsave_hdr): Likewise.
9901         (struct _ymmh_state): Likewise.
9902         (struct _xstate): Likewise.
9904         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
9905         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
9906         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
9907         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
9908         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
9909         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
9911         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
9912         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
9913         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
9914         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
9915         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
9916         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
9918 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9920         [BZ #13743]
9921         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
9922         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
9923         (sysdep_headers): Include sys/platform/ppc.h.
9924         * sysdeps/powerpc/test-gettimebase.c: Test for
9925         __ppc_get_timebase() to catch future ISA opcode/insn changes.
9926         * manual/Makefile (appendices): Include platform.texi.
9927         * manual/contrib.texi (Contributors): Update @node pointers.
9928         * manual/maint.texi (Maintenance): Likewise.
9929         (Platform): New node.
9930         * manual/platform.texi: New file.  Document the new features.
9932 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9933             Jakub Jelinek  <jakub@redhat.com>
9935         [BZ #14188]
9936         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
9937         where __builtin_expect is unavailable.
9939 2012-06-03  David S. Miller  <davem@davemloft.net>
9941         * stdlib/longlong.h: Updated from GCC.
9943 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
9945         [BZ #14042]
9946         * sysdeps/powerpc/powerpc32/mcount.c: New file.
9947         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
9948         __mcount_internal.
9949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9950         (GLIBC_2.16): Likewise.
9952 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9954         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
9956 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
9959         (default-abi): New variable.
9960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
9961         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
9962         variable.
9963         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
9964         Likewise.
9965         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
9966         Likewise.
9967         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
9968         Likewise.
9970         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
9971         definition.  Document in comment.
9973 2012-06-01  David S. Miller  <davem@davemloft.net>
9975         * stdlib/longlong.h: Updated from GCC.
9977 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9979         [BZ #14117]
9980         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
9981         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
9982         sys/debugreg.h sys/io.h here.
9983         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
9984         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
9985         sys/io.h.
9986         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
9987         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
9988         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
9989         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
9990         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
9991         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
9993         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
9994         Define only if __x86_64__ is defined.
9996 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9998         [BZ #14048]
9999         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
10000         Use int64_t for variable i.
10001         * math/libm-test.inc (fmod_test): Add more tests.
10003         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
10004         z computation is not scheduled after fetestexcept.
10005         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
10006         Use math_force_eval instead of asm to ensure calculation scheduled
10007         before exception test.
10008         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
10009         Ensure a1 + u.d computation is not scheduled after fetestexcept.
10011 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
10013         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
10014         computation is not scheduled after fetestexcept.
10016 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10018         [BZ #14117]
10019         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
10020         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
10022 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10024         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
10025         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10027 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10029         [BZ #14117]
10030         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
10031         <bits/wordsize.h>.
10032         (__WCHAR_MIN): Support __WORDSIZE == 64.
10033         (__WCHAR_MAX): Likewise.
10035         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
10036         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
10038         [BZ #14183]
10039         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
10040         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
10042         [BZ #14117]
10043         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
10044         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
10046         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
10047         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
10049         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
10050         Defined to 1 if __x86_64__ isn't defined.
10051         (_STAT_VER_LINUX_OLD): New.
10052         (st_atime): Remove duplicate.
10053         (st_mtime): Likewise.
10054         (st_ctime): Likewise.
10056 2012-05-31  David S. Miller  <davem@davemloft.net>
10058         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
10059         entries.
10061 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
10063         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
10064         gen-libm-test.pl.
10066         [BZ #14132]
10067         * elf/dl-reloc.c: Include <_itoa.h>.
10068         (_dl_reloc_bad_type): Remove use of INTUSE.
10069         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
10070         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
10071         * stdio-common/psiginfo.c (psiginfo): Likewise.
10072         * stdio-common/psignal.c (psignal): Likewise.
10073         * string/strsignal.c (strsignal): Likewise.
10074         * include/signal.h (_sys_siglist): Declare hidden proto.
10075         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
10076         INTVARDEF with libc_hidden_data_def.
10077         * stdio-common/itoa-udigits.c: Likewise.
10078         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
10079         (_itoa_lower_digits_internal): Remove declaration.
10080         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
10081         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
10082         (_sys_sigabbrev_internal): Remove aliases.
10083         (_sys_siglist): Define hidden alias.
10085 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
10087         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10088         bits/sysctl.h.
10090 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10092         [BZ #14117]
10093         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
10094         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
10096         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
10097         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
10098         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
10099         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
10100         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
10101         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
10103         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
10104         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
10105         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
10107         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
10108         with __addr.
10109         (insw): Likewise.
10110         (insl): Likewise.
10111         (outsb): Likewise.
10112         (outsw): Likewise.
10113         (outsl): Likewise.
10115         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
10116         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
10117         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
10119         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
10120         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
10121         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
10122         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
10123         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
10124         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
10126         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
10127         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
10129         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
10130         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
10132         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
10133         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
10134         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
10136         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
10137         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
10138         to ...
10139         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
10141         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
10142         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
10143         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
10145         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
10146         for x86-64.
10147         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
10149 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
10151         * math/math.h (M_El): Use two more decimal places.
10152         (M_LOG2El): Likewise.
10153         (M_LOG10El): Likewise.
10154         (M_LN2l): Likewise.
10155         (M_LN10l): Likewise.
10156         (M_PIl): Likewise.
10157         (M_PI_2l): Likewise.
10158         (M_PI_4l): Likewise.
10159         (M_1_PIl): Likewise.
10160         (M_2_PIl): Likewise.
10161         (M_2_SQRTPIl): Likewise.
10162         (M_SQRT2l): Likewise.
10163         (M_SQRT1_2l): Likewise.
10165 2012-05-31  David S. Miller  <davem@davemloft.net>
10167         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
10168         values between float registers.
10169         * sysdeps/sparc/sparc64/memset.S: Likewise.
10170         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10172 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
10174         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
10175         -D_FORTIFY_SOURCE=1.
10176         (CPPFLAGS-tst-longjmp_chk.c): Define.
10177         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
10178         (CPPFLAGS-tst-longjmp_chk2.c): Define.
10179         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
10180         CFLAGS-tst-wchar-h.c.
10182 2012-05-31  Marek Polacek  <polacek@redhat.com>
10184         [BZ #14132]
10185         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
10186         __endmntent_internal): Remove declaration.
10187         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
10188         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
10189         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
10191 2012-05-30  David S. Miller  <davem@davemloft.net>
10193         * sysdeps/sparc/sparc32/soft-fp/q_util.c
10194         (___Q_simulate_exceptions): Use real FP ops rather than writing
10195         into the %fsr.
10196         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
10197         Likewise.
10199 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10201         [BZ #14117]
10202         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
10203         * sysdeps/x86/bits/xtitypes.h: This.
10205         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
10206         * sysdeps/x86/bits/wordsize.h: This.
10208         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
10209         * sysdeps/x86/bits/huge_vall.h: This.
10211         * sysdeps/i386/bits/select.h: Removed.
10212         * sysdeps/x86_64/bits/select.h: Renamed to ...
10213         * sysdeps/x86/bits/select.h: This.
10215         * sysdeps/i386/bits/setjmp.h: Removed.
10216         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
10217         * sysdeps/x86/bits/setjmp.h: This.
10219         * sysdeps/i386/bits/mathdef.h: Removed.
10220         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
10221         * sysdeps/x86/bits/mathdef.h: This.
10223 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10225         [BZ #14132]
10226         * include/sys/socket.h (__connect_internal)
10227         (__libc_sa_len_internal): Remove declaration.
10228         (__connect, __libc_sa_len): Declare hidden_proto.
10229         (SA_LEN): Remove use of INTUSE.
10230         * socket/connect.c: Add libc_hidden_def.
10231         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
10232         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
10233         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
10234         alias.
10235         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10236         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10237         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
10238         of adding _internal alias.
10240 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10242         [BZ #14117]
10243         * sysdeps/i386/bits/link.h: Removed.
10244         * sysdeps/i386/bits/linkmap.h: Likewise.
10245         * sysdeps/x86_64/bits/link.h: Renamed to ...
10246         * sysdeps/x86/bits/link.h: This.
10247         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
10248         * sysdeps/x86/bits/linkmap.h: This.
10250         * sysdeps/i386/bits/endian.h: Removed.
10251         * sysdeps/x86_64/bits/endian.h: Renamed to ...
10252         * sysdeps/x86/bits/endian.h: This.
10254         * sysdeps/i386/bits/byteswap.h: Removed.
10255         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10256         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
10257         * sysdeps/x86/bits/byteswap.h: This.
10258         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
10259         * sysdeps/x86/bits/byteswap-16.h: This.
10260         * sysdeps/i386/Implies: Add x86.
10261         * sysdeps/x86_64/Implies: Likewise.
10263 2012-05-30  David S. Miller  <davem@davemloft.net>
10265         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
10266         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
10267         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
10268         (FP_TRAPPING_EXCEPTIONS): Define.
10269         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
10270         (FP_TRAPPING_EXCEPTIONS): Define.
10271         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
10272         subnormals only when inexact has been signalled or underflow
10273         exceptions are enabled.
10274         (_FP_PACK_CANONICAL): Likewise.
10276 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10278         [BZ #14183]
10279         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
10280         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
10282 2012-05-30  Richard Henderson  <rth@twiddle.net>
10284         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
10285         with #ifndef NOT_IN_libc.
10287         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
10288         marked to avoid plt entry.
10290 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10292         [BZ #14112]
10293         * Makeconfig (default-abi): New macro.
10294         (abi-includes): Likewise.
10295         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
10296         $(abi-$(default-abi)-lib-soname) for soname if defined.
10297         ($(common-objpfx)gnu/lib-names.stmp): Generate from
10298         abi-variants.
10299         * Makefile (installed-stubs): Likewise.
10300         * include/stubs-biarch.h: Removed.
10301         * scripts/lib-names.awk: Only handle one library at a time.
10302         * scripts/soversions.awk: Remove WORDSIZE support.
10303         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
10304         entries.
10305         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
10306         Removed.
10307         (syscall-list-default-condition): Likewise.
10308         (syscall-list-default-condition): Likewise.
10309         (syscall-list-includes): Likewise.
10310         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
10311         syscall-list-* with abi-*.  Handle undefined abi-variants.
10312         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
10313         * sysdeps/unix/sysv/linux/i386/Implies: New file.
10314         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
10315         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
10316         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
10317         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
10318         Removed.
10319         (syscall-list-32-options): Likewise.
10320         (syscall-list-32-condition): Likewise.
10321         (syscall-list-64-options): Likewise.
10322         (syscall-list-64-condition): Likewise.
10323         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
10324         macro.
10325         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
10326         Renamed to ...
10327         (abi-*): This.
10328         (abi-64-ld-soname): New macro.
10329         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
10330         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
10331         Renamed to ...
10332         (abi-*): This.
10333         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
10334         * sysdeps/x86_64/x32/shlib-versions: Likewise.
10336 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
10338         * sysdeps/unix/sysv/linux/kernel-features.h
10339         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
10340         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
10341         include <kernel-features.h>.
10342         [!__NR_ftruncate64]: Remove conditional code.
10343         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10344         [__NR_ftruncate64]: Make code unconditional.
10345         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10346         * sysdeps/unix/sysv/linux/truncate64.c: Do not
10347         include <kernel-features.h>.
10348         [!__NR_ftruncate64]: Remove conditional code.
10349         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10350         [__NR_ftruncate64]: Make code unconditional.
10351         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
10353         include <kernel-features.h>.
10354         [!__NR_ftruncate64]: Remove conditional code.
10355         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10356         [__NR_ftruncate64]: Make code unconditional.
10357         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
10359         include <kernel-features.h>.
10360         [!__NR_ftruncate64]: Remove conditional code.
10361         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10362         [__NR_ftruncate64]: Make code unconditional.
10363         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10365         * configure.in (libc_cv_fpie): Weaken to a compile test using
10366         LIBC_TRY_CC_OPTION.
10367         * configure: Regenerated.
10369 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
10372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
10373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
10374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10375         Refreshed.
10376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
10377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
10378         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
10379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
10380         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
10381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10382         Refreshed.
10384 2012-05-27  David S. Miller  <davem@davemloft.net>
10386         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
10387         (___Q_zero): New.
10388         (__Q_simulate_exceptions): Return void.  Change to simulate
10389         exceptions by writing into the %fsr.
10390         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
10391         (__Qp_handle_exceptions): Likewise.
10392         (numbers): Delete.
10393         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
10394         __Qp_handle_exceptions.
10395         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
10396         __Qp_handle_exceptions.
10397         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
10398         as unused and give dummy FP_RND_NEAREST initializer.
10399         (FP_INHIBIT_RESULTS): Define.
10400         (___Q_simulate_exceptions): Update declaration.
10401         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
10402         formatting.
10403         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
10404         as unused and give dummy FP_RND_NEAREST initializer.
10405         (__Qp_handle_exceptions): Update declaration.
10406         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
10407         formatting.
10409 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
10411         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
10412         the temporary FPU control word.
10413         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10414         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
10415         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
10416         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
10417         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
10418         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
10419         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
10420         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
10421         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
10422         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
10423         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10425 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10427         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
10428         fields.
10430 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
10432         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
10433         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
10434         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
10435         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
10436         Likewise.
10437         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
10438         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
10439         Likewise.
10441 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
10443         * po/h.po: Update from translation team.
10445 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
10447         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
10449         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
10450         handling of denormals.
10451         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
10452         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
10453         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
10454         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
10455         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10456         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
10457         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
10458         Likewise.
10460 2012-05-26  Marek Polacek  <polacek@redhat.com>
10462         [BZ #14152]
10463         * math/libm-test.inc (fma_test): Don't always expect underflow
10464         exception.
10466 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10468         [BZ #12416]
10469         * elf/tst-execstack.c: Include stackinfo.h.
10470         (do_test): Adjust test case to ensure that pthread_getattr_np
10471         behaviour remains the same after marking stack executable.
10473 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10475         * sysdeps/unix/sysv/linux/kernel-features.h
10476         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
10477         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
10478         kernel-features.h.
10479         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10480         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10481         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
10482         kernel-features.h.
10483         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10484         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10486 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10488         * configure.in: Define the default includes to being none.
10489         * configure: Regenerated.
10491 2012-05-25  Roland McGrath  <roland@hack.frob.com>
10493         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
10494         * sysdeps/x86_64/setjmp.S: Likewise.
10495         * sysdeps/i386/bsd-setjmp.S: Likewise.
10496         * sysdeps/i386/bsd-_setjmp.S: Likewise.
10497         * sysdeps/i386/setjmp.S: Likewise.
10498         * sysdeps/i386/__longjmp.S: Likewise.
10499         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
10500         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
10502         * include/stap-probe.h: New file.
10503         * configure.in: Handle --enable-systemtap.
10504         * configure: Regenerated.
10505         * config.h.in (USE_STAP_PROBE): New #undef.
10506         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
10507         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
10508         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
10510 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10512         [BZ #13717]
10513         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
10514         to 2.4.0 where earlier.
10515         * sysdeps/unix/sysv/linux/configure: Regenerated.
10516         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
10525         [__ASSUME_32BITUIDS]: Make code unconditional.
10526         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
10527         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
10528         <kernel-features.h>.
10529         [__ASSUME_32BITUIDS]: Make code unconditional.
10530         [!__ASSUME_32BITUIDS]: Remove conditional code.
10531         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
10532         <kernel-features.h>.
10533         [__ASSUME_32BITUIDS]: Make code unconditional.
10534         [!__ASSUME_32BITUIDS]: Remove conditional code.
10535         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
10536         <kernel-features.h>.
10537         [__ASSUME_32BITUIDS]: Make code unconditional.
10538         [!__ASSUME_32BITUIDS]: Remove conditional code.
10539         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
10540         <kernel-features.h>.
10541         [__ASSUME_32BITUIDS]: Make code unconditional.
10542         [!__ASSUME_32BITUIDS]: Remove conditional code.
10543         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
10544         <kernel-features.h>.
10545         [__ASSUME_32BITUIDS]: Make code unconditional.
10546         [!__ASSUME_32BITUIDS]: Remove conditional code.
10547         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
10548         <kernel-features.h>.
10549         [__ASSUME_32BITUIDS]: Make code unconditional.
10550         [!__ASSUME_32BITUIDS]: Remove conditional code.
10551         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
10552         <kernel-features.h>.
10553         [__ASSUME_32BITUIDS]: Make code unconditional.
10554         [!__ASSUME_32BITUIDS]: Remove conditional code.
10555         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
10556         <kernel-features.h>.
10557         [__ASSUME_32BITUIDS]: Make code unconditional.
10558         [!__ASSUME_32BITUIDS]: Remove conditional code.
10559         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
10560         <kernel-features.h>.
10561         [__ASSUME_32BITUIDS]: Make code unconditional.
10562         [!__ASSUME_32BITUIDS]: Remove conditional code.
10563         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
10564         <kernel-features.h>.
10565         [__ASSUME_32BITUIDS]: Make code unconditional.
10566         [!__ASSUME_32BITUIDS]: Remove conditional code.
10567         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
10568         <kernel-features.h>.
10569         [__NR_setresgid] (__setresgid): Do not declare.
10570         [__ASSUME_32BITUIDS]: Make code unconditional.
10571         [!__ASSUME_32BITUIDS]: Remove conditional code.
10572         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
10573         <kernel-features.h>.
10574         [__NR_setresuid] (__setresuid): Do not declare.
10575         [__ASSUME_32BITUIDS]: Make code unconditional.
10576         [!__ASSUME_32BITUIDS]: Remove conditional code.
10577         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
10578         <kernel-features.h>.
10579         [__ASSUME_32BITUIDS]: Make code unconditional.
10580         [!__ASSUME_32BITUIDS]: Remove conditional code.
10581         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
10582         <kernel-features.h>.
10583         [__ASSUME_32BITUIDS]: Make code unconditional.
10584         [!__ASSUME_32BITUIDS]: Remove conditional code.
10585         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
10586         <kernel-features.h>.
10587         [__ASSUME_32BITUIDS]: Make code unconditional.
10588         [!__ASSUME_32BITUIDS]: Remove conditional code.
10589         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
10590         <kernel-features.h>.
10591         [__ASSUME_32BITUIDS]: Make code unconditional.
10592         [!__ASSUME_32BITUIDS]: Remove conditional code.
10593         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
10594         <kernel-features.h>.
10595         [__ASSUME_32BITUIDS]: Make code unconditional.
10596         [!__ASSUME_32BITUIDS]: Remove conditional code.
10597         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
10598         <kernel-features.h>.
10599         [__ASSUME_32BITUIDS]: Make code unconditional.
10600         [!__ASSUME_32BITUIDS]: Remove conditional code.
10601         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
10602         <kernel-features.h>.
10603         [__ASSUME_32BITUIDS]: Make code unconditional.
10604         [!__ASSUME_32BITUIDS]: Remove conditional code.
10605         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
10606         <kernel-features.h>.
10607         [__ASSUME_32BITUIDS]: Make code unconditional.
10608         [!__ASSUME_32BITUIDS]: Remove conditional code.
10609         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
10610         <kernel-features.h>.
10611         [__ASSUME_32BITUIDS]: Make code unconditional.
10612         [!__ASSUME_32BITUIDS]: Remove conditional code.
10613         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
10614         <kernel-features.h>.
10615         [__ASSUME_32BITUIDS]: Make code unconditional.
10616         [!__ASSUME_32BITUIDS]: Remove conditional code.
10617         * sysdeps/unix/sysv/linux/kernel-features.h
10618         (__ASSUME_SETRESUID_SYSCALL): Remove.
10619         (__ASSUME_SETRESGID_SYSCALL): Likewise.
10620         (__ASSUME_32BITUIDS): Likewise.
10621         (__ASSUME_LDT_WORKS): Likewise.
10622         (__ASSUME_O_DIRECTORY): Likewise.
10623         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
10624         architecture but not kernel version.
10625         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
10626         (__ASSUME_MMAP2_SYSCALL): Likewise.
10627         (__ASSUME_STAT64_SYSCALL): Likewise.
10628         (__ASSUME_IPC64): Likewise.
10629         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
10630         <kernel-features.h>.
10631         [__ASSUME_32BITUIDS]: Make code unconditional.
10632         [!__ASSUME_32BITUIDS]: Remove conditional code.
10633         * sysdeps/unix/sysv/linux/opendir.c: Do not include
10634         <kernel-features.h>.
10635         [__ASSUME_O_DIRECTORY]: Make code unconditional.
10636         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
10637         132096]: Remove conditional code.
10638         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
10639         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
10640         <kernel-features.h>.
10641         [__ASSUME_32BITUIDS]: Make code unconditional.
10642         [!__ASSUME_32BITUIDS]: Remove conditional code.
10643         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
10644         <kernel-features.h>.
10645         [__ASSUME_32BITUIDS]: Make code unconditional.
10646         [!__ASSUME_32BITUIDS]: Remove conditional code.
10647         * sysdeps/unix/sysv/linux/setegid.c: Do not include
10648         <kernel-features.h>.
10649         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
10650         unconditional.
10651         (__setresgid): Do not declare.
10652         [__ASSUME_32BITUIDS]: Make code unconditional.
10653         [!__ASSUME_32BITUIDS]: Remove conditional code.
10654         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
10655         <kernel-features.h>.
10656         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
10657         unconditional.
10658         (__setresuid): Do not declare.
10659         [__ASSUME_32BITUIDS]: Make code unconditional.
10660         [!__ASSUME_32BITUIDS]: Remove conditional code.
10661         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
10662         <kernel-features.h>.
10663         [__ASSUME_32BITUIDS]: Make code unconditional.
10664         [!__ASSUME_32BITUIDS]: Remove conditional code.
10665         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
10666         <kernel-features.h>.
10667         [__ASSUME_32BITUIDS]: Make code unconditional.
10668         [!__ASSUME_32BITUIDS]: Remove conditional code.
10670 2012-05-25  Richard Henderson  <rth@twiddle.net>
10672         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
10673         dl_hwcap to ifunc resolver.
10674         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
10675         elf_ifunc_invoke.
10676         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
10677         dl_hwcap to ifunc resolver.
10678         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
10680 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10682         [BZ #14153]
10683         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
10684         for |x| <= 2**-26, not 2**-57.
10685         * math/libm-test.inc (acos_test): Do not allow spurious underflow
10686         exception.
10688 2012-05-24  Jeff Law  <law@redhat.com>
10690         * stdio-common/Makefile (tests): Add bug25.
10691         * stdio-common/bug25.c: New test.
10693 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10695         [BZ #13576]
10696         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
10697         multiple of MALLOC_ALIGNMENT in size.
10698         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
10700 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10702         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
10703         Require >= 256.
10704         (FILENAME_MAX): Use macro-int-constant.
10705         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
10706         (_IOFBF): Use macro-int-constant.
10707         (_IOLBF): Likewise.
10708         (_IONBF): Likewise.
10709         (SEEK_CUR): Likewise.
10710         (SEEK_END): Likewise.
10711         (SEEK_SET): Likewise.
10712         (TMP_MAX): Likewise.
10713         (EOF): Use macro-int-constant.  Require < 0.
10714         (NULL): Use macro-constant.  Require == 0.
10715         (stdin): Require type to be FILE *.
10716         (stdout): Likewise.
10717         (stderr): Likewise.
10718         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
10719         macro-int-constant.
10720         (EXIT_SUCCESS): Likewise.
10721         (NULL): Use macro-constant.  Require == 0.
10722         (RAND_MAX): Use macro-int-constant.
10723         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
10724         [C99-based standards] (strtof): Require function.
10725         [C99-based standards] (strtold): Likewise.
10726         [C99-based standards] (strtoll): Likewise.
10727         [C99-based standards] (strtoull): Likewise.
10728         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
10729         [ISO || ISO99 || ISO11] (limits.h): Likewise.
10730         [ISO || ISO99 || ISO11] (math.h): Likewise.
10731         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
10732         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
10733         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10735 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
10737         [BZ #14132]
10738         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
10739         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
10740         * intl/dgettext.c (DCGETTEXT): Likewise.
10741         * intl/gettext.c (DCGETTEXT): Likewise.
10742         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
10743         * posix/regex_internal.h (gettext): Likewise.
10744         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
10745         Remove declaration.
10746         * include/argz.h (__argz_count_internal)
10747         (__argz_stringify_internal): Remove declaration.
10748         (__argz_count, __argz_stringify): Declare hidden proto.
10749         * intl/dcgettext.c: Remove use of INTDEF.
10750         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
10751         * string/argz-stringify.c: Likewise.
10752         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
10753         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
10754         Declare hidden proto.
10755         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
10756         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
10757         Declare hidden proto.
10758         * include/stdio.h (__asprintf_internal): Don't declare.
10759         (__asprintf): Don't define as macro.  Declare hidden proto.
10760         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
10761         (__fsetlocking): Declare hidden proto.
10762         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
10763         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
10764         hidden proto.
10765         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
10766         (_IO_setlinebuf): Remove use of INTUSE.
10767         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
10768         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
10769         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
10770         Remove declaration.
10771         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
10772         (_IO_do_flush): Remove use of INTUSE.
10773         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
10774         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
10775         (_IO_adjust_column, _IO_least_wmarker)
10776         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
10777         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
10778         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
10779         (_IO_default_doallocate, _IO_wdefault_doallocate)
10780         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
10781         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
10782         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
10783         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
10784         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
10785         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
10786         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
10787         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
10788         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
10789         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
10790         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
10791         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
10792         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
10793         proto.
10794         (_IO_flush_all_internal, _IO_adjust_column_internal)
10795         (_IO_default_uflow_internal, _IO_default_finish_internal)
10796         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
10797         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
10798         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
10799         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
10800         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
10801         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
10802         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
10803         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
10804         (_IO_file_close_internal, _IO_file_close_it_internal)
10805         (_IO_file_underflow_internal, _IO_file_overflow_internal)
10806         (_IO_file_init_internal, _IO_file_attach_internal)
10807         (_IO_file_fopen_internal, _IO_file_read_internal)
10808         (_IO_file_sync_internal, _IO_file_seek_internal)
10809         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
10810         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
10811         (_IO_str_underflow_internal, _IO_str_overflow_internal)
10812         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
10813         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
10814         (_IO_list_all_internal, _IO_link_in_internal)
10815         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
10816         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
10817         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
10818         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
10819         (_IO_do_write_internal, _IO_padn_internal)
10820         (_IO_getline_info_internal, _IO_getline_internal)
10821         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
10822         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
10823         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
10824         (_IO_vfscanf_internal, _IO_vfprintf_internal)
10825         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
10826         (_IO_init_internal, _IO_un_link_internal): Don't declare.
10827         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
10828         with libc_hidden_ver, remove use of INTUSE.
10829         * libio/genops.c: Likewise.
10830         * libio/freopen.c: Likewise.
10831         * libio/freopen64.c: Likewise.
10832         * libio/iofclose.c: Likewise.
10833         * libio/iofdopen.c: Likewise.
10834         * libio/iofflush.c: Likewise.
10835         * libio/iofflush_u.c: Likewise.
10836         * libio/iofgets.c: Likewise.
10837         * libio/iofgets_u.c: Likewise.
10838         * libio/iofopen.c: Likewise.
10839         * libio/iofopncook.c: Likewise.
10840         * libio/iofread.c: Likewise.
10841         * libio/iofread_u.c: Likewise.
10842         * libio/ioftell.c: Likewise.
10843         * libio/iofwrite.c: Likewise.
10844         * libio/iogetline.c: Likewise.
10845         * libio/iogets.c: Likewise.
10846         * libio/iogetwline.c: Likewise.
10847         * libio/iopadn.c: Likewise.
10848         * libio/iopopen.c: Likewise.
10849         * libio/ioseekoff.c: Likewise.
10850         * libio/ioseekpos.c: Likewise.
10851         * libio/iosetbuffer.c: Likewise.
10852         * libio/iosetvbuf.c: Likewise.
10853         * libio/ioungetc.c: Likewise.
10854         * libio/ioungetwc.c: Likewise.
10855         * libio/iovdprintf.c: Likewise.
10856         * libio/iovsprintf.c: Likewise.
10857         * libio/iovsscanf.c: Likewise.
10858         * libio/memstream.c: Likewise.
10859         * libio/obprintf.c: Likewise.
10860         * libio/oldfileops.c: Likewise.
10861         * libio/oldiofclose.c: Likewise.
10862         * libio/oldiofdopen.c: Likewise.
10863         * libio/oldiofopen.c: Likewise.
10864         * libio/oldiopopen.c: Likewise.
10865         * libio/oldstdfiles.c: Likewise.
10866         * libio/putc.c: Likewise.
10867         * libio/setbuf.c: Likewise.
10868         * libio/setlinebuf.c: Likewise.
10869         * libio/stdfiles.c: Likewise.
10870         * libio/strops.c: Likewise.
10871         * libio/vasprintf.c: Likewise.
10872         * libio/vscanf.c: Likewise.
10873         * libio/vsnprintf.c: Likewise.
10874         * libio/vswprintf.c: Likewise.
10875         * libio/wfiledoalloc.c: Likewise.
10876         * libio/wfileops.c: Likewise.
10877         * libio/wgenops.c: Likewise.
10878         * libio/wmemstream.c: Likewise.
10879         * libio/wstrops.c: Likewise.
10880         * libio/__fpurge.c: Likewise.
10881         * libio/__fsetlocking.c: Likewise.
10882         * assert/assert.c: Likewise.
10883         * debug/fgets_chk.c: Likewise.
10884         * debug/fgets_u_chk.c: Likewise.
10885         * debug/fread_chk.c: Likewise.
10886         * debug/fread_u_chk.c: Likewise.
10887         * debug/gets_chk.c: Likewise.
10888         * debug/obprintf_chk.c: Likewise.
10889         * debug/vasprintf_chk.c: Likewise.
10890         * debug/vdprintf_chk.c: Likewise.
10891         * debug/vsnprintf_chk.c: Likewise.
10892         * debug/vsprintf_chk.c: Likewise.
10893         * malloc/mtrace.c: Likewise.
10894         * misc/error.c: Likewise.
10895         * misc/syslog.c: Likewise.
10896         * stdio-common/asprintf.c: Likewise.
10897         * stdio-common/fxprintf.c: Likewise.
10898         * stdio-common/getw.c: Likewise.
10899         * stdio-common/isoc99_fscanf.c: Likewise.
10900         * stdio-common/isoc99_scanf.c: Likewise.
10901         * stdio-common/isoc99_vfscanf.c: Likewise.
10902         * stdio-common/isoc99_vscanf.c: Likewise.
10903         * stdio-common/isoc99_vsscanf.c: Likewise.
10904         * stdio-common/printf-prs.c: Likewise.
10905         * stdio-common/printf_fp.c: Likewise.
10906         * stdio-common/printf_fphex.c: Likewise.
10907         * stdio-common/printf_size.c: Likewise.
10908         * stdio-common/putw.c: Likewise.
10909         * stdio-common/scanf.c: Likewise.
10910         * stdio-common/sprintf.c: Likewise.
10911         * stdio-common/tmpfile.c: Likewise.
10912         * stdio-common/vfprintf.c: Likewise.
10913         * stdio-common/vfscanf.c: Likewise.
10914         * stdlib/strfmon_l.c: Likewise.
10915         * sunrpc/openchild.c: Likewise.
10916         * sunrpc/xdr_stdio.c: Likewise.
10917         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
10918         * sysdeps/mach/hurd/tmpfile.c: Likewise.
10920 2012-05-24  Roland McGrath  <roland@hack.frob.com>
10922         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
10924         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
10925         in the third column, to generate for the shared library an IFUNC
10926         that uses _dl_vdso_vsym.
10927         * Makerules (COMPILE.c, compile-stdin.c): New variables.
10928         * Makeconfig (object-suffixes-noshared): New variable.
10930         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
10931         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
10932         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
10933         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
10935         [BZ #14132]
10936         * include/sys/time.h (__gettimeofday): Remove macro.
10937         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
10938         * time/gettimeofday.c (__gettimeofday): Remove #undef.
10939         Remove INTDEF.
10940         (__gettimeofday): Add libc_hidden_def.
10941         (gettimeofday): Add libc_hidden_weak.
10942         * sysdeps/mach/gettimeofday.c: Likewise.
10943         * sysdeps/posix/gettimeofday.c: Likewise.
10944         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
10945         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
10946         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
10947         (__gettimeofday_internal): Remove strong_alias.
10948         (__gettimeofday): Add libc_hidden_def.
10949         (gettimeofday): Add libc_hidden_weak.
10950         * sysdeps/unix/syscalls.list (gettimeofday):
10951         Remove __gettimeofday_internal alias.
10953 2012-05-24  Daniel Jacobowitz  <drow@false.org>
10954             H.J. Lu  <hongjiu.lu@intel.com>
10956         [BZ #12495]
10957         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
10958         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
10959         (largebin_index_32_big): New.
10960         (largebin_index): Use it for 16-byte alignment.
10961         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
10962         correction with front_misalign.
10964 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10966         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
10967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
10968         Likewise.
10969         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
10970         Likewise.
10971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
10972         Likewise.
10973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
10974         Likewise.
10975         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
10976         Likewise.
10977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
10978         Likewise.
10979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
10980         Likewise.
10981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
10982         Likewise.
10983         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
10984         Likewise.
10985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
10986         Likewise.
10987         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
10988         Likewise.
10989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
10990         Likewise.
10992         * scripts/data/c++-types-x32-linux-gnu.data: New file.
10993         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
10995 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10997         [BZ #10846]
10998         [BZ #14036]
10999         * math/libm-test.inc (exp_test): Add test from bug 14036.
11000         (pow_test): Add test from bug 10846.
11002         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
11003         and other flags.
11004         (special_function): Do not include flags in test name.
11005         (parse_args): Likewise.
11006         * sysdeps/i386/fpu/libm-test-ulps: Update.
11007         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11008         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
11009         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
11010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11012         * math/gen-libm-test.pl (%beautify): Add entries for underflow
11013         exceptions.
11014         * math/libm-test.inc ("Philosophy"): Update comment about
11015         exception testing.
11016         (UNDERFLOW_EXCEPTION): New macro.
11017         (UNDERFLOW_EXCEPTION_OK): Likewise.
11018         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
11019         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
11020         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
11021         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
11022         (INVALID_EXCEPTION_OK): Update value.
11023         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11024         (OVERFLOW_EXCEPTION_OK): Likewise.
11025         (IGNORE_ZERO_INF_SIGN): Likewise.
11026         (test_exceptions): Handle underflow exceptions.
11027         (acos_test): Update for underflow exception expectations.
11028         (cexp_test): Likewise.
11029         (clog_test): Likewise.
11030         (clog10_test): Likewise.
11031         (csqrt_test): Likewise.
11032         (ctan_test): Likewise.
11033         (ctanh_test): Likewise.
11034         (exp_test): Likewise.
11035         (exp10_test): Likewise.
11036         (exp2_test): Likewise.
11037         (expm1_test): Likewise.
11038         (fma_test): Likewise.
11039         (j0_test): Likewise.
11040         (jn_test): Likewise.
11041         (nexttoward_test): Likewise.
11042         (pow_test): Likewise.
11043         (scalbn_test): Likewise.
11044         (scalbln_test): Likewise.
11045         (tan_test): Likewise.
11046         (y1_test): Likewise.
11047         * sysdeps/i386/fpu/libm-test-ulps: Update.
11048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11050 2012-05-23  David S. Miller  <davem@davemloft.net>
11052         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
11053         (__libc_sigaction): Remove unused local variables.
11055 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11057         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
11059 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11061         mktime: avoid signed integer overflow
11062         * time/mktime.c (__mktime_internal): Do not mishandle the case
11063         where diff == INT_MIN.
11065         mktime: simplify computation of average
11066         * time/mktime.c (ranged_convert): Use new time_t_avg function
11067         instead of rolling our own (probably-slower) code.
11069         mktime: do not assume signed right shift propagates sign bit
11070         * time/mktime.c (isdst_differ): New static function.
11071         (__mktime_internal): No need to normalize tm_isdst now.
11072         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
11073         tm_isdst values.
11075         mktime: merge another wrapv change from gnulib
11076         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
11077         from some compilers.
11079         mktime: remove incorrect attempt at unusual arithmetics
11080         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
11081         The code didn't really work on such machines anyway.
11082         (TYPE_MINIMUM): Assume two's complement.
11083         (twos_complement_arithmetic): Verify that long_int and time_t
11084         are two's complement (or unsigned, in the latter case).
11086         mktime: check signed shifts on long_int and time_t, too
11087         * time/mktime.c (SHR): Check that shifts work as desired
11088         on the types long_int and time_t too, as SHR is used on
11089         such types.
11091         mktime: do not assume 'long' is wide enough
11092         * time/mktime.c (verify): Move decl up.
11093         (long_int): New type.
11094         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
11095         to remove assumption in the code that 'long' is wide enough to
11096         store year values.  This assumption is not true on x32 and on
11097         some non-glibc platforms.
11099         mktime: merge wrapv change from gnulib
11100         * time/mktime.c (WRAPV): New macro.
11101         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
11102         (guess_time_tm, __mktime_internal): Do not assume that signed
11103         integer overflow wraps around; modern compilers generate code
11104         where this assumption is no longer valid.
11106 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11108         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11109         Replace "jmp L(pseudo_end)" with "ret".
11110         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11111         Likewise.
11113 2012-05-23  Andreas Jaeger  <aj@suse.de>
11115         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
11116         * sysdeps/unix/sysv/linux/poll.c: Remove file.
11118 2012-05-23  Andreas Jaeger  <aj@suse.de>
11119             Maximilian Attems  <max@stro.at>
11121         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
11122         New macros.
11124 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11126         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
11127         code so that pseudo_end is just ret and the stack pointer is
11128         correct also for static library in error case.
11130 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
11132         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
11133         move to syscalls.list.
11134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
11135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
11136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
11137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
11139         * manual/install.texi (Running make install): Do not mention Linux
11140         kernel version for which pt_chown is not needed.
11141         (Linux): Do not mention problems with nscd with 2.0 kernels.
11142         * INSTALL: Regenerated.
11144 2012-05-23  Andreas Jaeger  <aj@suse.de>
11146         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
11147         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
11148         macro.
11149         * sysdeps/unix/sysv/linux/s390/bits/mman.h
11150         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11151         * sysdeps/unix/sysv/linux/sh/bits/mman.h
11152         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11153         * sysdeps/unix/sysv/linux/i386/bits/mman.h
11154         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11155         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
11156         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11157         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
11158         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11159         * sysdeps/unix/sysv/linux/bits/in.h
11160         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
11162 2012-05-22  Roland McGrath  <roland@hack.frob.com>
11164         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
11165         (PREPARE_VERSION): Just use assert instead, it will be elided
11166         under [NDEBUG] anyway.
11168 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11170         * sysdeps/unix/sysv/linux/Makefile: Include
11171         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
11172         (sysdep_routines): Remove sysctl.
11173         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
11174         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
11175         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
11176         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
11177         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
11179 2012-05-22  Andreas Jaeger  <aj@suse.de>
11181         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
11182         that pseudo_end is just ret and the stack pointer is correct also
11183         for static library in error case.
11185 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
11187         [BZ #14122]
11188         * nss/nsswitch.c (defconfig_entries): New variable.
11189         (__nss_database_lookup): Don't leak defconfig entries.
11190         (nss_parse_service_list): Don't leak on error paths.
11191         (free_database_entries): New function.
11192         (free_defconfig): New function.
11193         (free_mem): Move common code to free_database_entries.
11195 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11197         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
11198         Add arch_prctl.
11199         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
11201         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
11202         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
11203         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
11204         New macro.
11205         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
11206         (INTERNAL_SYSCALL_TYPES): Likewise.
11207         (LOAD_ARGS_TYPES_[1-6]): Likewise.
11208         (LOAD_REGS_TYPES_[1-6]): Likewise.
11209         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
11210         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
11212 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11214         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
11215         copysignl for GLIBC_2_0.
11216         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
11217         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
11218         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
11219         logbl for GLIBC_2_0.
11220         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
11221         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
11223 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11225         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
11226         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11228         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11229         Use "neg %eax".
11231         * time/mktime.c: Update copyright years.
11233 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11235         mktime: merge comment-quoting-style change from gnulib
11236         * time/mktime.c: Quote 'like this' in comments.
11237         The GNU coding standards suggest that we no longer quote `like this',
11238         as "`" and "'" are typically rendered asymmetrically nowadays.
11239         The typical gnulib style is to quote 'like this' when quoting
11240         code, and "like this" when quoting English.
11242         * time/mktime.c (compile-command): Add "-I.".
11244         mktime: merge mktime-internal.h change from gnulib
11245         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
11247         mktime: merge time_r change from gnulib
11248         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
11250         mktime: merge DEBUG change from gnulib
11251         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
11252         case system <time.h> has a #define.
11254         mktime: merge <sys/types.h> change from gnulib
11255         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
11256         since <time.t> is now guaranteed to define time_t.
11258         mktime: merge HAVE_CONFIG_H change from gnulib
11259         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
11261 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11263         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11264         Use "neg %eax".
11266         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
11267         __rlim_t cast.
11268         (struct rusage): Use anonymous union to pad each field to
11269         __syscall_slong_t.
11271 2012-05-21  David S. Miller  <davem@davemloft.net>
11273         * Makefules (o-iterator): Remove .s cases.
11274         (compile-command.s): Delete.
11275         (COMPILE.s): Delete.
11276         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
11278 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
11280         * configure.in (libc_cv_predef_stack_protector): Only consider
11281         "foobar" and "__stack_chk_fail" lines in libc_undefs.
11282         * configure: Regenerated.
11284 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11286         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11287         New macro.  Use R*LP on int and pointer.
11288         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
11289         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
11290         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
11291         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
11293         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
11294         [__WORDSIZE_TIME64_COMPAT32] instead of
11295         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
11296         (struct utmp): Likewise.
11297         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
11298         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
11299         Renamed to ...
11300         (__WORDSIZE_TIME64_COMPAT32): This.
11301         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
11302         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
11303         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
11304         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
11305         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
11306         (__WORDSIZE_TIME64_COMPAT32): New macro.
11308 2012-05-21  Andreas Jaeger  <aj@suse.de>
11310         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
11311         only if [SHARED]. Add prototype for __wcschr_ia32.
11313 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11315         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
11316         of %rbp unmolested in the jmp_buf while mangling the low bits.
11317         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
11318         unmolested high bits of %rbp while demangling the low bits.
11319         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11321 2012-05-21  Andreas Jaeger  <aj@suse.de>
11323         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
11324         * sunrpc/svc_simple.c: Use it for registerrpc.
11325         * sunrpc/xcrypt.c: Use it for passwd2des.
11327         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
11329 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11331         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
11332         Don't define if [__SYSCALL_WORDSIZE != 32].
11333         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
11334         New macro.
11336 2012-05-21  Bruno Haible  <bruno@clisp.org>
11337             Andreas Jaeger  <aj@suse.de>
11339         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
11340         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
11341         inptr and inend for must_buffer_ch.
11342         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
11343         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
11344         * stdio-common/Makefile (tests): Remove bug15.
11345         (bug15-ENV): Remove macro.
11346         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
11347         anymore.
11349 2012-05-19  Andreas Jaeger  <aj@suse.de>
11350             Roland McGrath  <roland@hack.frob.com>
11352         * manual/contrib.texi: Completely rewritten. It contains now an
11353         alphabetical list of contributors and their contributions.
11355 2012-05-21  Richard Henderson  <rth@twiddle.net>
11357         * misc/getauxval.c (__getauxval): Use unsigned long int.
11358         * misc/sys/auxv.h: Include <sys/cdefs.h>.
11359         (getauxval): Use unsigned long int.
11361 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11363         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
11365 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11367         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
11368         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
11369         __alignof__ (long double).
11371 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11373         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11375 2012-05-20  Richard Henderson  <rth@twiddle.net>
11377         * misc/getauxval.c: New file.
11378         * misc/sys/auxv.h: New file.
11379         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
11380         (routines): Add getauxval.
11381         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
11382         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
11383         * elf/dl-sysdep.c (_dl_auxv): Remove.
11384         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
11385         * elf/dl-support.c (_dl_auxv): New variable.
11386         (_dl_aux_init): Initialize it.
11387         * manual/startup.texi (Auxiliary Vector): New node.
11388         * sysdeps/generic/bits/hwcap.h: New file.
11389         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
11390         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
11391         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
11392         * sysdeps/sparc/sysdep.h: ... here.  Include it.
11393         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
11394         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
11395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11396         Update.
11397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
11398         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
11399         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
11400         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
11401         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
11402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
11403         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
11404         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
11406 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11410 2012-05-19  David S. Miller  <davem@davemloft.net>
11412         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11414 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
11416         [BZ #14123]
11417         * math/s_ccosh.c: Include <float.h>
11418         (__ccosh): Avoid internal overflow calculating sinh and cosh
11419         values before multiplying by sin and cos values.
11420         * math/s_ccoshf.c: Likewise.
11421         * math/s_ccoshl.c: Likewise.
11422         * math/s_csin.c: Likewise.
11423         * math/s_csinf.c: Likewise.
11424         * math/s_csinl.c: Likewise.
11425         * math/s_csinh.c: Likewise.
11426         * math/s_csinhf.c: Likewise.
11427         * math/s_csinhl.c: Likewise.
11428         * math/libm-test.inc (ccos_test): Add more tests.
11429         (ccosh_test): Likewise.
11430         (csin_test): Likewise.
11431         (csinh_test): Likewise.
11432         * sysdeps/i386/fpu/libm-test-ulps: Update.
11433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11435 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11437         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
11438         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
11440         * sysdeps/x86_64/x32/_itoa.h: Add comment.
11442 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
11444         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
11445         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
11446         * sysdeps/powerpc/soft-fp/Versions: Likewise.
11447         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
11448         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
11449         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
11450         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
11451         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
11452         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
11453         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
11454         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
11455         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
11456         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
11457         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
11458         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
11459         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
11460         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
11461         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
11462         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
11463         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
11464         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
11465         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
11466         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
11467         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
11468         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
11469         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
11470         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
11471         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
11472         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
11473         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
11474         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
11476 2012-05-18  Andreas Jaeger  <aj@suse.de>
11478         * csu/.gitignore: Delete.
11480 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11482         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
11483         (timex): Use __syscall_slong_t.
11485 2012-05-18  Andreas Jaeger  <aj@suse.de>
11486             Carlos O'Donell  <carlos_odonell@mentor.com>
11488         * manual/install.texi (Configuring and compiling): Update
11489         description about files modified in the source directory.
11490         * INSTALL: Regenerated.
11492 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11494         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
11495         value.  Use "or" to set return value to -1.
11496         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
11497         negate return value.
11499 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11501         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
11502         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
11503         failure if the compiler has Graphite support disabled.
11504         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
11505         Likewise.
11506         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
11507         CFLAGS-memmove.c): Likewise.
11508         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
11509         Likewise.
11511 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11513         * sysdeps/x86_64/x32/_itoa.h: New file.
11515         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
11516         getdents system call only if kernel and user dirents have the
11517         same d_ino and d_off.
11519         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11520         LLONG_MAX != LONG_MAX.
11521         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11522         (_fitoa_word): Likewise.
11524         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
11525         years.
11526         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
11527         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
11528         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
11530         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
11531         include <bits/wordsize.h>.  Check __x86_64__ instead of
11532         __WORDSIZE.
11533         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
11534         if __x86_64__ is defined.  Use anonymous union on fpstate.
11536         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
11537         anonymous union.
11539 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
11541         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
11542         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
11543         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
11544         Refer to _rtld_local_ro instead of _rtld_global_ro.
11545         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
11546         Likewise.
11547         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
11548         Likewise.
11549         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
11550         Likewise.
11551         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
11552         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
11553         of _rtld_global, and rtld_progname instead of _dl_argv[0].
11555         * sysdeps/powerpc/powerpc32/dl-machine.c
11556         (__elf_machine_runtime_setup) [PROF]: Don't reference
11557         _dl_prof_resolve.
11559 2012-05-18  Andreas Jaeger  <aj@suse.de>
11561         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
11562         function only available for GCCs before 3.4 since GCC 3.4
11563         introduced a builtin.
11564         (lrint): Likewise.
11565         (llrintf): Likewise.
11566         (llrint): Likewise.
11567         (fmaxf): Likewise.
11568         (fmax): Likewise.
11569         (fminf): Likewise.
11570         (fmin): Likewise.
11571         (rint): Likewise.
11572         (rintf): Likewise.
11573         (nearbyint): Likewise.
11574         (nearbyintf): Likewise.
11575         (ceil): Likewise.
11576         (ceilf): Likewise.
11577         (floor): Likewise.
11578         (floorf): Likewise.
11580 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11582         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
11583         on both fields and cast pointer to __syscall_ulong_t.
11585         * bits/types.h (__fsword_t): New type.
11586         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
11587         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
11588         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11589         (__FSWORD_T_TYPE): Likewise.
11590         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11591         (__FSWORD_T_TYPE): Likewise.
11592         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11593         (__FSWORD_T_TYPE): Likewise.
11594         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
11595         (__FSWORD_T_TYPE): Likewise.
11596         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
11597         __SWORD_TYPE with __fsword_t.
11598         (statfs64): Likewise.
11600 2012-05-17  David S. Miller  <davem@davemloft.net>
11602         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
11604 2012-05-17  Andreas Jaeger  <aj@suse.de>
11606         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
11607         warning.
11609 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11611         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
11613 2012-05-17  Andreas Jaeger  <aj@suse.de>
11615         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
11616         when it is used.
11618 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
11620         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
11622 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11624         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
11625         * sysdeps/x86_64/tst-mallocalign1.c: New file.
11627 2012-05-17  Andreas Jaeger  <aj@suse.de>
11628             Carlos O'Donell  <carlos_odonell@mentor.com>
11630         [BZ #14059]
11631         * sysdeps/x86_64/multiarch/init-arch.h
11632         (bit_YMM_Usable): Rename to...
11633         (bit_AVX_Usable): ... this.
11634         (bit_FMA4_Usable): New macro.
11635         (bit_XMM_state): New macro.
11636         (bit_YMM_state): New macro.
11637         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
11638         [__ASSEMBLER__] (index_AVX_Usable): ... this.
11639         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
11640         (CPUID_OSXSAVE): New macro.
11641         (CPUID_AVX): New macro.
11642         (CPUID_FMA4): New macro.
11643         (index_YMM_Usable): Rename to...
11644         (index_AVX_Usable): ... this.
11645         (HAS_AVX): Use HAS_ARCH_FEATURE.
11646         (HAS_FMA4): Likewise.
11647         (HAS_YMM_USABLE): Remove.
11648         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11649         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
11650         are present.
11651         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
11652         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
11653         * sysdeps/x86_64/multiarch/Makefile: Likewise.
11654         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
11655         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
11657 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
11659         * math/libm-test.c: Support platforms without multiple rounding modes.
11660         * math/bug-nextafter.c: Support platforms without FP exceptions.
11661         * math/bug-nexttoward.c: Likewise.
11662         * math/test-fenv.c: Likewise.
11663         * math/test-misc.c: Likewise.
11664         * stdlib/bug-getcontext.c: Likewise.
11666 2012-05-17  Andreas Jaeger  <aj@suse.de>
11668         * manual/examples/search.c (critter_cmp): Change signature to
11669         avoid warnings.
11670         * manual/string.texi (Collation Functions): Likewise.
11672 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11674         * bits/types.h: Fold copyright years.
11675         * bits/typesizes.h: Likewise.
11676         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
11677         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
11678         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
11679         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
11680         * time/time.h: Likewise.
11682 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
11684         [BZ #208]
11685         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
11686         in instead of returning them.  Return void.
11687         (__libc_mallinfo): Accumulate over all arenas.
11688         (__malloc_stats): Adjust for change in int_mallinfo interface.
11690 2012-05-16  Roland McGrath  <roland@hack.frob.com>
11692         [BZ #10375]
11693         * configure.in (NM): Add AC_CHECK_TOOL for it.
11694         (libc_extra_cflags): New substituted variable.
11695         Check for -fstack-protector being used implicitly.
11696         * configure: Regenerated.
11697         * config.make.in (config-extra-cflags): New variable,
11698         gets @libc_extra_cflags@.
11699         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
11701         [BZ #10375]
11702         * configure.in: Check for _FORTIFY_SOURCE being predefined.
11703         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
11704         * configure: Regenerated.
11705         * config.make.in (CPPUNDEFS): New substituted variable.
11706         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
11707         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
11708         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
11710 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11712         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
11713         (mq_attr): Use __syscall_slong_t.
11715 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11717         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
11718         Check __x86_64__ instead of __WORDSIZE.
11719         (_STAT_VER_LINUX): Likewise.
11720         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
11721         __syscall_ulong_t and __syscall_slong_t.
11722         (stat64): Likewise.
11724 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11726         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
11728 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11730         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
11732 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11734         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
11735         __syscall_ulong_t.
11737         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
11738         include <bits/wordsize.h>.  Check __x86_64__ instead of
11739         __WORDSIZE.
11740         (greg_t): Use "__extension__ long long int" if __x86_64__ is
11741         defined.
11742         (mcontext_t): Replace "unsigned long" with "unsigned long long".
11744         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
11745         include <bits/wordsize.h>.  Check __x86_64__ instead of
11746         __WORDSIZE.
11747         (user_regs_struct): Use "__extension__ unsigned long long"
11748         instead of "unsigned long" if __x86_64__ is defined.
11749         (user): Likewise.  Pad after pointer field if __ILP32__ is
11750         defined.
11752 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
11754         * configure.in (makeinfo): Require version 4.5 or later.  Allow
11755         versions 5 to 9.
11756         * configure: Regenerated.
11757         * manual/install.texi (texinfo): Increase version requirement to
11758         4.5 or later.
11759         * INSTALL: Regenerated.
11761         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
11763 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11765         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
11767         * sysdeps/x86_64/x32/ffs.c: New file.
11769         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
11770         __syscall_ulong_t.
11771         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
11772         defined.  Use __syscall_ulong_t.
11773         (shminfo): Use __syscall_ulong_t.
11774         (shm_info): Likewise.
11776         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
11777         __syscall_ulong_t.
11779         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
11780         <bits/wordsize.h>.
11781         (msgqnum_t): Use __syscall_ulong_t.
11782         (msglen_t): Likewise.
11783         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
11784         __syscall_ulong_t.
11786         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
11787         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11789         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
11791         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
11792         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
11794         * sysvipc/sys/msg.h (msgbuf): Replace long int with
11795         __syscall_slong_t.
11797         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
11798         include <bits/wordsize.h>.  Check __x86_64__ instead of
11799         __WORDSIZE.
11801         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
11802         "unsigned long long int" if __x86_64__ is defined.
11803         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
11805         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
11806         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11807         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
11809         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
11810         <stdint.h>.
11811         (GET_PC): Cast to uintptr_t first.
11812         (GET_FRAME): Likewise.
11813         (GET_STACK): Likewise.
11815         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
11816         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
11817         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
11818         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
11819         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
11820         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
11821         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
11822         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
11823         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
11824         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
11825         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
11826         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
11827         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11828         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
11829         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
11830         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
11831         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
11832         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
11833         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
11834         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
11835         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
11836         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
11837         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
11838         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
11839         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
11840         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
11841         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
11842         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
11843         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
11845 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
11847         * Makerules (+depfiles): Also collect depfiles from .oS in
11848         $(extra-objs).
11849         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
11850         .oS, $(libnldbl-routines)).
11852         * Makerules (native-compile-mkdep-flags): Define.
11853         * sunrpc/Makefile (extra-objs): Add $(addprefix
11854         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
11855         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
11856         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
11857         calling $(make-target-directory).
11859 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11861         * bits/types.h (__snseconds_t): Removed.
11862         * time/time.h (struct timespec): Replace __snseconds_t with
11863         __syscall_slong_t.
11864         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
11865         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
11866         Likewise.
11867         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11868         (__SNSECONDS_T_TYPE): Likewise.
11869         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11870         (__SNSECONDS_T_TYPE): Likewise.
11871         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11872         (__SNSECONDS_T_TYPE): Likewise.
11874 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11876         * sysdeps/mach/hurd/bits/typesizes.h
11877         (__SYSCALL_SLONG_TYPE): New macro.
11878         (__SYSCALL_ULONG_TYPE): Likewise.
11880 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11882         * bits/types.h (__syscall_slong_t): New type.
11883         (__syscall_ulong_t): Likewise.
11885         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
11886         (__SYSCALL_ULONG_TYPE): Likewise.
11887         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11888         (__SYSCALL_SLONG_TYPE): Likewise.
11889         (__SYSCALL_ULONG_TYPE): Likewise.
11890         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11891         (__SYSCALL_SLONG_TYPE): Likewise.
11892         (__SYSCALL_ULONG_TYPE): Likewise.
11893         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11894         (__SYSCALL_SLONG_TYPE): Likewise.
11895         (__SYSCALL_ULONG_TYPE): Likewise.
11897 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11899         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
11900         Add sigaltstack-offsets.sym.
11901         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11902         <sigaltstack-offsets.h>.
11903         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
11904         longjmp_msg pointer.
11905         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
11906         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
11907         signal stack.
11908         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
11910 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
11912         * elf/stackguard-macros.h: Remove file.
11913         * sysdeps/generic/stackguard-macros.h: New file.
11914         * sysdeps/i386/stackguard-macros.h: Likewise.
11915         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
11916         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
11917         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
11918         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
11919         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
11920         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
11921         * sysdeps/x86_64/stackguard-macros.h: Likewise.
11922         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
11923         <elf/stackguard-macros.h>.
11925         [BZ #14109]
11926         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
11927         __aligned__ in attribute.
11928         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
11929         (gregset_t): Likewise.
11931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11933         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
11934         * sysdeps/x86_64/64/Implies-after: Here.  New file.
11935         * sysdeps/x86_64/x32/Implies-after: New file.
11937 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11939         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
11940         and access return value for _dl_profile_fixup.  Use R10_LP to
11941         load frame size.
11943 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11945         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
11947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11949         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
11950         * sysdeps/x86_64/x32/sysdep.h: New file.
11952 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11954         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
11955         * sysdeps/x86_64/setjmp.S: Likewise.
11957 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11959         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
11960         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
11961         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
11962         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
11963         remove unused global constant.
11965 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
11967         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
11968         include of <not-cancel.h>.
11970 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11972         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
11974 2012-05-15  Jeff Law  <law@redhat.com>
11975             Andreas Jaeger  <aj@suse.de>
11977         [BZ #13594]
11978         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
11979         out from...
11980         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
11981         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
11982         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
11983         code changing __hst_map_handle.map.
11985 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11987         * configure.in (sysnames): Look for Implies-before and Implies-after
11988         files.
11989         * configure: Regenerated.
11991 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11993         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
11994         8-byte data alignment with LP_SIZE alignment.
11996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11998         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
11999         into R10_LP.
12001 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12003         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
12005 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12007         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
12008         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
12009         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
12010         Likewise.
12011         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12013 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12015         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
12016         (stackinfo_sub_sp): Likewise.
12018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12020         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
12021         RAX_LP.
12023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12025         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
12026         into R*_LP.
12028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12030         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
12031         sizes into R*_LP.
12033 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12035         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
12037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12039         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
12040         into R11_LP and load __x86_64_shared_cache_size_half into
12041         R8_LP.
12043 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12045         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
12046         R8_LP.
12048 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12050         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
12051         logb for POWER7.
12052         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
12053         logbf for POWER7.
12054         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
12055         logbl for POWER7.
12056         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
12057         powerpc32/power7/fpu/s_logb.c via #include.
12058         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
12059         powerpc32/power7/fpu/s_logbf.c via #include.
12060         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
12061         powerpc32/power7/fpu/s_logbl.c via #include.
12063 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
12065         * README.libm: Remove file.
12067 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12069         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
12070         count for x32.  Use R*_LP and omit operand-size suffix.
12072 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12074         * shlib-versions: Move x86_64-.*-linux.* entries to ...
12075         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
12076         * sysdeps/x86_64/x32/shlib-versions: New file.
12078 2012-05-14  Roland McGrath  <roland@hack.frob.com>
12080         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
12081         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
12082         Use _dl_fatal_printf instead.
12084 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12086         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
12087         set if not set by the user.  Do not allow for being unset.
12088         * sysdeps/unix/sysv/linux/configure: Regenerated.
12090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12092         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
12093         the `q' suffix from lea and replace .quad with ASM_ADDR.
12095 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12097         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
12098         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
12099         instead of $17.
12100         (PTR_DEMANGLE): Likewise.
12102 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12104         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
12105         (LP_OP): Likewise.
12106         (ASM_ADDR): Likewise.
12107         (RAX_LP): Likewise.
12108         (RBP_LP): Likewise.
12109         (RBX_LP): Likewise.
12110         (RCX_LP): Likewise.
12111         (RDI_LP): Likewise.
12112         (RSI_LP): Likewise.
12113         (RSP_LP): Likewise.
12114         (R8_LP): Likewise.
12115         (R9_LP): Likewise.
12116         (R10_LP): Likewise.
12117         (R10_LP): Likewise.
12118         (R11_LP): Likewise.
12119         (R12_LP): Likewise.
12120         (R13_LP): Likewise.
12121         (R14_LP): Likewise.
12122         (R15_LP): Likewise.
12124 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12126         * sysdeps/x86_64/x32/dl-machine.h: New file.
12128 2012-05-14  Andreas Jaeger  <aj@suse.de>
12130         * manual/Makefile (subdir): Remove export of subdir.
12131         (all): Remove target.
12132         (.PHONY): Remove all from list.
12133         (mkinstalldirs): Remove.
12134         (.PHONY): Remove installdirs from list.
12135         ($(inst_infodir)/libc.info): Use make-target-directory.
12136         (installdirs): Remove.
12137         (subdir_%): Remove.
12138         (glibc-targets): Remove.
12139         (lib): Remove.
12140         (stubs): Remove.
12141         ($(objpfx)stubs ../po/manual.pot): Remove.
12142         ($(objpfx)stamp%): Remove.
12143         (make-target-directory): Remove.
12144         (subdir_install): Remove.
12145         (routines): Remove.
12146         (aux): Remove.
12147         (sources): Remove.
12148         (objects): Remove.
12149         (headers): Remove.
12151         [BZ #13750]
12152         * manual/.gitignore: Remove, it's not needed anymore.
12153         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
12154         all files in it.
12155         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
12156         directory.
12157         (texis): Renamed to $(objpfx)texis.
12158         (texis-path): New, contains path to generated files.
12159         (chapters.%): Use texis-path for complete path, add extra argument
12160         libc-texinfo.sh.
12161         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
12162         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
12163         (summary,texi, stamp-summary): Use complete path of
12164         files. Generate files in build dir.
12165         (dir-add.texi): Build in build dir.
12166         (libm-err.texi,stamp-libm-err): Likewise.
12167         (version.texi, stamp-version): Likewise.
12168         (.%c.texi): Likewise.
12169         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
12170         (mostlyclean): Remove target.
12171         (realclean): Remove target.
12172         (generated): Add new variable with contents from mostlyclean and
12173         realclean, remove entries duplicated in common-mostlyclean, add
12174         stamp-libm-err and stamp-version.
12175         (generated-dirs): Add libc directory.
12176         ($(inst_infodir)/libc.info): Install files from build dir.
12178         * manual/install.texi (Configuring and compiling): Adjust since
12179         the info files are not part of the tar ball anymore.
12181 2012-05-14  Andreas Jaeger  <aj@suse.de>
12183         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
12184         variable.
12186 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12188         [BZ #13717]
12189         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12190         to 2.2.0 where earlier.
12191         * sysdeps/unix/sysv/linux/configure: Regenerated.
12192         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
12193         Remove conditional code.
12194         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
12195         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
12196         Remove conditional code.
12197         [!__NR_lchown]: Likewise.
12198         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12199         [__NR_lchown]: Likewise.
12200         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
12201         comment referencing __ASSUME_LCHOWN_SYSCALL.
12202         * sysdeps/unix/sysv/linux/i386/sigaction.c
12203         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12204         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12205         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
12206         Remove conditional code.
12207         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
12208         (__protocol_available): Remove #if 0 code.
12209         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
12210         conditional code.
12211         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
12212         * sysdeps/unix/sysv/linux/kernel-features.h
12213         (__ASSUME_GETCWD_SYSCALL): Don't define.
12214         (__ASSUME_REALTIME_SIGNALS): Likewise.
12215         (__ASSUME_PREAD_SYSCALL): Likewise.
12216         (__ASSUME_PWRITE_SYSCALL): Likewise.
12217         (__ASSUME_POLL_SYSCALL): Likewise.
12218         (__ASSUME_LCHOWN_SYSCALL): Likewise.
12219         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
12220         non-SPARC.
12221         (__ASSUME_SIOCGIFNAME): Don't define.
12222         (__ASSUME_MSG_NOSIGNAL): Likewise.
12223         (__ASSUME_SENDFILE): Define unconditionally.
12224         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
12225         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
12226         conditional code.
12227         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
12228         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
12229         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12230         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12231         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
12232         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12233         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
12235         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12236         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
12238         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12239         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
12241         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12242         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
12244         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12245         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
12247         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12248         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
12250         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12251         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
12253         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12254         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
12256         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12257         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12258         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
12259         Remove conditional code.
12260         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12261         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12262         Remove conditional code.
12263         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12264         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
12265         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
12266         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12267         Remove conditional code.
12268         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12269         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
12270         Remove conditional code.
12271         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12272         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
12273         Remove conditional code.
12274         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12275         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12276         Remove conditional code.
12277         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12278         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12279         Remove conditional code.
12280         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12281         * sysdeps/unix/sysv/linux/sh/pwrite64.c
12282         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12283         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12284         * sysdeps/unix/sysv/linux/sigaction.c
12285         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12286         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12287         * sysdeps/unix/sysv/linux/sigpending.c
12288         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12289         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12290         * sysdeps/unix/sysv/linux/sigprocmask.c
12291         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12292         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12293         * sysdeps/unix/sysv/linux/sigsuspend.c
12294         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12295         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12296         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
12297         (__libc_missing_rt_sigs): Remove.
12298         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
12299         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
12300         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
12301         Remove conditional code.
12302         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
12303         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
12304         return 1.
12305         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
12306         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
12307         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
12308         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
12310 2012-05-14  Andreas Jaeger  <aj@suse.de>
12312         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
12313         it's not used in glibc.
12314         (__coshm1): Likewise.
12315         (__acosh1p): Likewise.
12316         (__sgn): Likewise.
12318         * manual/string.texi (Copying and Concatenation): Add missing
12319         variable in concat example.
12320         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
12322 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12324         [BZ #14103]
12325         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
12326         __builtin_clzl with __builtin_clzll.
12328 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12330         [BZ #14104]
12331         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
12332         libc_freeres_ptr.
12334 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12336         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
12337         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
12338         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
12339         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
12341 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
12343         * NEWS: Update ia64 info.
12345 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
12347         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
12348         used as bcopy.
12350 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
12352         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
12353         * sysdeps/unix/syscalls.list (dup3): Likewise.
12354         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
12355         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
12357 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12359         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
12360         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
12362 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12364         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
12365         thread pointer.
12366         (TLS_IE): Use mov/add instead of movq/addq to load thread
12367         pointer.
12368         (TLS_GD_PREFIX): New.
12369         (TLS_GD): Use it.
12371 2012-05-11  David S. Miller  <davem@davemloft.net>
12373         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
12374         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
12375         (_FPU_SETCW): Likewise.
12377 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12379         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
12380         is 32-byte aligned.
12382 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
12384         [BZ #11837]
12385         * iconvdata/gb18030.c: Update tables.
12386         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
12387         characters specially.
12388         (BODY for TO_LOOP): Add encoding of missing ranges.
12390 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
12392         [BZ #13673]
12393         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
12394         * sysdeps/mach/hurd/dup3.c: Likewise.
12395         * sysdeps/mach/hurd/readlinkat.c: Likewise.
12396         * sysdeps/powerpc/memmove.c:: Likewise.
12398 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12400         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
12401         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
12403 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12405         * elf/elf.h (R_X86_64_RELATIVE64): New.
12406         (R_X86_64_NUM): Updated.
12407         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
12408         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
12409         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
12410         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
12411         tst-quad1pie tst-quad2pie
12412         (modules-names): Add tst-quadmod1 tst-quadmod2.
12413         ($(objpfx)tst-quad1): New dependency.
12414         ($(objpfx)tst-quad2): Likewise.
12415         ($(objpfx)tst-quad1pie): Likewise.
12416         ($(objpfx)tst-quad2pie): Likewise.
12417         * sysdeps/x86_64/tst-quad1.c: New file.
12418         * sysdeps/x86_64/tst-quad1pie.c: New file.
12419         * sysdeps/x86_64/tst-quad2.c: Likewise.
12420         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
12421         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
12422         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
12423         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
12424         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
12426 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12428         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
12429         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
12430         * streams/stropts.h (t_scalar_t): Define type.
12432         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
12433         (_PATH_PRESERVE): Set to "/var/lib".
12434         (_PATH_RWHODIR): Set to "/var/spool/rwho".
12436         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
12437         instead of int.
12439         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
12440         if __dir_mkfile succeeded.
12442         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
12443         checking for _hurd_dtablesize.  Unlock it right after having
12444         finished _hurd_dtable allocation.
12446 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12448         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
12449         * sysdeps/mach/hurd/configure: Regenerated.
12450         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
12451         special-casing to...
12452         * sysdeps/gnu/configure.in: ... this new file.
12453         * sysdeps/unix/sysv/linux/configure: Regenerated.
12454         * sysdeps/gnu/configure: New generated file.
12456         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
12457         for Linux: use nsec instead of usec, as well as:
12458         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
12459         members of type struct timespec.
12460         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
12461         New macros.
12462         (struct stat64): Likewise.
12463         (_STATBUF_ST_NSEC): New macro.
12464         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
12466         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
12467         __strtoul_internal rather than strtoul.
12469 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12471         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
12472         and reject them.
12474 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12476         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
12477         which preserves existing values.
12478         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
12480 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12482         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
12483         TIMEOUT values.  Return EINVAL for NFDS values either negative or
12484         greater than FD_SETSIZE.
12486 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12488         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
12489         allocated, call __vm_protect to finish enabling the existing space, and
12490         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
12491         allocate the remainder.
12493 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12495         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
12496         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
12498 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12500         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
12501         sysdeps/mach/hurd/readlink.c.
12503         * posix/tst-sysconf.c (posix_options): Only use
12504         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
12505         _POSIX_SYNCHRONIZED_IO when they are defined
12506         * sysdeps/mach/hurd/bits/posix_opt.h:
12507         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
12508         (_XOPEN_REALTIME): Undefine macro.
12509         (_XOPEN_REALTIME_THREADS): Undefine macro.
12510         (_XOPEN_SHM): Undefine macro.
12511         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
12512         macro to -1.
12513         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
12514         macro to -1.
12515         (_POSIX_ASYNC_IO): Undefine macro.
12516         (_POSIX_PRIORITIZED_IO): Undefine macro.
12517         (_POSIX_SPIN_LOCKS): Define macro to -1.
12519         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
12520         SA_NODEFER, SA_RESETHAND.
12521         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
12522         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
12523         F_DUPFD_CLOEXEC.
12525 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12527         * elf/Makefile (pldd-modules): Define unconditionally.
12529 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12531         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
12533 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12535         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
12536         Return ENOENT when name is empty.
12537         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
12539 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12541         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
12543         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
12545 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12547         Fix mlock in all cases except non-readable pages.
12548         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
12549         instead of VM_PROT_ALL as parameter to __vm_wire function.
12551         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
12552         (__mkdir): When path is `/', just fail with EEXIST.
12553         * sysdeps/mach/hurd/mkdirat.c: Likewise.
12555 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12557         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
12558         <sys/uio.h> (for writev).
12559         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
12560         and <sys/param.h> (for MIN).
12562 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12564         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
12565         REQUESTED_TIME.  Properly set the remaining time and return EINTR
12566         if interrupted.
12568 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12570         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
12571         Depend on against $(link-rpcuserlibs).
12573 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12575         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
12576         (__libc_stack_end): Do not use attribute_relro.
12577         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
12578         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
12579         to libthread-provided value.
12580         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
12581         attribute_relro.
12583 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12585         [BZ #3748]
12586         * bits/libc-lock.h (__libc_once_get): New macro.
12587         * sysdeps/mach/bits/libc-lock.h: Likewise.
12588         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
12589         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
12590         instead of using implementation details.
12592         * libio/fileops.c: Unconditionally include <kernel-features.h>.
12593         * libio/freopen.c: Likewise.
12594         * libio/freopen64.c: Likewise.
12595         * misc/syslog.c: Likewise.
12596         * nscd/connections.c: Likewise.
12597         * nscd/netgroupcache.c: Likewise.
12598         * sysdeps/posix/getcwd.c: Likewise.
12600 2012-05-10  Roland McGrath  <roland@hack.frob.com>
12602         * math/w_ilogbf.c: Add #include <limits.h>.
12604 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12606         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
12607         path instead of returning without unlocking.
12609         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
12610         immediate-write ioctls.
12611         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
12613 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12615         * sysdeps/mach/hurd/i386/init-first.c (init): Use
12616         __builtin_frame_address instead of making assumptions about the
12617         location of the return address relative to DATA.  Force early load of
12618         the return address.
12619         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
12620         __builtin_frame_address.
12622         dup3 for GNU Hurd.
12623         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
12624         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
12625         implement dup3 and do some further code clean-ups.
12626         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
12627         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
12629 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12631         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
12633         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
12634         HURD_CRITICAL_END around holding _hurd_dtable_lock.
12635         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
12636         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
12637         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
12638         d->port.lock.
12640         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
12641         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
12642         when handler == SIG_ERR, not when handler != SIG_ERR.
12644 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12646         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
12647         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
12648         definitions.
12650         accept4 for GNU Hurd.
12651         * include/sys/socket.h (__libc_accept4): New prototype.
12652         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
12653         to implement __libc_accept4.
12654         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
12655         __libc_accept4.
12656         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
12658         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
12659         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
12660         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
12661         signal-defines.sym.
12663 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12665         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
12667 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12669         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
12670         assertion on O_CLOEXEC flag.
12671         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
12672         * hurd/intern-fd.c: Likewise.
12673         * hurd/port2fd.c: Likewise.
12675 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12677         [BZ #3906]
12678         * bits/in.h (IPV6_PKTINFO): Define new macro.
12679         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
12681 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12683         [BZ #13954]
12684         [BZ #13955]
12685         [BZ #13956]
12686         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
12687         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12688         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
12689         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12690         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12691         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12692         * math/libm-test.inc (logb_test) : Additional logb tests.
12694 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
12695             Andreas Jaeger  <aj@suse.de>
12697         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
12698         * configure: Regenerated.
12699         * config.h.in (LINK_OBSOLETE_RPC): New macro.
12700         * config.make.in (link-obsolete-rpc): New substituted variable.
12701         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
12702         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
12703         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
12704         (shared-only-routines): Don't set it under [link-obsolete-rpc],
12705         so that libc.a contains the symbols.
12706         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
12707         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
12708         * sunrpc/auth_none.c: Likewise.
12709         * sunrpc/auth_unix.c: Likewise.
12710         * sunrpc/authdes_prot.c: Likewise.
12711         * sunrpc/authuxprot.c: Likewise.
12712         * sunrpc/clnt_gen.c: Likewise.
12713         * sunrpc/clnt_perr.c: Likewise.
12714         * sunrpc/clnt_raw.c: Likewise.
12715         * sunrpc/clnt_simp.c: Likewise.
12716         * sunrpc/clnt_tcp.c: Likewise.
12717         * sunrpc/clnt_udp.c: Likewise.
12718         * sunrpc/clnt_unix.c: Likewise.
12719         * sunrpc/des_crypt.c: Likewise.
12720         * sunrpc/des_soft.c: Likewise.
12721         * sunrpc/get_myaddr.c: Likewise.
12722         * sunrpc/key_call.c: Likewise.
12723         * sunrpc/key_prot.c: Likewise.
12724         * sunrpc/netname.c: Likewise.
12725         * sunrpc/pm_getmaps.c: Likewise.
12726         * sunrpc/pm_getport.c: Likewise.
12727         * sunrpc/pmap_clnt.c: Likewise.
12728         * sunrpc/pmap_prot.c: Likewise.
12729         * sunrpc/pmap_prot2.c: Likewise.
12730         * sunrpc/pmap_rmt.c: Likewise.
12731         * sunrpc/publickey.c: Likewise.
12732         * sunrpc/rpc_cmsg.c: Likewise.
12733         * sunrpc/rpc_common.c: Likewise.
12734         * sunrpc/rpc_dtable.c: Likewise.
12735         * sunrpc/rpc_prot.c: Likewise.
12736         * sunrpc/rpc_thread.c: Likewise.
12737         * sunrpc/rtime.c: Likewise.
12738         * sunrpc/svc.c: Likewise.
12739         * sunrpc/svc_auth.c: Likewise.
12740         * sunrpc/svc_raw.c: Likewise.
12741         * sunrpc/svc_run.c: Likewise.
12742         * sunrpc/svc_tcp.c: Likewise.
12743         * sunrpc/svc_udp.c: Likewise.
12744         * sunrpc/svc_unix.c: Likewise.
12745         * sunrpc/svcauth_des.c: Likewise.
12746         * sunrpc/xcrypt.c: Likewise.
12747         * sunrpc/xdr.c: Likewise.
12748         * sunrpc/xdr_array.c: Likewise.
12749         * sunrpc/xdr_float.c: Likewise.
12750         * sunrpc/xdr_intXX_t.c: Likewise.
12751         * sunrpc/xdr_mem.c: Likewise.
12752         * sunrpc/xdr_rec.c: Likewise.
12753         * sunrpc/xdr_ref.c: Likewise.
12754         * sunrpc/xdr_sizeof.c: Likewise.
12755         * sunrpc/xdr_stdio.c: Likewise.
12757 2012-05-10  Roland McGrath  <roland@hack.frob.com>
12759         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
12760         change.  Update copyright years.
12762 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
12764         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
12766 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
12767             Joseph Myers  <joseph@codesourcery.com>
12768             Paul Pluzhnikov  <ppluzhnikov@google.com>
12770         [BZ #14012]
12771         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
12772         requiring rpcgen.
12773         [cross-compiling] (extra-libs): Likewise.
12774         [cross-compiling] (extra-libs-others): Likewise.
12775         [cross-compiling] (librpcsvc-routines): Likewise.
12776         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
12777         [cross-compiling] (omit-deps): Likewise.
12778         (sunrpc-CPPFLAGS): New variable.
12779         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
12780         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
12781         (cross-rpcgen-objs): New variable.
12782         (extra-objs): Append $(cross-rpcgen-objs).
12783         ($(cross-rpcgen-objs)): New rule.
12784         ($(objpfx)cross-rpcgen): Likewise.
12785         (rpcgen-cmd): Define to use $(built-program-file).  Expand
12786         comment.
12787         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
12788         ($(objpfx)x%.stmp): Likewise.
12789         * sunrpc/proto.h [IS_IN_build] (_): Define.
12790         [IS_IN_build] (_libc_intl_domainname): Likewise.
12792 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12794         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
12795         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
12796         and R_X86_64_TPOFF64.
12798 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
12800         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
12801         sysdeps/unix/sysv/syscalls.list.
12802         (stime): Likewise.
12803         (utime): Likewise.
12804         * sysdeps/unix/sysv/syscalls.list: Remove file.
12806 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
12808         [BZ #3440]
12809         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
12810         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
12811         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
12812         (__LC_IDENTIFICATION): Make these macros useful in #if
12813         expressions, as required by C99.
12815 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
12817         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
12818         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
12819         after this.
12821 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12823         * stdlib/longlong.h: Updated from GCC.
12825 2012-05-09  Andreas Jaeger  <aj@suse.de>
12827         * nscd/nscd.c (run_modes): Make named enum, reorder so that
12828         default is first entry.
12829         (run_mode): Set type.
12830         (main): Remove informal message about syslog.
12831         (options): Fix typo.
12833         [BZ #14053]
12834         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
12835         to asm.
12836         (lrint): Likewise.
12837         (llrintf): Likewise.
12838         (llrint): Likewise.
12839         (rint): Likewise.
12840         (rintf): Likewise.
12841         (nearbyint): Likewise.
12842         (nearbyintf): Likewise.
12844 2012-05-09  Andreas Jaeger  <aj@suse.de>
12845             Pedro Alves  <palves@redhat.com>
12847         * nscd/nscd.c (run_mode): Use enum.
12848         (main): Cleanup coding style issue.
12850 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
12851             Andreas Jaeger  <aj@suse.de>
12853         * nscd/nscd.c (go_background): Replaced with...
12854         (run_mode): ... this.
12855         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
12856         (options): Add -F --foreground.
12857         (main): Implement it.
12858         (parse_opt): Parse it.
12860 2012-05-09  Andreas Jaeger  <aj@suse.de>
12862         [BZ #14083]
12863         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
12864         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
12865         -Wconversion warning.
12866         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
12867         Likewise.
12869 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
12871         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
12872         == 0.
12873         (LC_ALL): Use macro-int-constant.
12874         (LC_COLLATE): Likewise.
12875         (LC_CTYPE): Likewise.
12876         (LC_MESSAGES): Likewise.
12877         (LC_MONETARY): Likewise.
12878         (LC_NUMERIC): Likewise.
12879         (LC_TIME): Likewise.
12880         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
12881         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12882         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12883         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
12884         Specify type.
12885         [C99-based standards] (float_t): Expect type.
12886         [C99-based standards] (double_t): Expect type.
12887         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
12888         type.
12889         [C99-based standards] (HUGE_VALL): Likewise.
12890         [C99-based standards] (INFINITY): Likewise.
12891         [C99-based standards] (NAN): Likewise.
12892         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
12893         [C99-based standards] (FP_NAN): Likewise.
12894         [C99-based standards] (FP_NORMAL): Likewise.
12895         [C99-based standards] (FP_SUBNORMAL): Likewise.
12896         [C99-based standards] (FP_ZERO): Likewise.
12897         [C99-based standards] (FP_FAST_FMA): Use
12898         optional-macro-int-constant.  Specify type.  Require == 1.
12899         [C99-based standards] (FP_FAST_FMAF): Likewise.
12900         [C99-based standards] (FP_FAST_FMAL): Likewise.
12901         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
12902         [C99-based standards] (FP_ILOGBNAN): Likewise.
12903         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
12904         Specify type.
12905         [C99-based standards] (MATH_ERREXCEPT): Likewise.
12906         [C99-based standards] (math_errhandling): Specify type.
12907         [ISO99 || ISO11] (signgam): Do not allow.
12908         [non-C99-based standards] (copysignf): Do not allow.
12909         [non-C99-based standards] (exp2f): Likewise.
12910         [non-C99-based standards] (log2f): Likewise.
12911         [non-C99-based standards] (modff): Allow.
12912         [non-C99-based standards] (erff): Do not allow.
12913         [non-C99-based standards] (erfcf): Likewise.
12914         [non-C99-based standards] (gammaf): Likewise.
12915         [non-C99-based standards] (hypotf): Likewise.
12916         [non-C99-based standards] (j0f): Likewise.
12917         [non-C99-based standards] (j1f): Likewise.
12918         [non-C99-based standards] (jnf): Likewise.
12919         [non-C99-based standards] (lgammaf): Likewise.
12920         [non-C99-based standards] (tgammaf): Likewise.
12921         [non-C99-based standards] (y0f): Likewise.
12922         [non-C99-based standards] (y1f): Likewise.
12923         [non-C99-based standards] (ynf): Likewise.
12924         [non-C99-based standards] (isnanf): Likewise.
12925         [non-C99-based standards] (acoshf): Likewise.
12926         [non-C99-based standards] (asinhf): Likewise.
12927         [non-C99-based standards] (atanhf): Likewise.
12928         [non-C99-based standards] (cbrtf): Likewise.
12929         [non-C99-based standards] (expm1f): Likewise.
12930         [non-C99-based standards] (ilogbf): Likewise.
12931         [non-C99-based standards] (log1pf): Likewise.
12932         [non-C99-based standards] (logbf): Likewise.
12933         [non-C99-based standards] (nextafterf): Likewise.
12934         [non-C99-based standards] (remainderf): Likewise.
12935         [non-C99-based standards] (rintf): Likewise.
12936         [non-C99-based standards] (scalbf): Likewise.
12937         [non-C99-based standards] (copysignl): Likewise.
12938         [non-C99-based standards] (exp2l): Likewise.
12939         [non-C99-based standards] (log2l): Likewise.
12940         [non-C99-based standards] (modfl): Allow.
12941         [non-C99-based standards] (erfl): Do not allow.
12942         [non-C99-based standards] (erfcl): Likewise.
12943         [non-C99-based standards] (gammal): Likewise.
12944         [non-C99-based standards] (hypotl): Likewise.
12945         [non-C99-based standards] (j0l): Likewise.
12946         [non-C99-based standards] (j1l): Likewise.
12947         [non-C99-based standards] (jnl): Likewise.
12948         [non-C99-based standards] (lgammal): Likewise.
12949         [non-C99-based standards] (tgammal): Likewise.
12950         [non-C99-based standards] (y0l): Likewise.
12951         [non-C99-based standards] (y1l): Likewise.
12952         [non-C99-based standards] (ynl): Likewise.
12953         [non-C99-based standards] (isnanl): Likewise.
12954         [non-C99-based standards] (acoshl): Likewise.
12955         [non-C99-based standards] (asinhl): Likewise.
12956         [non-C99-based standards] (atanhl): Likewise.
12957         [non-C99-based standards] (cbrtl): Likewise.
12958         [non-C99-based standards] (expm1l): Likewise.
12959         [non-C99-based standards] (ilogbl): Likewise.
12960         [non-C99-based standards] (log1pl): Likewise.
12961         [non-C99-based standards] (logbl): Likewise.
12962         [non-C99-based standards] (nextafterl): Likewise.
12963         [non-C99-based standards] (remainderl): Likewise.
12964         [non-C99-based standards] (rintl): Likewise.
12965         [non-C99-based standards] (scalbl): Likewise.
12966         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12967         [non-C99-based standards] (FP_*): Do not allow.
12968         [C99-based standards] (FP_*): Change to
12969         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12970         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12971         allow.
12972         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
12973         (SIG_ERR): Likewise.
12974         [X/Open-based standards] (SIG_HOLD): Likewise.
12975         (SIG_IGN): Likewise.
12976         (SIGABRT): Use macro-int-constant.  Specify type.  Require
12977         positive value.
12978         (SIGFPE): Likewise.
12979         (SIGILL): Likewise.
12980         (SIGINT): Likewise.
12981         (SIGSEGV): Likewise.
12982         (SIGTER): Likewise.
12983         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
12984         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
12985         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
12986         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
12987         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
12988         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
12989         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
12990         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
12991         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
12992         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
12993         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
12994         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
12995         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
12996         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
12997         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
12998         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
12999         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
13000         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
13001         [X/Open-based standards] (SIGTRAP): Likewise.
13002         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
13003         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
13004         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
13005         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
13006         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13007         allow.
13009 2012-05-08  Ian Wienand  <ianw@vmware.com>
13011         [BZ #14080]
13012         * time/tzset.c (__tzset_parse_tz): Update default rules for
13013         daylight time changes in the Energy Policy Act of 2005.
13015 2012-05-09  Andreas Jaeger  <aj@suse.de>
13017         [BZ #13983]
13018         * elf/ldconfig.c (parse_conf): Change string to make clear that
13019         ldconfig only issued a warning if ld.so.conf does not exist.
13021 2012-05-08  David S. Miller  <davem@davemloft.net>
13023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
13024         movxtod instead of popping the value on the stack.
13026         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13028 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
13030         * config.h.in: Add HAVE_ARM_PCS_VFP.
13032 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
13034         [BZ #13979]
13035         * include/features.h: Warn if user requests __FORTIFY_SOURCE
13036         checking but the checks are disabled for any reason.
13038 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13040         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
13041         and ELF64_R_TYPE with ELFW(R_TYPE).
13043 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
13045         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
13046         (ulimit): Likewise.
13048         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
13049         (settimeofday): Likewise.
13051 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
13053         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
13054         a struct th_u2 inside the union, and move tu_block/tu_code into
13055         a new th_u3 union of tu_block/tu_code inside of that.  Move
13056         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
13057         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
13058         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
13059         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
13060         (th_stuff): Change to th_u1.tu_stuff.
13061         (th_data): Define.
13062         (th_msg): Change to th_u1.th_u2.tu_data.
13064 2012-05-07  David S. Miller  <davem@davemloft.net>
13066         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13068         [BZ #14074]
13069         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
13070         (SETUP_PIC_REG): Use it.
13071         (SETUP_PIC_REG_LEAF): Use it.
13073 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
13075         [BZ #13885]
13076         [BZ #13923]
13077         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13078         USE_AS_EXPM1L.
13079         (EXPL_FINITE): Likewise.
13080         (FLDLOG): Likewise.
13081         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13082         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13083         e_expl.S.
13084         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13085         USE_AS_EXPM1L.
13086         (EXPL_FINITE): Likewise.
13087         (FLDLOG): Likewise.
13088         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13089         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13090         e_expl.S.
13091         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
13092         test of -max_value argument for long double.
13093         * sysdeps/i386/fpu/libm-test-ulps: Update.
13094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13096 2012-05-06  David S. Miller  <davem@davemloft.net>
13098         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
13099         quad soft-float symbols whose references which are compiler
13100         generated.
13101         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13103 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
13105         [BZ #13884]
13106         [BZ #13914]
13107         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13108         USE_AS_EXP10L.
13109         (EXPL_FINITE): Likewise.
13110         (FLDLOG): Likewise.
13111         (c0): Likewise.
13112         (c1): Likewise.
13113         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13114         Adjust comments for base varying.
13115         (__expl_finite): Change alias to EXPL_FINITE.
13116         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
13117         e_expl.S.
13118         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
13119         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
13120         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13121         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
13122         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13123         USE_AS_EXP10L.
13124         (EXPL_FINITE): Likewise.
13125         (FLDLOG): Likewise.
13126         (c0): Likewise.
13127         (c1): Likewise.
13128         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13129         Adjust comments for base varying.
13130         (__expl_finite): Change alias to EXPL_FINITE.
13131         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
13132         tests for bugs.
13133         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13135         [BZ #14064]
13136         * math/libm-test.inc (check_float_internal): Correct ulp
13137         calculation for subnormal expected results.
13139 2012-05-06  Andreas Jaeger  <aj@suse.de>
13141         * Makeconfig (+math-flags): New, set to -frounding-math.
13142         (+cflags): Add +math-flags so that all of glibc gets compiled with
13143         it.
13145         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
13147 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
13149         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
13150         Disable one test.
13152         [BZ #13787]
13153         [BZ #13922]
13154         [BZ #14036]
13155         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
13156         (__ieee754_expl): Allow for and saturate large arguments.
13157         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
13158         (u_threshold): Likewise.
13159         (__exp): Call __ieee754_exp before checking for overflow and
13160         underflow.
13161         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
13162         (u_threshold): Likewise.
13163         (__expf): Call __ieee754_expf before checking for overflow and
13164         underflow.
13165         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
13166         (u_threshold): Likewise.
13167         (__expl): Call __ieee754_expl before checking for overflow and
13168         underflow.
13169         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
13170         (__ieee754_expl): Allow for and saturate large arguments.
13171         * math/libm-test.inc (exp_test): Add another test.  Do not allow
13172         missing overflow exception on overflow.
13173         (expm1_test): Do not allow missing overflow exception on overflow.
13175         * sysdeps/i386/fpu/e_expl.c: Move to ...
13176         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
13177         rather than using inline asm.
13178         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
13179         * sysdeps/x86_64/fpu/e_expl.S: Copy from
13180         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
13182         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
13183         (nice): Likewise.
13184         (poll): Likewise.
13185         (signal): Likewise.
13186         (time): Likewise.
13187         (times): Likewise.
13189 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13191         * sysdeps/unix/syscalls.list (adjtime): Add entry from
13192         sysdeps/unix/common/syscalls.list.
13193         (fchmod): Likewise.
13194         (fchown): Likewise.
13195         (ftruncate): Likewise.
13196         (getrusage): Likewise.
13197         (gettimeofday): Likewise.
13198         (setpgid): Likewise.
13199         (setregid): Likewise.
13200         (setreuid): Likewise.
13201         (sigaction): Likewise.
13202         (truncate): Likewise.
13203         (vhangup): Likewise.
13204         * sysdeps/unix/common/syscalls.list: Remove file.
13205         * sysdeps/unix/bsd/Implies: Don't include unix/common.
13206         * sysdeps/unix/sysv/linux/Implies: Likewise.
13208 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13210         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
13211         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
13212         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
13213         Moved to ...
13214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
13215         Here.
13216         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
13217         to ...
13218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
13219         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
13220         to ...
13221         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
13222         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
13223         to ...
13224         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
13225         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
13226         to ...
13227         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
13228         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
13229         to ...
13230         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
13231         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
13232         to ...
13233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
13234         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
13235         to ...
13236         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13237         Here.
13238         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
13239         to ...
13240         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
13241         Here.
13242         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
13243         to ...
13244         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
13245         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
13246         Moved to ...
13247         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
13248         Here.
13249         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
13250         to ...
13251         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
13253 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13255         * sysdeps/unix/common/bits/dirent.h: Remove file.
13256         * sysdeps/unix/common/bits/fcntl.h: Likewise.
13258         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
13259         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
13260         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
13261         * sysdeps/unix/bsd/isatty.c: Likewise.
13262         * sysdeps/unix/bsd/tcdrain.c: Likewise.
13263         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
13264         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
13266 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13268         [BZ #13563]
13269         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
13270         long double comparison inaccuracies.
13271         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13272         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13274 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
13276         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
13277         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
13279 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13281         [BZ #14049]
13282         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
13283         nonzero digits before rounding a hex value.
13284         * stdlib/tst-strtod.c (tests): Add another test.
13286 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13288         * sysdeps/s390/fpu/libm-test-ulps: Update.
13290 2012-05-03  Andreas Jaeger  <aj@suse.de>
13292         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
13293         does not get optimized out.
13294         (malloc_opt_barrier): New.
13296 2012-05-03  Andreas Jaeger  <aj@suse.de>
13297             Roland McGrath  <roland@hack.frob.com>
13299         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
13300         intermediate file deletion.
13301         (generated): Add .symlist files.
13303 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
13305         [BZ #13775]
13306         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
13307         Redirect under this condition.
13308         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13309         [__USE_GNU] (__dprintf_chk): Not under this condition.
13310         [__USE_GNU] (__vdprintf_chk): Likewise.
13311         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
13312         under this condition.
13313         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13314         [__USE_XOPEN2K8] (dprintf): Define under this condition.
13315         [__USE_XOPEN2K8] (vdprintf): Likewise.
13316         [__USE_GNU] (__dprintf_chk): Not under this condition.
13317         [__USE_GNU] (__vdprintf_chk): Likewise.
13318         [__USE_GNU] (dprintf): Likewise.
13319         [__USE_GNU] (vdprintf): Likewise.
13321 2012-05-03  Roland McGrath  <roland@hack.frob.com>
13323         * elf/Makefile (common-generated): Set this instead of generated for
13324         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
13325         $(all-built-dso)-derived lists.
13327 2012-05-03  Andreas Jaeger  <aj@suse.de>
13329         * sysdeps/i386/fpu/libm-test-ulps: Update.
13331         * FAQ: Removed.
13332         * FAQ.in: Likewise.
13333         * scripts/gen-FAQ.pl: Likewise.
13334         * manual/install.texi (Installation): Point to online location of
13335         FAQ.
13336         * Makefile (files-for-dist): Remove FAQ.
13337         (FAQ): Remove.
13339 2012-05-02  Allan McRae  <allan@archlinux.org>
13341         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
13342         (LDFLAGS-reldepmod5.so): Likewise.
13343         (LDFLAGS-reldep6mod1.so): Likewise.
13344         (LDFLAGS-reldep6mod4.so): Likewise.
13345         (LDFLAGS-reldep8mod3.so): Likewise.
13346         (LDFLAGS-unload4mod1.so): Likewise.
13347         (LDFLAGS-unload4mod2.so): Likewise.
13348         (LDFLAGS-tst-initorder): Likewise.
13349         (LDFLAGS-tst-initordera2.so): Likewise.
13350         (LDFLAGS-tst-initordera3.so): Likewise.
13351         (LDFLAGS-tst-initordera4.so): Likewise.
13352         (LDFLAGS-tst-initorderb2.so): Likewise.
13353         (LDFLAGS-noload): Likewise.
13354         (LDFLAGS-next): Likewise.
13355         (LDFLAGS-order2mod1.so): Likewise.
13356         (LDFLAGS-order2mod2.so): Likewise.
13357         (LDFLAGS-tst-initorder2): Likewise.
13358         (LDFLAGS-tst-initorder2a.so): Likewise.
13359         (LDFLAGS-tst-initorder2b.so): Likewise.
13360         (LDFLAGS-tst-initorder2c.so): Likewise.
13361         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
13363 2012-05-02  David S. Miller  <davem@davemloft.net>
13365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13367 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
13369         [BZ #14055]
13370         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
13372 2012-05-02  Andreas Jaeger  <aj@suse.de>
13374         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
13375         since we manipulate rounding mode.
13376         (CPPFLAGS-test-idouble.c): Likewise.
13377         (CPPFLAGS-test-ifloat.c): Likewise.
13378         (CFLAGS-test-ldouble.c): Likewise.
13379         (CFLAGS-test-double.c): Likewise.
13380         (CFLAGS-test-float.c): Likewise.
13381         (CFLAGS-test-misc.c): Likewise.
13382         (CFLAGS-test-test-fenv.c): Likewise.
13384 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13386         [BZ #2550]
13387         [BZ #2570]
13388         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
13389         comparisons to determine direction to adjust input.
13391 2012-05-01  Roland McGrath  <roland@hack.frob.com>
13393         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
13394         output to the target.
13396         * scripts/localplt.awk: New file.
13397         * elf/Makefile ($(objpfx)check-localplt): Target removed.
13398         (check-localplt-CFLAGS): Variable removed.
13399         ($(all-built-dso:=.jmprel)): New static pattern rule.
13400         (generated): Add those targets.
13401         (localplt-built-dso): New variable.
13402         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
13404         * elf/check-localplt.c: File removed.
13406         * scripts/check-execstack.awk: New file.
13407         * elf/Makefile ($(objpfx)check-execstack): Target removed.
13408         (check-execstack-CFLAGS): Variable removed.
13409         ($(objpfx)check-execstack.h): Target removed.
13410         ($(objpfx)execstack-default): New target.
13411         (generated): Add that instead of check-execstack.h.
13412         ($(all-built-dso:=.phdr)): New static pattern rule.
13413         (generated): Add those targets.
13414         * elf/check-execstack.c: File removed.
13416         * scripts/check-textrel.awk: New file.
13417         * elf/Makefile ($(objpfx)check-textrel): Target removed.
13418         (check-textrel-CFLAGS): Variable removed.
13419         (all-built-dso): Use := to define.o
13420         ($(all-built-dso:=.dyn)): New static pattern rule.
13421         (generated): Add those targets.
13422         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
13423         * config.make.in (READELF): New substituted variable.
13424         * elf/check-textrel.c: File removed.
13426 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13428         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13429         allow.
13430         * conform/data/ctype.h-data [C99-based standards] (isblank):
13431         Expect function.
13432         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
13433         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
13434         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13435         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
13436         Specify type.  Require positive value.
13437         (EILSEQ): Likewise.
13438         (ERANGE): Likewise.
13439         [ISO || POSIX] (EILSEQ): Do not expect.
13440         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
13441         Specify type.  Require positive value.
13442         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
13443         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
13444         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
13445         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
13446         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
13447         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
13448         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
13449         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
13450         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
13451         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
13452         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
13453         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
13454         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
13455         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
13456         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
13457         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
13458         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
13459         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
13460         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
13461         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
13462         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
13463         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
13464         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
13465         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
13466         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
13467         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
13468         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
13469         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
13470         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
13471         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
13472         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
13473         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
13474         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
13475         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
13476         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
13477         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
13478         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
13479         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
13480         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
13481         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
13482         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
13483         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
13484         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
13485         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
13486         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
13487         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
13488         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
13489         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
13490         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
13491         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
13492         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
13493         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
13494         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
13495         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
13496         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
13497         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
13498         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
13499         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
13500         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
13501         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
13502         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
13503         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
13504         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
13505         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
13506         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
13507         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
13508         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
13509         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
13510         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
13511         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
13512         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
13513         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
13514         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
13515         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
13516         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
13517         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
13518         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
13519         Require >= 2.
13520         (FLT_ROUNDS): Expect as macro, not constant.
13521         (FLT_MANT_DIG): Use macro-int-constant.
13522         (DBL_MANT_DIG): Likewise.
13523         (LDBL_MANT_DIG): Likewise.
13524         (FLT_DIG): Likewise.
13525         (DBL_DIG): Likewise.
13526         (LDBL_DIG): Likewise.
13527         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
13528         (DBL_MIN_EXP): Likewise.
13529         (LDBL_MIN_EXP): Likewise.
13530         (FLT_MAX_EXP): Use macro-int-constant.
13531         (DBL_MAX_EXP): Likewise.
13532         (LDBL_MAX_EXP): Likewise.
13533         (FLT_MAX_10_EXP): Likewise.
13534         (DBL_MAX_10_EXP): Likewise.
13535         (LDBL_MAX_10_EXP): Likewise.
13536         (FLT_MAX): Use macro-constant.
13537         (DBL_MAX): Likewise.
13538         (LDBL_MAX): Likewise.
13539         (FLT_EPSILON): Use macro-constant.  Give upper bound.
13540         (DBL_EPSILON): Likewise.
13541         (LDBL_EPSILON): Likewise.
13542         (FLT_MIN): Likewise.
13543         (DBL_MIN): Likewise.
13544         (LDBL_MIN): Likewise.
13545         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
13546         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
13547         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
13548         [ISO11] (FLT_HAS_SUBNORM): Likewise.
13549         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
13550         [ISO11] (DBL_DECIMAL_DIG): Likewise.
13551         [ISO11] (FLT_DECIMAL_DIG): Likewise.
13552         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
13553         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
13554         [ISO11] (FLT_TRUE_MIN): Likewise.
13555         [ISO11] (LDBL_TRUE_MIN): Likewise.
13556         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13557         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
13558         (SCHAR_MIN): Use macro-int-constant.  Specify type.
13559         (SCHAR_MAX): Likewise.
13560         (UCHAR_MAX): Likewise.
13561         (CHAR_MIN): Likewise.
13562         (CHAR_MAX): Likewise.
13563         (MB_LEN_MAX): Use macro-int-constant.
13564         (SHRT_MIN): Use macro-int-constant.  Specify type.
13565         (SHRT_MAX): Likewise.
13566         (USHRT_MAX): Likewise.
13567         (INT_MAX): Likewise.
13568         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
13569         bound negative.
13570         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13571         bound with "U".
13572         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13573         bound with "L".
13574         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
13575         bound negative.  Suffix upper bound with "L".
13576         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13577         bound with "UL".
13578         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
13579         Specify type.
13580         [C99-based standards] (LLONG_MAX): Likewise.
13581         [C99-based standards] (ULLONG_MAX): Likewise.
13582         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
13583         == 0.
13584         [ISO11] (max_align_t): Require type.
13585         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13587         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
13588         from $CFLAGS, without defining away __attribute__ calls.
13589         (checknamespace): Use $CFLAGS_namespace.
13591         * conform/conformtest.pl (@keywords): Only include C99 keywords
13592         for standards based on C99 or C11.
13594         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
13595         Disable tests.
13596         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
13597         UNIX98]: Likewise.
13599         * conform/conformtest.pl: Handle "macro-int-constant" and test for
13600         usability of symbols in #if.
13602         * conform/conformtest.pl: If macro or constant types start
13603         "promoted:", expect the symbol to be of the following type
13604         promoted by the integer promotions.
13606         * conform/conformtest.pl: Parse all "constant" and "macro" lines
13607         in one place.  Also handle "macro-constant".
13609         * conform/conformtest.pl: Only accept expected macro values with
13610         "==".  Parse all "macro" lines in one place.
13611         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
13613         * conform/conformtest.pl: Handle braced types on "constant" lines
13614         instead of handling "typed-constant".
13615         * conform/data/signal.h-data: Use "constant" instead of
13616         "typed-constant".
13618         * conform/conformtest.pl: Handle "optional-" at start of lines in
13619         one place rather than duplicating several cases.  Handle each
13620         format of "macro" line with initial "optional-".
13622         * conform/conformtest.pl: Only accept expected constant or
13623         optional-constant values with "==".  Parse all "constant" lines in
13624         one place.  Parse all "optional-constant" lines in one place.
13625         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
13626         * conform/data/fmtmsg.h-data: Likewise.
13627         * conform/data/netinet/in.h-data: Likewise.
13628         * conform/data/tar.h-data: Likewise.
13629         * conform/data/limits.h-data: Use "==" form on "constant" and
13630         "optional-constant" lines.
13632         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
13633         Use -std=c99 for XOPEN2K.
13634         (@knownproblems): Remove.
13635         (newtoken): Don't check %isknown.
13637         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
13638         Do not expect macro.
13639         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
13640         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
13641         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
13642         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
13643         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
13644         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
13645         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
13646         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
13647         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
13648         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
13649         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
13650         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
13651         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
13652         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
13653         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
13654         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
13655         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
13656         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
13657         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
13658         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
13659         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
13660         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
13661         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
13662         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
13663         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
13664         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
13665         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
13666         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
13667         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
13668         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
13669         [XPG3] (acosh): Likewise.
13670         [XPG3] (asinh): Likewise.
13671         [XPG3] (atanh): Likewise.
13672         [XPG3] (cbrt): Likewise.
13673         [XPG3] (expm1): Likewise.
13674         [XPG3] (ilogb): Likewise.
13675         [XPG3] (log1p): Likewise.
13676         [XPG3] (logb): Likewise.
13677         [XPG3] (nextafter): Likewise.
13678         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
13679         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
13680         [XPG3] (remainder): Likewise.
13681         [XPG3] (rint): Likewise.
13682         [XPG3 || XPG4 || UNIX98] (round): Likewise.
13683         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
13684         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
13685         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
13686         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
13687         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
13688         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
13689         [UNIX98 || XOPEN2K] (scalb): Expect.
13690         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
13691         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
13692         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
13693         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
13694         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
13695         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
13696         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
13697         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
13698         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
13699         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
13700         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
13701         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
13702         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
13703         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
13704         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
13705         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
13706         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
13707         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
13708         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
13709         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
13710         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
13711         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
13712         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
13713         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
13714         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
13715         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
13716         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
13717         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
13718         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
13719         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
13720         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
13721         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
13722         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
13723         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
13724         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
13725         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
13726         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
13727         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
13728         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
13729         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
13730         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
13731         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
13732         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
13733         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
13734         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
13735         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
13736         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
13737         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
13738         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
13739         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
13740         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
13741         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
13742         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
13743         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
13744         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
13745         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
13746         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
13747         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
13748         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
13749         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
13750         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
13751         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
13752         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
13753         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
13754         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
13755         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
13756         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
13757         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
13758         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
13759         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
13760         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
13761         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
13762         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
13763         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
13764         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
13765         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
13766         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
13767         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
13768         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
13769         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
13770         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
13771         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
13772         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
13773         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
13774         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
13775         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
13776         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
13777         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
13778         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
13779         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
13780         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
13781         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
13782         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
13783         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
13784         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
13785         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
13786         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
13787         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
13788         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
13789         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
13790         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
13791         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
13792         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
13793         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
13794         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
13795         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
13796         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
13797         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
13798         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
13799         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
13800         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
13801         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
13802         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
13803         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
13804         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
13805         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
13806         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
13807         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
13808         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
13809         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
13810         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
13811         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
13812         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
13813         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
13814         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
13815         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
13816         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
13817         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
13818         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
13819         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
13820         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
13821         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
13822         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
13823         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
13824         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
13825         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
13826         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
13828         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
13829         _XOPEN_SOURCE_EXTENDED for XPG4.
13831         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
13833         * Makeconfig (localtime): Remove variable.
13834         (inst_localtime-file): Likewise.
13836 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
13839         Update.
13840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13841         Update.
13842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
13843         Update.
13844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
13845         Update.
13846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
13847         Update.
13848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
13849         Update.
13850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13851         Update.
13852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
13853         Update.
13854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13855         Update.
13857 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13859         [BZ #2550]
13860         [BZ #2570]
13861         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
13862         comparisons to determine direction to adjust input.
13863         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
13864         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
13865         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
13866         Likewise.
13867         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
13868         Likewise.
13869         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13870         Likewise.
13871         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
13872         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
13873         Likewise.
13874         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
13875         Likewise.
13876         * math/libm-test.inc (nexttoward_test): Add more tests.
13878 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13880         [BZ #14040]
13881         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
13882         in version GLIBC_2.1, not GLIBC_2.0.
13883         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
13884         Likewise.
13886 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
13888         [BZ #13942]
13889         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
13890         (1 - x) * (1 + x).
13891         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13892         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
13893         * math/libm-test.inc (acos_test): Add more tests.
13894         (asin_test): Likewise.
13895         * sysdeps/i386/fpu/libm-test-ulps: Update.
13896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13898         [BZ #14034]
13899         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
13900         of square root.
13901         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
13902         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13903         * math/libm-test.inc (acos_test_tonearest): New function.
13904         (acos_test_towardzero): Likewise.
13905         (acos_test_downward): Likewise.
13906         (acos_test_upward): Likewise.
13907         (asin_test_tonearest): Likewise.
13908         (asin_test_towardzero): Likewise.
13909         (asin_test_downward): Likewise.
13910         (asin_test_upward): Likewise.
13911         (main): Call the new functions.
13912         * sysdeps/i386/fpu/libm-test-ulps: Update.
13913         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13915         [BZ #13884]
13916         [BZ #13924]
13917         * math/e_exp10.c: Include <float.h>.
13918         (__ieee754_exp10): Handle underflow here rather than multiplying
13919         large negative argument by M_LN10.
13920         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
13921         of __ieee754_expf.
13922         * math/e_exp10l.c: Include <float.h>.
13923         (__ieee754_exp10l): Handle underflow here rather than multiplying
13924         large negative argument by M_LN10l.
13925         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
13926         spurious overflow exception on underflow.
13928 2012-04-29  Marek Polacek  <polacek@redhat.com>
13930         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
13931         (__fortify_function): New macro.
13932         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
13933         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
13934         __extern_always_inline.
13935         * libio/bits/stdio2.h: Likewise.
13936         * libio/bits/stdio.h: Likewise.
13937         * string/string.h: Likewise.
13938         * string/bits/string3.h: Likewise.
13939         * include/stdio.h: Likewise.
13940         * stdlib/bits/stdlib.h: Likewise.
13941         * stdlib/stdlib.h: Likewise.
13942         * rt/bits/mqueue2.h: Likewise.
13943         * rt/mqueue.h: Likewise.
13944         * posix/bits/unistd.h: Likewise.
13945         * posix/unistd.h: Likewise.
13946         * io/bits/poll2.h: Likewise.
13947         * io/bits/fcntl2.h: Likewise.
13948         * io/fcntl.h: Likewise.
13949         * io/sys/poll.h: Likewise.
13950         * misc/bits/syslog.h: Likewise.
13951         * misc/bits/syslog-ldbl.h: Likewise.
13952         * misc/sys/syslog.h: Likewise.
13953         * socket/bits/socket2.h: Likewise.
13954         * socket/sys/socket.h: Likewise.
13955         * debug/tst-chk1.c: Likewise.
13956         * wcsmbs/bits/wchar2.h: Likewise.
13957         * wcsmbs/bits/wchar-ldbl.h: Likewise.
13958         * wcsmbs/wchar.h: Likewise.
13960 2012-04-29  Andreas Jaeger  <aj@suse.de>
13962         * Makerules (tests): Remove enable-check-abi protection.
13963         (check-abi-warn): Remove.
13964         (check-abi-%): Remove check-abi-warn usage.
13966         * configure.in: Remove check-abi configure option.
13967         * configure: Regenerated.
13968         * config.make.in (enable-check-abi): Remove.
13970 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
13972         [BZ #14033]
13973         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
13974         double functions to double *_finite functions.
13976         [BZ #13941]
13977         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
13978         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
13979         LDBL_MIN_EXP.
13980         * stdio-common/Makefile (tests): Add tst-sprintf3.
13981         * stdio-common/tst-sprintf3.c: New file.
13983         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
13984         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
13986 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
13988         * conform/conformtest.pl: Remove duplicate typed-constant
13989         handling.
13991 2012-04-28  David S. Miller  <davem@davemloft.net>
13993         * Makerules (%.abilist): Add vpath on sysdep_dirs.
13994         (check-abi-%): Remove AWK script prerequisite and explicit
13995         abilist directory.
13996         (check-abi): Rewrite to just diff the symlist with the abilist.
13997         (config-tls, config-abi-config): Delete, no longer used.
13998         (update-abi-%): Remove AWK script and explicit abilist directory.
13999         (update-abi): Rewrite to simply compare and conditionally copy the
14000         symlist and the sysdep abilist file.  Remove update-abi-config
14001         checks.
14002         * abilist/ld.abilist: Remove.
14003         * abilist/libBrokenLocale.abilist: Remove.
14004         * abilist/libanl.abilist: Remove.
14005         * abilist/libcrypt.abilist: Remove.
14006         * abilist/libdl.abilist: Remove.
14007         * abilist/librt.abilist: Remove.
14008         * abilist/libthread_db.abilist: Remove.
14009         * abilist/libutil.abilist: Remove.
14010         * scripts/extract-abilist.awk: Remove.
14011         * scripts/merge-abilist.awk: Remove.
14012         * sysdeps/generic/libcidn.abilist: New file.
14013         * sysdeps/generic/libnss_compat.abilist: New file.
14014         * sysdeps/generic/libnss_db.abilist: New file.
14015         * sysdeps/generic/libnss_dns.abilist: New file.
14016         * sysdeps/generic/libnss_files.abilist: New file.
14017         * sysdeps/generic/libnss_hesiod.abilist: New file.
14018         * sysdeps/generic/libnss_nis.abilist: New file.
14019         * sysdeps/generic/libnss_nisplus.abilist: New file.
14020         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
14021         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
14022         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
14023         file.
14024         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
14025         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
14026         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
14027         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
14028         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
14029         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
14030         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
14031         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
14032         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
14033         file.
14034         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
14035         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
14036         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
14037         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
14038         file.
14039         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
14040         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
14041         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
14042         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
14043         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
14044         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
14045         file.
14046         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
14047         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
14048         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
14049         file.
14050         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
14051         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
14052         New file.
14053         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
14054         New file.
14055         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
14056         New file.
14057         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
14058         New file.
14059         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
14060         New file.
14061         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
14062         New file.
14063         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
14064         New file.
14065         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
14066         New file.
14067         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
14068         New file.
14069         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
14070         New file.
14071         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
14072         New file.
14073         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
14074         New file.
14075         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
14076         New file.
14077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
14078         file.
14079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
14080         New file.
14081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
14082         New file.
14083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
14084         file.
14085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
14086         New file.
14087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
14088         New file.
14089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
14090         file.
14091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
14092         New file.
14093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14094         New file.
14095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
14096         New file.
14097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
14098         New file.
14099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
14100         New file.
14101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
14102         New file.
14103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
14104         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
14105         file.
14106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
14107         New file.
14108         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
14109         file.
14110         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
14111         file.
14112         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
14113         file.
14114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
14115         file.
14116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
14117         file.
14118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14119         New file.
14120         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
14121         file.
14122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
14123         file.
14124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
14125         New file.
14126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
14127         file.
14128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
14129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
14130         file.
14131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
14132         New file.
14133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
14134         file.
14135         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
14136         file.
14137         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
14138         file.
14139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
14140         file.
14141         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
14142         file.
14143         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14144         New file.
14145         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
14146         file.
14147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
14148         file.
14149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
14150         New file.
14151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
14152         file.
14153         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
14154         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
14155         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
14156         file.
14157         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
14158         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
14159         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
14160         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
14161         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
14162         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
14163         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
14164         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
14165         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
14166         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
14167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
14168         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
14169         file.
14170         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
14171         New file.
14172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
14173         file.
14174         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
14175         file.
14176         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
14177         file.
14178         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
14179         file.
14180         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
14181         file.
14182         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14183         New file.
14184         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
14185         New file.
14186         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
14187         file.
14188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
14189         New file.
14190         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
14191         file.
14192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
14193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
14194         file.
14195         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
14196         New file.
14197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
14198         file.
14199         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
14200         file.
14201         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
14202         file.
14203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
14204         file.
14205         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
14206         file.
14207         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14208         New file.
14209         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
14210         New file.
14211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
14212         file.
14213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
14214         New file.
14215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
14216         file.
14218 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14220         * conform/conformtest.pl: Fix typo in handling typed-constant from
14221         allow-header.
14223 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14225         * README: Cut down references to pre-2.6 Linux kernels and
14226         Linuxthreads.  Update lists of configurations in libc and ports
14227         and sort alphabetically.  Say "or newer" with Linux kernel version
14228         requirements.
14230         * config.h.in [IS_IN_build]: Allow compiling without optimization.
14232 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14234         [BZ #887]
14235         * math/libm-test.inc (logb_test_downward): New test to expose
14236         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
14237         rounding mode.
14239 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14241         [BZ #14027]
14242         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
14243         to be done.
14244         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
14245         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
14247 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
14249         * sysdeps/unix/i386/brk.S: Remove file.
14250         * sysdeps/unix/i386/dl-brk.S: Likewise.
14251         * sysdeps/unix/i386/pipe.S: Likewise.
14252         * sysdeps/unix/i386/sigreturn.S: Likewise.
14253         * sysdeps/unix/i386/syscall.S: Likewise.
14254         * sysdeps/unix/i386/vfork.S: Likewise.
14255         * sysdeps/unix/i386/wait.S: Likewise.
14257         * sysdeps/unix/common/tcsendbrk.c: Move to ...
14258         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
14260         * configure.in (arm*-none*): Do not allow without
14261         --enable-hacker-mode.
14262         (netbsd*): Remove case setting base_os.
14263         (386bsd*): Likewise.
14264         (freebsd*): Likewise.
14265         (bsdi*): Likewise.
14266         (osf*): Likewise.
14267         (sunos*): Likewise.
14268         (ultrix*): Likewise.
14269         (newsos*): Likewise.
14270         (dynix*): Likewise.
14271         (*bsd*): Likewise.
14272         (sysv*): Likewise.
14273         (isc*): Likewise.
14274         (esix*): Likewise.
14275         (sco*): Likewise.
14276         (minix*): Likewise.
14277         (irix4*): Likewise.
14278         (irix6*): Likewise.
14279         (solaris[2-9]*): Likewise.
14280         (none): Likewise.
14281         * configure: Regenerated.
14283 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14285         [BZ #11521]
14286         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
14287         overflow or cancellation in calculating denominator.
14288         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
14289         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
14290         down expression to avoid unexpected rounding in newer GCCs.
14291         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
14293 2012-04-26  David S. Miller  <davem@davemloft.net>
14295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
14296         long-double compat symbols.
14297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
14299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
14300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
14301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
14302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
14303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
14304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
14305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
14306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
14307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
14308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
14309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14311 2012-04-25  David S. Miller  <davem@davemloft.net>
14313         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
14314         HWCAP_* values only after the memory barriers have been defined.
14315         (atomic_full_barrier): Define.
14316         (atomic_read_barrier): Define.
14317         (atomic_write_barrier): Define.
14319 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14321         * shlib-versions: Add libgcc_s version information.
14322         * sysdeps/generic/libgcc_s.h: Remove.
14323         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
14324         libgcc_s.h.
14325         * sysdeps/gnu/unwind-resume.c: Likewise.
14326         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
14328 2012-04-25  David S. Miller  <davem@davemloft.net>
14330         * sysdeps/unix/sparc/brk.S: Delete.
14331         * sysdeps/unix/sparc/dl-brk.S: Delete.
14332         * sysdeps/unix/sparc/pipe.S: Delete.
14333         * sysdeps/unix/sparc/sysdep.S: Delete.
14334         * sysdeps/unix/sparc/sysdep.h: Delete.
14335         * sysdeps/unix/sparc/vfork.S: Delete.
14336         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
14337         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
14338         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
14339         ret_ERRVAL, r0, r1, MOVE): Define.
14340         (JUMPTARGET): Remove.
14341         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
14342         sysdeps/unix/sparc/sysdep.h
14343         (ENTRY, END): Remove.
14344         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14346 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
14348         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
14349         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
14350         -DIS_IN_build.
14352         * timezone/README: Update upstream location and email address for
14353         tzcode and tzdata.
14354         * timezone/zdump.c: Update from tzcode 2012b.
14355         * timezone/zic.c: Likewise.
14357         * configure.in (libc_cv_as_needed): Remove test.
14358         * configure: Regenerated.
14359         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
14360         conditional definition.
14361         [$(have-as-needed) != yes] (no-as-needed): Likewise.
14362         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
14363         * config.make.in (have-as-needed): Remove variable.
14365 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14366             Paul Pluzhnikov  <ppluzhnikov@google.com>
14368         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
14369         strings correctly.
14371 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
14373         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
14374         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
14375         * sysdeps/sh/strlen.S: Likewise.
14377 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14379         * sysdeps/unix/fork.S: Remove file.
14380         * sysdeps/unix/i386/fork.S: Likewise.
14381         * sysdeps/unix/sparc/fork.S: Likewise.
14383         * sysdeps/unix/system.c: Remove file.
14384         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
14386         * sysdeps/unix/getegid.S: Remove file.
14387         * sysdeps/unix/geteuid.S: Likewise.
14389 2012-04-24  Roland McGrath  <roland@hack.frob.com>
14391         * scripts/check-localplt.awk: New file.
14392         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
14393         of diff.
14394         * scripts/data/localplt-generic.data: Add a comment.
14396         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
14397         NODE when __dir_mkfile failed.
14398         * sysdeps/mach/hurd/symlinkat.c: Likewise.
14399         Reported by Ludovic Courtès <ludo@gnu.org>.
14401 2012-04-24  Andreas Jaeger  <aj@suse.de>
14403         * Makerules (common-clean): Also remove gen-as-const-headers
14404         files.
14406 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14408         * Makerules (native-compile): Do not change working directory for
14409         build.  Use $(OUTPUT_OPTION) in command.
14410         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
14412 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14414         [BZ #13886]
14415         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
14416         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
14417         * math/libm-test.inc (floor_test): Add more tests.
14418         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
14420 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14422         * sysdeps/unix/getdents.c: Remove file.
14423         * sysdeps/unix/sysv/getdents.c: Likewise.
14424         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
14426         * sysdeps/unix/syscalls.list (madvise): Add syscall from
14427         sysdeps/unix/mman/syscalls.list.
14428         (mmap): Likewise.
14429         (mprotect): Likewise.
14430         (msync): Likewise.
14431         (munmap): Likewise.
14432         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
14433         * sysdeps/unix/mman/syscalls.list: Remove.
14434         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
14436         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
14437         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
14438         * configure: Regenerated.
14439         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
14440         $(libgcc_s_suffix).
14441         * config.make.in (libgcc_s_suffix): Remove variable.
14443 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
14445         * sysdeps/unix/sysv/gethostname.c: Move to ...
14446         * sysdeps/posix/gethostname.c: ... here.
14448         * sysdeps/unix/execve.S: Remove file.
14450         * sysdeps/unix/_exit.S: Remove file.
14452 2012-04-23  Andreas Jaeger  <aj@suse.de>
14454         [BZ #13739]
14455         * manual/Makefile: Remove make dist support, there's no
14456         need for a stand-alone documentation tar ball.
14457         (TEXI2DVI): Define always, it's not in Makeconfig.
14458         (dist): Removed.
14459         (tar-it): Removed.
14460         (edition): Removed.
14461         (glibc-doc-$(edition).tar): Removed
14462         (%.Z): Removed.
14463         (%.gz): Removed.
14464         (%.uu): Removed.
14465         (ETAGS): Remove, it's in Makeconfig.
14466         (move-if-change): Remove, it's in Makeconfig.
14468 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
14470         [BZ #13970]
14471         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
14472         (strtod, strtof, strtold, strtol, strtoul, strtoq)
14473         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
14474         (strtod_l, strtof_l, strtold_l): Remove __wur.
14475         It is not necessarily an error to ignore strtol's return value.
14476         One can reliably look at the stored endptr to decide whether
14477         the number had valid syntax.
14479 2012-04-21  Andreas Jaeger  <aj@suse.de>
14481         [BZ #13739]
14482         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
14484 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
14486         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
14487         * sysdeps/unix/sysv/Versions: Remove file.
14489 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14491         [BZ #13927]
14492         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14494 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
14496         [BZ #7064]
14497         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
14498         version from __vm86.
14500 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
14502         * sysdeps/unix/common/lxstat.c: Remove file.
14503         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
14505         * sysdeps/unix/sysv/Makefile: Remove file.
14507         * sysdeps/unix/sysv/direct.h: Remove file.
14509         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
14510         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
14511         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
14512         * sysdeps/unix/sysv/bits/signum.h: Likewise.
14513         * sysdeps/unix/sysv/bits/stat.h: Likewise.
14514         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
14515         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
14517         * sysdeps/unix/sysv/setrlimit.c: Remove file.
14519         * sysdeps/unix/xmknod.c: Remove file.
14520         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
14522         * sysdeps/unix/sysv/settimeofday.c: Remove file.
14524         * sysdeps/unix/sysv/i386/time.S: Remove file.
14526         * sysdeps/unix/fxstat.c: Remove file.
14527         * sysdeps/unix/xstat.c: Likewise.
14528         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
14530         * sysdeps/unix/sysv/sigaction.c: Remove file.
14532         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
14533         (sysdep_headers): Remove variable.
14534         [termio.h not in sysdep_headers] (generated): Likewise.
14535         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
14536         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
14537         * sysdeps/unix/sysv/tcdrain.c: Likewise.
14538         * sysdeps/unix/sysv/tcflow.c: Likewise.
14539         * sysdeps/unix/sysv/tcflush.c: Likewise.
14540         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
14541         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
14542         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
14543         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
14544         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
14546         * sysdeps/unix/siglist.c: Remove file.
14548         * sysdeps/unix/getppid.S: Remove file.
14550         * sysdeps/unix/mkdir.c: Remove file.
14551         * sysdeps/unix/rmdir.c: Likewise.
14553 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
14555         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
14556         ERR_MAX value.
14557         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
14558         errlist-compat value.
14560 2012-04-18  David S. Miller  <davem@davemloft.net>
14562         * sysdeps/generic/memcopy.h (reg_char): Delete.
14563         * debug/strcat_chk.c: Use char, not reg_char.
14564         * debug/strcpy_chk.c: Likewise.
14565         * debug/strncat_chk.c: Likewise.
14566         * debug/strncpy_chk.c: Likewise.
14567         * string/memchr.c: Likewise.
14568         * string/memrchr.c: Likewise.
14569         * string/rawmemchr.c: Likewise.
14570         * string/strcat.c: Likewise.
14571         * string/strchr.c: Likewise.
14572         * string/strchrnul.c: Likewise.
14573         * string/strcmp.c: Likewise.
14574         * string/strcpy.c: Likewise.
14575         * string/strncat.c: Likewise.
14576         * string/strncmp.c: Likewise.
14577         * string/strncpy.c: Likewise.
14579 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14581         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
14582         __builtin_memcopy is called when src and dest ranges are known to not
14583         overlap.
14585 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14587         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
14588         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
14589         fwd_align_merge macro call.
14590         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
14591         bwd_align_merge macro call.
14592         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14594 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14596         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
14597         bwd_align_merge macros.
14598         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
14599         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
14600         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14602 2012-04-18  David S. Miller  <davem@davemloft.net>
14604         * sysdeps/sparc/sparc64/memcopy.h: Delete.
14606 2012-04-18  Andreas Jaeger  <aj@suse.de>
14608         [BZ# 6794]
14609         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
14610         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
14611         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14613         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
14614         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
14615         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14617         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
14618         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
14619         Adjust for changed ldbl-128 files.
14621         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
14622         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
14623         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14625 2012-04-17  David S. Miller  <davem@davemloft.net>
14627         * sysdeps/sparc/sparc32/memcopy.h: Delete.
14629 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
14631         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
14632         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
14633         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
14634         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
14635         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
14636         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
14638 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14640         [BZ #6794]
14641         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
14642         * math/libm-test.inc: Add ilogb errno and exception tests.
14643         * math/w_ilogb.c: New file: ilogb wrapper.
14644         * math/w_ilogbf.c: New file: ilogbf wrapper.
14645         * math/w_ilogbl.c: New file: ilogbl wrapper.
14646         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
14647         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
14648         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
14649         exception being thrown with 0.0 as argument.
14650         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
14651         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
14652         exception being thrown with 0.0 as argument.
14653         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
14654         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
14655         exception being thrown with 0.0 as argument.
14656         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
14657         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
14658         exception being thrown with 0.0 as argument.
14659         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
14660         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
14661         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
14662         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
14663         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
14664         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
14665         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
14666         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
14667         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
14669 2012-04-17  Petr Baudis  <pasky@ucw.cz>
14671         * include/sys/uio.h: Change __vector to __iovec to avoid clash
14672         with altivec.
14674 2012-04-16  Marek Polacek  <polacek@redhat.com>
14676         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
14678 2012-04-16  Marek Polacek  <polacek@redhat.com>
14680         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
14681         operands of fdivp instruction.
14683 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
14685         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
14686         * elf/tst-auditmod3b.c: Likewise.
14687         * elf/tst-auditmod4b.c: Likewise.
14688         * elf/tst-auditmod5b.c: Likewise.
14689         * elf/tst-auditmod6b.c: Likewise.
14690         * elf/tst-auditmod6c.c: Likewise.
14691         * elf/tst-auditmod7b.c: Likewise.
14692         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
14693         * sysdeps/x86_64/preconfigure.in: Likewise.
14694         * sysdeps/x86_64/preconfigure: Regenerated.
14696 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
14698         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
14699         __ILP32__.
14701 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
14703         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14704         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
14706 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
14708         [BZ #13973]
14709         * locale/iso-639.def: Fix gl language name. Spotted by
14710         Yaron Shahrabani.
14712 2012-04-12  Roland McGrath  <roland@hack.frob.com>
14714         [BZ #2074]
14715         * libio/libio.h (__io_write_fn): Update comment.
14717 2012-04-12  Petr Baudis  <pasky@ucw.cz>
14719         [BZ #2074]
14720         * stdio.texi (Hook Functions): The user provided writer function
14721         is not allowed to return -1.
14723 2012-04-11  David S. Miller  <davem@davemloft.net>
14725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14727 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
14729         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
14730         Add a leading slash to rtkaio.
14732 2012-04-11  Jim Meyering  <meyering@redhat.com>
14734         [BZ #11959]
14735         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
14736         It is not necessarily an error to ignore fwrite's return
14737         value.  One can reliably use ferror to test for errors after
14738         the fact.
14740 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
14742         * bits/types.h (__snseconds_t): New type.
14743         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
14745         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
14746         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14747         (__SNSECONDS_T_TYPE): Likewise.
14748         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14749         (__SNSECONDS_T_TYPE): Likewise.
14750         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14751         (__SNSECONDS_T_TYPE): Likewise.
14753 2012-04-10  Andreas Jaeger  <aj@suse.de>
14755         [BZ #2636]
14756         * manual/time.texi (Processor Time): Return type of times is
14757         elapsed real time since an arbitrary point in the past.
14758         (CPU Time): Move CLK_TCK from here...
14759         (Processor Time): ...to here.  Correct description.
14760         * manual/conf.texi (Constants for Sysconf): Correct description of
14761         _SC_CLK_TCK.
14763 2012-04-10  David S. Miller  <davem@davemloft.net>
14765         [BZ #13967]
14766         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
14767         where the is a gap between DT_REL(A) and DT_JMPREL.
14769 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
14771         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
14772         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14773         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14775 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14777         * elf/dl-support.c (_dl_inhibit_cache): New variable.
14778         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
14779         (dl_main): Handle --inhibit-cache.
14780         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
14781         _dl_inhibit_cache.
14782         * elf/dl-load.c (_dl_map_object): Use it.
14783         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
14785 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
14787         [BZ #13872]
14788         * sysdeps/i386/fpu/e_powl.S (p78): New object.
14789         (__ieee754_powl): Saturate large exponents rather than testing for
14790         overflow of y*log2(x).
14791         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14792         * math/libm-test.inc (pow_test): Do not permit spurious overflow
14793         exceptions.
14795         [BZ #11521]
14796         * math/s_ctan.c: Include <float.h>.
14797         (__ctan): Avoid internal overflow or cancellation in calculating
14798         denominator.
14799         * math/s_ctanf.c: Likewise.
14800         * math/s_ctanl.c: Likewise.
14801         * math/s_ctanh.c: Likewise.
14802         * math/s_ctanhf.c: Likewise.
14803         * math/s_ctanhl.c: Likewise.
14804         * math/libm-test.inc (ctan_test): Add more tests.
14805         (ctanh_test): Likewise.
14806         * sysdeps/i386/fpu/libm-test-ulps: Update.
14807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14809 2012-04-09  Andreas Jaeger  <aj@suse.de>
14811         [BZ #6894]
14812         * manual/filesys.texi (Directory Entries): Mention that d_namlen
14813         is an optional BSD extension.
14815         [BZ #10254]
14816         * manual/stdio.texi (Opening Streams): Document additional fopen
14817         parameters.
14819 2012-04-09  Roland McGrath  <roland@hack.frob.com>
14821         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
14822         %eax without telling the compiler.
14824 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
14826         [BZ # 13963]
14827         * manual/install.texi: Use sourceware.org.
14829 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
14831         [BZ #13873]
14832         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
14833         (__ieee754_pow): Generate overflow and underflow using huge*huge
14834         and tiny*tiny rather than just returning constant infinity or zero
14835         for large exponents.
14836         * math/libm-test.inc (pow_test): Require overflow exceptions for
14837         applicable cases of large exponents.
14839         [BZ #706]
14840         * sysdeps/i386/fpu/e_pow.S (p10): New object.
14841         (__ieee754_pow): Use iterative multiplication algorithm only for
14842         integer exponents with absolute value below 1024.  Check for odd
14843         integer exponents when using algorithm for real exponents.
14844         * math/libm-test.inc (pow_test): Add more tests.
14845         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14847 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
14849         [BZ #13705]
14850         * math/libm-test.inc (exp_test): Do not allow overflow exception
14851         on underflow test.
14853 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
14855         [BZ #13705]
14856         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
14857         instead of __kernel_standard_f.
14859 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
14861         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
14862         * sysdeps/x86_64/memset_chk.S: Likewise.
14864 2012-04-08  Andreas Jaeger  <aj@suse.de>
14866         [BZ #10153]
14867         * manual/startup.texi (Environment Access): Describe return value
14868         for putenv and setenv.
14870         [BZ #6895]
14871         * manual/filesys.texi (Directory Entries): Add description for
14872         DT_LNK.
14874         [BZ #6890]
14875         * manual/filesys.texi (Directory Entries): Clarify that it's file
14876         system not operating system in the description of DT_UNKNOWN.
14878         [BZ #6578]
14879         * manual/syslog.texi (closelog): Fix reference, it's openlog.
14881 2012-04-08  Stephen Compall  <s11@member.fsf.org>
14883         [BZ #6649]
14884         * manual/llio.texi (Opening and Closing Files): Add cross
14885         reference to explain mode argument.
14887 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
14889         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
14890         * sysdeps/x86_64/memset_chk.S: Likewise.
14892 2012-04-07  David S. Miller  <davem@davemloft.net>
14894         * elf/elf.h (R_SPARC_WDISP10): Define.
14895         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
14896         R_SPARC_SIZE32.
14897         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
14898         R_SPARC_SIZE64 and R_SPARC_H34.
14900 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
14902         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
14903         conditions and remove no longer applicable assertion.
14905 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14907         * bits/byteswap.h: Include <features.h>.
14908         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14909         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14911 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14913         * bits/byteswap.h (__bswap_16): Removed.
14914         Include <bits/byteswap-16.h> to get __bswap_16.
14915         * sysdeps/i386/bits/byteswap.h: Likewise.
14916         * sysdeps/s390/bits/byteswap.h: Likewise.
14917         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14918         * bits/byteswap-16.h: New file.
14919         * sysdeps/i386/bits/byteswap-16.h: Likewise.
14920         * sysdeps/s390/bits/byteswap-16.h: Likewise.
14921         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
14922         * string/Makefile (headers): Add bits/byteswap-16.h.
14924 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14926         [BZ #13895]
14927         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
14928         extra indirection.
14929         * nss/Makefile (tests-static, tests): Add tst-nss-static.
14930         * nss/tst-nss-static.c: New.
14932 2012-04-06  Robert Millan  <rmh@gnu.org>
14934         [BZ #6486]
14935         * manual/llio.texi (File Position Primitive): lseek
14936         refers to WHENCE when it really means OFFSET.
14938 2012-04-06  Andreas Jaeger  <aj@suse.de>
14940         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
14941         strncmp declarations.
14943         * abilist/libc.abilist: Add __poll and __ppoll.
14945 2012-04-05  David S. Miller  <davem@davemloft.net>
14947         * scripts/check-local-headers.sh: Accept a host triplet in the
14948         path matched by the exclude regexp.
14950         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
14951         definition.
14952         * sysdeps/powerpc/powerpc32/dl-machine.h
14953         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
14954         * sysdeps/s390/s390-32/dl-machine.h
14955         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14956         * sysdeps/sparc/sparc32/dl-machine.h
14957         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14958         * sysdeps/sparc/sparc64/dl-machine.h
14959         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14961         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
14962         lazy binding.
14963         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
14964         undefined symbol errors.
14966         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
14967         DT_NEEDED entries.
14969 2012-04-05  Michael Matz  <matz@suse.de>
14971         [BZ #13592]
14972         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
14974 2012-04-05  Andreas Jaeger  <aj@suse.de>
14976         [BZ #13908]
14977         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
14978         comment.
14980 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14982         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
14983         which ROUND is no valid rounding mode.
14985 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14987         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
14988         read again.
14989         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
14991 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14993         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
14994         an exception using FPU order intentionally.
14996 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14998         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
14999         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
15000         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
15001         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
15003 2012-04-05  Simon Josefsson  <simon@josefsson.org>
15005         [BZ #12340]
15006         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
15007         EINVAL when BUFLEN is too smal.
15009 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
15011         [BZ #13553]
15012         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
15013         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
15015 2012-04-03  Andreas Jaeger  <aj@suse.de>
15017         [BZ #13938]
15018         * manual/setjmp.texi (System V contexts): Fix sentence.
15020         [BZ #13926]
15021         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
15022         New macro for this case.
15023         [!__GNUC__] (__bswap_64): New inline function for this case.
15024         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15025         * bits/byteswap.h: Likewise.
15026         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
15027         ull, guard with __GLIBC_HAVE_LONG_LONG.
15029         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
15030         __GLIBC_HAVE_LONG_LONG.
15032         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
15033         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
15035 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15037         [BZ #13691]
15038         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
15039         inptr and inend, rather than using last_ch.
15041 2012-04-02  David S. Miller  <davem@davemloft.net>
15043         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
15044         * stdio-common/printf-parse.h (read_int): Change return type to
15045         'int', return -1 on INT_MAX overflow.
15046         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
15047         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
15048         overflows INT_MAX.  Check for overflow of in-format-string precision
15049         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
15050         SIZE_MAX not INT_MAX for integer overflow test.
15051         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
15052         skip the construct in the format string but do not record anything.
15053         * stdio-common/bug22.c: Adjust to test both width/prevision
15054         INT_MAX overflow as well as total length INT_MAX overflow.  Check
15055         explicitly for proper errno values.
15057 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
15059         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
15060         CHAR_MAX.
15061         * string/test-strcmp.c [! WIDE]: Likewise.
15062         * time/tst-mktime2.c: Likewise for INT_MAX.
15063         * string/test-string.h: #include <sys/param.h> for MIN.
15065         * csu/init-first.c (__libc_init_first): Call __ctype_init.
15066         * sysdeps/i386/init-first.c (init): Likewise.
15067         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
15068         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
15069         * sysdeps/sh/init-first.c (init): Likewise.
15071 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
15073         * po/ru.po: Update from translation team.
15074         * po/vi.po: Likewise.
15076 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15078         * resolv/nss_dns/dns-host.c: Merge copyright years.
15080 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15082         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15083         Optimize memcpy with prefetch if
15084         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
15085         src, dst pointers have unequal 16 byte alignments.
15087 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15089         [BZ #13928]
15090         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
15091         from a CNAME entry and return the minimum ttl for the query.
15092         (gaih_getanswer_slice): Likewise.
15094 2012-03-30  Jeff Law  <law@redhat.com>
15096         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
15097         due to long keys.
15098         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
15099         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
15101         * resolv/nss_dns/dns-host.c: Update copyright year.
15103 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
15105         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
15106         requests to save a system call.  Fix check that all bytes are sent.
15108         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
15109         comments for sendmmsg.
15111 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15113         [BZ #13691]
15114         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
15115         with only 1 character between 0x0041 and 0x01b0.
15116         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
15117         * wcsmbs/tst-mbsnrtowcs.c: New file.
15119 2012-03-29  David S. Miller  <davem@davemloft.net>
15121         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
15122         small copies by hand.
15124 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15126         [BZ #13761]
15127         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
15128         _nss_compat_initgroups_dyn): Fall back to malloc/free
15129         for large group memberships.
15131 2012-03-28  David S. Miller  <davem@davemloft.net>
15133         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
15134         that branches into memcpy.
15135         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15136         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
15137         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
15138         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
15139         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
15140         bits.
15141         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
15142         implementation too.
15143         * sysdeps/sparc/mempcpy.S: New file.
15145         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
15146         the IFUNC routine in the libc case.
15147         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
15149         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
15150         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
15151         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
15152         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
15153         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
15154         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
15155         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
15156         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
15158         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
15159         loop to 256 bytes instead of 64 bytes and fix test signedness.
15161         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
15162         * sysdeps/sparc/sparc32/Makefile: rather than here...
15163         * sysdeps/sparc/sparc64/Makefile: and here.
15165 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
15167         * malloc/mallocbug.c: Avoid warnings about unused variables.
15169 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
15171         [BZ #13760]
15172         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
15173         in the right place. Discard and retry query if response is
15174         larger than input buffer size.
15176 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
15178         [BZ #369]
15179         [BZ #2678]
15180         [BZ #3866]
15181         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
15182         x for large integer exponent.
15183         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
15184         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
15185         sign of result as needed afterwards.
15186         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
15187         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
15188         result for underflowing pow the same as for overflow.
15189         (__kernel_standard_l): Handle powl overflow and underflow here
15190         rather than calling __kernel_standard.
15191         * math/libm-test.inc (pow_test): Add more tests.
15193         [BZ #3868]
15194         [BZ #13879]
15195         [BZ #13910]
15196         [BZ #13911]
15197         [BZ #13912]
15198         [BZ #13913]
15199         [BZ #13915]
15200         [BZ #13916]
15201         [BZ #13917]
15202         [BZ #13918]
15203         [BZ #13919]
15204         [BZ #13920]
15205         [BZ #13921]
15206         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
15207         * sysdeps/ieee754/k_standard.c: Include <float.h>.
15208         (__kernel_standard_l): New function.
15209         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
15210         __kernel_standard.
15211         * math/w_acosl.c (__acosl): Likewise.
15212         * math/w_asinl.c (__asinl): Likewise.
15213         * math/w_atan2l.c (__atan2l): Likewise.
15214         * math/w_atanhl.c (__atanhl): Likewise.
15215         * math/w_coshl.c (__coshl): Likewise.
15216         * math/w_exp10l.c (__exp10l): Likewise.
15217         * math/w_exp2l.c (__exp2l): Likewise.
15218         * math/w_fmodl.c (__fmodl): Likewise.
15219         * math/w_hypotl.c (__hypotl): Likewise.
15220         * math/w_j0l.c (__j0l, __y0l): Likewise.
15221         * math/w_j1l.c (__j1l, __y1l): Likewise.
15222         * math/w_jnl.c (__jnl, __ynl): Likewise.
15223         * math/w_lgammal.c (__lgammal): Likewise.
15224         * math/w_log10l.c (__log10l): Likewise.
15225         * math/w_log2l.c (__log2l): Likewise.
15226         * math/w_logl.c (__logl): Likewise.
15227         * math/w_powl.c (__powl): Likewise.
15228         * math/w_remainderl.c (__remainderl): Likewise.
15229         * math/w_scalbl.c (sysv_scalbl): Likewise.
15230         * math/w_sinhl.c (__sinhl): Likewise.
15231         * math/w_sqrtl.c (__sqrtl): Likewise.
15232         * math/w_tgammal.c (__tgammal): Likewise.
15233         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
15234         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
15235         * math/libm-test.inc (acos_test): Add more tests.
15236         (acosh_test): Likewise.
15237         (asin_test): Likewise.
15238         (atanh_test): Likewise.
15239         (exp_test): Likewise.
15240         (exp10_test): Likewise.
15241         (exp2_test): Likewise.
15242         (expm1_test): Likewise.
15243         (lgamma_test): Likewise.
15244         (log_test): Likewise.
15245         (log10_test): Likewise.
15246         (log1p_test): Likewise.
15247         (log2_test): Likewise.
15248         (pow_test): Do not allow some spurious overflow exceptions.
15249         (sqrt_test): Add more tests.
15250         (tgamma_test): Likewise.
15251         (y0_test): Likewise.
15252         (y1_test): Likewise.
15253         (yn_test): Likewise.
15255 2012-03-27  Anton Blanchard  <anton@samba.org>
15257         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
15258         MAP_HUGETLB.
15259         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15260         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15261         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15263 2012-03-27  David S. Miller  <davem@davemloft.net>
15265         * conform/Makefile: Run run-conformtest.sh using $(BASH).
15267         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
15268         have-as-vis3 check.
15270 2012-03-27  Andreas Jaeger  <aj@suse.de>
15272         * sysdeps/x86_64/elf/configure.in: Moved to ...
15273         * sysdeps/x86_64/configure.in: ... here.
15274         * sysdeps/x86_64/elf/start.S: Moved to ...
15275         * sysdeps/x86_64/start.S: ... here.
15276         * sysdeps/x86_64/elf/configure: Delete.
15278         * sysdeps/x86_64/configure.in: Merge contents from
15279         sysdeps/i386/configure.in (without i686 check).
15281         * sysdeps/i386/elf/Versions: Merge into ...
15282         * sysdeps/i386/Versions: ... this.
15283         * sysdeps/i386/elf/Versions: Delete file.
15284         * sysdeps/i386/elf/start.S: Moved to ...
15285         * sysdeps/i386/start.S: ...here.
15286         * sysdeps/i386/elf/configure.in: Merge into...
15287         * sysdeps/i386/configure.in: ...here.
15288         * sysdeps/i386/elf/configure.in: Delete file.
15289         * sysdeps/i386/elf/configure: Delete file.
15291         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
15292         * debug/backtracesyms.c: ... here.
15293         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
15294         * debug/backtracesymsfd.c: ... here.
15295         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
15296         * sysdeps/generic/ifunc-sel.h: ... here.
15298         * sysdeps/unix/i386/start.c: Delete file.
15299         * sysdeps/unix/sparc/start.c: Delete file.
15300         * sysdeps/unix/start.c: Delete file.
15302         * sysdeps/sh/elf/configure.in: Moved to ...
15303         * sysdeps/sh/configure.in: ... here.
15304         * sysdeps/sh/elf/start.S: Moved to ...
15305         * sysdeps/sh/start.S: ... here.
15306         * sysdeps/sh/elf/configure: Delete file.
15308         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
15309         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
15310         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
15311         * sysdeps/powerpc/powerpc64/entry.h: ... here.
15312         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
15313         * sysdeps/powerpc/powerpc64/start.S: here.
15314         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
15315         * sysdeps/powerpc/powerpc64/Makefile: ... this.
15316         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
15317         * sysdeps/powerpc/powerpc64/configure.in: ... this.
15318         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
15320         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
15321         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
15322         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
15323         * sysdeps/powerpc/powerpc32/start.S: ... here.
15324         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
15325         * sysdeps/powerpc/powerpc32/configure.in: ... this.
15326         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
15328         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
15329         * sysdeps/powerpc/ifunc-sel.h: ... here.
15330         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
15331         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
15333         * sysdeps/sparc/elf/configure.in: Moved to ...
15334         * sysdeps/sparc/configure.in: ... here.
15335         * sysdeps/sparc/elf/configure: Delete file.
15336         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
15337         * sysdeps/sparc/sparc32/start.S: ... here.
15338         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
15339         * sysdeps/sparc/sparc64/start.S: ... here.
15340         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
15341         * sysdeps/sparc/sparc32/Makefile: ... this.
15342         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
15343         * sysdeps/sparc/sparc64/Makefile: ... this.
15345         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
15346         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
15347         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
15348         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
15349         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
15350         * sysdeps/s390/s390-32/setjmp.S: ... here.
15351         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
15352         * sysdeps/s390/s390-32/configure.in: ... here.
15353         * sysdeps/s390/s390-32/elf/configure: Delete file.
15354         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
15355         * sysdeps/s390/s390-32/start.S: ... here.
15357         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
15358         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
15359         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
15360         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
15361         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
15362         * sysdeps/s390/s390-64/setjmp.S: ... here.
15363         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
15364         * sysdeps/s390/s390-64/configure.in: ... here
15365         * sysdeps/s390/s390-64/elf/configure: Delete file.
15366         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
15367         * sysdeps/s390/s390-64/start.S: ... here.
15368         * sysdeps/s390/s390-64/elf/configure: Delete.
15370         * configure.in: Remove support for elf directories in sysdeps.
15372         * configure: Regenerated.
15373         * sysdeps/i386/configure: Regenerated.
15374         * sysdeps/powerpc/powerpc32/configure: Regenerated.
15375         * sysdeps/powerpc/powerpc64/configure: Regenerated.
15376         * sysdeps/s390/s390-32/configure: Regenerated.
15377         * sysdeps/s390/s390-64/configure: Regenerated.
15378         * sysdeps/sh/configure: Regenerated.
15379         * sysdeps/sparc/configure: Regenerated.
15380         * sysdeps/x86_64/configure: Regenerated.
15382 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
15384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15386         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
15387         denormal result into account.
15389 2012-03-25  Roland McGrath  <roland@hack.frob.com>
15391         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
15392         Reported by Allan McRae <allan@archlinux.org>.
15394 2012-03-23  Jeff Law  <law@redhat.com>
15396         * nss/getnssent.c (__nss_getent): Fix typo.
15398 2012-03-23  David S. Miller  <davem@davemloft.net>
15400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15402 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
15404         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
15405         to pad to uint64_t for each field.
15406         (dl_tls_index): Replace unsigned long with uint64_t.
15408 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
15409         Paul Pluzhnikov  <ppluzhnikov@google.com>
15411         [BZ #6528]
15412         * grp/Makefile (otherlibs): Don't set it.
15413         * inet/Makefile (otherlibs): Likewise.
15414         * login/Makefile (otherlibs): Likewise.
15415         * nscd/Makefile (otherlibs): Likewise.
15416         * posix/Makefile (otherlibs): Likewise.
15417         * pwd/Makefile (otherlibs): Likewise.
15418         * rt/Makefile (otherlibs): Likewise.
15419         * sunrpc/Makefile (otherlibs): Likewise.
15420         * nss/Makefile (otherlibs): Likewise.
15421         Add libnss_files to routines and static-only-routines.
15422         ($(objpfx)getent): Remove rule.
15423         * resolv/Makefile: Add libnss_dns and libresolv to routines and
15424         static-only-routines.
15426 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15428         [BZ #13892]
15429         * math/s_cexp.c: Include <float.h>.
15430         (__cexp): Handle exp result overflowing not necessarily
15431         overflowing both real and imaginary parts of result.
15432         * math/s_cexpf.c: Likewise.
15433         * math/s_cexpl.c: Likewise.
15434         * math/libm-test.inc (cexp_test): Add more tests.
15435         * sysdeps/i386/fpu/libm-test-ulps: Update.
15436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15438 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15440         * include/link.h (ELFW): New macro.
15441         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
15442         Replace ELF64_R_TYPE with ELFW(R_TYPE).
15444 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15446         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
15447         with uint64_t.
15449 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15451         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
15452         declaration.
15453         (struct La_x32_retval): Likewise.
15455 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15457         * sysdeps/x86_64/preconfigure.in: New file.
15458         * sysdeps/x86_64/preconfigure: New generated file.
15460 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15462         [BZ #13824]
15463         * math/e_exp2l.c: Include <float.h>.
15464         (__ieee754_exp2l): Handle overflow and underflow cases
15465         separately.  Only pass fractional part of argument to
15466         __ieee754_expl.
15467         * math/libm-test.inc (exp2_test): Add more tests.
15469         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
15470         negating x to take absolute value.
15471         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
15472         Likewise.
15473         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
15474         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
15475         Likewise.
15476         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
15477         computing low part if x was negated.
15478         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
15480 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15482         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
15483         la_x32_gnu_pltexit.
15484         (pltexit): Cast int_retval to ptrdiff_t.
15485         * elf/tst-auditmod3b.c: Likewise.
15486         * elf/tst-auditmod4b.c: Likewise.
15487         * elf/tst-auditmod5b.c: Likewise.
15488         * elf/tst-auditmod6b.c: Likewise.
15489         * elf/tst-auditmod6c.c: Likewise.
15490         * elf/tst-auditmod7b.c: Likewise.
15492         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
15493         and x32_gnu_pltexit.
15495         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
15496         __ELF_NATIVE_CLASS.
15497         (La_x32_regs): New macro.
15498         (La_x32_retval): Likewise.
15499         (la_x32_gnu_pltenter): New function prototype.
15500         (la_x32_gnu_pltexit): Likewise.
15502 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
15504         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
15505         exponent.
15507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15509         * configure.in (libc_cv_cc_nofma): Check for option to disable
15510         generation of FMA instructions.
15511         * configure: Regenerate.
15512         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
15513         * sysdeps/ieee754/dbl-64/Makefile: New file.
15514         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15515         Remove brandred-fma4.
15516         (CFLAGS-brandred-fma4.c): Remove.
15517         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
15518         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
15519         define.
15520         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
15521         define.
15523 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15525         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
15526         LLONG_MAX != LONG_MAX.
15527         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15528         (_fitoa_word): Likewise.
15529         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
15530         LLONG_MAX != LONG_MAX.
15531         * stdio-common/_itowa.h: Include <_itoa.h>.
15532         (_itowa_word): Use _ITOA_WORD_TYPE on value.
15533         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
15534         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
15535         only if not defined.
15536         (_ITOA_WORD_TYPE): Likewise.
15537         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15538         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
15540 2012-03-21  David S. Miller  <davem@davemloft.net>
15542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15544 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15546         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
15547         of x86_64 when setting libc_cv_slibdir, libdir and
15548         libc_cv_localedir.
15549         * sysdeps/unix/sysv/linux/configure: Regenerated.
15551 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15553         * manual/lang.texi (Old Varargs): Remove section.
15554         (How Variadic): Update menu.
15555         (va_start): Do not mention varargs.h.
15557 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15558             Joseph Myers  <joseph@codesourcery.com>
15560         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
15561         link test.
15562         * configure: Regenerated.
15564 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15566         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
15567         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
15568         conformtest.pl
15570 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15572         * NOTES: Remove.
15573         * Makefile (files-for-dist): Remove NOTES.
15574         (NOTES): Remove rule.
15575         * README: Don't refer to NOTES.
15576         * manual/creature.texi: Don't include macros.texi.
15577         * manual/intro.texi (creature.texi): Remove comment referring to
15578         NOTES.
15580         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
15581         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
15582         * configure: Regenerated.
15583         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
15584         LIBC_TRY_CC_OPTION.
15585         (libc_cv_as_i686): Likewise.
15586         (libc_cv_cc_avx): Likewise.
15587         (libc_cv_cc_sse2avx): Likewise.
15588         (libc_cv_cc_fma4): Likewise.
15589         (libc_cv_cc_novzeroupper): Likewise.
15590         * sysdeps/i386/configure: Regenerated.
15592         [BZ #13883]
15593         * sysdeps/i386/fpu/s_cexp.S: Remove.
15594         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
15595         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
15596         * math/libm-test.inc (cexp_test): Add more tests.
15597         * sysdeps/i386/fpu/libm-test-ulps: Update.
15598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15600 2012-03-21  Allan McRae  <allan@archlinux.org>
15602         * timezone/Makefile: Do not install iso3166.tab and zone.tab
15604 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15606         [BZ #13871]
15607         * math/w_exp2.c: Do not include <float.h>.
15608         (o_threshold, u_threshold): Remove.
15609         (__exp2): Calculate result before checking finiteness and calling
15610         __kernel_standard.
15611         * math/w_exp2f.c: Likewise.
15612         * math/w_exp2l.c: Likewise.
15613         * math/libm-test.inc (exp2_test): Require overflow exception for
15614         1e6 input.
15616         [BZ #3866]
15617         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
15618         range of signed 64-bit integers before using fistpll.  Remove
15619         checks for whether integers fit in mantissa bits.
15620         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
15621         the range of signed 32-bit integers before using fistpl.  Remove
15622         checks for whether integers fit in mantissa bits.
15623         * sysdeps/i386/fpu/e_powl.S (p64): New object.
15624         (__ieee754_powl): Test for y outside the range of signed 64-bit
15625         integers before using fistpll.  Reduce 64-bit values to 63-bit
15626         ones as needed.
15627         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
15628         divide-by-zero is raised for zero to large negative powers.
15629         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
15630         (__ieee754_powl): Test for y outside the range of signed 64-bit
15631         integers before using fistpll.  Reduce 64-bit values to 63-bit
15632         ones as needed.
15633         * math/libm-test.inc (pow_test): Add more tests.
15635 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15637         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
15638         <stdio-common/_itoa.h>.
15639         * debug/segfault.c: Likewise.
15640         * elf/dl-cache.c: Likewise.
15641         * elf/dl-minimal.c: Likewise.
15642         * elf/dl-misc.c: Likewise.
15643         * elf/dl-sysdep.c: Likewise.
15644         * elf/dl-version.c: Likewise.
15645         * elf/rtld.c: Likewise.
15646         * hurd/hurdsock.c: Likewise.
15647         * hurd/lookup-retry.c: Likewise.
15648         * malloc/malloc.c: Likewise.
15649         * malloc/mtrace.c: Likewise.
15650         * nscd/nscd_getgr_r.c: Likewise.
15651         * nscd/nscd_getpw_r.c: Likewise.
15652         * nscd/nscd_getserv_r.c: Likewise.
15653         * posix/getopt_init.c: Likewise.
15654         * posix/wordexp.c: Likewise.
15655         * stdio-common/_itoa.c: Likewise.
15656         * stdio-common/printf_fphex.c: Likewise.
15657         * stdio-common/vfprintf.c: Likewise.
15658         * string/_strerror.c: Likewise.
15659         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
15660         * sysdeps/i386/i686/hp-timing.h: Likewise.
15661         * sysdeps/mach/_strerror.c: Likewise.
15662         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
15663         * sysdeps/mach/hurd/sethostid.c: Likewise.
15664         * sysdeps/mach/hurd/xmknodat.c: Likewise.
15665         * sysdeps/mach/xpg-strerror.c: Likewise.
15666         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15667         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15668         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
15669         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
15670         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15671         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
15672         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
15673         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
15674         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
15675         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
15676         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
15677         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
15678         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
15679         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
15680         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
15681         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
15682         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
15683         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
15684         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
15685         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
15686         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
15688         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
15690         * stdio-common/_itoa.h: Moved to ...
15691         * sysdeps/generic/_itoa.h: Here.
15693         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
15695         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
15696         instead of "_itoa.h" and "_itowa.h".
15697         * stdio-common/vfprintf.: Likewise.
15699 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15701         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
15702         <bits/wordsize.h>.
15703         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
15704         (__signbit): Likwise.
15705         (llrintf): Likwise.
15706         (llrint): Likwise.
15708 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15710         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
15711         __WORDSIZE != 64.
15713 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
15715         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
15716         OVERFLOW_EXCEPTION_OK.
15717         * math/libm-test.inc ("Philosophy"): Update comment about
15718         exception testing.
15719         (OVERFLOW_EXCEPTION): Define.
15720         (OVERFLOW_EXCEPTION_OK): Likewise.
15721         (INVALID_EXCEPTION_OK): Renumber.
15722         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
15723         (IGNORE_ZERO_INF_SIGN): Likewise.
15724         (test_exceptions): Handle FE_OVERFLOW.
15725         (exp10_test): Expect overflow exceptions.
15726         (exp2_test): Likewise.
15727         (expm1_test): Likewise.
15728         (nextafter_test): Likewise.
15729         (pow_test): Likewise.
15730         (scalbn_test): Likewise.
15731         (scalbln_test): Likewise.
15733 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15735         * sysdeps/x86_64/bits/atomic.h
15736         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
15737         64bit integer.
15738         (atomic_exchange_acq): Likewise.
15739         (__arch_exchange_and_add_body): Likewise.
15740         (__arch_add_body): Likewise.
15741         (atomic_add_negative): Likewise.
15742         (atomic_add_zero): Likewise.
15744 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15746         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
15747         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
15749 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15751         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
15752         Check __x86_64__ instead of __WORDSIZE.
15754 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15756         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
15758 2012-03-19  David S. Miller  <davem@davemloft.net>
15760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15762         * sysdeps/sparc/fpu/fenv_private.h: New file.
15763         * sysdeps/sparc/fpu/math_private.h: Use it.
15764         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
15765         Remove.
15766         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
15767         (libc_feholdexcept_setroundl): Remove.
15768         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
15769         Remove.
15770         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
15771         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
15773 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15775         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
15776         int64_t instead of long int.
15777         (INSERT_WORDS64): Likwise.
15779 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15781         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
15782         _Unwind_GetCFA return to _Unwind_Ptr first.
15784 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
15786         [BZ #13629]
15787         * math/s_clog.c: Include <float.h>.
15788         (__clog): Scale large or subnormal inputs.
15789         * math/s_clogf.c: Likewise.
15790         * math/s_clogl.c: Likewise.
15791         * math/s_clog10.c: Include <float.h>.
15792         (M_LOG10_2): Define.
15793         (__clog10): Scale large or subnormal inputs.
15794         * math/s_clog10f.c: Likewise.
15795         * math/s_clog10l.c: Likewise.
15796         * math/libm-test.inc (clog_test): Add more tests.
15797         (clog10_test): Likewise.
15798         * sysdeps/i386/fpu/libm-test-ulps: Update.
15799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15801         [BZ #11451]
15802         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
15803         x and y.
15804         * math/libm-test.inc (atan2_test): Add another test.
15806         * Makerules (common-objdir-compile): Remove.
15807         * sysdeps/unix/Makefile (config-generated): Do not add
15808         $(unix-generated) to variable.
15809         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
15810         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
15811         Remove rule.
15812         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
15813         Likewise.
15814         [generic bits/local_lim.h] (before-compile): Do not append to
15815         variable.
15816         [generic bits/local_lim.h] (common-generated): Likewise.
15817         [generic sys/param.h] (before-compile): Do not append to variable.
15818         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
15819         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
15820         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
15821         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
15822         include.
15823         [generic sys/param.h] (sys/param.h-includes): Remove variable.
15824         [generic sys/param.h] (sys/param.h-includes): Remove rule.
15825         [generic sys/param.h] ($(addprefix
15826         $(common-objpfx),$(sys/param.h-includes))): Likewise.
15827         [generic sys/param.h] (common-generated): Do not append to
15828         variable.
15829         [generic sys/param.h] (sysdep_headers): Likewise.
15830         [generic bits/errno.h] (before-compile): Do not append to
15831         variable.
15832         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
15833         rule.
15834         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
15835         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
15836         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
15837         [generic bits/errno.h] (common-generated): Do not append to
15838         variable.
15839         [generic bits/ioctls.h] (before-compile): Do not append to
15840         variable.
15841         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
15842         rule.
15843         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
15844         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
15845         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
15846         rule.
15847         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
15848         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
15849         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
15850         [generic bits/ioctls.h] (common-generated): Do not append to
15851         variable.
15852         [generic sys/syscall.h] (syscall.h): Remove variable.
15853         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
15854         rule.
15855         [generic sys/syscall.h] (before-compile): Do not append to
15856         variable.
15857         [generic sys/syscall.h] (common-generated): Likewise.
15858         * sysdeps/unix/errnos-tmpl.c: Remove file.
15859         * sysdeps/unix/errnos.awk: Likewise.
15860         * sysdeps/unix/ioctls-tmpl.c: Likewise.
15861         * sysdeps/unix/ioctls.awk: Likewise.
15862         * sysdeps/unix/mk-local_lim.c: Likewise.
15863         * sysdeps/unix/snarf-ioctls: Likewise.
15865 2012-03-19  Richard Henderson  <rth@twiddle.net>
15867         * sysdeps/i386/fpu/fenv_private.h: New file.
15868         * sysdeps/i386/fpu/math_private.h: Use it.
15869         (math_opt_barrier, math_force_eval): Remove.
15870         (libc_feholdexcept_setround_53bit): Remove.
15871         (libc_feupdateenv_53bit): Remove.
15872         * sysdeps/x86_64/fpu/math_private.h: Likewise.
15873         (math_opt_barrier, math_force_eval): Remove.
15874         (libc_feholdexcept): Remove.
15875         (libc_feholdexcept_setround): Remove.
15876         (libc_fetestexcept, libc_fesetenv): Remove.
15877         (libc_feupdateenv_test): Remove.
15878         (libc_feupdateenv, libc_feholdsetround): Remove.
15879         (libc_feresetround): Remove.
15881         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
15882         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
15884         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
15885         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
15886         (libc_feupdateenv_testl): New.
15887         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
15888         (libc_feupdateenv_testf): New.
15889         (libc_feupdateenv): Use libc_feupdateenv_test.
15890         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
15891         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
15893         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
15894         (libc_feholdsetroundf, libc_feholdsetroundl): New.
15895         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
15896         (libc_feresetround_noex): New.
15897         (libc_feresetround_noexf): New.
15898         (libc_feresetround_noexl): New.
15899         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
15900         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
15901         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
15902         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
15903         SET_RESTORE_ROUND.
15904         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
15905         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
15906         (__cos): Likewise.
15907         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
15908         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
15909         SET_RESTORE_ROUND_NOEX.
15910         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
15911         SET_RESTORE_ROUND_NOEXF.
15912         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
15913         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
15914         (libc_feholdsetroundf): New.
15915         (libc_feresetround, libc_feresetroundf): New.
15917         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
15918         (libc_feholdexcept_setround_53bit): Convert from macro to function.
15919         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
15921         * sysdeps/generic/math_private.h: Include <fenv.h>.
15922         (default_libc_feholdexcept): New.
15923         (default_libc_feholdexcept_setround): New.
15924         (default_libc_fesetenv, default_libc_feupdateenv): New.
15925         (libc_feholdexcept): Only define if undefined.
15926         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
15927         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
15928         (libc_feholdexcept_setroundl): Likewise.
15929         (libc_feholdexcept_setround_53bit): Likewise.
15930         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
15931         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
15932         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
15933         (libc_feupdateenv_53bit): Likewise.
15934         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
15935         (libc_feholdexcept): Convert from macro to inline function.
15936         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
15937         (libc_fesetenv, libc_feupdateenv): Likewise.
15939         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
15940         not previously defined.
15941         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
15942         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
15943         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
15944         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
15945         * sysdeps/ieee754/flt-32/math_private.h: New file.
15946         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
15947         math_private.h below SET_FLOAT_WORD.
15948         (__isnan, __isinf_ns, __finite): Remove.
15949         (__isnanf, __isinf_nsf, __finitef): Remove.
15951 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
15953         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15955 2012-03-17  David S. Miller  <davem@davemloft.net>
15957         [BZ #6471]
15958         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
15959         for 2.16.
15961 2012-03-16  David S. Miller  <davem@davemloft.net>
15963         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
15964         warnings.
15966         [BZ #6471]
15967         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
15968         properly.
15969         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
15970         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
15971         sysdep_routines when subdir is sysvipc.
15972         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
15973         __getshmlba helper.
15975         * sysdeps/sparc/fpu/libm-test/ulps: Update.
15977 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15979         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
15980         [__LP64__].
15982 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15984         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
15985         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
15986         (__lround): Renamed to ...
15987         (__llround): This.  Replace long int with long long int.
15988         Define lround functions as aliases of llround functions.
15989         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
15991 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15993         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
15994         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
15995         adresses to uintptr_t.  Replace "long int" and "unsigned long
15996         int" with "greg_t" on va_arg.
15998 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16000         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
16001         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
16003         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
16004         Move e_machine check before EI_CLASS check.  Handle x32
16005         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
16006         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
16007         SKIP_EM_IA_64 and include
16008         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
16010         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
16011         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
16012         (add_system_dir): New macro.
16014         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
16015         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
16017 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16019         [BZ #2551]
16020         [BZ #2552]
16021         [BZ #2553]
16022         [BZ #2554]
16023         [BZ #2562]
16024         [BZ #2563]
16025         [BZ #2565]
16026         [BZ #2566]
16027         [BZ #2576]
16028         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
16029         (y0): Likewise.
16030         * math/w_j0f.c (j0f): Likewise.
16031         (y0f): Likewise.
16032         * math/w_j0l.c (__j0l): Likewise.
16033         (__y0l): Likewise.
16034         * math/w_j1.c (j1): Likewise.
16035         (y1): Likewise.
16036         * math/w_j1f.c (j1f): Likewise.
16037         (y1f): Likewise.
16038         * math/w_j1l.c (__j1l): Likewise.
16039         (__y1l): Likewise.
16040         * math/w_jn.c (jn): Likewise.
16041         (yn): Likewise.
16042         * math/w_jnf.c (jnf): Likewise.
16043         (ynf): Likewise.
16044         * math/w_jnl.c (__jnl): Likewise.
16045         (__ynl): Likewise.
16046         * math/libm-test.inc (j0_test): Add more tests.
16047         (j1_test): Likewise.
16048         (jn_test): Likewise.  Add trailing semicolon to existing test.
16049         (y0_test): Likewise.
16050         (y1_test): Likewise.
16051         * sysdeps/i386/fpu/libm-test-ulps: Update.
16052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16054         [BZ #13851]
16055         [BZ #13854]
16056         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
16057         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
16058         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
16059         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
16060         (__tanl): Set errno for infinite argument.
16061         * sysdeps/i386/fpu/mptan.c: Remove.
16062         * sysdeps/i386/fpu/s_tan.S: Likewise.
16063         * sysdeps/i386/fpu/s_tanl.S: Likewise.
16064         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
16065         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
16066         * math/libm-test.inc (tan_test): Add more tests and enable more
16067         tests for double and long double.
16068         * sysdeps/i386/fpu/libm-test-ulps: Update.
16069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16071 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
16073         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
16074         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
16076 2012-03-16  Roland McGrath  <roland@hack.frob.com>
16078         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
16079         * configure.in: Use it for both main tree and add-ons.
16080         * configure: Regenerated.
16082 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16084         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
16086 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16088         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
16089         in comment.
16091         [BZ #13851]
16092         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
16093         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
16094         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
16095         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
16096         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
16097         infinite argument.
16098         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
16099         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
16100         != 0 for prec == 2.
16101         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
16102         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
16103         * sysdeps/i386/fpu/s_cosl.S: Likewise.
16104         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
16105         * sysdeps/i386/fpu/s_sinl.S: Likewise.
16106         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
16107         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
16108         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
16109         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
16110         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
16111         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
16112         * math/libm-test.inc (cos_test): Add more tests and enable more
16113         tests for long double.
16114         (sin_test): Likewise.
16115         (sincos_test): Likewise.
16116         * sysdeps/i386/fpu/libm-test-ulps: Update.
16117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16119 2012-03-16  David S. Miller  <davem@davemloft.net>
16121         * sysdeps/sparc/fpu/math_private.h: New file.
16123 2012-03-15  David S. Miller  <davem@davemloft.net>
16125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
16126         file.
16127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
16128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
16129         file.
16130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
16131         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
16132         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
16133         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
16134         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
16135         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
16136         sysdep routines.
16137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16139         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
16140         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
16142         * sysdeps/sparc/sparc-ifunc.h: New file.
16143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
16144         sparc-ifunc.h
16145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
16146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
16147         Likewise.
16148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
16149         Likewise.
16150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
16151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
16154         Likewise.
16155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
16157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
16159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
16160         Likewise.
16161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
16162         Likewise.
16163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
16166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
16167         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
16168         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
16169         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
16170         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
16171         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
16172         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
16173         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
16174         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
16175         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
16176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
16177         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
16178         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
16179         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
16180         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
16181         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
16182         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
16183         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
16184         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
16185         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
16186         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
16188 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16190         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
16191         scaling.
16192         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16194 2012-03-15  Andreas Jaeger  <aj@suse.de>
16196         [BZ #13852]
16197         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
16198         ieee754/flt-32 implementation for sin, cos and sincos.
16199         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
16200         * sysdeps/i386/fpu/s_cosf.S: Likewise.
16201         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
16202         * sysdeps/i386/fpu/s_sinf.S: Likewise.
16203         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
16204         ieee754/flt-32 implementation for tan.
16206         * math/libm-test.inc (cos_test): Enable some large input tests for
16207         float as well
16208         (sin_test): Likewise.
16209         (sincos_test): Likewise.
16210         (tan_test): Add tests for large input.
16212         * sysdeps/i386/fpu/libm-test-ulps: Update.
16214 2012-03-15  Andreas Jaeger  <aj@suse.de>
16216         [BZ #13658]
16217         * math/libm-test.inc (cos_test): Add more test cases.
16218         (sin_test): Likewise.
16219         (sincos_test): Likewise.
16221 2012-03-15  Andreas Jaeger  <aj@suse.de>
16223         [BZ #13837]
16224         * math/libm-test.inc (cos_test): Add a test case for large input
16225         value.
16226         (sin_test): Likewise.
16227         (sincos_test): Likewise.
16229 2012-03-15  Andreas Jaeger  <aj@suse.de>,
16230         Joseph Myers  <joseph@codesourcery.com>
16232         [BZ #13658]
16233         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
16234         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
16235         * sysdeps/i386/fpu/branred.c: Likewise.
16236         * sysdeps/i386/fpu/dosincos.c: Likewise.
16237         * sysdeps/i386/fpu/mpa.c: Likewise.
16238         * sysdeps/i386/fpu/s_cos.S: Likewise.
16239         * sysdeps/i386/fpu/s_sin.S: Likewise.
16240         * sysdeps/i386/fpu/s_sincos.S: Likewise.
16241         * sysdeps/i386/fpu/sincos32.c: Likewise.
16243         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
16244         Define.
16245         (libc_feupdateenv_53bit): Define.
16246         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
16247         Define.
16248         (libc_feupdateenv_53bit): Define.
16250         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
16251         53 bit (without extend i386 double precision).
16253         * math/libm-test.inc (sincos_test): Add tests for large input.
16254         (sin): Likewise.
16255         (cos): Likewise.
16257         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
16259 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16261         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16263 2012-03-15  David S. Miller  <davem@davemloft.net>
16265         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
16266         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
16267         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
16268         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
16269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
16270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
16271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
16272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
16273         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
16274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
16275         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
16276         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
16277         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
16278         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
16279         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
16280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
16281         file.
16282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
16283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
16284         file.
16285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
16286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
16287         file.
16288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
16289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
16290         file.
16291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
16292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
16293         fmin/fmax sysdep routines.
16294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16296 2012-03-14  David S. Miller  <davem@davemloft.net>
16298         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
16299         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
16300         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
16301         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
16302         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
16303         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
16304         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
16305         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
16306         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
16307         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
16308         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
16309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
16310         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
16311         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
16312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
16313         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
16314         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
16315         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
16316         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
16317         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
16318         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
16319         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
16320         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
16321         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
16322         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
16323         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
16324         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
16325         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
16326         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
16327         routines.
16328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
16329         file.
16330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
16331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
16332         file.
16333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
16334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
16335         file.
16336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
16337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
16338         file.
16339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
16340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
16341         file.
16342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
16343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
16344         file.
16345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
16346         file.
16347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
16348         file.
16349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
16350         file.
16351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
16352         New file.
16353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
16354         file.
16355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
16356         file.
16357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
16358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
16359         file.
16360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
16361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
16362         file.
16363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
16364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
16365         file.
16366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
16367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
16368         VIS3 routines.
16370         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
16371         New file.
16373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16375         * sysdeps/sparc/configure.in: New file.
16376         * sysdeps/sparc/configure: Generate.
16377         * configure.in (libc_cv_sparc_as_vis3): Substitute.
16378         * configure: Regenerate.
16379         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
16380         * config.make.in (have-as-vis3): New.
16381         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
16382         available use -Av9d instead of -Av9a.
16383         * sysdeps/sparc/sparc64/Makefile: Likewise.
16384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
16385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
16386         New file.
16387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
16388         file.
16389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
16390         New file.
16391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
16392         file.
16393         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
16394         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
16395         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
16396         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
16397         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
16399         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
16400         fzeros/fnegs to load 0x80000000 into a float register instead of
16401         using the stack.
16402         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
16404 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
16406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16407         bits/syscall.h.
16408         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
16409         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
16410         ($(inst_includedir)/bits/syscall.h): Remove rule.
16411         ($(objpfx)bits/syscall.d): Include instead of
16412         $(objpfx)syscall-list.d.
16413         (generated): Change syscall-list.h and syscall-list.d to
16414         bits/syscall.h and bits/syscall.d.
16416 2012-03-14  Roland McGrath  <roland@hack.frob.com>
16418         [BZ #13846]
16419         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
16421 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
16423         [BZ #13841]
16424         * math/s_csqrt.c: Include <float.h>.
16425         (__csqrt): Scale large or subnormal inputs.
16426         * math/s_csqrtf.c: Likewise.
16427         * math/s_csqrtl.c: Likewise.
16428         * math/libm-test.inc (csqrt_test): Add more tests.
16429         * sysdeps/i386/fpu/libm-test-ulps: Update.
16430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16432         [BZ #13840]
16433         * math/libm-test.inc (hypot_test): Add more tests.
16435 2012-03-13  David S. Miller  <davem@davemloft.net>
16437         [BZ #13840]
16438         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
16439         double-precision for the calculation instead of scaling.
16441 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
16443         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
16444         manipulate bits before adding and subtracting TWO52[sx].
16445         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
16446         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
16447         Likewise.
16448         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
16450 2012-03-13  David S. Miller  <davem@davemloft.net>
16452         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
16453         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
16454         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
16455         rtld-global-offsets.h
16456         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16458         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
16459         large parameters.
16461         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
16463         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
16464         'err' in the ifdef scope in which it is actually used.
16466         * nss/nss_db/db-init.c: Include string.h
16468 2012-03-12  David S. Miller  <davem@davemloft.net>
16470         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16471         masking out of the most significant byte of random value used.
16472         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16473         Fix coding style in previous change.
16475         * sysdeps/unix/sysv/linux/kernel-features.h
16476         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
16477         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
16478         expression.
16479         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
16480         later.
16482 2012-03-11  David S. Miller  <davem@davemloft.net>
16484         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16485         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
16486         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
16487         for 'resultvar' otherwise things get truncated on 64-bit.
16489         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16490         Fix masking out of the most significant byte of random value used.
16492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16494 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
16496         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16498 2012-03-09  David S. Miller  <davem@davemloft.net>
16500         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
16501         variables with appropriate CPP guards.
16502         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
16503         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
16504         on resulting framesize and the management of the outregs buffer for pltexit.
16505         Preserve floating point return values across _dl_call_pltexit call.
16506         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
16507         framesize and the management of the outregs buffer for pltexit.
16508         Preserve floating point return values across _dl_call_pltexit
16509         call.
16510         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
16511         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
16512         (print_exit): Fix format string for return register value.
16514 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
16516         * sunrpc/Makefile (others): Add rpcgen.
16517         ($(objpfx)rpcgen): Remove special build rule and dependency on
16518         libc.
16519         * sunrpc/rpcgen.c: New file.
16521 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
16523         [BZ #13673]
16524         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
16525         * stdio-common/bug-vfprintf-nargs.c: Likewise.
16526         * sysdeps/i386/crti.S: Likewise.
16527         * sysdeps/i386/crtn.S: Likewise.
16528         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
16529         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
16530         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
16531         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
16532         * sysdeps/sh/crti.S: Likewise.
16533         * sysdeps/sh/crtn.S: Likewise.
16534         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16536         [BZ #13673]
16537         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
16538         with URL.
16539         * locale/programs/locfile-kw.gperf: Likewise.
16540         * locale/programs/charmap-kw.h: Regenerated.
16541         * locale/programs/locfile-kw.h: Likewise.
16543         [BZ #13673]
16544         * intl/plural.y: Replace FSF snail mail address with URL.
16545         * intl/plural.c: Regenerated.
16547 2012-03-09  Richard Henderson  <rth@twiddle.net>
16549         * include/math_private.h: Remove file.
16550         * math/math_private.h: Move file ...
16551         * sysdeps/generic/math_private.h: ... here.
16553         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
16554         * sysdeps/powerpc/fpu/math_private.h: Likewise.
16555         * sysdeps/x86_64/fpu/math_private.h: Likewise.
16557         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
16558         and <math_private.h>.
16559         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
16560         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
16561         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
16562         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
16563         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
16565         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16566         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16573         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16574         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16575         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16576         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16577         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16578         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16579         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16580         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16581         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
16584         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16585         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16586         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16587         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16588         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16589         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16590         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16591         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
16592         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16593         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
16594         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16595         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16596         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
16597         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
16598         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16599         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
16600         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
16601         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
16602         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
16603         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
16604         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
16605         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
16606         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
16607         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16608         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
16609         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
16610         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
16611         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16615         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16616         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
16617         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
16618         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
16619         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16620         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
16621         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16622         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
16623         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
16624         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16625         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16626         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16627         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
16628         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
16629         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
16630         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16631         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
16632         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16633         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
16634         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
16635         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
16636         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
16637         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
16638         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
16639         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
16640         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
16641         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
16642         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16643         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16644         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
16645         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
16646         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
16647         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16648         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16649         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16650         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16651         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16652         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16653         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16654         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16655         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16656         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16657         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16658         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16659         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16660         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16661         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16662         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16663         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16664         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16665         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16666         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16667         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16668         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16669         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16670         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16671         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16672         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16673         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
16674         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16675         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16676         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
16677         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16678         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16679         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16680         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
16681         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16682         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
16683         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16684         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
16685         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16686         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
16687         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
16688         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
16689         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
16690         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16691         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16692         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
16693         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
16694         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
16695         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16696         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
16697         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
16698         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16699         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16700         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
16701         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
16702         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
16703         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
16704         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
16705         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
16706         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
16707         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
16708         * sysdeps/ieee754/k_standard.c: Likewise.
16709         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16710         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16711         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16712         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16713         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16714         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16715         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16716         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16717         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16718         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16719         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16720         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16721         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16722         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16723         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16724         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16725         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16726         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16727         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16728         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
16729         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
16730         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
16731         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16732         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
16733         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16734         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16735         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
16736         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
16737         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
16738         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16739         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16740         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
16741         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
16742         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
16743         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16744         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
16745         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
16746         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
16747         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
16748         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
16749         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16750         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16751         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16752         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
16753         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16754         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16755         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
16756         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
16757         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
16758         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16759         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16760         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16761         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
16762         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
16763         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16764         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16765         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
16766         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
16767         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
16768         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
16769         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16770         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16771         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16772         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16773         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16774         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16775         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16776         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16777         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16778         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16779         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16780         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16781         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16782         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16783         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16784         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16785         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
16786         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16787         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16788         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16789         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16790         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16791         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
16792         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
16793         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
16794         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
16795         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
16796         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16797         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16798         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
16799         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
16800         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
16801         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
16802         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16803         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
16804         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
16805         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
16806         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
16807         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
16808         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
16809         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
16810         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
16811         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16812         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
16813         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
16814         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16815         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16816         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
16817         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
16818         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
16819         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
16820         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
16821         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16822         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16823         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16824         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16825         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16826         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16827         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16828         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16829         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16830         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16831         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16832         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16833         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16834         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
16835         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
16836         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
16837         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
16838         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16839         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
16840         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
16841         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
16842         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
16843         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
16844         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
16845         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
16846         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
16847         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
16848         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
16849         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
16850         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
16851         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
16852         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
16853         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
16854         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
16855         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
16856         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
16857         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
16858         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
16859         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
16860         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16861         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
16862         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
16863         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
16864         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
16865         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
16866         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16867         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
16868         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
16869         * sysdeps/ieee754/s_lib_version.c: Likewise.
16870         * sysdeps/ieee754/s_matherr.c: Likewise.
16871         * sysdeps/ieee754/s_signgam.c: Likewise.
16872         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16873         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16874         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
16875         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
16876         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
16877         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
16878         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
16879         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
16880         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
16881         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
16882         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16883         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
16884         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
16885         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
16886         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
16887         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
16888         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
16889         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
16890         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
16891         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16892         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16894 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16896         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
16897         * sunrpc/rpc_main.c: Likewise.
16898         * sunrpc/rpc_svcout.c: Likewise.
16900 2012-03-09  David S. Miller  <davem@davemloft.net>
16902         * include/math_private.h: New file.
16904 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16906         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
16907         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
16908         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
16909         from <bits/socket_type.h>.
16910         (enum __socket_type): Don't define here.
16911         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
16912         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16913         bits/socket_type.h.
16915         [BZ #13566]
16916         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
16917         checking __USE_GNU.
16919         * Makerules ($(inst_includedir)/%.h): New rule.
16920         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
16921         (install-others): Remove variable setting.
16922         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
16924 2012-03-08  Richard Henderson  <rth@twiddle.net>
16926         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
16927         from macro to inline function; merge with the
16928         !__LIBC_INTERNAL_MATH_INLINES version.
16929         (__ieee754_sqrtf): Likewise.
16931         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
16932         to inline function.
16933         (__rintf, __floor, __floorf): Likewise.
16935         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
16936         macro to inline function.
16937         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
16939         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
16940         not <math/math_private.h>.
16942 2012-03-08  David S. Miller  <davem@davemloft.net>
16944         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
16945         copyright year.
16946         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16948 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
16950         * resolv/gai_misc.c (handle_requests): Fix struct timespec
16951         normalization.
16952         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
16953         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
16955 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
16957         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
16958         be defined individually, they must be defined as a block.  Define
16959         S for printing a string instead of hidint the different by using a
16960         macro for adding the 'l'.
16961         * stdio-common/tst-fphex-wide.c: Adjust.
16963 2012-03-07  Marek Polacek  <polacek@redhat.com>
16965         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
16967 2012-03-08  Marek Polacek  <polacek@redhat.com>
16969         [BZ #13806]
16970         * stdio-common/Makefile (tests): Add tst-fphex-wide.
16971         * stdio-common/tst-fphex.c: Define a few macros to make the
16972         test reusable.  Use them.
16973         * stdio-common/tst-fphex-wide.c: New file.
16975 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
16977         [BZ #6911]
16978         * manual/macros.texi (gnusystems): New macro.
16979         (nongnusystems): Likewise.
16980         (gnulinuxhurdsystems): Likewise.
16981         (gnuhurdsystems): Likewise..
16982         (gnulinuxsystems): Likewise.
16983         * manual/charset.texi: Use new macros or @theglibc{} to refer to
16984         variants of the GNU system, not "GNU system".
16985         * manual/conf.texi: Likewise.
16986         * manual/errno.texi: Likewise.  Update example of errno macro
16987         expansion.
16988         * manual/filesys.texi: Likewise.
16989         (getumask): Document as specific to GNU/Hurd.
16990         * manual/install.texi: Likewise.  Reword some references to
16991         GNU/Linux.
16992         * manual/intro.texi: Likewise.
16993         * manual/io.texi: Likewise.
16994         (File Name Portability): Detail which constraints are inapplicable
16995         to all GNU systems and which are only inapplicable to GNU/Hurd.
16996         * manual/job.texi: Likewise.
16997         * manual/llio.texi: Likewise.
16998         (O_NOCTTY): Document as present on GNU/Linux.
16999         * manual/maint.texi: Likewise.
17000         * manual/memory.texi: Likewise.
17001         * manual/pattern.texi: Likewise.
17002         * manual/pipe.texi: Likewise.
17003         * manual/process.texi: Likewise.
17004         * manual/resource.texi: Likewise.
17005         (RUSAGE_CHILDREN): Remove statement about specifying a particular
17006         child on GNU/Hurd.
17007         * manual/setjmp.texi: Likewise.
17008         * manual/signal.texi: Likewise.
17009         * manual/startup.texi: Likewise.
17010         * manual/stdio.texi: Likewise.
17011         * manual/terminal.texi: Likewise.
17012         (ONLCR): Document as POSIX.
17013         (OXTABS): Document availability on GNU/Linux as XTABS.
17014         (ONOEOT): Document availability separately from other bits.
17015         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
17016         * manual/time.texi: Likewise.
17017         * manual/users.texi: Likewise.
17018         * INSTALL: Regenerated.
17019         * sysdeps/gnu/errlist.c: Regenerated.
17021         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
17022         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
17023         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
17024         puts.
17025         * configure: Regenerated.
17027 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
17029         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
17030         default includes instead of AC_HEADER_CHECK.
17031         * sysdeps/i386/configure: Regenerated.
17033         [BZ #10716]
17034         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
17035         * math/s_cacoshf.c (__cacoshf): Likewise.
17036         * math/s_cacoshl.c (__cacoshl): Likewise.
17037         * math/s_casinh.c (__casinh): Set signs of result from argument.
17038         * math/s_casinhf.c (__casinhf): Likewise.
17039         * math/s_casinhl.c (__casinhl): Likewise.
17040         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
17041         (casinh_test): Add more tests.
17042         * sysdeps/i386/fpu/libm-test-ulps: Update.
17043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17045 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
17047         * po/zh_TW.po: Update from translation team.
17049         * login/Makefile (distribute): Remove variable.
17050         * catgets/Makefile: Likewise.
17051         * mach/Makefile: Likewise.
17052         * malloc/Makefile: Likewise.
17053         * misc/Makefile: Likewise.
17054         * iconv/Makefile: Likewise.
17055         * nscd/Makefile: Likewise.
17056         * hurd/Makefile: Likewise.
17057         * manual/Makefile: Likewise.
17058         * locale/Makefile: Likewise.
17059         * intl/Makefile: Likewise.
17060         * conform/Makefile: Likewise.
17061         * nss/Makefile: Likewise.
17062         * time/Makefile: Likewise.
17063         * soft-fp/Makefile: Likewise.
17064         * dirent/Makefile: Likewise.
17065         * gmon/Makefile: Likewise.
17066         * po/Makefile: Likewise.
17067         * rt/Makefile: Likewise.
17068         * socket/Makefile: Likewise.
17069         * math/Makefile: Likewise.
17070         * signal/Makefile: Likewise.
17071         * debug/Makefile: Likewise.
17072         * elf/Makefile: Likewise.
17073         * timezone/Makefile: Likewise.
17074         * stdlib/Makefile: Likewise.
17075         * iconvdata/Makefile: Likewise.
17076         * sunrpc/Makefile: Likewise.
17077         * io/Makefile: Likewise.
17078         * argp/Makefile: Likewise.
17079         * inet/Makefile: Likewise.
17080         * hesiod/Makefile: Likewise.
17081         * grp/Makefile: Likewise.
17082         * csu/Makefile: Likewise.
17083         * wctype/Makefile: Likewise.
17084         * crypt/Makefile: Likewise.
17085         * libio/Makefile: Likewise.
17086         * string/Makefile: Likewise.
17087         * nis/Makefile: Likewise.
17088         * resolv/Makefile: Likewise.
17089         * stdio-common/Makefile: Likewise.
17090         * wcsmbs/Makefile: Likewise.
17091         * dlfcn/Makefile: Likewise.
17092         * posix/Makefile: Likewise.
17094         [BZ #6959]
17095         * timezone/Makefile: Don't install timezone files, just the programs
17096         and scripts.
17098 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
17100         * nss/databases.def: Add missing gshadow entry.
17102         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
17104 2012-03-06  Marek Polacek  <polacek@redhat.com>
17106         [BZ #13726]
17107         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
17108         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
17109         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
17110         * stdio-common/tst-long-dbl-fphex.c: New file.
17112 2012-03-06  David S. Miller  <davem@davemloft.net>
17114         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17115         (set_obp_int): New function.
17116         (get_obp_int): New function.
17117         (__get_clockfreq_via_dev_openprom): Likewise.
17118         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
17119         Avoid unused variable warnings on 'val' and use builtin_expect.
17120         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
17121         __builtin_expect.
17122         (INLINE_CLONE_SYSCALL): Likewise.
17124 2012-03-05  David S. Miller  <davem@davemloft.net>
17126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17128 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
17130         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17132         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
17133         only for |x| >= 40.
17134         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17136 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
17138         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
17139         Replace gettimeofday with __vdso_gettimeofday.
17141         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17142         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
17143         __vdso_clock_gettime and __vdso_getcpu.
17145         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
17146         time with __vdso_time.
17148 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17150         * manual/lang.texi (size_t): Note types to which size_t may be
17151         equivalent with the GNU C Library, but do not describe when
17152         differences between them are significant.
17154 2012-03-05  Andreas Jaeger  <aj@suse.de>
17156         * sysdeps/i386/fpu/libm-test-ulps: Update.
17158 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17160         [BZ #3976]
17161         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
17162         (__ieee754_pow): Save and restore rounding mode and use
17163         round-to-nearest for main computations.
17164         * math/libm-test.inc (pow_test_tonearest): New function.
17165         (pow_test_towardzero): Likewise.
17166         (pow_test_downward): Likewise.
17167         (pow_test_upward): Likewise.
17168         (main): Call the new functions.
17169         * sysdeps/i386/fpu/libm-test-ulps: Update.
17170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17172         [BZ #3976]
17173         * math/libm-test.inc (cosh_test_tonearest): New function.
17174         (cosh_test_towardzero): Likewise.
17175         (cosh_test_downward): Likewise.
17176         (cosh_test_upward): Likewise.
17177         (sinh_test_tonearest): Likewise.
17178         (sinh_test_towardzero): Likewise.
17179         (sinh_test_downward): Likewise.
17180         (sinh_test_upward): Likewise.
17181         (main): Call the new functions.
17182         * sysdeps/i386/fpu/libm-test-ulps: Update.
17183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17185 2012-03-05  Tom de Vries  <tom@codesourcery.com>
17187         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
17188         default stack guard is set in last bytes.
17189         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
17191 2012-03-05  Kees Cook  <keescook@chromium.org>
17193         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
17195         [BZ #13656]
17196         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
17197         possibly allocate from heap instead of stack.
17198         * stdio-common/bug-vfprintf-nargs.c: New file.
17199         * stdio-common/Makefile (tests): Add nargs overflow test.
17201 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17205 2012-03-03  Marek Polacek  <polacek@redhat.com>
17207         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
17208         * math/math_private.h: Likewise.
17209         * stdlib/tst-strtod.c: Likewise.
17210         * sysdeps/i386/i486/bits/atomic.h: Likewise.
17211         * sysdeps/x86_64/bits/atomic.h: Likewise.
17213 2012-03-02  David S. Miller  <davem@davemloft.net>
17215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
17216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
17217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
17218         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
17219         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
17220         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
17221         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
17222         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
17224 2012-03-02  Roland McGrath  <roland@hack.frob.com>
17226         [BZ #13792]
17227         * manual/examples/README: New file, says the example source files
17228         can be used under GPL>=2.
17229         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
17230         line containing just "*/".
17231         * manual/examples/add.c: Add copyright header (GPL>=2).
17232         * manual/examples/argp-ex1.c: Likewise.
17233         * manual/examples/argp-ex2.c: Likewise.
17234         * manual/examples/argp-ex3.c: Likewise.
17235         * manual/examples/argp-ex4.c: Likewise.
17236         * manual/examples/atexit.c: Likewise.
17237         * manual/examples/db.c: Likewise.
17238         * manual/examples/dir.c: Likewise.
17239         * manual/examples/dir2.c: Likewise.
17240         * manual/examples/execinfo.c: Likewise.
17241         * manual/examples/filecli.c: Likewise.
17242         * manual/examples/filesrv.c: Likewise.
17243         * manual/examples/fmtmsgexpl.c: Likewise.
17244         * manual/examples/genpass.c: Likewise.
17245         * manual/examples/inetcli.c: Likewise.
17246         * manual/examples/inetsrv.c: Likewise.
17247         * manual/examples/isockad.c: Likewise.
17248         * manual/examples/longopt.c: Likewise.
17249         * manual/examples/memopen.c: Likewise.
17250         * manual/examples/memstrm.c: Likewise.
17251         * manual/examples/mkfsock.c: Likewise.
17252         * manual/examples/mkisock.c: Likewise.
17253         * manual/examples/mygetpass.c: Likewise.
17254         * manual/examples/pipe.c: Likewise.
17255         * manual/examples/popen.c: Likewise.
17256         * manual/examples/rprintf.c: Likewise.
17257         * manual/examples/search.c: Likewise.
17258         * manual/examples/select.c: Likewise.
17259         * manual/examples/setjmp.c: Likewise.
17260         * manual/examples/sigh1.c: Likewise.
17261         * manual/examples/sigusr.c: Likewise.
17262         * manual/examples/stpcpy.c: Likewise.
17263         * manual/examples/strdupa.c: Likewise.
17264         * manual/examples/strftim.c: Likewise.
17265         * manual/examples/strncat.c: Likewise.
17266         * manual/examples/subopt.c: Likewise.
17267         * manual/examples/swapcontext.c: Likewise.
17268         * manual/examples/termios.c: Likewise.
17269         * manual/examples/testopt.c: Likewise.
17270         * manual/examples/testpass.c: Likewise.
17271         * manual/examples/timeval_subtract.c: Likewise.
17273         [BZ #13792]
17274         * manual/time.texi (Elapsed Time): Move timeval_subtract example
17275         function to ...
17276         * manual/timeval_subtract.c.texi: ... here, new file.
17278 2012-03-02  David S. Miller  <davem@davemloft.net>
17280         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
17282 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
17284         [BZ #3976]
17285         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
17286         (__sin): Save and restore rounding mode and use round-to-nearest
17287         for all computations.
17288         (__cos): Save and restore rounding mode and use round-to-nearest
17289         for all computations.
17290         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
17291         <fenv.h>.
17292         (tan): Save and restore rounding mode and use round-to-nearest for
17293         all computations.
17294         * math/libm-test.inc (cos_test_tonearest): New function.
17295         (cos_test_towardzero): Likewise.
17296         (cos_test_downward): Likewise.
17297         (cos_test_upward): Likewise.
17298         (sin_test_tonearest): Likewise.
17299         (sin_test_towardzero): Likewise.
17300         (sin_test_downward): Likewise.
17301         (sin_test_upward): Likewise.
17302         (tan_test_tonearest): Likewise.
17303         (tan_test_towardzero): Likewise.
17304         (tan_test_downward): Likewise.
17305         (tan_test_upward): Likewise.
17306         (main): Call the new functions.
17307         * sysdeps/i386/fpu/libm-test-ulps: Update.
17308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17310         [BZ #10135]
17311         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
17312         small n, then large n, before computing and testing k+n.
17313         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
17314         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
17315         Likewise.
17316         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
17317         Likewise.
17318         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
17319         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
17320         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
17321         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
17322         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
17323         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
17324         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
17325         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
17326         * math/libm-test.inc (scalbn_test): Add more tests.
17327         (scalbln_test): Likewise.
17329         * manual/filesys.texi (mode_t): Describe constraints on size and
17330         signedness, not exact equivalence to a particular type.
17331         (ino_t): Likewise.
17332         (ino64_t): Likewise.
17333         (dev_t): Likewise.
17334         (nlink_t): Likewise.
17335         (blkcnt_t): Likewise.
17336         (blkcnt64_t): Likewise.
17337         * manual/llio.texi (off_t): Likewise.
17339         [BZ #3976]
17340         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
17341         (__ieee754_exp): Save and restore rounding mode and use
17342         round-to-nearest for all computations.
17343         * math/libm-test.inc (exp_test_tonearest): New function.
17344         (exp_test_towardzero): Likewise.
17345         (exp_test_downward): Likewise.
17346         (exp_test_upward): Likewise.
17347         (main): Call the new functions.
17348         * sysdeps/i386/fpu/libm-test-ulps: Update.
17349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17351 2012-03-01  Chris Demetriou  <cgd@google.com>
17353         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
17354         have predictable order.
17356 2012-03-01  David S. Miller  <davem@davemloft.net>
17358         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
17360         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
17361         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
17362         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
17363         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
17365         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
17366         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
17367         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
17368         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
17369         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
17370         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
17371         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
17372         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
17373         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
17375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17377         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
17378         * sysdeps/sparc/fpu/libm-test-ulps: to here.
17379         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
17381         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
17382         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17383         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17384         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
17385         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
17386         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
17387         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
17388         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17389         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17390         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
17391         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
17392         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17393         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17394         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17395         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17396         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17397         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
17398         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
17399         * sysdeps/sparc/elf/configure: Regenerated.
17401 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
17403         * configure.in (AS, LD): Require binutils 2.20 or later.
17404         * configure: Regenerated.
17405         * manual/install.texi (Tools for Compilation): Give binutils 2.20
17406         as required minimum version.
17407         * INSTALL: Regenerated.
17409         [BZ #2541]
17410         [BZ #4108]
17411         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
17412         before squaring exponent.
17413         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
17414         bottom long double and 27 bits of top long double before squaring
17415         exponent.
17416         * math/libm-test.inc (erfc_test): Add more tests.
17417         * sysdeps/i386/fpu/libm-test-ulps: Update.
17418         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17421 2012-03-01  Kai Tietz  <ktietz@redhat.com>
17423         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
17424         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
17425         containing bit-fields.
17426         * soft-fp/extended.h (_FP_UNION_E): Likewise.
17427         * soft-fp/single.h (_FP_UNION_S): Likewise.
17428         * soft-fp/double.h (_FP_UNION_D): Likewise.
17430 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17432         [BZ #13786]
17433         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
17434         not include ../strcmp.S.
17435         [USE_AS_STRNCASECMP_L]: Likewise.
17436         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
17437         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
17438         * sysdeps/i386/i686/multiarch/strncase_l-c.c
17439         (__strncasecmp_l_ia32): Define as alias to
17440         __strncasecmp_l_nonascii.
17442         [BZ #5794]
17443         * math/libm-test.inc (expm1_test): Add test for bug 5794.
17444         * sysdeps/i386/fpu/libm-test-ulps: Update.
17445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17447         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
17448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17450 2012-02-29  Jeff Law  <law@redhat.com>
17452         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
17453         out of bounds read.
17455 2012-02-29  Marek Polacek  <polacek@redhat.com>
17457         [BZ #13706]
17458         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
17459         * elf/Makefile: Add rules to run tst-unused-dep.out.
17461 2012-02-28  David S. Miller  <davem@davemloft.net>
17463         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
17464         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
17465         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
17466         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
17467         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
17468         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
17470 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17472         * math/libm-test.inc (llround_test): Move one test from
17473         lround_test.  Use TEST_f_L in moved test.
17474         (lround_test): Move misplaced test to llround_test.  Add testcase
17475         from bug 2561.
17477 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
17479         * sysdeps/x86_64/fpu/e_expf.S: New file.
17480         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
17482 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
17484         [BZ #13637]
17485         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
17486         of remain_len that may cause incomplete multi-byte character and
17487         false match.
17488         * posix/bug-regex33.c: New file.
17489         * posix/Makefile (tests): Add bug-regex33.
17491 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
17493         * manual/macros.texi: New file.
17494         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
17495         * manual/libc.texinfo: Include macros.texi.
17496         * manual/creatute.texi: Likewise.
17497         * manual/install.texi: Likewise.
17498         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
17499         @glibcadj{} in references to the GNU C Library.
17500         * manual/charset.texi: Likewise.
17501         * manual/conf.texi: Likewise.
17502         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
17503         when not using those macros.
17504         * manual/creature.texi: Likewise.
17505         * manual/crypt.texi: Likewise.
17506         * manual/errno.texi: Likewise.
17507         * manual/filesys.texi: Likewise.
17508         * manual/header.texi: Likewise.
17509         * manual/install.texi: Likewise.
17510         * manual/intro.texi: Likewise.
17511         * manual/io.texi: Likewise.
17512         * manual/job.texi: Likewise.
17513         * manual/lang.texi: Likewise.
17514         * manual/libc.texiinfo: Likewise.
17515         * manual/llio.texi: Likewise.
17516         * manual/locale.texi: Likewise.
17517         * manual/maint.texi: Likewise.
17518         * manual/math.texi: Likewise.
17519         * manual/memory.texi: Likewise.
17520         * manual/message.texi: Likewise.
17521         * manual/nss.texi: Likewise.
17522         * manual/pattern.texi: Likewise.
17523         * manual/process.texi: Likewise.
17524         * manual/resource.texi: Likewise.
17525         * manual/search.texi: Likewise.
17526         * manual/setjmp.texi: Likewise.
17527         * manual/signal.texi: Likewise.
17528         * manual/socket.texi: Likewise.
17529         * manual/startup.texi: Likewise.
17530         * manual/stdio.texi: Likewise.
17531         * manual/string.texi: Likewise.
17532         * manual/sysinfo.texi: Likewise.
17533         * manual/syslog.texi: Likewise.
17534         * manual/terminal.texi: Likewise.
17535         * manual/time.texi: Likewise.
17536         * manual/users.texi: Likewise.
17537         * INSTALL: Regenerated.
17538         * NOTES: Regenerated.
17539         * sysdeps/gnu/errlist.c: Regenerated.
17541 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
17543         * include/dirent.h: Include <dirstream.h> before
17544         <dirent/dirent.h>.
17546 2012-02-28  David S. Miller  <davem@davemloft.net>
17548         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
17549         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
17550         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
17551         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
17553 2012-02-27  David S. Miller  <davem@davemloft.net>
17555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
17556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
17557         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
17558         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
17560         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
17561         frame pointer instead of stack pointer relative arg slot.
17562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
17563         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
17564         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
17566 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
17568         [BZ #3992]
17569         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
17571 2012-02-27  David S. Miller  <davem@davemloft.net>
17573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
17574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
17575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
17577         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
17578         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
17579         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
17580         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
17582 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
17584         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
17585         later.  Allow versions 5-9.
17586         * configure: Regenerated.
17587         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
17588         required minimum version and 4.6 as recommended version.  Do not
17589         mention bugs in GCC 2.7 and 2.8.
17590         * INSTALL: Regenerated.
17592 2012-02-27  David S. Miller  <davem@davemloft.net>
17594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
17595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
17596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
17597         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
17598         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
17599         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
17600         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
17601         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
17603         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
17604         manipulate bits before adding and subtracting TWO112[sx].
17605         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
17607 2012-02-27  Roland McGrath  <roland@hack.frob.com>
17609         [BZ #13775]
17610         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
17611         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
17612         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
17613         being in POSIX, because they are in 1003.1-2008.
17615         * rt/tst-aio.c: Include <fcntl.h>.
17616         * rt/tst-aio7.c: Likewise.
17617         * rt/tst-aio64.c: Likewise.
17619         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
17621 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
17623         * manual/install.texi (--with-headers): Describe headers as
17624         interface headers, not private headers.
17625         (Specific advice for GNU/Linux systems): Describe use of headers
17626         from "make headers_install", not private headers from older
17627         kernels.
17628         * INSTALL: Regenerated.
17629         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
17630         Change to 2.6.19.
17631         * sysdeps/unix/sysv/linux/configure: Regenerated.
17633         * manual/llio.texi (fclean): Remove documentation.
17635         * manual/Makefile (libc-texi-generated): New variable.  Include
17636         version.texi.
17637         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
17638         $(libc-texi-generated), not duplicated list of files.
17639         (version.texi, stamp-version): New rules.
17640         (realclean): Remove $(libc-texi-generated), not individual files
17641         from that list.  Do not remove dir-add.texinfo.
17642         * manual/libc.texinfo: Comment out uses of edition numbers and
17643         references to printed manual.  Remove last-updated dates.
17644         (EDITION): Comment out.
17645         (ISBN): Likewise.
17646         (VERSION, UPDATED): Remove.
17647         (version.texi): Include.
17649 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
17651         * sysdeps/posix/spawni.c: Include <signal.h>.
17652         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
17653         * sysdeps/pthread/aio_fsync.c: Likewise.
17655 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
17657         * conform/Makefile (tests): Run only when not cross-compiling and
17658         when fast-check is not defined.
17660         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
17661         * conform/data/limits.h-data: Fixes for POSIX2008.
17662         * conform/run-conformtest.sh: Run all tests.
17663         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
17664         headers.
17665         * include/bits/dlfcn.h: Likewise.
17666         * include/langinfo.h: Likewise.
17667         * include/monetary.h: Likewise.
17668         * include/sys/poll.h: Likewise.
17670         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
17671         for __USE_GNU.
17672         * posix/spawn.h: Define __need_sigset_t.
17673         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
17674         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
17675         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
17676         to get sigevent_t only.
17677         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
17678         only for __USE_GNU.
17679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17680         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
17681         process_vm_writev only for __USE_GNU.
17682         * termios/termios.h: Declare tcgetsid also for POSIX2008.
17684         * conform/Makefile: For now ignore errors from run-conformtest.
17685         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
17686         POSIX to avoid namespace pollution.  Don't prepend headers.
17687         * conform/data/aio.h-data: Fixes for POSIX testing.
17688         * conform/data/fcntl.h-data: Likewise.
17689         * conform/data/glob.h-data: Likewise.
17690         * conform/data/grp.h-data: Likewise.
17691         * conform/data/pthread.h-data: Likewise.
17692         * conform/data/pwd.h-data: Likewise.
17693         * conform/data/signal.h-data: Likewise.
17694         * conform/data/spawn.h-data: Likewise.
17695         * conform/data/stdio.h-data: Likewise.
17696         * conform/data/stdlib.h-data: Likewise.
17697         * conform/data/stropts.h-data: Likewise.
17698         * conform/data/sys/mman.h-data: Likewise.
17699         * conform/data/sys/stat.h-data: Likewise.
17700         * conform/data/sys/types.h-data: Likewise.
17701         * conform/data/sys/wait.h-data: Likewise.
17702         * conform/data/time.h-data: Likewise.
17703         * conform/data/unistd.h-data: Likewise.
17704         * conform/data/utime.h-data: Likewise.
17706         * io/sys/stat.h: fchmod was always in POSIX.
17707         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
17708         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
17709         * rt/aio.h: Define __need_timespec before including <time.h>.
17710         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
17711         struct.  Add forward declaration of pthread_attr_t and use it in
17712         sigevent.
17713         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17714         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17715         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
17716         always remove CLK_TCK definition.
17718 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
17720         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
17722 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
17724         * conform/run-conformtest.sh: New file.
17725         * conform/Makefile: Run run-conformtest for tests.
17726         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
17727         support.
17729         * conform/data/uchar.h-data: New file.
17730         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
17731         * conform/data/arpa/inet.h-data: Likewise.
17732         * conform/data/assert.h-data: Likewise.
17733         * conform/data/complex.h-data: Likewise.
17734         * conform/data/cpio.h-data: Likewise.
17735         * conform/data/ctype.h-data: Likewise.
17736         * conform/data/dirent.h-data: Likewise.
17737         * conform/data/dlfcn.h-data: Likewise.
17738         * conform/data/errno.h-data: Likewise.
17739         * conform/data/fcntl.h-data: Likewise.
17740         * conform/data/float.h-data: Likewise.
17741         * conform/data/fmtmsg.h-data: Likewise.
17742         * conform/data/fnmatch.h-data: Likewise.
17743         * conform/data/ftw.h-data: Likewise.
17744         * conform/data/glob.h-data: Likewise.
17745         * conform/data/grp.h-data: Likewise.
17746         * conform/data/iconv.h-data: Likewise.
17747         * conform/data/inttypes.h-data: Likewise.
17748         * conform/data/langinfo.h-data: Likewise.
17749         * conform/data/libgen.h-data: Likewise.
17750         * conform/data/limits.h-data: Likewise.
17751         * conform/data/locale.h-data: Likewise.
17752         * conform/data/math.h-data: Likewise.
17753         * conform/data/monetary.h-data: Likewise.
17754         * conform/data/mqueue.h-data: Likewise.
17755         * conform/data/ndbm.h-data: Likewise.
17756         * conform/data/net/if.h-data: Likewise.
17757         * conform/data/netdb.h-data: Likewise.
17758         * conform/data/netinet/in.h-data: Likewise.
17759         * conform/data/nl_types.h-data: Likewise.
17760         * conform/data/poll.h-data: Likewise.
17761         * conform/data/pthread.h-data: Likewise.
17762         * conform/data/pwd.h-data: Likewise.
17763         * conform/data/regex.h-data: Likewise.
17764         * conform/data/sched.h-data: Likewise.
17765         * conform/data/search.h-data: Likewise.
17766         * conform/data/semaphore.h-data: Likewise.
17767         * conform/data/setjmp.h-data: Likewise.
17768         * conform/data/signal.h-data: Likewise.
17769         * conform/data/spawn.h-data: Likewise.
17770         * conform/data/stdarg.h-data: Likewise.
17771         * conform/data/stdio.h-data: Likewise.
17772         * conform/data/stdlib.h-data: Likewise.
17773         * conform/data/string.h-data: Likewise.
17774         * conform/data/strings.h-data: Likewise.
17775         * conform/data/stropts.h-data: Likewise.
17776         * conform/data/sys/ipc.h-data: Likewise.
17777         * conform/data/sys/mman.h-data: Likewise.
17778         * conform/data/sys/msg.h-data: Likewise.
17779         * conform/data/sys/resource.h-data: Likewise.
17780         * conform/data/sys/select.h-data: Likewise.
17781         * conform/data/sys/sem.h-data: Likewise.
17782         * conform/data/sys/shm.h-data: Likewise.
17783         * conform/data/sys/socket.h-data: Likewise.
17784         * conform/data/sys/stat.h-data: Likewise.
17785         * conform/data/sys/statvfs.h-data: Likewise.
17786         * conform/data/sys/time.h-data: Likewise.
17787         * conform/data/sys/timeb.h-data: Likewise.
17788         * conform/data/sys/times.h-data: Likewise.
17789         * conform/data/sys/types.h-data: Likewise.
17790         * conform/data/sys/uio.h-data: Likewise.
17791         * conform/data/sys/un.h-data: Likewise.
17792         * conform/data/sys/utsname.h-data: Likewise.
17793         * conform/data/sys/wait.h-data: Likewise.
17794         * conform/data/syslog.h-data: Likewise.
17795         * conform/data/tar.h-data: Likewise.
17796         * conform/data/termios.h-data: Likewise.
17797         * conform/data/utime.h-data: Likewise.
17798         * conform/data/utmpx.h-data: Likewise.
17799         * conform/data/varargs.h-data: Likewise.
17800         * conform/data/wchar.h-data: Likewise.
17801         * conform/data/wctype.h-data: Likewise.
17802         * conform/data/wordexp.h-data: Likewise.
17804         * include/stropts.h: New file.
17805         * include/uchar.h: New file.
17806         * include/aio.h: Changes to allow conformtest.pl to use the headers.
17807         * include/assert.h: Likewise.
17808         * include/ctype.h: Likewise.
17809         * include/dirent.h: Likewise.
17810         * include/dlfcn.h: Likewise.
17811         * include/fcntl.h: Likewise.
17812         * include/fnmatch.h: Likewise.
17813         * include/glob.h: Likewise.
17814         * include/grp.h: Likewise.
17815         * include/libio.h: Likewise.
17816         * include/locale.h: Likewise.
17817         * include/math.h: Likewise.
17818         * include/net/if.h: Likewise.
17819         * include/netdb.h: Likewise.
17820         * include/netinet/in.h: Likewise.
17821         * include/pthread.h: Likewise.
17822         * include/pwd.h: Likewise.
17823         * include/regex.h: Likewise.
17824         * include/sched.h: Likewise.
17825         * include/search.h: Likewise.
17826         * include/setjmp.h: Likewise.
17827         * include/signal.h: Likewise.
17828         * include/stdio.h: Likewise.
17829         * include/stdlib.h: Likewise.
17830         * include/string.h: Likewise.
17831         * include/sys/cdefs.h: Likewise.
17832         * include/sys/mman.h: Likewise.
17833         * include/sys/msg.h: Likewise.
17834         * include/sys/resource.h: Likewise.
17835         * include/sys/select.h: Likewise.
17836         * include/sys/socket.h: Likewise.
17837         * include/sys/stat.h: Likewise.
17838         * include/sys/statvfs.h: Likewise.
17839         * include/sys/time.h: Likewise.
17840         * include/sys/times.h: Likewise.
17841         * include/sys/uio.h: Likewise.
17842         * include/sys/utsname.h: Likewise.
17843         * include/sys/wait.h: Likewise.
17844         * include/termios.h: Likewise.
17845         * include/time.h: Likewise.
17846         * include/ulimit.h: Likewise.
17847         * include/unistd.h: Likewise.
17848         * include/utime.h: Likewise.
17849         * include/wchar.h: Likewise.
17850         * include/wctype.h: Likewise.
17851         * include/wordexp.h: Likewise.
17853         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
17855         * time/time.h: TIME_UTC must be a macro.
17856         Make timespec_get available for ISO C11 only as well.
17858 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
17860         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
17861         Reported by Peng Haitao <penght@cn.fujitsu.com>.
17863 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17865         * configure.in: Use -o not -a in test for unsupported multi-arch.
17867 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17869         * manual/texinfo.tex: Update to version 2012-01-19.16.
17871 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17873         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
17875 2012-02-24  Roland McGrath  <roland@hack.frob.com>
17877         [BZ #13738]
17878         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
17879         * manual/fdl-1.3.texi: New file.
17880         * manual/fdl-1.1.texi: File removed.
17882         [BZ #13738]
17883         * manual/libc.texinfo (FDL_VERSION): New @set.
17884         Use it for mention of FDL in cover text.
17885         (Documentation License): Use it in @include file name.
17887 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17888             Roland McGrath  <roland@hack.frob.com>
17890         [BZ #5461]
17891         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
17892         not LONG_LONG_MAX and LONG_LONG_MIN.
17893         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
17894         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
17895         name.
17896         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
17898 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17900         [BZ #2547]
17901         [BZ #11365]
17902         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
17903         manipulate bits before adding and subtracting TWO23[sx].
17904         * math/libm-test.inc (nearbyint_test): Add more tests.
17906 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17908         [BZ #2548]
17909         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
17910         bits before adding and subtracting TWO23[sx].
17911         * math/libm-test.inc (rint_test): Add more tests.
17912         (rint_test_tonearest): Likewise.
17913         (rint_test_towardzero): Likewise.
17914         (rint_test_downward): Likewise.
17915         (rint_test_upward: Likewise.
17917 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17919         [BZ #10110]
17920         * include/stdc-predef.h: New file.  Extracted from features.h.
17921         * include/features.h: Include stdc-predef.h.
17922         * Makefile (headers): Add stdc-predef.h.
17923         * CONFORMANCE (Compiler limitations): Update.
17925 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17927         * manual/libc.texinfo (VERSION, UPDATED): Revert.
17929 2012-02-21  David S. Miller  <davem@davemloft.net>
17931         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
17932         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
17934 2012-02-20  David S. Miller  <davem@davemloft.net>
17936         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
17937         using a normal save/restore sequence, rather than allocating a
17938         dummy stack frame just to store a frame pointer and restore.
17939         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17941 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17943         * manual/install.texi: Fix stray word in line-wrapped comment.
17945 2012-02-20  David S. Miller  <davem@davemloft.net>
17947         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
17948         both binutils and gcc support GOTDATA.
17950         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
17951         "rd %pc" in the PIC register setup sequences.
17953         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
17954         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
17955         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17956         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
17957         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17958         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17959         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17960         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17961         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
17962         (SYSCALL_ERROR_HANDLER): Likewise.
17963         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17964         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17965         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
17966         (SYSCALL_ERROR_HANDLER): Likewise.
17968         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
17969         (HAVE_GCC_GOTDATA): New.
17970         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
17971         relocation support in both binutils and gcc.
17972         * sysdeps/sparc/elf/configure: Regenerate.
17974         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
17975         * sysdeps/sparc/sparc32/elf/configure: Delete.
17976         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
17977         * sysdeps/sparc/sparc64/elf/configure: Delete.
17978         * sysdeps/sparc/elf/configure.in: New file.
17979         * sysdeps/sparc/elf/configure: Generate.
17981         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
17982         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
17983         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17984         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
17985         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
17987 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17989         * manual/install.texi: Do not mention specific glibc version
17990         numbers.
17991         * manual/libc.texinfo (VERSION, UPDATED): Update.
17992         (@copying): Use @copyright{} and range of years.
17994 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17996         [BZ #13695]
17997         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
17998         [crti.S not in sysdirs] (generated): Do not append.
17999         [crti.S not in sysdirs] (omit-deps): Likewise.
18000         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
18001         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
18002         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
18003         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
18004         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
18005         Likewise.
18006         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
18007         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
18008         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
18009         * csu/defs.awk: Remove file.
18010         * sysdeps/generic/initfini.c: Likewise.
18011         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
18012         variable.
18013         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
18014         Likewise.
18016 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18018         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
18019         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
18020         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
18021         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
18022         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
18023         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
18024         <bits/epoll.h>.
18025         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
18026         (__EPOLL_PACKED): Define to empty if not defined by
18027         <bits/epoll.h>.
18028         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
18029         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18030         bits/epoll.h.
18032 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18034         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
18035         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
18036         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
18037         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
18038         <bits/timerfd.h>.
18039         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
18040         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18041         bits/timerfd.h.
18043 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18045         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
18046         in C locale.
18047         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18048         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18049         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
18050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18052 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
18054         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18055         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
18057 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
18059         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
18060         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
18061         defined.
18062         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
18063         Likewise.
18064         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
18065         entry for 2.16.
18067 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
18069         * math/w_acos.c: Use non-signaling floating-point comparisons.
18070         * math/w_acosf.c: Likewise.
18071         * math/w_acosh.c: Likewise.
18072         * math/w_acoshf.c: Likewise.
18073         * math/w_acoshl.c: Likewise.
18074         * math/w_acosl.c: Likewise.
18075         * math/w_asin.c: Likewise.
18076         * math/w_asinf.c: Likewise.
18077         * math/w_asinl.c: Likewise.
18078         * math/w_atanh.c: Likewise.
18079         * math/w_atanhf.c: Likewise.
18080         * math/w_atanhl.c: Likewise.
18081         * math/w_exp2.c: Likewise.
18082         * math/w_exp2f.c: Likewise.
18083         * math/w_exp2l.c: Likewise.
18084         * math/w_j0.c: Likewise.
18085         * math/w_j0f.c: Likewise.
18086         * math/w_j0l.c: Likewise.
18087         * math/w_j1.c: Likewise.
18088         * math/w_j1f.c: Likewise.
18089         * math/w_j1l.c: Likewise.
18090         * math/w_jn.c: Likewise.
18091         * math/w_jnf.c: Likewise.
18092         * math/w_log.c: Likewise.
18093         * math/w_log10.c: Likewise.
18094         * math/w_log10f.c: Likewise.
18095         * math/w_log10l.c: Likewise.
18096         * math/w_log2.c: Likewise.
18097         * math/w_log2f.c: Likewise.
18098         * math/w_log2l.c: Likewise.
18099         * math/w_logf.c: Likewise.
18100         * math/w_logl.c: Likewise.
18101         * math/w_sqrt.c: Likewise.
18102         * math/w_sqrtf.c: Likewise.
18103         * math/w_sqrtl.c: Likewise.
18104         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18105         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
18106         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18107         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
18108         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
18110 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18112         [BZ #9739]
18113         * manual/string.texi (strnlen): Use correct parameter name in
18114         equivalent expression.
18116 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18118         [BZ #11174]
18119         * manual/users.texi (seteuid): Consistently use neweuid for
18120         argument name.
18122 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18124         [BZ #13704]
18125         * manual/nss.texi (Services in the NSS configuration): Correct
18126         list of services in example configuration file.
18128 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
18130         [BZ #11322]
18131         * manual/arith.texi: Remove statements about negative zero
18132         behaving identically to zero.
18134 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18136         [BZ #5993]
18137         * manual/install.texi: Do not document upgrading from libc5.
18139 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18141         [BZ #4596]
18142         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
18144 2012-02-18  David S. Miller  <davem@davemloft.net>
18146         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
18147         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
18148         %o7 across the call.
18149         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
18150         instead.
18151         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
18152         SETUP_PIC_REG_LEAF.
18153         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18154         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
18155         * sysdeps/sparc/crtn.S: Likewise.
18157 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
18159         * aout/Makefile: Remove.
18161 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
18163         [BZ #13058]
18164         * manual/examples/argp-ex1.c (main): Format definition in GNU
18165         style.
18166         * manual/examples/argp-ex2.c (main): Likewise.
18167         * manual/examples/argp-ex3.c (main): Likewise.
18168         * manual/examples/argp-ex4.c (main): Likewise.
18169         * manual/examples/longopt.c (main): Use new-style prototype
18170         definition.
18171         * manual/examples/strncat.c (main): Specify return type and use
18172         (void) for arguments.
18173         * manual/examples/subopt.c (main): Use char **argv argument.
18175 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18177         [BZ #5077]
18178         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
18179         rounding modes.
18181 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
18183         [BZ #6907]
18184         * manual/string.texi (strchr): Change when strchrnul is
18185         recommended.
18187 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
18189         [BZ #174]
18190         * manual/locale.texi (setlocale): Document LOCPATH.
18192 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18194         [BZ #10210]
18195         * manual/process.texi (execle): Move @dots{} before last argument.
18197 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
18199         [BZ #12047]
18200         * manual/charset.texi (Generic Charset Conversion): Fix typo
18201         (LC_TYPE -> LC_CTYPE).
18203 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
18205         [BZ #5805]
18206         * manual/arith.texi (scalbn): Use @var{} on parameter names.
18207         (scalbnf): Likewise.
18208         (scalbnl): Likewise.
18209         (scalbln): Likewise.
18210         (scalblnf): Likewise.
18211         (scalblnl): Likewise.
18212         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
18213         (vwarnx): Likewise.
18214         (verr): Likewise.
18215         (verrx): Likewise.
18216         * manual/filesys.texi (telldir): Use braces around return type.
18217         * manual/llio.texi (mmap): Add space after comma.
18218         (mmap64): Likewise.
18219         * manual/math.texi (jn): Use @var{} on parameter names.
18220         (jnf): Likewise.
18221         (jnl): Likewise.
18222         (yn): Likewise.
18223         (ynf): Likewise.
18224         (ynl): Likewise.
18225         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
18226         line.
18227         * manual/resource.texi (ulimit): Use @dots{} instead of literal
18228         "...".
18229         (sched_get_priority_min): Remove semicolon on @deftypefun line.
18230         (sched_get_priority_max): Likewise.
18231         * manual/signal.texi (sigvec): Add space after comma.
18232         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
18233         names.
18234         (if_indextoname): Likewise.
18235         (if_freenameindex): Likewise.
18236         (sendto): Use ',' instead of '.' in prototype.
18237         * manual/startup.texi (syscall): Use @dots{} instead of literal
18238         "...".
18239         * manual/stdio.texi (__fpending): Separate initial words of
18240         paragraph from @deftypefun line.
18241         * manual/syslog.texi (syslog): Use @dots{} instead of literal
18242         "...".
18243         (vsyslog): Use @var{} on parameter names.
18244         * manual/terminal.texi (stty): Use @var{} on parameter names.
18245         * manual/users.texi (getutmp): Use @var{} on parameter names.
18246         (getutmpx): Likewise.
18248 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18250         [BZ #6884]
18251         * manual/stdio.texi (fopen): Fix typos in description of
18252         ",ccs=STRING".
18254 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
18256         [BZ #4026]
18257         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
18258         get clock_id definition.
18260 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
18262         [BZ #4822]
18263         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
18264         (madvise): Cast every argument to void on its own.
18266 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18268         [BZ #9902]
18269         * manual/startup.texi (Exit Status): Fix typo.
18271 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18273         [BZ #10140]
18274         * manual/examples/argp-ex1.c: Include <stdlib.h>.
18275         * manual/examples/argp-ex2.c: Likewise.
18276         * manual/examples/argp-ex3.c: Likewise.
18278 2012-02-16  Richard Henderson  <rth@redhat.com>
18280         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
18281         * sysdeps/s390/s390-32/initfini.c: Remove.
18282         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
18283         * sysdeps/s390/s390-64/initfini.c: Remove.
18285 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18287         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
18288         compiler output for sysdeps/generic/initfini.c.
18289         * sysdeps/sh/elf/initfini.c: Remove file.
18291 2012-02-16  David S. Miller  <davem@davemloft.net>
18293         [BZ #11494]
18294         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
18296         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
18297         * sysdeps/sparc/crti.S: New file.
18298         * sysdeps/sparc/crtn.S: New file.
18299         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
18300         * sysdeps/sparc/sparc64/Makefile: Likewise.
18302 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
18304         [BZ #3335]
18305         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
18307 2012-02-15  Roland McGrath  <roland@hack.frob.com>
18309         [BZ #4822]
18310         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
18312         * mach/devstream.c (cookie_io_functions_t): Macro removed.
18313         (write, read, close): Likewise.
18314         Patch by Aurelien Jarno <aurelien@aurel32.net>.
18316 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
18318         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
18319         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
18320         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
18321         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
18322         <bits/signalfd.h>.
18323         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
18324         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18325         bits/signalfd.h.
18327 2012-02-14  Marek Polacek  <polacek@redhat.com>
18329         * sysdeps/x86_64/crti.S: New file.
18330         * sysdeps/x86_64/crtn.S: New file.
18331         * sysdeps/x86_64/elf/initfini.c: Remove file.
18333 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18335         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
18336         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
18337         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
18338         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
18339         <bits/inotify.h>.
18340         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
18341         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18342         bits/inotify.h.
18344 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18346         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
18347         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
18348         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
18349         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
18350         <bits/eventfd.h>.
18351         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
18352         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18353         bits/eventfd.h.
18355 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
18357         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
18358         __feraiseexcept instead of feraiseexcept.
18360         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
18361         nanosleep invocations.
18362         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
18363         strings, and add error checking for a nanosleep invocations.
18365 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18367         Replace FSF snail mail address with URLs, as per GNU coding standards.
18368         Most of the snail mail addresses were wrong anyway, and omitting
18369         them makes the source code easier to maintain.  Almost all of the
18370         changes are to license notices and to locale LC_IDENTIFICATION
18371         addresses, except for this one:
18372         * manual/libc.texinfo: In "Published by", give the FSF's URL,
18373         not its snail mail address.
18375 2012-02-09  Richard Henderson  <rth@twiddle.net>
18377         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
18378         of kernel-features.h.
18380         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
18382 2012-02-08  Marek Polacek  <polacek@redhat.com>
18384         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
18385         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
18386         * sysdeps/gnu/_G_config.h: Likewise.
18387         * sysdeps/generic/_G_config.h: Likewise.
18389 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
18391         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
18392         tests.
18393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18395         * sysdeps/powerpc/powerpc32/crti.S: New file.
18396         * sysdeps/powerpc/powerpc32/crtn.S: New file.
18397         * sysdeps/powerpc/powerpc64/crti.S: New file.
18398         * sysdeps/powerpc/powerpc64/crtn.S: New file.
18400         * Makeconfig (have-initfini): Don't set.
18401         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
18402         * configure.in (nopic_initfini): Don't substitute.
18403         * config.h.in (HAVE_INITFINI): Don't #undef.
18404         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
18405         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
18407 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
18409         Support crti.S and crtn.S provided directly by architectures.
18410         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
18411         [crti.S in sysdirs] (omit-deps): Likewise.
18412         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
18413         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
18414         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
18415         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
18416         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
18417         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
18418         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
18419         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
18420         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
18421         compiler output for sysdeps/generic/initfini.c.
18422         * sysdeps/i386/elf/Makefile: Remove file.
18423         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
18425 2012-02-07  Marek Polacek  <polacek@redhat.com>
18427         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
18428         * sysdeps/gnu/_G_config.h: Likewise.
18429         * sysdeps/mach/hurd/_G_config.h: Likewise.
18431 2012-02-07  Marek Polacek  <polacek@redhat.com>
18433         * math/Makefile (tests): Add tst-CMPLX2.
18434         * math/tst-CMPLX2.c: New file.
18436 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
18438         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18440         * math/libm-test.inc (jn_test): Add missing L suffix.
18442 2012-02-06  Marek Polacek  <polacek@redhat.com>
18444         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
18445         * sysdeps/i386/fpu/e_powf.S: Likewise.
18446         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
18447         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18448         * sysdeps/i386/fpu/e_acosh.S: Likewise.
18449         * sysdeps/i386/fpu/e_pow.S: Likewise.
18450         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
18451         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
18452         * sysdeps/i386/fpu/s_expm1.S: Likewise.
18453         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
18454         * sysdeps/i386/fpu/e_log2.S: Likewise.
18455         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18456         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18457         * sysdeps/i386/fpu/e_powl.S: Likewise.
18458         * sysdeps/i386/fpu/s_log1p.S: Likewise.
18459         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18460         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
18461         * sysdeps/i386/fpu/e_logl.S: Likewise.
18462         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
18463         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
18464         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
18465         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
18466         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18467         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18468         * sysdeps/i386/fpu/e_log.S: Likewise.
18469         * sysdeps/i386/fpu/s_cexp.S: Likewise.
18470         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18471         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
18472         * sysdeps/i386/fpu/e_logf.S: Likewise.
18473         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18474         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18475         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
18476         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
18477         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18478         * sysdeps/i386/fpu/e_log10.S: Likewise.
18479         * sysdeps/i386/fpu/s_frexp.S: Likewise.
18480         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18481         * sysdeps/i386/fpu/s_asinh.S: Likewise.
18482         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
18483         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18484         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
18485         * sysdeps/i386/asm-syntax.h: Likewise.
18486         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18487         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18488         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18489         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
18490         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
18491         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18492         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
18493         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
18494         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
18495         * sysdeps/powerpc/sysdep.h: Likewise.
18496         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18497         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
18499 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
18501         [BZ #411]
18502         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
18504 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
18506         * sysdeps/i386/sysdep.h: Include <features.h>.
18507         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
18508         version.
18510 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
18512         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
18513         Define.
18514         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
18515         LOAD_PIC_REG_STR.
18517 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18519         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
18520         (SETUP_PIC_REG): Use GET_PC_THUNK.
18521         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
18522         macro.
18524 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18526         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
18527         for non-PIC compilation.
18528         (SETUP_PIC_REG): Add .p2align directive.
18529         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
18530         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
18531         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18532         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18533         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
18534         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18535         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
18536         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18537         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18538         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18539         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18540         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18541         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18542         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18543         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18544         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
18545         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
18546         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18547         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18548         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18549         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18550         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
18551         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18552         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18553         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
18554         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
18555         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18556         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
18557         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18558         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18559         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18560         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18561         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18562         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18563         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18564         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18565         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18566         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18567         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18568         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18569         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18571 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18573         * math/tst-CMPLX.c: Include <stdio.h>.
18575 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
18577         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
18578         float.
18579         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18580         * sysdeps/sparc/bits/mathdef.h: Likewise.
18582 2012-01-31  Marek Polacek  <polacek@redhat.com>
18584         * libio/libio.h: Don't define _PARAMS.
18585         * locale/programs/config.h: Don't define PARAMS.
18586         * stdlib/strtol_l.c: Likewise.
18587         (__strtol_l): Remove PARAMS from the prototype.
18589 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
18591         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
18592         names.  Just use the correct names.  Remove unnecessary wrapper
18593         functions.
18594         * malloc/arena.c: Likewise.
18595         * malloc/hooks.c: Likewise.
18597         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
18598         ARENA_TEST says not to.  Simplify test for creation of a new arena.
18599         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
18601 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
18603         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
18604         into tail calls.
18605         (update_get_addr): New function.
18606         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
18607         GET_ADDR_MODULE parameter.
18609 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
18611         * crypt/cert.c: Remove __STDC__ conditionals.
18612         * crypt/crypt-entry.c: Likewise.
18613         * crypt/crypt_util.c: Likewise.
18614         * libio/filedoalloc.c: Likewise.
18615         * libio/fileops.c: Likewise.
18616         * libio/genops.c: Likewise.
18617         * libio/iofclose.c: Likewise.
18618         * libio/iofdopen.c: Likewise.
18619         * libio/iofopen.c: Likewise.
18620         * libio/iofopen64.c: Likewise.
18621         * libio/iogetdelim.c: Likewise.
18622         * libio/iopopen.c: Likewise.
18623         * libio/obprintf.c: Likewise.
18624         * libio/oldfileops.c: Likewise.
18625         * libio/oldiofclose.c: Likewise.
18626         * libio/oldiofdopen.c: Likewise.
18627         * libio/oldiofopen.c: Likewise.
18628         * libio/oldiopopen.c: Likewise.
18629         * libio/wfiledoalloc.c: Likewise.
18630         * libio/wgenops.c: Likewise.
18631         * locale/programs/xmalloc.c: Likewise.
18632         * misc/syslog.c: Likewise.
18633         * stdio-common/xbug.c: Likewise.
18634         * string/memchr.c: Likewise.
18635         * string/memcmp.c: Likewise.
18636         * string/memrchr.c: Likewise.
18637         * string/rawmemchr.c: Likewise.
18638         * sysdeps/posix/getcwd.c: Likewise.
18639         * time/strftime_l.c: Likewise.
18641 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
18643         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
18644         * config.make.in (config-cflags-sse2avx): Define.
18645         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
18646         Fix typo.
18648 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
18650         * scripts/config.guess: Update from upstream config git repository.
18651         * scripts/config.sub: Likewise.
18653 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
18655         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
18656         (EM_NUM): Update.
18657         (R_TILEPRO_*, R_TILEGX_*): New macros.
18659         * scripts/firstversions.awk: Fix bug in version range handling.
18661         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
18663         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
18665         * include/sys/epoll.h: New file.
18666         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
18667         libc_hidden_def.
18669 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
18671         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
18672         Avoid unnecessary __WORDSIZE == 64 test.
18673         (fmaxf): Use VEX format if possible.
18674         (fmax): Likewise.
18675         (fminf): Likewise.
18676         (fmin): Likewise.
18678         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
18679         * math/math_private.h: Remove libc_fegetround* and
18680         libc_fesetround*.
18681         * sysdeps/i386/configure.in: Check for -msse2avx.
18682         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
18683         also if SSE2AVX is defined.
18684         Remove libc_fegetround* and libc_fesetround*.
18685         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
18686         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
18687         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
18688         of HAS_YMM_USABLE.
18689         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18690         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18691         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18692         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18693         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18695         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
18697 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18699         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
18700         size is not set.
18701         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18703 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
18705         [BZ #13618]
18706         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
18707         relocation.
18708         * Makeconfig (libm): Define.
18709         * elf/Makefile: Add rules to build and run tst-relsort1.
18710         * elf/tst-relsort1.c: New file.
18711         * elf/tst-relsort1mod1.c: New file.
18712         * elf/tst-relsort1mod2.c: New file.
18714 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
18716         * math/s_ldexp.c: Remove __STDC__ conditionals.
18717         * math/s_ldexpf.c: Likewise.
18718         * math/s_ldexpl.c: Likewise.
18719         * math/s_nextafter.c: Likewise.
18720         * math/s_nexttowardf.c: Likewise.
18721         * math/s_significand.c: Likewise.
18722         * math/s_significandf.c: Likewise.
18723         * math/s_significandl.c: Likewise.
18724         * math/w_jnl.c: Likewise.
18725         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18726         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18727         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18728         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18729         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18730         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18731         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
18732         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18733         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18734         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18735         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18736         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18737         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18738         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18739         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18740         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18741         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18742         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18743         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18744         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18745         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18746         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18747         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18748         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18749         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18750         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18751         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18752         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18753         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18754         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18755         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18756         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18757         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18758         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18759         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18760         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18761         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18762         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18763         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18764         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18765         * sysdeps/ieee754/k_standard.c: Likewise.
18766         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18767         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18768         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18769         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18770         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18771         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18772         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18773         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18774         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18775         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18776         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18777         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18778         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18779         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18780         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18781         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18782         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18783         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18784         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18785         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18786         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18787         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18788         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18789         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18790         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18791         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18792         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18793         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18794         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18795         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18796         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18797         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
18798         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18799         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18800         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18801         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18802         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
18803         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18804         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18805         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
18806         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
18807         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18808         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
18809         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
18810         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18811         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
18812         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
18813         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18814         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18815         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
18816         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
18817         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18818         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18819         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18820         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18821         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18822         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
18823         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18824         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18825         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18826         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18827         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18828         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18829         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18830         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18831         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18832         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18833         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18834         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18835         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18836         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18837         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18838         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18839         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18840         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18841         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18842         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
18843         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18844         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
18845         * sysdeps/ieee754/s_matherr.c: Likewise.
18846         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
18847         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
18848         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
18849         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
18851 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18853         * crypt/md5.h: Remove __STDC__ conditionals.
18854         * libio/libioP.h: Likewise.
18855         * locale/programs/config.h: Likewise.
18856         * sysdeps/generic/sysdep.h: Likewise.
18857         * sysdeps/i386/asm-syntax.h: Likewise.
18858         * sysdeps/s390/asm-syntax.h: Likewise.
18859         * sysdeps/unix/sysdep.h: Likewise.
18860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
18861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
18863 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18865         * libio/libio.h: Remove __STDC__ conditionals.
18866         * malloc/obstack.h: Likewise.
18867         * math/complex.h: Likewise.
18868         * math/math.h: Likewise.
18869         * sysdeps/generic/_G_config.h: Likewise.
18870         * sysdeps/gnu/_G_config.h: Likewise.
18871         * sysdeps/mach/hurd/_G_config.h: Likewise.
18872         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18873         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18874         * sysdeps/sparc/bits/mathdef.h: Likewise.
18876 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
18878         [BZ #13583]
18879         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
18880         Clean up HAS_* macros.
18881         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
18882         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
18883         possible.
18884         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
18885         HAS_AVX.
18886         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18887         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18888         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18889         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18890         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18892 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
18894         * elf/tst-unique3.cc (gets): Remove declaration.
18895         * elf/tst-unique3lib.cc (gets): Likewise.
18896         * elf/tst-unique3lib2.cc (gets): Likewise.
18897         * elf/tst-unique4.cc (gets): Likewise.
18899 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
18901         * include/stdio.h: Add C++ protection.  Add gets declarations and
18902         definitions.
18903         * debug/tst-chk1.c: Don't declare gets here.
18904         * stdio-common/tst-gets.c: Likewise.
18906 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18908         * posix/glob: Remove directory.
18910 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18912         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
18914 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
18916         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
18917         of the non-standard EPFNOSUPPORT.
18919 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18921         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
18922         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
18923         ANYWHERE set to 1 only on KERN_NO_SPACE error.
18925 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
18927         * wcsmbs/uchar.h: Test __STDC_VERSION__.
18929 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
18931         * nscd/aicache.c (addhstaiX): Do not cache negative results of
18932         transient errors.
18933         * nscd/grpcache.c (cache_addgr): Likewise.
18934         * nscd/hstcache.c (cache_addhst): Likewise.
18935         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18936         * nscd/pwdcache.c (cache_addpw): Likewise.
18937         * nscd/servicescache.c (cache_addserv): Likewise.
18939 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
18941         * malloc/malloc.c: Various cleanups.
18942         * malloc/hooks.c: Likewise.
18944         * stdlib/Makefile (tests): Add bug-fmtmsg1.
18945         * stdlib/bug-fmtmsg1.c: New file.
18947         * stdlib/fmtmsg.c (init): Add missing unlock.
18948         Patch by Peng Haitao <penght@cn.fujitsu.com>.
18950 2012-01-12  Marek Polacek  <polacek@redhat.com>
18952         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
18953         and _GNU_SOURCE.
18955 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18957         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
18958         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
18959         macro to ensure uniqueness of label name.
18960         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
18961         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
18963 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
18965         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
18967         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
18968         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18969         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18970         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
18972 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
18974         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
18976         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
18977         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18978         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18980         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
18982         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
18983         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18984         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18985         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
18987         * math/bits/math-finite.h: Add ldexp support.
18989 2012-01-10  Marek Polacek  <polacek@redhat.com>
18991         * locale/programs/localedef.h (show_archive_content): Add noreturn
18992         attribute.
18994 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
18996         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
18998 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19000         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
19002         * io/Makefile (headers): Add bits/poll2.h.
19004 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
19006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
19007         typo #include statement.
19009 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19011         * include/sys/cdefs.h: Define __attribute_alloc_size.
19012         * catgets/gencat.c: Add alloc_size attribute and apply consistently
19013         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
19014         * elf/pldd.c: Likewise.
19015         * iconv/iconv_charmap.c: Likewise.
19016         * iconv/iconvconfig.c: Likewise.
19017         * iconv/strtab.c: Likewise.
19018         * locale/programs/locale.c: Likewise.
19019         * locale/programs/localedef.h: Likewise.
19020         * locale/programs/simple-hash.c: Likewise.
19021         * nscd/nscd.h: Likewise.
19022         * nss/makedb.c: Likewise.
19023         * sysdeps/generic/ldconfig.h: Likewise.
19024         * locale/programs/localedef.c: Remove xmalloc prototype.
19025         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
19027 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19029         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
19030         appropriate.
19032 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19034         * math/Makefile (tests): Add tst-CMPLX.
19035         * math/tst-CMPLX.c: New file.
19037         * math/complex.h (CMPLXL): Fix typo.
19039         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
19040         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
19041         GLIBC_2.16.
19042         * debug/tst-chk1.c: Add poll and ppoll tests.
19043         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
19044         * include/sys/poll.h: Add hidden proto for ppoll.
19045         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
19046         * sysdeps/mach/hurd/ppoll.c: Likewise.
19047         * io/ppoll.c: Likewise.
19048         * debug/poll_chk.c: New file.
19049         * debug/ppoll_chk.c: New file.
19050         * include/bits/poll2.h: New file.
19051         * io/bits/poll2.h: New file.
19053         [BZ #1350]
19054         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
19056         * configure.in: static is always set to yes.  Remove.
19057         * config.make.in: Don't set build-static.
19058         * Makeconfig: Remove use of build-static.
19059         * dlfcn/Makefile: Likewise.
19060         * elf/Makefile: Likewise.
19061         * math/Makefile: Likewise.
19062         * misc/Makefile: Likewise.
19063         * nptl/Makefile: Likewise.
19064         * sysdeps/mach/hurd/Makefile: Likewise.
19066         * configure.in: PWD_P is not used anymore.
19067         * config.make.in: Remove PWD_P entry.
19069         * configure.in: Remove last remnants of RANLIB.
19070         No need to check for signed size_t anymore.
19071         Don't set libc_commonpagesize and libc_relro_required here for Alpha
19072         and IA-64.
19073         Remove __builtin_expect test because we require at least gcc 3.4.
19074         * aclocal.m4: Likewise.
19076         * wcsmbs/mbrtoc16.c: Implement using towc function.
19077         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
19078         * wcsmbs/wcsmbsload.c: Likewise.
19079         * iconv/gconv_simple.c: Likewise.
19080         * iconv/gconv_int.h: Likewise.
19081         * iconv/gconv_builtin.h: Likewise.
19082         * iconv/iconv_prog.c: Remove CHAR16 handling.
19084         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
19086         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
19088         * configure.in: Remove --with-elf and --enable-bounded options.
19089         Dont set base_machine for ia64.  More non-ELF conditions removed.
19090         Remove testing and setting of leading underscore information.
19091         * config.make.in (build-bounded): Set to no.
19092         * config.h.in: Remove NO_UNDERSCORES entry.
19093         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
19094         them.
19095         * csu/start.c: Remove !NO_UNDERSCORE code.
19096         * locale/localeinfo.h: Likewise.
19097         * sysdeps/generic/machine-gmon.h: Likewise.
19098         * sysdeps/generic/sysdep.h: Likewise.
19099         * sysdeps/i386/sysdep.h: Likewise.
19100         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19101         * sysdeps/mach/sysdep.h: Likewise.
19102         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19103         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19104         * sysdeps/sh/sysdep.h: Likewise.
19105         * sysdeps/sparc/sparc32/alloca.S: Likewise.
19106         * sysdeps/unix/i386/sysdep.S: Likewise.
19107         * sysdeps/unix/sparc/start.c: Likewise.
19108         * sysdeps/unix/sparc/sysdep.S: Likewise.
19109         * sysdeps/unix/sparc/sysdep.h: Likewise.
19110         * sysdeps/unix/start.c: Likewise.
19111         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19112         * sysdeps/x86_64/sysdep.h: Likewise.
19114 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
19116         [BZ #13553]
19117         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
19118         for non-gcc.
19119         * argp/argp-fmtstream.h: Use const instead __const.
19120         * argp/argp.h: Likewise.
19121         * assert/assert.h: Likewise.
19122         * bits/fenv.h: Likewise.
19123         * bits/sched.h: Likewise.
19124         * bits/sigset.h: Likewise.
19125         * bits/sigthread.h: Likewise.
19126         * catgets/nl_types.h: Likewise.
19127         * conform/data/pthread.h-data: Likewise.
19128         * crypt/crypt-private.h: Likewise.
19129         * crypt/crypt.h: Likewise.
19130         * crypt/crypt_util.c: Likewise.
19131         * ctype/ctype.h: Likewise.
19132         * debug/execinfo.h: Likewise.
19133         * debug/mbsnrtowcs_chk.c: Likewise.
19134         * debug/mbsrtowcs_chk.c: Likewise.
19135         * debug/wcsnrtombs_chk.c: Likewise.
19136         * debug/wcsrtombs_chk.c: Likewise.
19137         * debug/wcstombs_chk.c: Likewise.
19138         * dirent/dirent.h: Likewise.
19139         * dlfcn/dlfcn.h: Likewise.
19140         * elf/neededtest4.c: Likewise.
19141         * grp/grp.h: Likewise.
19142         * gshadow/gshadow.h: Likewise.
19143         * iconv/gconv.h: Likewise.
19144         * iconv/gconv_int.h: Likewise.
19145         * iconv/gconv_simple.c: Likewise.
19146         * iconv/iconv.h: Likewise.
19147         * iconv/loop.c: Likewise.
19148         * iconv/skeleton.c: Likewise.
19149         * include/aio.h: Likewise.
19150         * include/aliases.h: Likewise.
19151         * include/argz.h: Likewise.
19152         * include/arpa/inet.h: Likewise.
19153         * include/assert.h: Likewise.
19154         * include/dirent.h: Likewise.
19155         * include/dlfcn.h: Likewise.
19156         * include/execinfo.h: Likewise.
19157         * include/fcntl.h: Likewise.
19158         * include/fenv.h: Likewise.
19159         * include/glob.h: Likewise.
19160         * include/grp.h: Likewise.
19161         * include/libintl.h: Likewise.
19162         * include/mntent.h: Likewise.
19163         * include/netdb.h: Likewise.
19164         * include/pwd.h: Likewise.
19165         * include/rpc/netdb.h: Likewise.
19166         * include/sched.h: Likewise.
19167         * include/search.h: Likewise.
19168         * include/shadow.h: Likewise.
19169         * include/signal.h: Likewise.
19170         * include/stdio.h: Likewise.
19171         * include/stdlib.h: Likewise.
19172         * include/string.h: Likewise.
19173         * include/sys/socket.h: Likewise.
19174         * include/sys/stat.h: Likewise.
19175         * include/sys/statfs.h: Likewise.
19176         * include/sys/statvfs.h: Likewise.
19177         * include/sys/syslog.h: Likewise.
19178         * include/sys/time.h: Likewise.
19179         * include/sys/uio.h: Likewise.
19180         * include/time.h: Likewise.
19181         * include/unistd.h: Likewise.
19182         * include/utmp.h: Likewise.
19183         * include/wchar.h: Likewise.
19184         * include/wctype.h: Likewise.
19185         * inet/aliases.h: Likewise.
19186         * inet/arpa/inet.h: Likewise.
19187         * inet/netinet/ether.h: Likewise.
19188         * inet/netinet/in.h: Likewise.
19189         * intl/libintl.h: Likewise.
19190         * io/bits/fcntl2.h: Likewise.
19191         * io/fcntl.h: Likewise.
19192         * io/ftw.h: Likewise.
19193         * io/sys/poll.h: Likewise.
19194         * io/sys/stat.h: Likewise.
19195         * io/sys/statfs.h: Likewise.
19196         * io/sys/statvfs.h: Likewise.
19197         * io/utime.h: Likewise.
19198         * libio/bits/stdio.h: Likewise.
19199         * libio/bits/stdio2.h: Likewise.
19200         * libio/libio.h: Likewise.
19201         * libio/libioP.h: Likewise.
19202         * libio/stdio.h: Likewise.
19203         * locale/lc-ctype.c: Likewise.
19204         * locale/locale.h: Likewise.
19205         * login/utmp.h: Likewise.
19206         * malloc/arena.c: Likewise.
19207         * malloc/malloc.c: Likewise.
19208         * malloc/malloc.h: Likewise.
19209         * malloc/mcheck.c: Likewise.
19210         * malloc/mtrace.c: Likewise.
19211         * math/bits/mathcalls.h: Likewise.
19212         * math/fenv.h: Likewise.
19213         * math/math_private.h: Likewise.
19214         * misc/bits/error.h: Likewise.
19215         * misc/bits/syslog.h: Likewise.
19216         * misc/err.h: Likewise.
19217         * misc/error.h: Likewise.
19218         * misc/fstab.h: Likewise.
19219         * misc/mntent.h: Likewise.
19220         * misc/regexp.h: Likewise.
19221         * misc/search.h: Likewise.
19222         * misc/sgtty.h: Likewise.
19223         * misc/sys/mman.h: Likewise.
19224         * misc/sys/syslog.h: Likewise.
19225         * misc/sys/uio.h: Likewise.
19226         * misc/sys/xattr.h: Likewise.
19227         * misc/ttyent.h: Likewise.
19228         * nis/rpcsvc/ypclnt.h: Likewise.
19229         * nss/nss.h: Likewise.
19230         * posix/bits/unistd.h: Likewise.
19231         * posix/fnmatch.h: Likewise.
19232         * posix/glob.h: Likewise.
19233         * posix/sched.h: Likewise.
19234         * posix/spawn.h: Likewise.
19235         * posix/sys/wait.h: Likewise.
19236         * posix/unistd.h: Likewise.
19237         * posix/wordexp.h: Likewise.
19238         * pwd/pwd.h: Likewise.
19239         * resolv/netdb.h: Likewise.
19240         * resource/sys/resource.h: Likewise.
19241         * rt/aio.h: Likewise.
19242         * rt/bits/mqueue2.h: Likewise.
19243         * rt/mqueue.h: Likewise.
19244         * shadow/shadow.h: Likewise.
19245         * signal/signal.h: Likewise.
19246         * socket/send.c: Likewise.
19247         * socket/sendto.c: Likewise.
19248         * socket/sys/socket.h: Likewise.
19249         * stdio-common/printf.h: Likewise.
19250         * stdlib/bits/stdlib.h: Likewise.
19251         * stdlib/fmtmsg.h: Likewise.
19252         * stdlib/monetary.h: Likewise.
19253         * stdlib/stdlib.h: Likewise.
19254         * stdlib/ucontext.h: Likewise.
19255         * streams/stropts.h: Likewise.
19256         * string/argz.h: Likewise.
19257         * string/bits/string2.h: Likewise.
19258         * string/string.h: Likewise.
19259         * string/strings.h: Likewise.
19260         * sunrpc/rpc/auth.h: Likewise.
19261         * sunrpc/rpc/auth_des.h: Likewise.
19262         * sunrpc/rpc/clnt.h: Likewise.
19263         * sunrpc/rpc/netdb.h: Likewise.
19264         * sunrpc/rpc/pmap_clnt.h: Likewise.
19265         * sunrpc/rpc/xdr.h: Likewise.
19266         * sysdeps/generic/inttypes.h: Likewise.
19267         * sysdeps/generic/net/if.h: Likewise.
19268         * sysdeps/generic/sys/swap.h: Likewise.
19269         * sysdeps/gnu/net/if.h: Likewise.
19270         * sysdeps/gnu/utmpx.h: Likewise.
19271         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
19272         * sysdeps/i386/i486/bits/string.h: Likewise.
19273         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
19274         * sysdeps/s390/bits/string.h: Likewise.
19275         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
19276         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
19277         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19278         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
19279         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19280         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
19281         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
19282         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
19283         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
19284         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
19285         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
19286         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
19287         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
19288         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
19289         * sysdeps/unix/sysv/linux/readv.c: Likewise.
19290         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
19291         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
19292         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19293         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19294         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19295         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19296         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
19297         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
19298         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
19299         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
19300         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
19301         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
19302         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19303         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
19304         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
19305         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
19306         * sysvipc/sys/ipc.h: Likewise.
19307         * sysvipc/sys/msg.h: Likewise.
19308         * sysvipc/sys/sem.h: Likewise.
19309         * sysvipc/sys/shm.h: Likewise.
19310         * termios/termios.h: Likewise.
19311         * time/sys/time.h: Likewise.
19312         * time/time.h: Likewise.
19313         * wcsmbs/bits/wchar2.h: Likewise.
19314         * wcsmbs/uchar.h: Likewise.
19315         * wcsmbs/wchar.h: Likewise.
19316         * wctype/wctype.h: Likewise.
19318         [BZ #13551]
19319         * Makeconfig: Remove all but ELF support including AIX support.
19320         * Makerules: Likewise.
19321         * config.h.in: Likewise.
19322         * config.make.in: Likewise.
19323         * configure: Likewise.
19324         * configure.in: Likewise.
19325         * csu/Makefile: Likewise.
19326         * csu/version.c: Likewise.
19327         * debug/Makefile: Likewise.
19328         * dlfcn/Makefile: Likewise.
19329         * elf/Makefile: Likewise.
19330         * extra-lib.mk: Likewise.
19331         * iconv/Makefile: Likewise.
19332         * include/libc-symbols.h: Likewise.
19333         * include/shlib-compat.h: Likewise.
19334         * resolv/Makefile: Likewise.
19335         * resolv/res_libc.c: Likewise.
19336         * rt/Makefile: Likewise.
19337         * sysdeps/i386/asm-syntax.h: Likewise.
19338         * sysdeps/i386/sysdep.h: Likewise.
19339         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19340         * sysdeps/mach/sysdep.h: Likewise.
19341         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
19342         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
19343         * sysdeps/s390/asm-syntax.h: Likewise.
19344         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19345         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19346         * sysdeps/sh/sysdep.h: Likewise.
19347         * sysdeps/unix/sparc/sysdep.h: Likewise.
19348         * sysdeps/wordsize-32/divdi3.c: Likewise.
19349         * sysdeps/x86_64/sysdep.h: Likewise.
19351         * argp/Versions: Remove _argp_unlock_xxx.
19353         [BZ #13559]
19354         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
19355         * abilist/libBrokenLocale.abilist: Likewise.
19356         * abilist/libanl.abilist: Likewise.
19357         * abilist/libc.abilist: Likewise.
19358         * abilist/libcrypt.abilist: Likewise.
19359         * abilist/libdl.abilist: Likewise.
19360         * abilist/libm.abilist: Likewise.
19361         * abilist/libnsl.abilist: Likewise.
19362         * abilist/libpthread.abilist: Likewise.
19363         * abilist/libresolv.abilist: Likewise.
19364         * abilist/librt.abilist: Likewise.
19365         * abilist/libthread_db.abilist: Likewise.
19366         * abilist/libutil.abilist: Likewise.
19367         * abilist/libnss_db.abilist: New file.
19369         * scripts/abilist.awk: Add support for indirect functions.
19371         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
19373         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
19375         * shlib-versions: Remove entries for ports architectures.
19377         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
19378         files in ports.
19379         * elf/stackguard-macros.h: Remove support for IA-64.
19380         * elf/tst-auditmod1.c: Likewise.
19381         * sysdeps/generic/ldsodefs.h: Likewise.
19383         * sysdeps/unix/sysv/linux/configure.in: Ports should define
19384         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
19385         configure files.
19387         [BZ #13552]
19388         * configure.in: Remove --enable-omitfp support.
19389         * FAQ.in: Adjust.
19390         * config.make.in: Likewise.
19391         * Makeconfig: Likewise.
19392         * manual/install.texi: Likewise.
19394         In case anyone cares, the IA-64 architecture could move to ports.
19395         * sysdeps/ia64/*: Removed.
19396         * sysdeps/unix/sysv/linux/ia64/*: Removed.
19397         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
19399         [BZ #13555]
19400         * configure.in: Remove entries for unsupported architectures.
19402         [BZ #13533]
19403         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
19404         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
19405         routines.
19406         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
19407         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
19408         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
19409         fall back to using wcrtomb.
19410         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
19411         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
19412         renaming.
19413         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
19414         * wcsmbs/tst-c16c32-1.c: New file.
19416         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
19417         local variable.
19419         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
19421         * elf/tst-unique3.cc: Add explicit declaration of gets.
19422         * elf/tst-unique3lib.cc: Likewise.
19423         * elf/tst-unique3lib2.cc: Likewise.
19424         * elf/tst-unique4.cc: Likewise.
19426         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
19428 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
19430         [BZ #13566]
19431         * assert/assert.h (static_assert): Don't define for C++.
19432         * libio/stdio.h (gets): Do declare for C++ <= C++11.
19433         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
19435 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
19437         * iconv/loop.c (single loop): Fix assertion in storing of
19438         remaining bytes.
19440         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
19442 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
19444         * posix/getconf.c: Update copyright year.
19445         * nss/getent.c: Likewise.
19446         * nss/makedb.c: Likewise.
19447         * iconv/iconvconfig.c: Likewise.
19448         * iconv/iconv_prog.c: Likewise.
19449         * elf/ldconfig.c: Likewise.
19450         * elf/pldd.c: Likewise.
19451         * elf/sotruss.ksh: Likewise.
19452         * catgets/gencat.c: Likewise.
19453         * csu/version.c: Likewise.
19454         * elf/ldd.bash.in: Likewise.
19455         * elf/sprof.c (print_version): Likewise.
19456         * locale/programs/locale.c: Likewise.
19457         * locale/programs/localedef.c: Likewise.
19458         * login/programs/pt_chown.c: Likewise.
19459         * nscd/nscd.c (print_version): Likewise.
19460         * debug/xtrace.sh: Likewise.
19461         * malloc/memusage.sh: Likewise.
19462         * malloc/mtrace.pl: Likewise.
19463         * debug/catchsegv.sh: Likewise.
19465 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
19467         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
19468         pure attribute.
19470 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
19472         [BZ #13533]
19473         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
19474         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
19475         transformations.
19476         * iconv/gconv_int.h: Likewise.
19477         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
19478         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
19479         from libc for GLIBC_2.16.
19480         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
19481         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
19482         * wcsmbs/uchar.h: Really define mbstate_t.
19483         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
19484         * wcsmbs/c16rtomb.c: New file.
19485         * wcsmbs/mbrtoc16.c: New file.
19486         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
19487         for C/POSIX locale.
19488         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
19489         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
19491         * wcsmbs/wchar.h: Add missing __restrict.
19493 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
19495         [BZ #13532]
19496         * time/Makefile (routines): Add timespec_get.
19497         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
19498         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
19499         timespec for ISO C11.
19500         * time/timespec_get.c: New file.
19501         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
19502         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
19504         [BZ #13531]
19505         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
19506         * stdlib/stdlib.h: Declare aligned_alloc.
19507         * Versions.def: Add GLIBC_2.16 for libc.
19508         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
19510         [BZ 13527]
19511         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
19512         ISO C11.
19514         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
19515         code.
19517         [BZ #13528]
19518         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
19520         [BZ #13529]
19521         * assert/assert.h (static_assert): Define.
19523         * version.h: Update for 2.16 development version.
19525         [BZ #13526]
19526         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
19527         _ISOC11_SOURCE.
19529         * version.h (RELEASE): Bump for 2.15 release.
19530         * include/features.h (__GLIBC_MINOR__): Bump to 15.
19532         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
19533         Patch by Marek Polacek <mpolacek@redhat.com>.
19535         * bits/byteswap.h: Protect long long constants with __extension__.
19536         * sysdeps/i386/bits/byteswap.h: Likewise.
19537         * sysdeps/ia64/bits/byteswap.h: Likewise.
19538         * sysdeps/s390/bits/byteswap.h: Likewise.
19539         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19541 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19543         [BZ #13540]
19544         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
19545         destination buffer.
19546         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
19548 2011-12-23  Marek Polacek  <polacek@redhat.com>
19550         * elf/dl-addr.c (determine_info): Add inline keyword.
19551         * elf/tst-auditmod4b.c (check_avx): Likewise.
19552         * elf/tst-auditmod6b.c (check_avx): Likewise.
19553         * elf/tst-auditmod6c.c (check_avx): Likewise.
19554         * elf/tst-auditmod7b.c (check_avx): Likewise.
19556 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
19558         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
19559         !__SSE_MATH__.
19561 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19563         [BZ #13540]
19564         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
19565         processing for last bytes.
19567 2011-08-06  Bruno Haible  <bruno@clisp.org>
19569         [BZ #13061]
19570         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
19571         U+0385, not to U+1FEE.
19573         [BZ #13062]
19574         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
19575         entry for U+00A5 U+0301.
19577 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
19579         [BZ #13166]
19580         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
19581         buffer for the output is too small.
19583         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
19584         optimization.
19586         [BZ #13185]
19587         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
19588         SSE flags if possible.
19590 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19592         [BZ #13540]
19593         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
19594         processing for last bytes.
19596 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
19598         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
19599         (syscall-list-default-options, syscall-list-default-condition)
19600         (syscall-list-includes): Define.
19601         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
19602         list of ABIs and options and #if conditions for each ABI.  Do not
19603         handle common syscalls between ABIs specially.
19604         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
19605         Remove.
19606         (syscall-list-variants, syscall-list-32bit-options)
19607         (syscall-list-32bit-condition, syscall-list-64bit-options)
19608         (syscall-list-64bit-condition): Define.
19609         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
19610         (syscall-list-variants, syscall-list-32bit-options)
19611         (syscall-list-32bit-condition, syscall-list-64bit-options)
19612         (syscall-list-64bit-condition): Define.
19613         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
19614         Remove.
19615         (syscall-list-variants, syscall-list-32bit-options)
19616         (syscall-list-32bit-condition, syscall-list-64bit-options)
19617         (syscall-list-64bit-condition): Define.
19618         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
19619         Remove.
19620         (syscall-list-variants, syscall-list-32bit-options)
19621         (syscall-list-32bit-condition, syscall-list-64bit-options)
19622         (syscall-list-64bit-condition): Define.
19624 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
19626         * locale/iso-639.def: Add brx entry.
19628         [BZ #13328]
19629         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
19630         Proposed by Mariusz_Cukr <marcukr@op.pl>.
19632         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
19633         __feraiseexcept_renamed.
19635 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
19637         [BZ #13538]
19638         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
19639         EPOLLET with unsigned values.
19640         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19641         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19643         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
19644         to large cancellation.
19645         * math/s_cacoshf.c: Likewise.
19646         * math/s_cacoshl.c: Likewise.
19648 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
19650         [BZ #13305]
19651         [BZ #12786]
19652         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
19653         * math/s_cacoshf.c: Likewise.
19654         * math/s_cacoshl.c: Likewise.
19656 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
19658         [BZ #13439]
19659         * iconv/gconv.h: Define __GCONV_SWAP.
19660         * iconvdata/unicode.c: The swap bit must be stored in __flags.
19661         * iconvdata/utf-16.c: Likewise.
19662         * iconvdata/utf-32.c: Likewise.
19664 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
19666         [BZ #13524]
19667         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
19668         numerator after shifting it by one limb.
19670 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19672         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
19673         under [__USE_EXTERN_INLINES].
19675 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
19677         [BZ #13446]
19678         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
19680 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19682         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
19683         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
19684         optimized code.
19685         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
19686         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
19687         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
19688         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
19689         for strncasecmp/strncasecmp_l compilation.
19690         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
19691         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
19693 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
19695         [BZ #13484]
19696         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
19697         of __asm__.
19699 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
19701         [BZ #13506]
19702         * time/tzfile.c (__tzfile_read): Check values from file header.
19704 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19706         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
19707         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
19708         * powerpc/powerpc32/dl-start.S: Likewise.
19709         * powerpc/powerpc32/elf/start.S: Likewise.
19710         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
19711         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
19712         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
19713         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
19714         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
19715         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
19716         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
19717         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19718         * powerpc/powerpc32/fpu/s_round.S: Likewise.
19719         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
19720         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
19721         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
19722         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
19723         * powerpc/powerpc32/memset.S: Likewise.
19724         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
19725         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
19726         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
19727         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
19728         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
19729         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
19730         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
19731         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
19732         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
19733         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
19734         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
19735         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
19736         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
19738 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19740         * math/libm-test.inc: Added more nearbyint tests.
19741         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
19742         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
19743         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
19744         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
19746 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
19748         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
19749         FD_CLOEXEC.
19751 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19753         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
19754         Add wcscpy-ssse3 wcscpy-c.
19755         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
19756         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
19757         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
19758         * sysdeps/x86_64/wcschr.S: New file.
19759         * sysdeps/x86_64/wcsrchr.S: New file.
19760         * string/test-strcmp.c: Remove checking of wcscmp function for
19761         wrong alignments.
19762         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
19763         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
19764         wcsrchr-sse2 wcsrchr-c.
19765         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
19766         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
19767         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
19768         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
19769         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
19770         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
19771         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
19772         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
19773         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
19774         * wcsmbc/wcschr.c (WCSCHR): New macro.
19776 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19778         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
19779         * wcsmbs/test-wcsrchr.c: New file.
19780         * string/test-strrchr.c: Add wcsrchr support.
19781         (WIDE): New macro.
19782         * wcsmbs/test-wcscpy.c: New file.
19783         * string/test-strcpy.c: Add wcscpy support.
19784         (WIDE): New macro.
19786 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
19788         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
19789         the inner loop.
19791 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
19793         [BZ #13472]
19794         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
19796 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
19798         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
19799         Minor optimizations.
19801         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
19802         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
19803         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
19805 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
19807         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
19808         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
19809         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
19810         for gcc to avoid warnings.
19811         * inet/Makefile (tests): Add tst-checks.
19812         * inet/tst-checks.c: New file.
19814         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
19815         warning.
19817         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
19818         __wmemcmp_sse2.
19820         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
19821         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
19823         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
19825 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
19827         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
19828         problem.
19830         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
19832 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
19834         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
19835         conditional on GCC version.
19836         (__arch_compare_and_exchange_val_8_acq)
19837         (__arch_compare_and_exchange_val_16_acq)
19838         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
19839         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
19840         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
19842 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
19844         * sysdeps/sh/backtrace.c: New file.
19846 2011-12-02  Andreas Schwab  <schwab@redhat.com>
19848         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
19849         parenthesis.
19851 2011-12-01  Andreas Schwab  <schwab@redhat.com>
19853         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
19854         falling back to utime.
19856 2011-11-30  Andreas Schwab  <schwab@redhat.com>
19858         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
19859         expectations for float.
19861 2011-11-29  Andreas Schwab  <schwab@redhat.com>
19863         * locale/weight.h (findidx): Add parameter len.
19864         * locale/weightwc.h (findidx): Likewise.
19865         * posix/fnmatch_loop.c (FCT): Adjust caller.
19866         * posix/regcomp.c (build_equiv_class): Likewise.
19867         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
19868         * posix/regexec.c (check_node_accept_bytes): Likewise.
19869         * string/strcoll_l.c (STRCOLL): Likewise.
19870         * string/strxfrm_l.c (STRXFRM): Likewise.
19872 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
19874         * Makefile.in: Remove CVSOPT handling.
19875         * configure.in: Remove use of AC_REVISION.
19876         * iconvdata/Makefile (distribute): No need to filter out CVS.
19877         * scripts/list-sources.sh: Remove CVS, subversion and monotone
19878         handling.
19880 2011-11-16  Andreas Schwab  <schwab@redhat.com>
19882         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
19883         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
19884         [USE_AS_STRNCASECMP_L]: Likewise.
19885         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
19886         NO_TLS_DIRECT_SEG_REFS.
19887         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
19888         Fix argument offsets for non-PIC.
19889         [USE_AS_STRNCASECMP_L]: Likewise.
19890         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
19891         NO_TLS_DIRECT_SEG_REFS.
19893 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19895         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
19896         O_CLOEXEC.
19897         * locale/loadlocale.c (_nl_load_locale): Likewise.
19899 2011-11-15  Andreas Schwab  <schwab@redhat.com>
19901         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
19902         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
19903         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
19904         (SYSCALL_GETTIME): Set errno on error.
19906         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
19907         count references to noai6ai_cached.
19909 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19911         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
19913         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
19914         FD_CLOEXEC for /proc/self/maps.
19916         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
19917         FD_CLOEXEC for /proc/meminfo.
19919         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
19920         gai.conf.
19922         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
19923         FD_CLOEXEC for given file.
19925         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
19927         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
19928         FD_CLOEXEC for /etc/hosts.
19929         (_gethtent): Likewise.
19931         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
19933         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
19934         cancellation and set FD_CLOEXEC for /etc/netgroup.
19936         * nss/nss_files/files-key.c (search): Don't allow cancellation when
19937         reading /etc/publickey.
19939         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
19940         allow cancellation when reading /etc/group.
19942         * nss/nss_files/files-alias.c (internal_setent): Don't allow
19943         cancellation.
19944         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
19946         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
19947         when using data file.
19949         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
19951         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
19952         (write_nis_obj): Use "c" and "e" in fopen.
19954         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
19956         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
19958         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
19960         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
19962         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
19963         locale.alias.
19965         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
19967         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
19969         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
19971         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
19972         file parsing and set FD_CLOEXEC.
19974 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19976         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
19978 2011-11-14  Andreas Schwab  <schwab@redhat.com>
19980         * malloc/arena.c (arena_get2): Don't call reused_arena when
19981         _int_new_arena failed.
19983 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19985         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
19986         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
19987         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
19988         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19989         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19990         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
19991         to compile strcasecmp and strncasecmp.
19992         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
19993         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
19995         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
19997 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
19999         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
20000         locale-defines.sym to gen-as-const-headers.
20001         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
20002         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
20003         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
20004         to compile strcasecmp and strncasecmp.
20005         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
20006         strcasecmp_l and strncasecmp_l.
20007         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
20008         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
20009         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
20010         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
20011         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
20012         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
20013         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
20014         * sysdeps/i386/i686/multiarch/strncase.S: New file.
20015         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
20016         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
20017         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
20019 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
20021         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
20022         result of SYSDEP_GETTIME_CPU to retval.
20023         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
20024         parameter list to macro.  Remove trailing semicolon.  Adjust users.
20026         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
20027         variable.
20029         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
20030         mantissa words.
20031         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20033         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
20034         from unused variable.
20036         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
20037         DWARF definitions.
20038         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
20039         for assembling.
20041         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
20042         over namespaces.
20044         * sunrpc/rpc_prot.c (rejected): Fix case value.
20046         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
20047         unsigned long long int to avoid warnings in shift.
20049         * posix/regex_internal.c (re_string_reconstruct): Actually use result
20050         of use of trans.
20051         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
20052         variable tmp.
20054         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
20055         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
20056         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
20058         * nis/nis_table.c (nis_list): Use variable of correct type for
20059         result of __follow_path call.
20061 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20063         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
20064         of math functions ceil, trunc, floor, round, and sqrt, when
20065         avaliable on the platform.
20066         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
20067         name clash.
20068         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
20069         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
20070         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
20072 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
20074         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
20075         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
20077 2011-11-11  Roland McGrath  <roland@hack.frob.com>
20079         * include/unistd.h: Fix __readlink return type.
20080         Reported by Chris Metcalf <cmetcalf@tilera.com>.
20082 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
20084         * stdlib/ucontext.h: Undo last change for makecontext.
20086 2011-11-11  Andreas Schwab  <schwab@redhat.com>
20088         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
20090         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
20091         * setjmp/setjmp.h: Mark functions as non-leaf.
20092         * setjmp/bits/setjmp2.h: Likewise.
20093         * stdlib/ucontext.h: Likewise.
20095 2011-11-10  Andreas Schwab  <schwab@redhat.com>
20097         * malloc/arena.c (_int_new_arena): Don't increment narenas.
20098         (reused_arena): Don't check arena limit.
20099         (arena_get2): Atomically check arena limit.
20101 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
20103         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
20104         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
20106         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
20107         instructions.
20109 2011-11-07  Andreas Schwab  <schwab@redhat.com>
20111         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
20112         handler when locking.
20114         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
20115         Fix size of allocated buffer.
20117 2011-11-04  Andreas Schwab  <schwab@redhat.com>
20119         [BZ #10103]
20120         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
20121         declarations for long double functions.
20122         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
20124         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
20126 2011-11-03  Andreas Schwab  <schwab@redhat.com>
20128         * nscd/nscd.c (main): Don't start AVC thread until credentials are
20129         installed.
20131         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
20132         is disabled.
20134 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20136         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
20138 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
20140         * include/alloca.h (stackinfo_alloca_round): Define.
20141         (extend_alloca): Use it.
20142         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
20143         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
20144         here.
20146         * scripts/check-local-headers.sh: Ignore libaudit.h.
20148         * nscd/Makefile (extra-objs): Make recursively expanded.
20150 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
20152         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
20153         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
20155         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
20156         * posix/tst-rfc3484-2.c: Likewise.
20157         * posix/tst-rfc3484-3.c: Likewise.
20159         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20160         process_vm_writev.
20161         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
20162         process_vm_writev.
20163         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
20164         process_vm_writev from libc using GLIBC_2.15 version.
20166         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
20168 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
20170         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
20171         stack usage.
20173 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
20175         [BZ #13367]
20176         * nss/getent.c (initgroups_keys): Show error message in case no group
20177         names are given.
20179         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
20180         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
20181         __bump_nl_timestamp.
20182         * nscd/connections (nscd_init): When host database is served open
20183         netlink socket and request notification about configuration changes.
20184         (main_loop_poll): Track netlink file descriptor and bump timestamp
20185         in case data becomes available.
20186         (main_loop_epoll): Likewise.
20187         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
20188         (database_pers_head): Add extra_data fileds.
20189         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
20190         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
20191         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
20192         Adjust caller.
20193         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
20194         in6ai data, call __free_in6ai.
20195         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
20196         Add -DHAVE_NETLINK.
20197         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
20198         interface information.  Reuse previous data if netlink timestamp
20199         is not changed.
20200         (__bump_nl_timestamp): New function.
20201         (__free_in6ai): New function.
20203 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
20205         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
20206         close_not_cancel_no_status here.
20207         (__check_pf): Reorganize code a bit to not call close twice if OOM.
20209 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20211         [BZ #13276]
20212         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
20213         return value.
20215         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
20216         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
20217         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
20219 2011-07-03  Andreas Jaeger  <aj@suse.de>
20221         [BZ #10709]
20222         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
20223         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
20224         * math/libm-test.inc (sin_test): Add test case.
20226 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20228         [BZ #13337]
20229         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
20230         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20232         * elf/chroot_canon.c (chroot_canon): Cleanups.
20234         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
20236         [BZ #13335]
20237         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
20238         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20240         * string/test-strchr.c: Make usable for strchrnul testing.
20241         * string/test-strchrnul.c: New file.
20242         * string/Makefile (strop-tests): Add strchrnul.
20244         * po/it.po: Update from translation team.
20245         * po/es.po: Likewise.
20247 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
20249         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
20250         the three constants needed as parameters.  Drop the others.
20251         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
20252         __m128i_strloadu_tolower.
20253         Create and initialize variable zero and use it in all the places
20254         where _mm_setzero_si128 was used.
20256         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
20257         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
20258         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
20259         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
20260         anymore.
20261         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
20262         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
20263         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
20264         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
20265         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
20266         __mpranred, __mptan.
20267         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
20268         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
20269         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
20270         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
20271         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
20272         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
20273         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
20274         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
20275         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
20277 2011-10-28  Andreas Schwab  <schwab@redhat.com>
20279         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
20280         redefine if SHARED.
20281         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
20283         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
20284         wide char related routines to wcsmbs subdir.
20286 2011-10-27  Andreas Schwab  <schwab@redhat.com>
20288         [BZ #13344]
20289         * misc/sys/cdefs.h (__THROWNL): Define.
20290         * posix/unistd.h: Use __THREADNL instead of __THREAD
20291         for memory synchronization functions.
20293 2011-10-26  Roland McGrath  <roland@hack.frob.com>
20295         [BZ #13349]
20296         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
20297         doesn't exist.
20298         * manual/stdio.texi (Obstack Streams): Node removed.
20300 2011-10-26  Andreas Schwab  <schwab@redhat.com>
20302         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
20303         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20304         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20306         * math/math_private.h (math_force_eval): Allow non-addressable
20307         arguments.
20308         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
20310 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20312         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
20313         file is not needed.
20315         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
20316         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20317         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20318         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20319         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20320         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20321         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20322         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
20323         Add AVX variants.
20324         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
20325         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
20326         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
20327         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
20328         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
20329         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
20330         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
20331         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
20332         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
20333         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
20334         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
20335         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
20336         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
20337         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
20338         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
20339         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
20340         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
20341         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
20342         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
20344         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
20345         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
20347         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
20348         place.  Use VEX encoding when compiling for AVX.
20350 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20352         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
20353         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
20355         * string/test-strchr.c (do_test): Don't generate NUL bytes.
20357 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20359         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
20360         useless if() expression.
20361         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20362         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20363         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20364         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20365         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20366         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20367         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20368         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20369         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20370         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20371         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20372         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20373         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20374         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20375         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20376         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20377         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20378         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20379         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20381         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
20383 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20385         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
20386         condition.
20387         * elf/dl-fini.c (_dl_sort_fini): Likewise.
20389 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20391         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
20392         .text section.  Avoid duplicate constants.
20393         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20394         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20395         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20396         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20397         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20398         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20399         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20400         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20401         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
20402         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
20403         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
20404         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
20405         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
20406         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
20407         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
20408         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
20409         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
20410         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
20411         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20412         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20413         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20414         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20415         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20416         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
20417         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
20418         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
20419         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
20420         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
20421         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
20422         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20423         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
20424         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
20425         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
20426         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
20427         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
20428         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20429         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20430         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
20431         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
20432         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
20433         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
20434         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
20435         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
20436         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20437         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
20439 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
20441         * sysdeps/x86_64/dla.h: Move to ...
20442         * sysdeps/x86_64/fpu/dla.h: ...here.
20443         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
20444         situations.  Use __builtin_fma only for gcc 4.6 and up.
20446         * config.make.in: Add have-mfma4 entry.
20447         * configure.in: Substitute libc_cv_cc_fma4.
20448         * math/Makefile (dbl-only-routines): Add sincostab.
20449         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
20450         Use __sincostab not sincos.
20451         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
20452         name is a macro.
20453         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20454         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20455         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20456         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
20457         using __copysign.
20458         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
20459         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
20460         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
20461         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
20462         and __inv.
20463         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
20464         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
20465         __copysign.
20466         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
20467         define aliases when function name is a macro.
20468         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
20469         sysdeps/ieee754/dbl-64/sincos.tbl.
20470         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
20471         fma4-enabled routines.
20472         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
20473         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
20474         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
20475         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
20476         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
20477         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
20478         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
20479         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
20480         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
20481         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
20482         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
20483         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
20484         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
20485         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
20486         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
20487         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
20488         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
20489         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
20490         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
20491         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
20492         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
20493         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
20494         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
20495         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
20496         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
20497         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
20498         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
20499         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
20500         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
20501         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
20503         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
20504         rename.
20505         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20506         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20507         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20508         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20509         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20510         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20511         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20512         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20514 2011-10-24  Andreas Schwab  <schwab@redhat.com>
20516         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
20518 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20520         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
20522         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
20523         prediction.
20524         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
20526         * string/strnlen.c: Don't define STRNLEN, reverse logic.
20527         Remove unused variable magic_bits.
20528         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
20530         * string/strnlen.c: Define and use STRNLEN macro.
20531         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
20532         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
20533         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
20534         * wcsmbs/wcslen.c: Define and use WCSLEN.
20535         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
20536         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
20537         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
20538         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
20539         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
20540         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
20541         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
20543 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20545         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20546         strnlen-sse2-no-bsf.
20547         Rename strlen-no-bsf to strlen-sse2-no-bsf.
20548         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
20549         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
20550         Add strnlen support.
20551         (USE_AS_STRNLEN): New macro.
20552         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
20553         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
20554         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
20555         * sysdeps/x86_64/wcslen.S: New file.
20557 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
20559         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
20560         XMM-moves are used for copying on small sizes.
20562 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20564         * wcsmbs/Makefile (strop-tests): Add wcschr.
20565         * wcsmbs/test-wcschr.c: New file.
20566         * string/test-strchr.c: Update.
20567         Add wcschr support.
20568         (WIDE): New macro.
20570 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20572         * wcsmbs/Makefile (strop-tests): Add wcslen.
20573         * wcsmbs/test-wcslen.c: New file.
20574         * string/test-strlen.c: Update.
20575         Add wcslen support.
20576         (WIDE): New macro.
20578 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20580         * po/it.po: Update from translation team.
20582 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20584         * sysdeps/x86_64/wcscmp.S: Update.
20585         Fix wrong comparison semantics.
20586         wcscmp shall use signed comparison not unsigned.
20587         Don't use substraction to avoid overflow bug.
20588         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
20589         * wcsmbc/wcscmp.c: Likewise.
20590         * string/test-strcmp.c: Likewise.
20591         Add new tests to check cases with negative values.
20593 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20595         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
20596         * sysdeps/x86_64/dla.h: ...here.  New file.
20597         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
20598         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20599         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20600         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20601         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20602         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20603         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20604         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20605         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20607 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
20609         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
20610         __ynl_finite aliases.
20612 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
20614         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20616         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
20617         define DLA_FMA.
20618         [DLA_FMA] (EMULV): Use DLA_FMA.
20619         [DLA_FMA] (MUL12): Use EMULV.
20620         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
20621         that are not needed.
20622         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20623         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20624         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20625         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20626         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20627         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20628         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20630 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
20632         * math/s_nan.c: Undef __nan.
20633         * math/s_nanf.c: Undef __nanf.
20634         * math/s_nanl.c: Undef __nanl.
20635         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
20636         "math_private.h".
20638 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
20640         * math/s_catan.c: Add branch predictions.
20641         * math/s_catanf.c: Likewise.
20642         * math/s_catanh.c: Likewise.
20643         * math/s_catanhf.c: Likewise.
20644         * math/s_catanhl.c: Likewise.
20645         * math/s_catanl.c: Likewise.
20646         * math/s_cexp.c: Likewise.
20647         * math/s_cexpf.c: Likewise.
20648         * math/s_cexpl.c: Likewise.
20649         * math/s_clog.c: Likewise.
20650         * math/s_clog10.c: Likewise.
20651         * math/s_clog10f.c: Likewise.
20652         * math/s_clog10l.c: Likewise.
20653         * math/s_clogf.c: Likewise.
20654         * math/s_clogl.c: Likewise.
20655         * math/s_csqrt.c: Likewise.
20656         * math/s_csqrtf.c: Likewise.
20657         * math/s_csqrtl.c: Likewise.
20658         * math/s_ctanf.c: Likewise.
20659         * math/s_ctanh.c: Likewise.
20660         * math/s_ctanhf.c: Likewise.
20661         * math/s_ctanhl.c: Likewise.
20662         * math/s_ctanl.c: Likewise.
20664         * math/math_private.h: Define __nan, __nanf, __nanl.
20665         * math/s_cacosh.c: Include <math_private.h>.
20666         * math/s_cacoshl.c: Likewise.
20667         * math/s_casinh.c: Likewise.
20668         * math/s_casinhf.c: Likewise.
20669         * math/s_casinhl.c: Likewise.
20670         * math/s_ccos.c: Rely entire on ccosh.
20671         * math/s_ccosf.c: Rely entire on ccoshf.
20672         * math/s_ccosl.c: Rely entirely on ccoshl.
20673         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
20674         Remove tests for FE_INVALID.
20675         * math/s_ccoshf.c: Likewise.
20676         * math/s_ccoshl.c: Likewise.
20677         * math/s_csin.c: Likewise.
20678         * math/s_csinf.c: Likewise.
20679         * math/s_csinh.c Likewise.
20680         * math/s_csinhf.c: Likewise.
20681         * math/s_csinhl.c: Likewise.
20682         * math/s_csinl.c: Likewise.
20683         * math/s_ctan.c: Likewise.
20684         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
20685         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
20686         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
20688 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
20690         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
20691         compilation problems.
20693         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
20694         __builtin_expect.
20696 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
20698         * sysdeps/i386/configure.in: Test for -mfma4 option.
20699         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
20700         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
20701         COMMON_CPUID_INDEX_80000001.
20702         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
20703         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
20704         use it if FMA3 is not supported.
20705         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20707         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
20708         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20710 2011-10-20  Andreas Schwab  <schwab@redhat.com>
20712         [BZ #12892]
20713         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
20714         it would create a cycle with a link time dependency.
20716 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
20718         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
20719         instruction.
20720         * string/Makefile (strop-tests): Add rawmemchr.
20721         * string/test-rawmemchr.c: New file.
20723         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
20724         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
20725         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
20726         when compiling str{,n}casecmp and when AVX is available.  Hook up
20727         new optimized code in initializers.
20729 2011-10-19  Andreas Schwab  <schwab@redhat.com>
20731         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
20732         __feraiseexcept instead of feraiseexcept.
20734 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
20736         * math/math_private.h: Define defaults for libc_fetestexcept and
20737         libc_feupdateenv.
20738         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
20739         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
20740         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
20741         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20742         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20743         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
20744         libc_fetestexcept and libc_feupdateenv.
20746         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
20747         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
20748         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
20749         * sysdeps/x86_64/fpu/math_private.h: Define special version of
20750         libc_feholdexcept_setround.
20752         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
20753         Add s_nearbyint-c and s_nearbyintf-c.
20754         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
20755         nearbyintf inlines.
20756         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
20757         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
20758         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
20759         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
20761         * math/math_private.h: Define defaults for libc_fegetround,
20762         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
20763         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
20764         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
20765         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
20766         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
20767         standard functions.
20768         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20769         Remove comments and hacks for old compiler versions.
20770         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
20771         libc_fegetround, libc_fesetround, libc_feholdexcept, and
20772         libc_feholdexceptl.
20774 2011-10-18  Andreas Schwab  <schwab@redhat.com>
20776         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
20777         (__feraiseexcept_renamed): Add __NTH.
20778         (feraiseexcept): Add __NTH.  Rename local variables to fix
20779         namespace violations.
20781 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
20783         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
20785         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
20787         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
20788         recently added interfaces.
20789         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
20791         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
20792         about macro parameter expansion.
20794         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
20795         __NO_MATH_INLINES is defined.  Cleanups.
20797         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
20798         and __floorf is target has SSE4.1.
20799         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
20800         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
20801         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
20802         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
20804         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
20805         name.
20806         (floorf): Likewise.
20808         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
20810 2011-10-17  Andreas Schwab  <schwab@redhat.com>
20812         * misc/sys/cdefs.h: Fix last change.
20814         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
20815         database lookup.
20817 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
20819         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
20821         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
20822         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20823         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20824         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20825         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20826         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20827         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20828         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20829         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20830         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
20831         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
20832         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
20833         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
20834         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
20835         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
20836         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
20837         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
20838         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
20839         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
20840         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
20841         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
20842         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
20844         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
20845         ceil, ceilf, floor, floorf.
20847         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
20848         Perform IRELATIVE relocations last.
20850         * elf/do-rel.h: Add another parameter nrelative, replacing the
20851         local variable with the same name.  Change name of the function
20852         to end in Rel or Rela (uppercase).
20853         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
20854         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
20855         elf_dynamic_do_##reloc function.
20857 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20859         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
20860         is sufficient, at least on modern CPUs.
20862         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
20864         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
20865         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
20867         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
20868         __expl_finite.
20869         * math/bits/math-finite.h: Add entries for exp.
20870         * math/e_expl.c: Add __*_finite alias.
20871         * sysdeps/i386/fpu/e_exp.S: Likewise.
20872         * sysdeps/i386/fpu/e_expf.S: Likewise.
20873         * sysdeps/i386/fpu/e_expl.c: Likewise.
20874         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20875         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20876         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
20877         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20878         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
20879         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20880         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20882         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
20883         is sufficient, at least on modern CPUs.
20885         * ctype/ctype-info.c (__ctype_init): Define.
20886         * include/ctype.h (__ctype_init): Declare.
20887         (__ctype_b_loc): The variable is always initialized.
20888         (__ctype_toupper_loc): Likewise.
20889         (__ctype_tolower_loc): Likewise.
20890         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
20891         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
20893 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
20895         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
20897         * configure.in: Also look in $cxxmachine/include for C++ system
20898         headers.
20900 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20902         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
20903         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
20904         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
20905         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
20906         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
20907         (USE_AS_WMEMCMP): New macro.
20908         Fixing indents.
20909         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
20910         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
20911         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
20912         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
20913         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20914         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
20915         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
20916         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
20917         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
20918         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
20919         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
20920         (USE_AS_WMEMCMP): New macro.
20921         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
20922         * sysdeps/string/test-memcmp.c: Update.
20923         Fix simple_wmemcmp.
20924         Add new tests.
20925         * wcsmbs/wmemcmp.c: Update.
20926         (WMEMCMP): New macro.
20927         Fix overflow bug.
20929 2011-10-12  Andreas Jaeger  <aj@suse.de>
20931         [BZ #13268]
20932         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
20934 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20936         * libio/iofwide.c (do_length): Avoid warning.
20938         * ctype/ctype.h (__isctype_f): Add missing __THROW.
20940 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
20942         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
20944         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
20945         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
20946         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
20947         * sysdeps/i386/i686/fpu/e_log.S: New file.
20948         * sysdeps/i386/i686/fpu/e_logf.S: New file.
20949         * sysdeps/i386/i686/fpu/e_logl.S: New file.
20951         * ctype/ctype.h: Add support for inlined isXXX functions when
20952         compiling C++ code.
20954 2011-10-14  Andreas Schwab  <schwab@redhat.com>
20956         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20958         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
20960 2011-10-13  Roland McGrath  <roland@hack.frob.com>
20962         [BZ #13291]
20963         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
20965 2011-10-13  Andreas Schwab  <schwab@redhat.com>
20967         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
20968         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
20969         feraiseexcept.
20971         * sysdeps/x86_64/memrchr.S: Check for zero size.
20973         * string/stratcliff.c: Add memrchr tests.
20975 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20977         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20978         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
20979         rawmemchr-sse2 rawmemchr-sse2-bsf.
20980         * sysdeps/i386/i686/multiarch/memchr.S: New file.
20981         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
20982         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
20983         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
20984         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
20985         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
20986         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
20987         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
20988         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
20989         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
20990         * string/memrchr.c (MEMRCHR): New macro.
20992 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
20994         Add integration with gcc's -ffinite-math-only and optimize wrapper
20995         functions in libm.
20996         * Versions.def: Define GLIBC_2.15 version for libm.
20997         * math/Makefile (headers): Add bits/math-finite.h.
20998         * math/bits/math-finite.h: New file.
20999         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
21000         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
21001         * math/e_acoshl.c: Add __*_finite alias.
21002         * math/e_acosl.c: Likewise.
21003         * math/e_asinl.c: Likewise.
21004         * math/e_atan2l.c: Likewise.
21005         * math/e_atanhl.c: Likewise.
21006         * math/e_coshl.c: Likewise.
21007         * math/e_exp10.c: Likewise.
21008         * math/e_exp10f.c: Likewise.
21009         * math/e_exp10l.c: Likewise.
21010         * math/e_exp2l.c: Likewise.
21011         * math/e_fmodl.c: Likewise.
21012         * math/e_gammal_r.c: Likewise.
21013         * math/e_hypotl.c: Likewise.
21014         * math/e_j0l.c: Likewise.
21015         * math/e_j1l.c: Likewise.
21016         * math/e_jnl.c: Likewise.
21017         * math/e_lgammal_r.c: Likewise.
21018         * math/e_log10l.c: Likewise.
21019         * math/e_log2l.c: Likewise.
21020         * math/e_logl.c: Likewise.
21021         * math/e_powl.c: Likewise.
21022         * math/e_sinhl.c: Likewise.
21023         * math/e_sqrtl.c: Likewise.
21024         * math/e_scalb.c: Completely rewritten and optimized.
21025         * math/e_scalbf.c: Likewise.
21026         * math/e_scalbl.c: Likewise.
21027         * math/w_acos.c: Likewise.
21028         * math/w_acosf.c: Likewise.
21029         * math/w_acosl.c: Likewise.
21030         * math/w_acosh.c: Likewise.
21031         * math/w_acoshf.c: Likewise.
21032         * math/w_acoshl.c: Likewise.
21033         * math/w_asin.c: Likewise.
21034         * math/w_asinf.c: Likewise.
21035         * math/w_asinl.c: Likewise.
21036         * math/w_atan2.c: Likewise.
21037         * math/w_atan2f.c: Likewise.
21038         * math/w_atan2l.c: Likewise.
21039         * math/w_atanh.c: Likewise.
21040         * math/w_atanhf.c: Likewise.
21041         * math/w_atanhl.c: Likewise.
21042         * math/w_exp10.c: Likewise.
21043         * math/w_exp10f.c: Likewise.
21044         * math/w_exp10l.c: Likewise.
21045         * math/w_fmod.c: Likewise.
21046         * math/w_fmodf.c: Likewise.
21047         * math/w_fmodl.c: Likewise.
21048         * math/w_j0.c: Likewise.
21049         * math/w_j0f.c: Likewise.
21050         * math/w_j0l.c: Likewise.
21051         * math/w_j1.c: Likewise.
21052         * math/w_j1f.c: Likewise.
21053         * math/w_j1l.c: Likewise.
21054         * math/w_jn.c: Likewise.
21055         * math/w_jnf.c: Likewise.
21056         * math/w_log.c: Likewise.
21057         * math/w_logf.c: Likewise.
21058         * math/w_logl.c: Likewise.
21059         * math/w_log10.c: Likewise.
21060         * math/w_log10f.c: Likewise.
21061         * math/w_log10l.c: Likewise.
21062         * math/w_log2.c: Likewise.
21063         * math/w_log2f.c: Likewise.
21064         * math/w_log2l.c: Likewise.
21065         * math/w_pow.c: Likewise.
21066         * math/w_powf.c: Likewise.
21067         * math/w_powl.c: Likewise.
21068         * math/w_remainder.c: Likewise.
21069         * math/w_remainderf.c: Likewise.
21070         * math/w_remainderl.c: Likewise.
21071         * math/w_scalb.c: Likewise.
21072         * math/w_scalbf.c: Likewise.
21073         * math/w_scalbl.c: Likewise.
21074         * math/w_sqrt.c: Likewise.
21075         * math/w_sqrtf.c: Likewise.
21076         * math/w_sqrtl.c: Likewise.
21077         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
21078         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
21079         used.
21080         * math/math_private.h: Declare __kernel_standard_f.
21081         * math/w_cosh.c: Remove cruft and optimize a bit.
21082         * math/w_coshf.c: Likewise.
21083         * math/w_coshl.c: Likewise.
21084         * math/w_exp2.c: Likewise.
21085         * math/w_exp2f.c: Likewise.
21086         * math/w_exp2l.c: Likewise.
21087         * math/w_hypot.c: Likewise.
21088         * math/w_hypotf.c: Likewise.
21089         * math/w_hypotl.c: Likewise.
21090         * math/w_lgamma.c: Likewise.
21091         * math/w_lgamma_r.c: Likewise.
21092         * math/w_lgammaf.c: Likewise.
21093         * math/w_lgammaf_r.c: Likewise.
21094         * math/w_lgammal.c: Likewise.
21095         * math/w_lgammal_r.c: Likewise.
21096         * math/w_sinh.c: Likewise.
21097         * math/w_sinhf.c: Likewise.
21098         * math/w_sinhl.c: Likewise.
21099         * math/w_tgamma.c: Likewise.
21100         * math/w_tgammaf.c: Likewise.
21101         * math/w_tgammal.c: Likewise.
21102         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21103         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21104         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
21105         Minor optimizations.  Pretty printing.  Remove cruft.
21106         * sysdeps/i386/fpu/e_acosf.S: Likewise.
21107         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21108         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21109         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21110         * sysdeps/i386/fpu/e_acosl.c: Likewise.
21111         * sysdeps/i386/fpu/e_asin.S: Likewise.
21112         * sysdeps/i386/fpu/e_asinf.S: Likewise.
21113         * sysdeps/i386/fpu/e_atan2.S: Likewise.
21114         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
21115         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
21116         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21117         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21118         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21119         * sysdeps/i386/fpu/e_exp10.S: Likewise.
21120         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
21121         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
21122         * sysdeps/i386/fpu/e_exp2.S: Likewise.
21123         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
21124         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
21125         * sysdeps/i386/fpu/e_fmod.S: Likewise.
21126         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
21127         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
21128         * sysdeps/i386/fpu/e_hypot.S: Likewise.
21129         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
21130         * sysdeps/i386/fpu/e_log.S: Likewise.
21131         * sysdeps/i386/fpu/e_log10.S: Likewise.
21132         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21133         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21134         * sysdeps/i386/fpu/e_log2.S: Likewise.
21135         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21136         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21137         * sysdeps/i386/fpu/e_logf.S: Likewise.
21138         * sysdeps/i386/fpu/e_logl.S: Likewise.
21139         * sysdeps/i386/fpu/e_pow.S: Likewise.
21140         * sysdeps/i386/fpu/e_powf.S: Likewise.
21141         * sysdeps/i386/fpu/e_powl.S: Likewise.
21142         * sysdeps/i386/fpu/e_remainder.S: Likewise.
21143         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
21144         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
21145         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21146         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21147         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21148         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
21149         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
21150         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
21151         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
21152         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21153         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21154         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
21155         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
21156         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
21157         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
21158         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
21159         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
21160         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
21161         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
21162         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
21163         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21164         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
21165         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
21166         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21167         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21168         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
21169         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21170         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21171         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
21172         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
21173         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21174         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21175         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
21176         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
21177         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
21178         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
21179         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
21180         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
21181         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21182         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
21183         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21184         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
21185         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
21186         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
21187         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
21188         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
21189         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
21190         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
21191         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
21192         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
21193         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
21194         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
21195         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21196         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
21197         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
21198         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
21199         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
21200         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
21201         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
21202         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
21203         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
21204         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21205         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
21206         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
21207         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
21208         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
21209         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
21210         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
21211         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
21212         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
21213         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21214         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21215         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
21216         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
21217         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
21218         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
21219         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
21220         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
21221         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
21222         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
21223         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
21224         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
21225         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
21226         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
21227         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21228         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
21229         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21230         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
21231         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21232         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
21233         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
21234         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21235         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21236         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
21237         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21238         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
21239         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
21240         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
21241         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21242         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
21243         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
21244         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
21245         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
21246         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
21247         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
21248         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
21249         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
21250         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
21251         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
21252         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
21253         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
21254         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
21255         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21256         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21257         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21258         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21259         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
21260         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21261         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
21262         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
21263         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
21264         (__isnanf): Likewise.
21265         (__isinf_ns): Likewise.
21266         (__isinf_nsf): Likewise.
21267         (__finite): Likewise.
21268         (__finitef): Likewise.
21269         (__ieee754_sqrt): Define as macro.
21270         (__ieee754_sqrtf): Define as macro.
21271         (__ieee754_sqrtl): Define as macro.
21272         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
21273         inlined copy.
21274         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
21275         __FINITE_MATH_ONLY__ consistent.
21276         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
21278 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
21280         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
21281         of rawmemchr.
21283         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
21285 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
21287         * po/ja.po: Update from translation team.
21289 2011-10-08  Roland McGrath  <roland@hack.frob.com>
21291         * locale/programs/locarchive.c (prepare_address_space): New function.
21292         (create_archive, enlarge_archive, open_archive): Use it.
21294         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
21295         inside [SHARED], where it is used.
21297         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
21299         * nss/getent.c (netgroup_keys): Remove unused variable.
21300         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
21302 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
21304         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
21305         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
21306         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
21307         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
21308         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
21309         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
21310         * math/Makefile (libm-calls): Add s_isinf_ns.
21311         * math/divtc3.c: Use __isinf_nsl instead of isinf.
21312         * math/multc3.c: Likewise.
21313         * math/s_casin.c: Likewise.
21314         * math/s_casinf.c: Likewise.
21315         * math/s_casinl.c: Likewise.
21316         * math/s_ccos.c: Likewise.
21317         * math/s_ccosf.c: Likewise.
21318         * math/s_ccosl.c: Likewise.
21319         * math/s_ctan.c: Likewise.
21320         * math/s_ctanf.c: Likewise.
21321         * math/s_ctanh.c: Likewise.
21322         * math/s_ctanhf.c: Likewise.
21323         * math/s_ctanhl.c: Likewise.
21324         * math/s_ctanl.c: Likewise.
21325         * math/w_fmod.c: Likewise.
21326         * math/w_fmodf.c: Likewise.
21327         * math/w_fmodl.c: Likewise.
21328         * math/w_remainder.c: Likewise.
21329         * math/w_remainderf.c: Likewise.
21330         * math/w_remainderl.c: Likewise.
21331         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
21332         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
21333         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
21334         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
21335         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
21336         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
21337         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
21338         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
21340         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
21341         of the number.
21342         * stdio-common/printf_fphex.c: Likewise.
21343         * stdio-common/printf_size.c: Likewise.
21345         * math/e_exp10.c: Include math_private.h using <...> not "...".
21346         * math/e_exp10f.c: Likewise.
21347         * math/e_exp10l.c: Likewise.
21348         * math/e_exp2l.c: Likewise.
21349         * math/e_j0l.c: Likewise.
21350         * math/e_j1l.c: Likewise.
21351         * math/e_jnl.c: Likewise.
21352         * math/e_lgammal_r.c: Likewise.
21353         * math/e_rem_pio2l.c: Likewise.
21354         * math/e_scalb.c: Likewise.
21355         * math/e_scalbf.c: Likewise.
21356         * math/e_scalbl.c: Likewise.
21357         * math/k_cosl.c: Likewise.
21358         * math/k_sinl.c: Likewise.
21359         * math/k_tanl.c: Likewise.
21360         * math/s_cacoshf.c: Likewise.
21361         * math/s_catan.c: Likewise.
21362         * math/s_catanf.c: Likewise.
21363         * math/s_catanh.c: Likewise.
21364         * math/s_catanhf.c: Likewise.
21365         * math/s_catanhl.c: Likewise.
21366         * math/s_catanl.c: Likewise.
21367         * math/s_ccosh.c: Likewise.
21368         * math/s_ccoshf.c: Likewise.
21369         * math/s_ccoshl.c: Likewise.
21370         * math/s_cexp.c: Likewise.
21371         * math/s_cexpf.c: Likewise.
21372         * math/s_cexpl.c: Likewise.
21373         * math/s_clog.c: Likewise.
21374         * math/s_clog10.c: Likewise.
21375         * math/s_clog10f.c: Likewise.
21376         * math/s_clog10l.c: Likewise.
21377         * math/s_clogf.c: Likewise.
21378         * math/s_clogl.c: Likewise.
21379         * math/s_csin.c: Likewise.
21380         * math/s_csinf.c: Likewise.
21381         * math/s_csinh.c: Likewise.
21382         * math/s_csinhf.c: Likewise.
21383         * math/s_csinhl.c: Likewise.
21384         * math/s_csinl.c: Likewise.
21385         * math/s_csqrt.c: Likewise.
21386         * math/s_csqrtf.c: Likewise.
21387         * math/s_csqrtl.c: Likewise.
21388         * math/s_ctan.c: Likewise.
21389         * math/s_ctanf.c: Likewise.
21390         * math/s_ctanh.c: Likewise.
21391         * math/s_ctanhf.c: Likewise.
21392         * math/s_ctanhl.c: Likewise.
21393         * math/s_ctanl.c: Likewise.
21394         * math/s_ldexp.c: Likewise.
21395         * math/s_ldexpf.c: Likewise.
21396         * math/s_ldexpl.c: Likewise.
21397         * math/s_significand.c: Likewise.
21398         * math/s_significandf.c: Likewise.
21399         * math/s_significandl.c: Likewise.
21400         * math/w_acos.c: Likewise.
21401         * math/w_acosf.c: Likewise.
21402         * math/w_acosh.c: Likewise.
21403         * math/w_acoshf.c: Likewise.
21404         * math/w_acoshl.c: Likewise.
21405         * math/w_acosl.c: Likewise.
21406         * math/w_asin.c: Likewise.
21407         * math/w_asinf.c: Likewise.
21408         * math/w_asinl.c: Likewise.
21409         * math/w_atan2.c: Likewise.
21410         * math/w_atan2f.c: Likewise.
21411         * math/w_atan2l.c: Likewise.
21412         * math/w_atanh.c: Likewise.
21413         * math/w_atanhf.c: Likewise.
21414         * math/w_atanhl.c: Likewise.
21415         * math/w_cosh.c: Likewise.
21416         * math/w_coshf.c: Likewise.
21417         * math/w_coshl.c: Likewise.
21418         * math/w_dremf.c: Likewise.
21419         * math/w_exp10.c: Likewise.
21420         * math/w_exp10f.c: Likewise.
21421         * math/w_exp10l.c: Likewise.
21422         * math/w_exp2.c: Likewise.
21423         * math/w_exp2f.c: Likewise.
21424         * math/w_fmod.c: Likewise.
21425         * math/w_fmodf.c: Likewise.
21426         * math/w_fmodl.c: Likewise.
21427         * math/w_hypot.c: Likewise.
21428         * math/w_hypotf.c: Likewise.
21429         * math/w_hypotl.c: Likewise.
21430         * math/w_j0.c: Likewise.
21431         * math/w_j0f.c: Likewise.
21432         * math/w_j0l.c: Likewise.
21433         * math/w_j1.c: Likewise.
21434         * math/w_j1f.c: Likewise.
21435         * math/w_j1l.c: Likewise.
21436         * math/w_jn.c: Likewise.
21437         * math/w_jnf.c: Likewise.
21438         * math/w_jnl.c: Likewise.
21439         * math/w_lgamma.c: Likewise.
21440         * math/w_lgamma_r.c: Likewise.
21441         * math/w_lgammaf.c: Likewise.
21442         * math/w_lgammaf_r.c: Likewise.
21443         * math/w_lgammal.c: Likewise.
21444         * math/w_lgammal_r.c: Likewise.
21445         * math/w_log.c: Likewise.
21446         * math/w_log10.c: Likewise.
21447         * math/w_log10f.c: Likewise.
21448         * math/w_log10l.c: Likewise.
21449         * math/w_log2.c: Likewise.
21450         * math/w_log2f.c: Likewise.
21451         * math/w_log2l.c: Likewise.
21452         * math/w_logf.c: Likewise.
21453         * math/w_logl.c: Likewise.
21454         * math/w_pow.c: Likewise.
21455         * math/w_powf.c: Likewise.
21456         * math/w_powl.c: Likewise.
21457         * math/w_remainder.c: Likewise.
21458         * math/w_remainderf.c: Likewise.
21459         * math/w_remainderl.c: Likewise.
21460         * math/w_scalb.c: Likewise.
21461         * math/w_scalbf.c: Likewise.
21462         * math/w_scalbl.c: Likewise.
21463         * math/w_sinh.c: Likewise.
21464         * math/w_sinhf.c: Likewise.
21465         * math/w_sinhl.c: Likewise.
21466         * math/w_sqrt.c: Likewise.
21467         * math/w_sqrtf.c: Likewise.
21468         * math/w_sqrtl.c: Likewise.
21469         * math/w_tgamma.c: Likewise.
21470         * math/w_tgammaf.c: Likewise.
21471         * math/w_tgammal.c: Likewise.
21473         * po/ja.po: Update from translation team.
21475 2011-09-29  Andreas Jaeger  <aj@suse.de>
21477         [BZ #13179]
21478         * sunrpc/netname.c (netname2host): Fix logic.
21480         [BZ #6779]
21481         [BZ #6783]
21482         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
21483         correctly.
21484         * math/w_remainder.c (__remainder): Likewise.
21485         * math/w_remainderf.c (__remainderf): Likewise.
21486         * math/libm-test.inc (remainder_test): Add test cases.
21488 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21490         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
21491         sdiv_qrnnd.
21493 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
21495         * string/test-memcmp.c: Avoid unncessary #defines.
21496         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
21498 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21500         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
21501         Use new sse2 version for core i3 - i7 as it's faster
21502         than sse42 version.
21503         (bit_Prefer_PMINUB_for_stringop): New.
21504         * sysdeps/x86_64/rawmemchr.S: Update.
21505         Replace with faster SSE2 version.
21506         * sysdeps/x86_64/memrchr.S: New file.
21507         * sysdeps/x86_64/memchr.S: Update.
21508         Replace with faster SSE2 version.
21510 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
21512         * elf/dl-load.c (lose): Add cast to avoid warning.
21514 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
21516         * po/ca.po: Update from translation team.
21518         * inet/getnetgrent_r.c: Hook up nscd.
21519         * nscd/Makefile (routines): Add nscd_netgroup.
21520         (nscd-modules): Add netgroupcache.
21521         (CFLAGS-netgroupcache.c): Define.
21522         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
21523         (cache_search): Add const to second parameter.
21524         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
21525         INNETGR.
21526         (dbs): Add netgrdb entry.
21527         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
21528         (verify_persistent_db): Handle netgrdb.
21529         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
21530         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
21531         GETFDNETGR.
21532         (netgroup_response_header): Define.
21533         (innetgroup_response_header): Define.
21534         (datahead): Add netgroup_response_header and innetgroup_response_header
21535         elements.
21536         * nscd/nscd.conf: Add entries for netgroup cache.
21537         * nscd/nscd.h (dbtype): Add netgrdb.
21538         (_PATH_NSCD_NETGROUP_DB): Define.
21539         (netgroup_iov_disabled): Declare.
21540         (xmalloc, xcalloc, xrealloc): Move declarations here.
21541         (cache_search): Adjust prototype.
21542         Add netgroup-related prototypes.
21543         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
21544         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
21545         (__nscd_innetgr): Declare.
21546         * nscd/selinux.c (perms): Use access_vector_t as element type and
21547         add netgroup-related initializers.
21548         * nscd/netgroupcache.c: New file.
21549         * nscd/nscd_netgroup.c: New file.
21550         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
21551         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
21552         For four parameters use innetgr.
21553         * nss/nss_files/files-init.c: Add definition and callback for netgr.
21554         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
21555         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
21556         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
21558         * nscd/connections.c (register_traced_file): Don't register file
21559         for disabled databases.
21561 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
21563         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
21565         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
21566         from tree and freeing node.
21568 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
21570         * nss/nsswitch.c (__nss_database_lookup): Handle
21571         nss_parse_service_list out of memory case.
21573 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
21575         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
21576         out of memory case.
21578 2011-10-04  Andreas Schwab  <schwab@redhat.com>
21580         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
21581         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
21582         pass it down.
21583         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
21584         elf_machine_rela, elf_machine_lazy_rel.
21585         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
21586         (ELF_DYNAMIC_DO_REL): Likewise.
21587         (ELF_DYNAMIC_DO_RELA): Likewise.
21588         (ELF_DYNAMIC_RELOCATE): Likewise.
21589         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
21590         to ELF_DYNAMIC_DO_REL.
21591         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
21592         (dl_main): In trace mode always set __RTLD_NOIFUNC.
21593         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
21594         elf_machine_rela.
21595         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
21596         skip_ifunc, don't call ifunc function if non-zero.
21597         (elf_machine_rela): Likewise.
21598         (elf_machine_lazy_rel): Likewise.
21599         (elf_machine_lazy_rela): Likewise.
21600         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
21601         (elf_machine_lazy_rel): Likewise.
21602         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
21603         Likewise.
21604         (elf_machine_lazy_rel): Likewise.
21605         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21606         Likewise.
21607         (elf_machine_lazy_rel): Likewise.
21608         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
21609         (elf_machine_lazy_rel): Likewise.
21610         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
21611         (elf_machine_lazy_rel): Likewise.
21612         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
21613         (elf_machine_lazy_rel): Likewise.
21614         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
21615         (elf_machine_lazy_rel): Likewise.
21616         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
21617         (elf_machine_lazy_rel): Likewise.
21618         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
21619         (elf_machine_lazy_rel): Likewise.
21621 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
21623         * nss/nss_files/files-init.c (_nss_files_init): Use static
21624         initialization for all the *_traced_file variables.
21626 2011-09-28  Andreas Schwab  <schwab@redhat.com>
21628         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21630 2011-09-27  Roland McGrath  <roland@hack.frob.com>
21632         [BZ #13226]
21633         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
21635 2011-09-27  Andreas Schwab  <schwab@redhat.com>
21637         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
21638         Reread the line before reparsing it.
21640 2011-09-26  Andreas Schwab  <schwab@redhat.com>
21642         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
21644 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
21645             Maxim Kuvyrkov  <maxim@codesourcery.com>
21646             Joseph Myers  <joseph@codesourcery.com>
21648         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
21649         if needed for __stack_chk_guard.
21651 2011-09-19  Roland McGrath  <roland@hack.frob.com>
21653         * sysdeps/posix/spawni.c (script_execute): Always define it.
21654         It will be optimized away if unused.
21655         (maybe_script_execute): New function.
21656         (__spawni): Call it.
21658         * Makerules: Don't include tls.make.
21659         (config-tls): Always set to thread.
21660         * tls.make.c: File removed.
21662 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
21664         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
21665         * config.make.in (CPPFLAGS-config): New substituted variable.
21667 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
21669         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
21671         [BZ #13192]
21672         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
21673         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
21675 2011-09-15  Roland McGrath  <roland@hack.frob.com>
21677         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
21678         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
21679         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21680         (CALL_FAIL): Likewise.
21681         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
21682         (CALL_FAIL): Macro removed.
21683         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
21685 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
21687         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
21688         for __FINITE_MATH_ONLY__ == 1.
21690 2011-09-15  Andreas Schwab  <schwab@redhat.com>
21692         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
21693         __ieee754_sqrt instead of sqrt.
21694         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
21695         __ieee754_sqrtf instead of sqrtf.
21696         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
21697         __floorf instead of floorf.
21698         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
21699         __floorf, __truncf instead of floorf, truncf.
21701 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
21703         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
21705         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
21706         __extern_always_inline.
21707         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
21708         32-bit.
21710 2011-09-14  Andreas Schwab  <schwab@redhat.com>
21712         * elf/rtld.c (dl_main): Also relocate in dependency order when
21713         doing symbol dependency testing.
21715 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
21717         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21718         Always define `refsym'.
21720 2011-09-13  Andreas Schwab  <schwab@redhat.com>
21722         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
21723         (__FD_ELT): Renamed from __FDELT.
21724         * misc/bits/select2.h (__FD_ELT): Likewise.
21725         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
21726         __FD_MASK instead of __FDELT, __FDMASK.
21727         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
21728         Likewise.
21729         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
21730         Likewise.
21732         * elf/Makefile (gen-ldd): Fix pattern.
21734         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
21735         (init_tls): Likewise.
21737 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
21739         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
21741 2011-09-12  Andreas Schwab  <schwab@redhat.com>
21743         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
21744         `struct cmsghdr *' instead of `void *'.
21745         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
21746         Likewise.
21748 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
21750         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
21751         if non-absolute.
21752         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
21753         ldd_rewrite_script.
21755 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
21757         * configure.in: Remove --with-tls option.
21758         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
21759         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
21760         out in case it is missing.
21761         * sysdeps/ia64/elf/configure.in: Likewise.
21762         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
21763         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
21764         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
21765         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
21766         * sysdeps/sh/elf/configure.in: Likewise.
21767         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
21768         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21769         * sysdeps/x86_64/elf/configure.in: Likewise.
21770         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
21771         * sysdeps/mach/hurd/tls.h: Likewise.
21773         [BZ #13067]
21774         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
21776         [BZ #13090]
21777         * configure.in: Fix use of AC_INIT.
21779         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
21781 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
21783         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
21784         __set_errno.
21785         * malloc/hooks.c: Likewise.
21787         [BZ #11929]
21788         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
21789         variables statically.
21790         (narenas): Initialize.
21791         (list_lock): Initialize.
21792         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
21793         initializtion of main_arena and list_lock.  Small cleanups.
21794         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
21795         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
21796         Add initializers to main_arena and mp_.
21797         (malloc_state): Remove pagesize member.  Change all users to use
21798         GLRO(dl_pagesize).
21800         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
21801         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
21802         is always initialized.
21804         * malloc/malloc.c: Removed unused configurations and dead code.
21805         * malloc/arena.c: Likewise.
21806         * malloc/hooks.c: Likewise.
21807         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
21809         * include/tls.h: Removed.  USE___THREAD must always be defined.
21810         * bits/libc-tsd.h: Don't handle !USE___THREAD.
21811         * elf/dl-libc.c: Likewise.
21812         * elf/dl-tsd.c: Likewise.
21813         * include/errno.h: Likewise.
21814         * include/netdb.h: Likewise.
21815         * include/resolv.h: Likewise.
21816         * inet/herrno-loc.c: Likewise.
21817         * inet/herrno.c: Likewise.
21818         * malloc/arena.c: Likewise.
21819         * malloc/hooks.c: Likewise.
21820         * malloc/malloc.c: Likewise.
21821         * resolv/res-state.c: Likewise.
21822         * resolv/res_libc.c: Likewise.
21823         * sysdeps/i386/dl-machine.h: Likewise.
21824         * sysdeps/ia64/dl-machine.h: Likewise.
21825         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
21826         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
21827         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
21828         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
21829         * sysdeps/sh/dl-machine.h: Likewise.
21830         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
21831         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
21832         * sysdeps/unix/i386/sysdep.S: Likewise.
21833         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
21834         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
21835         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
21836         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21837         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
21838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
21839         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
21840         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
21841         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21842         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
21843         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21844         * sysdeps/x86_64/dl-machine.h: Likewise.
21845         * tls.make.c: Likewise.
21847         * configure.in: Remove --with-__thread option.  Make tests for
21848         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
21849         tls_model attribute fail if no support is available.  Remove
21850         USE_IN_LIBIO.
21851         * Makeconfig: Adjust for dropped configure option.  All features are
21852         now mandatory.
21853         * Makerules: Likewise.
21854         * Versions.def: Likewise.
21855         * argp/argp-fmtstream.c: Likewise.
21856         * argp/argp-fmtstream.h: Likewise.
21857         * argp/argp-help.c: Likewise.
21858         * assert/assert.c: Likewise.
21859         * config.h.in: Likewise.
21860         * config.make.in: Likewise.
21861         * configure: Likewise.
21862         * configure.in: Likewise.
21863         * csu/Versions: Likewise.
21864         * csu/init.c: Likewise.
21865         * elf/tst-audit2.c: Likewise.
21866         * elf/tst-tls10.c: Likewise.
21867         * elf/tst-tls10.h: Likewise.
21868         * elf/tst-tls11.c: Likewise.
21869         * elf/tst-tls12.c: Likewise.
21870         * elf/tst-tls14.c: Likewise.
21871         * elf/tst-tlsmod11.c: Likewise.
21872         * elf/tst-tlsmod12.c: Likewise.
21873         * elf/tst-tlsmod13.c: Likewise.
21874         * elf/tst-tlsmod13a.c: Likewise.
21875         * elf/tst-tlsmod14a.c: Likewise.
21876         * elf/tst-tlsmod15b.c: Likewise.
21877         * elf/tst-tlsmod16a.c: Likewise.
21878         * elf/tst-tlsmod16b.c: Likewise.
21879         * elf/tst-tlsmod7.c: Likewise.
21880         * elf/tst-tlsmod8.c: Likewise.
21881         * elf/tst-tlsmod9.c: Likewise.
21882         * gmon/gmon.c: Likewise.
21883         * grp/fgetgrent_r.c: Likewise.
21884         * grp/putgrent.c: Likewise.
21885         * hurd/fopenport.c: Likewise.
21886         * include/libc-symbols.h: Likewise.
21887         * include/tls.h: Likewise.
21888         * intl/gettextP.h: Likewise.
21889         * intl/loadinfo.h: Likewise.
21890         * locale/global-locale.c: Likewise.
21891         * locale/localeinfo.h: Likewise.
21892         * mach/devstream.c: Likewise.
21893         * malloc/arena.c: Likewise.
21894         * malloc/set-freeres.c: Likewise.
21895         * misc/err.c: Likewise.
21896         * misc/getttyent.c: Likewise.
21897         * misc/mntent_r.c: Likewise.
21898         * posix/getopt.c: Likewise.
21899         * posix/wordexp.c: Likewise.
21900         * pwd/fgetpwent_r.c: Likewise.
21901         * resolv/Versions: Likewise.
21902         * resolv/res_hconf.c: Likewise.
21903         * shadow/fgetspent_r.c: Likewise.
21904         * shadow/putspent.c: Likewise.
21905         * stdio-common/printf_fphex.c: Likewise.
21906         * stdio-common/tmpfile.c: Likewise.
21907         * stdlib/abort.c: Likewise.
21908         * stdlib/fmtmsg.c: Likewise.
21909         * sunrpc/auth_unix.c: Likewise.
21910         * sunrpc/clnt_perr.c: Likewise.
21911         * sunrpc/clnt_tcp.c: Likewise.
21912         * sunrpc/clnt_udp.c: Likewise.
21913         * sunrpc/clnt_unix.c: Likewise.
21914         * sunrpc/openchild.c: Likewise.
21915         * sunrpc/svc_simple.c: Likewise.
21916         * sunrpc/svc_tcp.c: Likewise.
21917         * sunrpc/svc_udp.c: Likewise.
21918         * sunrpc/svc_unix.c: Likewise.
21919         * sunrpc/xdr.c: Likewise.
21920         * sunrpc/xdr_array.c: Likewise.
21921         * sunrpc/xdr_rec.c: Likewise.
21922         * sunrpc/xdr_ref.c: Likewise.
21923         * sunrpc/xdr_stdio.c: Likewise.
21925 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21927         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21929 2011-07-03  Andreas Jaeger  <aj@suse.de>
21931         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
21932         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
21933         regenerate with gen-libm-tests.pl.
21935 2010-05-12  Petr Baudis  <pasky@suse.cz>
21937         [BZ #11589]
21938         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
21939         around j0() zero points by switching to j1().
21940         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21941         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21942         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21943         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21945 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21947         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
21948         instead of 0.
21949         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
21950         instead of 0.
21951         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21952         Patch in part by Pavel Roskin <proski@gnu.org>.
21954         [BZ #13138]
21955         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
21956         realloc.
21957         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
21958         Free memory block if necessary.
21960         [BZ #12847]
21961         * libio/genops.c (INTDEF): For string streams the _lock pointer can
21962         be NULL.  Don't lock in this case.
21964 2011-09-09  Roland McGrath  <roland@hack.frob.com>
21966         * elf/elf.h (ELFOSABI_GNU): New macro.
21967         (ELFOSABI_LINUX): Define to that.
21969 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
21971         * string/strncat.c (strncat): Undef the symbol in case it has been
21972         defined in bits/string.h.
21974 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21976         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
21978         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
21979         link map.
21981 2011-08-17  Andreas Jaeger  <aj@suse.de>
21983         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
21985 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
21986             Ian Lance Taylor  <iant@google.com>
21988         * math/libm-test.inc (lround_test): New testcase.
21989         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
21991 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
21993         * Makefile: Remove support for automatic cvs check-ins.
21994         * Makerules: Likewise.
21995         * config.make.in: Likewise.
21996         * configure.in: Likewise.
21997         * intl/Makefile: Likewise.
21998         * locale/Makefile: Likewise.
21999         * po/Makefile: Likewise.
22000         * posix/Makefile: Likewise.
22001         * sysdeps/gnu/Makefile: Likewise.
22002         * sysdeps/mach/hurd/Makefile: Likewise.
22003         * sysdeps/sparc/sparc32/Makefile: Likewise.
22005         [BZ #13118]
22006         * posix/Makefile (bug-regex32-ENV): Define.
22007         Patch by John Stanley <jpsinthemix@verizon.net>.
22009         * misc/Makefile (headers): Add bits/select2.h.
22010         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
22011         * misc/bits/select2.h: New file.
22012         * include/bits/select2.h: New file.
22013         * debug/Makefile (routines): Add fdelt_chk.
22014         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
22015         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
22016         FD_ISSET.
22017         * debug/fdelt_chk.c: New file.
22019         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
22020         * wcsmbs/test-wmemcmp.c: Likewise.
22021         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
22022         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
22024 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22026         * string/Makefile (strop-tests): Add memcmp.
22027         * string/test-wmemcmp.c: New file.
22028         * string/test-memcmp.c: Add wmemcmp support.
22030 2011-09-08  Roland McGrath  <roland@hack.frob.com>
22032         [BZ #13153]
22033         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
22034         2011-07-19 change.
22036         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
22037         garbage value in a __mach_port_mod_refs call in the cases of the
22038         task-self and thread-self ports.
22040 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22042         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
22044 2011-09-08  Andreas Schwab  <schwab@redhat.com>
22046         * elf/dl-load.c (lose): Check for non-null L.
22048 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22050         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
22052         * elf/dl-libc.c (dlerror_run): Pass back error code from
22053         dl_catch_error.
22055         [BZ #13123]
22056         * elf/dl-load.c (lose): Free l_origin if it is valid.
22058         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
22059         names.
22060         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
22061         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22062         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22063         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22064         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
22065         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
22067 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22069         * sysdeps/powerpc/fpu/e_hypot.c: New file.
22070         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
22071         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
22072         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
22073         * sysdeps/powerpc/fpu/k_cosf.c: New file.
22074         * sysdeps/powerpc/fpu/k_sinf.c: New file.
22075         * sysdeps/powerpc/fpu/s_cosf.c: New file.
22076         * sysdeps/powerpc/fpu/s_sinf.c: New file.
22077         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
22078         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
22080 2011-08-15  Alan Modra  <amodra@gmail.com>
22082         [BZ #13092]
22083         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
22084         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
22085         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
22086         ppc_mcount to static-only-routines.
22087         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
22088         __mcount_internal.
22089         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
22090         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
22092 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
22094         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
22095         for finite and infinity parameters.
22097 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22099         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
22100         and add nop instructions for throughput optimization.
22101         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22103 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
22105         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
22106         aligned copy for power7 with vector-scalar instructions.
22107         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
22109 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
22111         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
22112         AVX check.
22114 2011-09-07  Andreas Schwab  <schwab@redhat.com>
22116         [BZ #13144]
22117         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
22118         last change.
22120 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22122         * sysdeps/unix/sysv/linux/x86_64/init-first.c
22123         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
22124         syscall wrapper around clock_gettime in __vdso_clock_gettime.
22125         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
22126         clock_gettime.
22128 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22130         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
22131         Forgot to demangle the pointer.
22133         * sysdeps/i386/sysdep.h: Define atom_text_section.
22134         * sysdeps/x86_64/sysdep.h: Likewise.
22135         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
22136         section with atom_text_section.
22137         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22138         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22139         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
22140         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22141         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
22143         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
22144         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
22145         already be defined.  Change to take two parameters and don't assign
22146         result to variable.  Adjust all users.
22147         Define INTERNAL_GETTIME if not already defined.
22148         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
22149         call.
22150         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
22151         HAVE_CLOCK_GETTIME_VSYSCALL.
22152         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
22154         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
22155         gettimeofday vsyscall, just use time.
22157 2011-09-06  Andreas Schwab  <schwab@redhat.com>
22159         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
22160         <errno.h>.
22162 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22164         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
22165         syscall on x86-64.
22166         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
22167         syscall.
22168         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
22169         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
22170         syscall if possible.
22172 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22174         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
22175         e_ident.  Don't pass to find_mapsXX.
22176         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
22178 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22180         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22181         strchr-sse2-no-bsf strrchr-sse2-no-bsf
22182         * sysdeps/x86_64/multiarch/strchr.S: Update.
22183         Check bit_slow_BSF bit.
22184         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
22185         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
22186         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
22188 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22190         [BZ #13134]
22191         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
22192         before glibc 2.15.
22193         (tryshell): Define.
22194         (__spawni): Change last parameter to be flag.  Test
22195         SPAWN_XFLAGS_USE_PATH flag to use path or not.
22196         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
22197         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
22198         * posix/spawni.c: Likewise.
22199         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
22200         * posix/spawnp.c: Likewise.  Change normal version to use
22201         SPAWN_XFLAGS_USE_PATH.
22202         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
22203         SPAWN_XFLAGS_TRY_SHELL.
22205         [BZ #13150]
22206         * posix/glob.h: Remove gcc 1.x support.
22208         [BZ #13068]
22209         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
22211 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22213         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22214         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
22215         strrchr-sse2-bsf
22216         * sysdeps/i386/i686/multiarch/strchr.S: New file.
22217         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
22218         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
22219         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
22220         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
22221         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
22223 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22225         * sysdeps/x86_64/wcscmp.S: New file.
22227         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
22228         wcscmp-c wcscmp-sse2
22229         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
22230         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
22231         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
22232         * wcsmbs/wcscmp.c: Allow renaming.
22234 2011-09-05  David S. Miller  <davem@davemloft.net>
22236         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
22237         stack slot, rather than the struct return pointer slot.
22238         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
22239         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
22240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
22241         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
22243 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22245         * po/ja.po: Update from translation team.
22247         [BZ #13144]
22248         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
22249         kernel in 64-bit binaries.
22251 2011-09-01  David S. Miller  <davem@davemloft.net>
22253         * elf/elf.h (HWCAP_SPARC_*): Move to..
22254         * sysdeps/sparc/sysdep.h: this new file and add new values.
22255         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
22256         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
22257         _DL_HWCAP_COUNT to 24.
22258         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
22259         entries.
22260         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
22261         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
22262         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
22263         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
22264         instead of magic constants.
22265         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22267 2011-08-31  David S. Miller  <davem@davemloft.net>
22269         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
22270         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
22271         Reimplement to do errno handling inline.
22272         (SYSCALL_ERROR_HANDLER): New macro.
22273         (__SYSCALL_STRING): Do not do errno handling in asm.
22274         (__CLONE_SYSCALL_STRING): Delete.
22275         (__INTERNAL_SYSCALL_STRING): Delete.
22276         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
22277         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
22278         (PSEUDO): Reimplement to do errno handling inline.
22279         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
22280         (SYSCALL_ERROR_HANDLER): New macro.
22281         (__SYSCALL_STRING): Do not do errno handling in asm.
22282         (__CLONE_SYSCALL_STRING): Delete.
22283         (__INTERNAL_SYSCALL_STRING): Delete.
22284         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
22285         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
22286         i386.
22287         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
22288         (inline_syscall*): Add 'err' argument.
22289         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
22290         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
22291         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
22292         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
22294         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
22295         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
22297 2011-08-30  Andreas Schwab  <schwab@redhat.com>
22299         * elf/rtld.c (dl_main): Relocate objects in dependency order.
22301 2011-08-29  Jiri Olsa <jolsa@redhat.com>
22303         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
22304         directive.
22306 2011-08-24  David S. Miller  <davem@davemloft.net>
22308         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
22310 2011-08-24  Andreas Schwab  <schwab@redhat.com>
22312         * elf/Makefile: Add rules to build and run unload8 test.
22313         * elf/unload8.c: New file.
22314         * elf/unload8mod1.c: New file.
22315         * elf/unload8mod1x.c: New file.
22316         * elf/unload8mod2.c: New file.
22317         * elf/unload8mod3.c: New file.
22319         * elf/dl-close.c (_dl_close_worker): Reset private search list if
22320         it wasn't used.
22322 2011-08-23  David S. Miller  <davem@davemloft.net>
22324         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
22325         subtract stack bias.
22326         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
22327         %sp not %fp in calculations.
22328         (_JMPBUF_UNWINDS_ADJ): Likewise.
22330         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
22331         (aio_suspend): Call it to force an exception region around the
22332         AIO_MISC_WAIT() invocation.
22334 2011-08-23  Andreas Schwab  <schwab@redhat.com>
22336         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
22337         backslash.
22339 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
22341         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
22342         protection macro.
22343         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
22344         and <dl-machine.h>.
22345         (Elf64_FuncDesc): Remove.
22347 2011-08-22  David S. Miller  <davem@davemloft.net>
22349         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
22350         sigaltstack check, add missing cfi directives.
22351         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
22352         missing cfi directives, and sigaltstack handling.
22354 2011-08-16  Andreas Schwab  <schwab@redhat.com>
22356         [BZ #11724]
22357         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
22358         object is seen twice.
22359         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22361         * elf/Makefile (distribute): Add tst-initorder2.c.
22362         (tests): Add tst-initorder2.
22363         (modules-names): Add tst-initorder2a tst-initorder2b
22364         tst-initorder2c tst-initorder2d.  Add rules to build them.
22365         ($(objpfx)tst-initorder2.out): New rule.
22366         * elf/tst-initorder2.c: New file.
22367         * elf/tst-initorder2.exp: New file.
22369 2011-08-22  Andreas Schwab  <schwab@redhat.com>
22371         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
22373         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
22374         dependencies back to end of function.
22376         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22377         $(elfobjdir)/ld.so.
22379 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
22381         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
22382         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
22383         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
22384         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
22385         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
22386         of __vdso_gettimeofday.
22387         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
22388         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
22389         attribute_hidden.
22390         (_libc_vdso_platform_setup): Remove initialization of
22391         __vdso_gettimeofday and __vdso_time.
22393 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
22395         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
22396         and fgetc_unlocked.
22397         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
22398         getc_unlocked.
22400         * elf/dl-open.c (add_to_global): Report additions to the global scope
22401         for LD_DEBUG=scopes.
22402         (dl_open_worker): Also print scope of newly loaded dependencies.
22403         (_dl_show_scope): Indicate if there is no scope.
22405         [BZ #13114]
22406         * stdio-common/Makefile (tests): Add bug24.
22407         * stdio-common/bug24.c: New file.
22409 2011-08-19  Andreas Jaeger  <aj@suse.de>
22411         [BZ #13114]
22412         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
22413         non-existant file when using close-on-exec mode.
22415 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
22417         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
22418         the very first instruction.
22420         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
22421         the CFI state in the end.
22422         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
22423         inclusion of dl-trampoline.h.
22424         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
22426 2011-08-19  Andreas Schwab  <schwab@redhat.com>
22428         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
22429         expectations for long double.
22431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
22432         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
22434 2011-08-14  David S. Miller  <davem@davemloft.net>
22436         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
22437         artificual limit depends upon the system page size.
22439 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
22441         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
22442         * resolv/Makefile: Define CFLAGS-libresolv.
22444 2011-08-17  Andreas Schwab  <schwab@redhat.com>
22446         * nss/makedb.c (compute_tables): Make variables used in nested
22447         function static.
22449 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
22451         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
22452         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
22453         if buffer was too small.
22455         * elf/pldd.c (main): Attach to all threads in the process.
22456         Rewrite /proc handling to use *at functions.
22458 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
22460         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
22461         specifies first scope to show.
22462         (dl_open_worker): Update callers.  Move printing scope of new
22463         object to before the relocation.
22464         * elf/rtld.c (dl_main): Update _dl_show_scope call.
22465         * sysdeps/generic/ldsodefs.h: Update declaration.
22467         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
22468         string for the scope number.
22470 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
22472         * nscd/servicescache.c (cache_addserv): Make sure written is always
22473         initialized.
22475 2011-08-14  Roland McGrath  <roland@hack.frob.com>
22477         * sysdeps/i386/i486/bits/atomic.h
22478         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
22479         statement expression, so as to suppress "set but not used" warning.
22480         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
22482         * string/strncat.c (STRNCAT): Use prototype definition.
22484         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
22485         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
22486         -Iprograms here.
22487         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
22488         (localedef-modules): Add localedef.
22489         (locale-modules): Add locale.
22491         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
22492         * elf/rtld.c (dl_main): Invert order of assignment in last change,
22493         to avoid a warning.
22495 2011-08-14  David S. Miller  <davem@davemloft.net>
22497         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
22498         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
22500 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
22502         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
22503         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
22504         * elf/rtld.c (dl_main): Set l_name of vDSO.
22505         Call _dl_show_scope when DL_DEBUG_SCOPES.
22506         (process_dl_debug): Recognize scopes flag and also set it for all.
22507         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
22508         Declare _dl_show_scope.
22510         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
22511         (do_dlopen): Pass caller_dlopen to dl_open.
22512         (__libc_dlopen_mode): Initialize caller_dlopen.
22514         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
22515         of libc.  Make tolower call locale-independent.  Optimize a bit by
22516         using isdigit instead of isalnum.
22517         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
22519 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
22521         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
22522         was a dependency or dynamically loaded.
22524 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
22526         * intl/l10nflist.c: Allow architecture-specific pop function.
22527         * sysdeps/x86_64/l10nflist.c: New file.
22529         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
22530         classification.
22532 2011-08-10  Andreas Schwab  <schwab@redhat.com>
22534         * include/dirent.h: Add libc_hidden_proto for scandirat and
22535         scandirat64.  Don't declare __scandirat64.
22536         * dirent/scandirat.c: Add libc_hidden_def.
22537         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
22538         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
22540 2011-08-10  David S. Miller  <davem@davemloft.net>
22542         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
22543         enum.
22544         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22545         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22546         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22548 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
22550         * Versions.def [libc]: Add GLIBC_2.15.
22551         * dirent/Makefile (routines): Add scandirat and scandirat64.
22552         * dirent/Versions [libc]: Export scandirat and scandirat64 for
22553         GLIBC_2.15.
22554         * dirent/dirent.h: Declare scandirat and scandirat64.
22555         * dirent/scandirat.c: New file.
22556         * dirent/scandirat64.c: New file.
22557         * sysdeps/wordsize-64/scandirat.c: New file.
22558         * sysdeps/wordsize-64/scandirat64.c: New file.
22559         * dirent/opendir.c: Define opendirat.
22560         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
22561         using scandirat.
22562         * dirent/scandir64.c: Adjust for scandir.c change.
22563         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
22564         __scandirat64, and __scandir_cancel_handler.
22565         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
22566         additional parameter and use openat instead of open (outside of ld.so).
22567         Add new __opendir as wrapper around __opendirat.
22568         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
22569         here without requiring old scandirat implementation.
22571 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
22573         * dirent/scandir.c (cancel_handler): Renamed to
22574         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
22575         defined.  Adjust users.
22576         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
22577         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
22579 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
22581         * string/test-string.h (IMPL): Use __STRING to expand name and then
22582         stringify it.
22584         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
22585         of cleanups.
22587 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22589         * string/Makefile: Update.
22590         (strop-tests): Append strncat.
22591         * string/test-wcscmp.c: New file.
22592         New comprehensive test for wcscmp.
22593         * string/test-strcmp.c: Update.
22594         (WIDE): New define.
22596 2011-07-22  Andreas Schwab  <schwab@redhat.com>
22598         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
22599         line.
22601 2011-07-26  Andreas Schwab  <schwab@redhat.com>
22603         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
22604         encoding to ACE if AI_IDN.
22606 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
22608         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
22609         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
22611 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22613         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
22614         Fix overflow bug in strncat.
22615         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
22617         * string/test-strncat.c: Update.
22618         Add new tests for checking overflow bugs.
22620 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22622         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22623         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
22624         * sysdeps/i386/i686/multiarch/strcat.S: New file.
22625         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
22626         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
22627         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
22628         * sysdeps/i386/i686/multiarch/strncat.S: New file.
22629         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
22630         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
22632         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
22633         (USE_AS_STRCAT): Define.
22634         Add strcat and strncat support.
22635         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22637 2011-07-25  Andreas Schwab  <schwab@redhat.com>
22639         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
22640         __n bigger than INT_MAX+1.
22641         (__strncmp_g): Likewise.
22643 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
22645         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
22646         * libio/stido.h: Likewise.
22648         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
22649         (AF_NFC): Define.
22650         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
22651         (AF_NFC): Define.
22653         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
22654         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22655         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22656         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22657         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22659         [BZ #13021]
22660         * scripts/test-installation.pl: Don't expect libnss_test1 to be
22661         installed.
22663         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
22664         typo.
22665         (_dl_x86_64_save_sse): Likewise.
22667 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
22669         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
22670         OSXSAVE.
22671         (_dl_x86_64_save_sse): Likewise.
22673         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
22675         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
22677 2011-07-21  Andreas Schwab  <schwab@redhat.com>
22679         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
22680         change.
22681         (_dl_x86_64_save_sse): Use correct AVX check.
22683 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22685         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
22686         bug in strncpy/strncat.
22687         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
22689 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
22691         * string/tester.c (test_strcat): Add tests for different alignments
22692         of source and destination.
22693         (test_strncat): Likewise.
22695 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
22697         [BZ #12852]
22698         * posix/glob.c (glob): Check passed in values before using them in
22699         expressions to avoid some overflows.
22700         (glob_in_dir): Likewise.
22702         [BZ #13007]
22703         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
22704         check for AVX enablement so that we don't crash with old kernels and
22705         new hardware.
22706         * elf/tst-audit4.c: Add same checks here.
22707         * elf/tst-audit6.c: Likewise.
22709         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
22711 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
22713         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
22715 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
22717         * po/cs.po: Update from translation team.
22718         * po/bg.po: Likewise.
22720 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
22722         * misc/sys/cdefs.h: Add support for const attribute.
22723         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
22724         to gnu_dev_{major,minor,makedev} functions.
22726 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
22728         * intl/dcigettext.c (get_output_charset): Add missing bracket.
22730 2011-07-20  Andreas Schwab  <schwab@redhat.com>
22732         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
22733         strlen results.
22735 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22737         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
22738         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
22739         register in order to avoid conflicts with the soft frame pointer
22740         being held in r11 when necessary.
22741         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22742         (INTERNAL_VSYSCALL_NCS): Likewise.
22744 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
22746         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
22747         * elf/dl-fini.c (_dl_fini): Adjust caller.
22748         * elf/dl-close.c (_dl_close_worker): Likewise.
22749         * sysdeps/generic/ldsodefs.h: Adjust declaration.
22751 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
22753         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
22754         "aux_cache->nlibs < 0".
22756         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
22757         in the reload-count case.
22759 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22761         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22762         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
22763         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
22764         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
22765         * sysdeps/x86_64/multiarch/strcat.S: New file.
22766         * sysdeps/x86_64/multiarch/strncat.S: New file.
22767         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
22768         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
22769         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
22770         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
22771         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
22772         (USE_AS_STRCAT): Define.
22773         Add strcat and strncat support.
22774         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22775         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
22776         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
22777         * string/strncat.c: Update.
22778         (USE_AS_STRNCAT): Define.
22779         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22780         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
22781         and i7.
22782         * sysdeps/x86_64/multiarch/init-arch.h
22783         (bit_Prefer_PMINUB_for_stringop): New.
22784         (index_Prefer_PMINUB_for_stringop): Likewise.
22785         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
22786         bit_Prefer_PMINUB_for_stringop.
22788 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
22790         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
22791         buffer64.
22792         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
22793         of casting of buffer.
22794         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
22795         buffer32 and buffer64.
22796         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
22797         writes instead of casting of buffer.
22798         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
22799         buffer32.
22800         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
22801         casting of buffer.
22803 2011-07-19  Andreas Schwab  <schwab@redhat.com>
22805         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
22807 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
22809         * nscd/nscd.c (termination_handler): Don't do anything for a database
22810         if it has not yet been initialized.
22812 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
22814         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
22816 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
22818         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
22820 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
22822         * po/nl.po: Update from translation team.
22823         * po/sv.po: Likewise.
22825 2011-07-16  Roland McGrath  <roland@hack.frob.com>
22827         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
22828         now disallowed by GCC.
22830         * configure.in (use-default-link): Default to yes if a test -shared
22831         link meets our qualifications.
22832         * configure: Regenerated.
22834         * config.make.in (output-format): New variable.
22835         * configure.in: Check for ld --print-output-format support.
22836         * configure: Regenerated.
22837         * Makerules ($(common-objpfx)format.lds)
22838         [$(output-format) != unknown]: Just use $(output-format),
22839         instead of the linker-script munging.
22841 2011-07-14  Roland McGrath  <roland@hack.frob.com>
22843         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
22844         of $(common-objpfx)shlib.lds.
22845         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
22847         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
22848         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
22850         * configure.in (-z relro check): Adjust test code to add a large
22851         writable data section after it.
22852         * configure: Regenerated.
22854 2011-07-11  Roland McGrath  <roland@hack.frob.com>
22856         * configure.in (-z relro check): Fix test code to make the variable
22857         truly const.
22858         * configure: Regenerated.
22860 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
22862         * nscd/nscd.h (struct traced_file): Define.
22863         (struct database_dyn): Remove inotify_descr, reset_res, and filename
22864         elements.  Add traced_files.
22865         (inotify_fd): Declare.
22866         (register_traced_file): Declare.
22867         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
22868         (inotify_fd): Export.
22869         (resolv_conf_descr): Remove.
22870         (nscd_init): Move inotify descriptor creation to main.
22871         Don't register files for notification here.
22872         (register_traced_file): New function.
22873         (invalidate_cache): Don't use reset_res to determine whether to call
22874         res_init, go through the list of registered files.
22875         (main_loop_poll): The inotify descriptors are now stored in the
22876         structures for the traced files.
22877         (main_loop_epoll): Likewise
22878         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
22879         to __nss_disable_nscd.
22880         * nscd/cache.c (prune_cache): There is no single inotify descriptor
22881         for a database anymore.  Check the records for all the registered
22882         files instead.
22883         * nss/Makefile (libnss_files-routines): Add files-init.
22884         (libnss_db-routines): Add db-init.
22885         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
22886         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
22887         * nss/nss_db/db-init.c: New file.
22888         * nss/nss_files/files-init.c: New file.
22889         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
22890         __nss_lookup_function.
22891         (__nss_lookup_function): Call nss_load_library.
22892         (nss_load_all_libraries): New function.
22893         (__nss_disable_nscd): Take parameter with callback function for files
22894         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
22895         used for the cached services.
22896         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
22897         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
22898         options for features to all the files in nscd.
22900         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
22902 2011-07-10  Roland McGrath  <roland@hack.frob.com>
22904         * csu/elf-init.c (__libc_csu_init): Comment typo.
22906 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
22908         * po/pl.po: Update from translation team.
22909         * po/ja.po: Likewise.
22910         * po/ru.po: Likewise.
22911         * po/ko.po: Likewise.
22912         * po/fr.po: Likewise.
22914 2011-07-09  Roland McGrath  <roland@hack.frob.com>
22916         * configure.in (.ctors/.dtors header and trailer check):
22917         Use an empirical test on a built program.
22918         * configure: Regenerated.
22920         * configure.in (-z relro check): Use an empirical test on a built DSO.
22921         Detect, but do not require, on ia64.
22922         * configure: Regenerated.
22924         * configure.in (READELF): Find it with AC_CHECK_TOOL.
22925         Update tests that use readelf to use $READELF instead.
22926         * configure: Regenerated.
22928 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
22930         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
22931         if the result is not used.
22933 2011-07-05  Andreas Jaeger  <aj@suse.de>
22935         [BZ#9696]
22936         * stdlib/tst-strtod.c: Add testcase.
22938 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
22940         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
22941         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
22942         The latter has a higher limit.  Take additional parameter to pass to
22943         the new function.
22944         (__pathconf): Pass file to __statfs_link_max.
22945         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
22946         __statfs_link_max.
22947         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
22948         __statfs_link_max.
22950         [BZ #12868]
22951         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
22952         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22953         Handle Lustre.
22954         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
22955         (__statfs_filesize_max): Likewise.
22956         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
22958 2011-07-05  Andreas Jaeger  <aj@suse.de>
22960         * resolv/res_comp.c (dn_skipname): Remove unused variable.
22962 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
22964         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
22965         `status' variable.
22966         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
22967         Likewise.
22969 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
22971         * Makefile (strop-tests): Add strncat.
22972         * string/test-strncat.c: New file.
22974 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
22976         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
22978 2011-06-21  Andreas Jaeger  <aj@suse.de>
22980         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
22981         Copy rule from iconvdata/Makefile.
22983 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22985         [BZ #12922]
22986         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
22987         but no long options are defined, just return 'W'.
22989 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
22991         [BZ #9696]
22992         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
22994 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22996         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
22997         netgroups to read.
22998         (innetgr): Likewise.
23000 2011-07-05  Roland McGrath  <roland@hack.frob.com>
23002         * config.make.in (install_root): Default to $(DESTDIR).
23004 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
23006         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
23008 2011-07-02  Roland McGrath  <roland@hack.frob.com>
23010         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
23012         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
23013         containing directory rather than embedding absolute directory names.
23015         * scripts/check-local-headers.sh: Rewritten using awk.
23016         Match by word, not by line.  Print error messages for matches.
23017         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
23019         * Makerules [shlib-lds-flags empty]:
23020         ($(common-objpfx)libc_pic.opts): New target.
23021         ($(common-objpfx)libc_pic.os.clean): New target.
23022         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
23024         * config.make.in (OBJCOPY): New variable.
23025         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
23026         * configure: Regenerated.
23028         * config.make.in (use-default-link): New variable.
23029         * configure.in (use_default_link): Grok --with-default-link to set it.
23030         * configure: Regenerated.
23031         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
23032         (shlib-lds, shlib-lds-flags): Define to empty.
23034         * Makerules (shlib-lds): New variable.
23035         (shlib-lds-flags): New variable.
23036         (build-shlib, build-moduile, build-module-asneeded): Use it.
23037         ($(common-objpfx)libc.so): Use $(shlib-lds).
23038         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
23039         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
23041         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
23042         DT_FLAGS/DT_FLAGS_1 with zero flags.
23044         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
23045         linker script munging.
23047 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
23049         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
23050         as 128-bit value.
23051         * crypt/sha512.c (sha512_process_block): Perform total addition using
23052         128-bit if possible.
23053         (__sha512_finish_ctx): Likewise.
23054         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
23055         as 64-bit value.
23056         * crypt/sha256.c (SWAP64): Define.
23057         (sha256_process_block): Perform total addition using 64-bit if
23058         possible.
23059         (__sha256_finish_ctx): Likewise.
23061 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
23063         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
23064         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23065         * nscd/hstcache.c (cache_addhst): Likewise.
23066         * nscd/grpcache.c (cache_addgr): Likewise.
23067         * nscd/aicache.c (addhstaiX): Likewise
23068         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
23070 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
23072         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
23073         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23074         * nscd/hstcache.c (cache_addhst): Likewise.
23075         * nscd/grpcache.c (cache_addgr): Likewise.
23076         * nscd/aicache.c (addhstaiX): Likewise
23078 2011-07-01  Andreas Schwab  <schwab@redhat.com>
23080         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
23081         domain only when needed.
23083 2011-06-30  Andreas Schwab  <schwab@redhat.com>
23085         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
23086         is always restored.
23088 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
23090         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
23091         are re-adding the entry.
23092         * nscd/servicescache.c (cache_addserv): Likewise.
23094 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
23096         * sysdeps/generic/dl-irel.h: fix protection against multiple
23097         inclusions.
23098         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
23100 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
23102         [BZ #12935]
23103         * malloc/memusage.sh: Fix quoting in message.
23104         * debug/xtrace.sh: Likewise.
23106         * configure.in: Remove support for --experimental-malloc option, make
23107         it the default.
23108         * config.make.in: Likewise.
23109         * malloc/Makefile: Likewise.
23111 2011-06-27  Andreas Schwab  <schwab@redhat.com>
23113         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
23114         two-byte characters.
23116 2011-06-27  Roland McGrath  <roland@hack.frob.com>
23118         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
23119         AC_CACHE_CHECK invocation.
23120         * configure: Regenerated.
23122         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
23124 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
23126         [BZ #12350]
23127         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
23128         bit from old_res_options.
23130         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
23132         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
23133         value type for setfct.
23135 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23137         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23138         __gettimeofday instead of gettimeofday.
23140 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
23142         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
23144 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23146         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
23148         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
23149         info.
23151 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23153         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23154         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23155         strcpy-sse2-unaligned strncpy-sse2-unaligned
23156         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
23157         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
23158         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
23159         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
23160         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
23161         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
23162         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
23163         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
23164         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
23165         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
23166         (STRCPY): Support SSE2 and SSSE3 versions.
23168 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
23170         [BZ #12874]
23171         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
23172         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
23173         kernels which artificially limit size of requests.
23175 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23177         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23178         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23179         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
23180         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
23181         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
23182         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
23183         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
23184         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
23185         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
23186         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
23187         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
23188         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
23189         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
23190         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
23191         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
23192         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23193         Enable unaligned load optimization for Intel Core i3, i5 and i7
23194         processors.
23195         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
23196         Define.
23197         (index_Fast_Unaligned_Load): Define.
23198         (HAS_FAST_UNALIGNED_LOAD): Define.
23200 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
23202         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
23204 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23206         [BZ #12907]
23207         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
23208         until it is clear that the information is realy needed.
23209         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
23211 2011-06-22  Andreas Schwab  <schwab@redhat.com>
23213         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
23215 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23217         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23218         /sys/devices/system/cpu/online if it is usable.
23220         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
23221         reading the information from the /proc filesystem to once a second.
23223 2011-06-21  Andreas Jaeger  <aj@suse.de>
23225         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
23226         NULL after inclusion of kernel headers.
23228 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
23230         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
23231         calls to internal_setent.
23233         [BZ #12885]
23234         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
23235         addresses using gethostbyname4_r ignore IPv4 addresses.
23237         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
23238         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
23240         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
23242 2011-06-20  David S. Miller  <davem@davemloft.net>
23244         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
23245         inclusions.
23246         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
23248         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
23249         (elf_irel): Use it.
23250         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
23251         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
23252         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
23253         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
23254         * sysdeps/x86_64/dl-irel.h: Likewise.
23256         * elf/dl-runtime.c: Use elf_ifunc_invoke.
23257         * elf/dl-sym.c: Likewise.
23259 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23261         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
23262         need to dereference resplen2.
23264 2011-06-14  Andreas Schwab  <schwab@redhat.com>
23266         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
23268 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23270         * Makeconfig: Define vardbdir and inst_vardbdir.
23271         * nss/Makefile: Add rules to install db-Makefile.
23273         * nss/nss_db/db-XXX.c: Cleanup.
23275         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
23276         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
23277         GLIBC_PRIVATE.
23278         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
23279         * nss/makedb.c: Implement -g option to specify that value strings
23280         are generated and should not be added to table iterated over for
23281         get*ent calls.
23282         * nss/nss_db/db-initgroups.c: New file.
23284         * nss/getent.c: Add support for initgroups lookups through getgrouplist
23285         interface.
23287         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
23288         (internal_getgrouplist): Adjust to name change.
23289         Update use_initgroups_entry if this is not the first call.
23290         * nss/databases.def: Add initgroups entry.
23292         * nss/makedb.c (compute_tables): Check result of multiple hash table
23293         sizes to minimize maximum chain length.
23295 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
23297         * Versions.def: Add entry for libnss_db.
23298         * shlib-versions: Likewise.
23299         * nss/Makefile: Add rules to build libnss_db.
23300         * nss/Versions: Add libnss_db information.  Organize libnss_files
23301         entries better.
23302         * nss/db-Makefile: Add gshadow support.  Change rules for the new
23303         makedb progra.  Some minor improvements to generate smaller files.
23304         * nss/nss_db/nss_db.h: Move NSS database header data structures to
23305         here from...
23306         * nss/makedb.c: ...here.
23307         Improve database format to be smaller and require less memory at
23308         runtime.
23309         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
23310         db anymore.
23311         * nss/nss_db/db-netgrp.c: Likewise.
23312         * nss/nss_db/db-open.c: Likewise.
23313         * nss/nss_files/flies-XXX.x: Adjust comments.
23314         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
23315         * nss/nss_files/files-grp.c: Likewise.
23316         * nss/nss_files/files-hosts.c: Likewise.
23317         * nss/nss_files/files-network.c: Likewise.
23318         * nss/nss_files/files-proto.c: Likewise.
23319         * nss/nss_files/files-pwd.c: Likewise.
23320         * nss/nss_files/files-rpc.c: Likewise.
23321         * nss/nss_files/files-service.c: Likewise.
23322         * nss/nss_files/files-sgrp.c: Likewise.
23323         * nss/nss_files/files-spwd.c: Likewise.
23324         * nss/nss_db/db-alias.c: Removed.
23325         * nss/nss_db/dummy-db.h: Removed.
23327 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
23329         * nss/makedb.c: Rewritten to not use database library.
23330         * nss/Makefile: Update to build new makedb program.
23332 2011-06-14  Andreas Jaeger  <aj@suse.de>
23334         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
23335         memset declaration.
23337 2011-06-10  Andreas Schwab  <schwab@redhat.com>
23339         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
23340         tmpbuf.
23342 2011-06-10  Roland McGrath  <roland@hack.frob.com>
23344         * Makerules (shlib.lds): Fail if the linker script comes out empty.
23345         * elf/Makefile ($(objpfx)ld.so): Likewise.
23347         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
23348         Don't list ld.so twice in dependencies.
23350         * posix/bug-regex31.c: Include <stdlib.h>.
23352         * nscd/hstcache.c (cache_addhst): Remove unused variable.
23354         * nis/nss_compat/compat-spwd.c
23355         (getspent_next_nss_netgr): Remove unused variable.
23356         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
23358         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
23359         nonmembers" output to use the right array.
23361         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
23363         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
23365         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
23366         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
23367         * catgets/gencat.c (read_input_file): Likewise.
23368         * locale/programs/locarchive.c (enlarge_archive): Likewise.
23370         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
23371         variable definition inside #if's controlling its use.
23373         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
23375         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
23377         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
23379         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
23380         unreachable code.
23382         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
23384         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
23385         * configure: Regenerated.
23387         * Makerules: Revert last change.
23388         * elf/Makefile: Likewise.
23390 2011-06-09  Roland McGrath  <roland@hack.frob.com>
23392         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
23393         * elf/Makefile ($(objpfx)librtld.os): Likewise.
23394         (reloc-link): Likewise.
23396 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
23398         * elf/Makefile: Add rules to build pldd.
23399         * elf/pldd.c: New file.
23400         * elf/pldd-xx.c: New file.
23402 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
23404         * version.h: Update for 2.15 development version.
23406 2011-06-07  David S. Miller  <davem@davemloft.net>
23408         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
23409         ifuncs.
23410         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
23411         elf_machine_lazy_rel): Likewise.
23412         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
23413         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
23414         elf_machine_lazy_rel): Likewise.
23415         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
23416         dl_hwcap via passed in argument.
23417         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
23418         Likewise.
23420 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23422         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
23424 2011-06-06  Roland McGrath  <roland@hack.frob.com>
23426         [BZ #12849]
23427         * manual/fdl-1.1.texi: New file, verbatim from:
23428         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
23429         * manual/lgpl-2.1.texi: New file, verbatim from:
23430         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
23431         * manual/Makefile (licenses): New variable, list those new file names.
23432         (texis): Use it.
23433         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
23435         * manual/fdl.texi: File removed.
23436         * manual/lesser.texi: File removed.
23437         * manual/libc.texinfo (Copying, Documentation License):
23438         Use new @include file names, put @appendix directive before @include.
23440 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
23442         [BZ #12841]
23443         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
23444         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
23445         (mq_open): Add __NTH.
23447 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
23449         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23450         Assume Intel Core i3/i5/i7 processor if AVX is available.
23452 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23454         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
23455         typo.
23457 2011-05-31  Andreas Schwab  <schwab@redhat.com>
23459         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
23460         memory.  Use alloca_account.  Fix memory leak when retrying.
23462 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23464         * version.h (RELEASE): Bump for 2.14 release.
23465         * include/features.h (__GLIBC_MINOR__): Bump to 14.
23467         * config.make.in (RANLIB): Remove entry.
23469 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
23471         * po/Makefile (po-sed-cmd): Add ksh to extensions.
23472         (libc.pot): Work around missing support for .ksh extension in xgettext.
23474         [BZ #12684]
23475         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
23476         if both request failed.
23477         (send_dg): In case of server errors clear resplen or *resplen2.
23479         [BZ #12454]
23480         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
23481         when there are multiple maps.
23482         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
23483         (_dl_fini): Remove test here.
23485         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
23487 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
23489         [BZ #12350]
23490         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
23491         bit from old_res_options.
23492         (gaih_inet): Likewise.
23494         [BZ #11099]
23495         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
23496         as signed.
23498         * resolv/res_init.c (res_setoptions): Make the code more compact.
23500         [BZ #11558]
23501         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
23502         set RES_USEVC.
23504         [BZ #11634]
23505         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
23507         * malloc/malloc.h: Mark malloc hook variables as deprecated.
23509         [BZ #11781]
23510         * malloc/malloc.h: Declare malloc hook variables as volatile.
23512         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
23513         in last patch.
23515         [BZ #11799]
23516         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
23517         raise in the comment.
23518         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
23519         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
23520         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
23522 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
23524         [BZ #12811]
23525         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
23526         grow the buffers more if it already has to be sufficient.
23527         (build_wcs_upper_buffer): Likewise.
23528         * posix/regexec.c (check_matching): Likewise.
23529         (clean_state_log_if_needed): Likewise.
23530         (extend_buffers): Don't enlarge buffers beyond size of the input
23531         buffer.
23532         Patches mostly by Emil Wojak <emil@wojak.eu>.
23533         * posix/bug-regex32.c: New file.
23534         * posix/Makefile (tests): Add bug-regex32.
23536         * locale/findlocale.c (_nl_find_locale): Return right away if
23537         _nl_explode_name failed.
23538         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
23540         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
23542         * debug/xtrace.sh: Unify messages.
23543         * malloc/memusage.sh: Likewise.
23545         [BZ #12813]
23546         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
23547         time symbol from vDSO.  Substitute with vsyscall if not available.
23548         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
23549         __vdso_time.
23551         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
23552         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
23553         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
23554         Add sendmmsg and internal_sendmmsg.
23555         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
23556         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
23557         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
23559         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
23560         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
23561         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
23563 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
23565         [BZ #12813]
23566         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
23567         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
23568         available.
23569         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
23570         __vdso_getcpu.
23572         [BZ #12814]
23573         * iconvdata/Makefile (tests): Add bug-iconv9.
23574         * iconvdata/bug-iconv9.c: New file.
23576 2011-05-27  Andreas Schwab  <schwab@redhat.com>
23578         [BZ #12814]
23579         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
23581 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
23583         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
23584         (struct user_regs_struct): Change intcs field back to cs.
23586 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
23588         * po/ja.po: Update from translation team.
23590 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
23592         [BZ #12795]
23593         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
23594         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
23596 2011-05-20  Andreas Schwab  <schwab@redhat.com>
23598         * stdlib/longlong.h: Update from GCC.
23600 2011-05-23  Andreas Schwab  <schwab@redhat.com>
23602         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
23603         parameter name.
23604         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
23605         Add parameter name.
23606         (__sysconf): Pass it down.
23608 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
23610         [BZ #12671]
23611         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
23612         some situations.
23613         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
23614         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
23615         add in in __libc_use_alloca calls.  Adjust callers.
23616         (glob): Use malloc in some situations.
23618         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
23619         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
23620         pltexit.
23622 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
23624         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
23625         and CLOCK_BOOTTIME_ALARM.
23627         [BZ #12782]
23628         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
23629         is returned.
23631         * string/_strerror.c (__strerror_r): Print negative errors as signed
23632         numbers.
23634         [BZ #12777]
23635         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
23636         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
23637         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
23639         * configure.in: Fix typo in redirection and correct removal of test
23640         files in two cases.
23642         [BZ #12788]
23643         * locale/setlocale.c (new_composite_name): Fix test to check for
23644         identical name of all categories.
23646         [BZ #12792]
23647         * libio/filedoalloc.c (local_isatty): New function.
23648         (_IO_file_doallocate): Use local_isatty.
23649         * stdio-common/perror.c (perror): In case a new stream is used
23650         forward the stream error.
23651         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
23652         error flag.
23654 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
23656         [BZ #11869]
23657         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
23658         alloca.
23659         * include/alloca.h (extend_alloca_account): Define.
23661         [BZ #11857]
23662         * posix/regex.h: Fix comments with documentation of user-accessible
23663         fields after compilation and describe correct free'ing of pattern
23664         after re_compile_pattern.
23665         Patch by Reuben Thomas <rrt@sc3d.org>.
23667 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
23669         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
23670         and -mno-altivec to prevent the compiler from using Altivec and/or
23671         VSX instructions when the corresponding registers are not available.
23673 2011-05-19  Andreas Schwab  <schwab@redhat.com>
23675         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
23677 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
23679         * libio/freopen.c (freopen): Use __dup2, not dup2.
23680         * libio/freopen64.c (freopen64): Likewise.
23682 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23684         [BZ #12775]
23685         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
23686         * math/Makefile (tests): Add test-powl.
23687         (CFLAGS-test-powl.c): Define.
23688         * math/test-powl.c: New file.
23690 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23692         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
23694 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
23696         [BZ #11837]
23697         * iconvdata/gb18030.c: Update to GB18020-2005.
23699 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
23701         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
23702         RE_SYNTAX_POSIX_AWK): Update to match recent development.
23703         Patch by Aharon Robbins <arnold@skeeve.com>.
23705         [BZ #11892]
23706         * stdlib/putenv.c (putenv): Don't always create copy of the variable
23707         on the stack.
23709         [BZ #11895]
23710         * misc/pselect.c (__pselect): Handle timeout value errors hidden
23711         through underflows.
23713         [BZ #12766]
23714         * misc/error.c (error_at_line): Ensure file_name and old_file_name
23715         point to strings before performing equality test for error_one_per_line
23716         mode.
23718         [BZ #11697]
23719         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
23721         [BZ #11820]
23722         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
23723         (struct user_fpregs_struct): Avoid __uint*_t types.
23725         [BZ #6420]
23726         * malloc/mtrace.c (tr_where): Add additional parameter to point to
23727         symbol info.  Use it instead of calling _dl_addr locally.
23728         (lock_and_info): New function.
23729         (tr_freehook): Call lock_and_info and pass symbol info as additional
23730         parameter to tr_where.
23731         (tr_mallochook): Likewise.
23732         (tr_reallochook): Likewise.
23733         (tr_memalignhook): Likewise.
23735         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
23736         used and couldn't be at all thread-safe.
23738 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
23740         * libio/freopen.c (freopen): Don't close old file descriptor
23741         before the new one is opened.  Instead dup the new file descriptor
23742         to the old one after the new stream is created.
23743         * libio/freopen64.c (freopen64): Likewise.
23744         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
23745         * libio/fileops.c (_IO_new_file_close_it): Handle new
23746         _IO_FLAGS2_NOCLOSE flag.
23747         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
23748         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
23749         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
23750         _IO_FLAGS2_NOCLOSE flag.
23751         * include/unistd.h: Add hidden_proto for dup3.
23752         Define __have_dup3.
23753         * io/dup3.c: Define hidden symbol.
23754         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
23756         [BZ #7101]
23757         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
23758         when an incomplete long option is used.
23759         * posix/tst-getopt_long1.c: New file.
23760         * posix/Makefile (tests): Add tst-getopt_long1.
23762         [BZ #10138]
23763         * scripts/config.guess: Update from autoconf-2.68.
23764         * scripts/config.sub: Likewise.
23766         [BZ #10157]
23767         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
23768         tests into ...
23769         (has_cpuclock): ...this.  New function.
23770         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
23771         macro here based on has_cpuclock code.
23773         [BZ #10149]
23774         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23775         First byte (not low byte) is now always NUL.
23776         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
23778         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23779         Use non-cancelable interfaces.
23781         [BZ #9809]
23782         * locale/iso-639.def: Add entry for Sorani.
23784         [BZ #11901]
23785         * include/stdlib.h: Move include protection to the right place.
23786         Define abort_msg_s.  Declare __abort_msg with it.
23787         * stdlib/abort.c (__abort_msg): Adjust type.
23788         * assert/assert.c (__assert_fail_base): New function.  Majority
23789         of code from __assert_fail.  Allocate memory for __abort_msg with
23790         mmap.
23791         (__assert_fail): Now call __assert_fail_base.
23792         * assert/assert-perr.c: Remove bulk of implementation.  Use
23793         __assert_fail_base.
23794         * include/assert.hL Declare __assert_fail_base.
23795         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
23796         mmap.
23797         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
23799 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
23801         [BZ #11952]
23802         [BZ #12453]
23803         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
23804         until all modules are registered in the DTV.
23805         * elf/Makefile: Add rules to build and run tst-tls19.
23806         * elf/tst-tls19.c: New file.
23807         * elf/tst-tls19mod1.c: New file.
23808         * elf/tst-tls19mod2.c: New file.
23809         * elf/tst-tls19mod3.c: New file.
23810         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
23812         [BZ #12083]
23813         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
23814         correctly.
23816         [BZ #12601]
23817         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
23818         two-byte sequence errors.
23819         * iconvdata/Makefile (tests): Add bug-iconv8.
23820         * iconvdata/bug-iconv8.c: New file.
23822         [BZ #12626]
23823         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
23824         buf2 definition.
23826         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
23828         [BZ #12432]
23829         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
23830         (dummy_getcfa): New function.
23831         (init): Get _Unwind_GetCFA address, use dummy if not found.
23832         (backtrace_helper): In recursion check, also check whether CFA changes.
23833         (__backtrace): Completely initialize arg.
23835         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
23836         storing incomplete byte sequence in state object.  Avoid testing for
23837         guaranteed too small input if we know there is enough data available.
23839 2011-05-11  Andreas Schwab  <schwab@redhat.com>
23841         * Makeconfig (+link-pie): Indent.
23842         * Rules (binaries-pie): Define if $(have-fpie) and
23843         $(build-shared).
23844         (binaries-shared): Also filter out $(binaries-pie).
23845         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
23846         * nscd/Makefile (others-pie): Add nscd.
23847         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
23848         ($(objpfx)nscd): Remove command override.
23849         * login/Makefile (others-pie): Add pt_chown.
23850         ($(objpfx)pt_chown): Remove command override.
23851         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
23852         remove command overrides.
23854 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
23856         * libio/tst_putwc.c: Fix error messages.
23858         [BZ #12724]
23859         * libio/fileops.c (_IO_new_file_close_it): Always flush when
23860         currently writing and seek to current position when not.
23861         * libio/Makefile (tests): Add bug-fclose1.
23862         * libio/bug-fclose1.c: New file.
23864 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
23866         [BZ #12511]
23867         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
23868         don't set DF_1_NODELETE here.
23869         (do_lookup_x): When entering new entry test for copy relocation
23870         and if necessary set DF_1_NODELETE flag.
23871         * elf/tst-unique4.cc: New file.
23872         * elf/tst-unique4.h: New file.
23873         * elf/tst-unique4lib.cc: New file.
23874         * elf/Makefile: Add rules to build and run tst-unique4.
23875         Patch by Piotr Bury <pbury@goahead.com>.
23877 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
23879         [BZ #12052]
23880         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
23882         [BZ #12625]
23883         * misc/mntent_r.c (addmntent): Flush the stream after the output
23885         [BZ #12393]
23886         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
23887         (is_trusted_path_normalize): Skip initial colon.  Append slash
23888         to empty buffer.  Duplicate is_trusted_path code but allow
23889         constructed patch to be prefix.
23890         (is_dst): Allow $ORIGIN followed by /.
23891         (_dl_dst_substitute): Correct clearing of check_for_trusted.
23892         Correct testing of result of is_trusted_path_normalize
23893         (decompose_rpath): Fix warning.
23895 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
23897         [BZ #11257]
23898         * grp/initgroups.c (internal_getgrouplist): When we found the service
23899         list through the initgroups entry in nsswitch.conf do not always
23900         continue on a successful lookup.  Don't always use the
23901         __nss_group_database value if it is set.
23902         * nss/nsswitch.conf (initgroups): Change action for successful db
23903         lookup to continue for compatibility.
23905 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
23907         [BZ #11532]
23908         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
23909         and CP774 modules.
23910         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
23911         and CP774 modules.
23912         * iconvdata/tst-tables.sh: Likewise.
23913         * iconvdata/cp770.c: New file.
23914         * iconvdata/cp771.c: New file.
23915         * iconvdata/cp772.c: New file.
23916         * iconvdata/cp773.c: New file.
23917         * iconvdata/cp774.c: New file.
23918         * iconvdata/testdata/CP770: New file.
23919         * iconvdata/testdata/CP770..UTF8: New file.
23920         * iconvdata/testdata/CP771: New file.
23921         * iconvdata/testdata/CP771..UTF8: New file.
23922         * iconvdata/testdata/CP772: New file.
23923         * iconvdata/testdata/CP772..UTF8: New file.
23924         * iconvdata/testdata/CP773: New file.
23925         * iconvdata/testdata/CP773..UTF8: New file.
23926         * iconvdata/testdata/CP774: New file.
23927         * iconvdata/testdata/CP774..UTF8: New file.
23929         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
23930         END CHARMAP line.
23931         * iconvdata/gen-8bit-gap.sh: Likewise.
23932         * iconvdata/gen-8bit.sh: Likewise.
23934         * locale/iso-639.def: Add ary entry.
23936         [BZ #11258]
23937         * locale/C-translit.h.in: Add U20A1 transliteration.
23939         [BZ #12178]
23940         * locale/iso-639.def: Add wae entry.
23941         Patch by Kevin Bortis <bortis@translate-wae.ch>.
23943         [BZ #12545]
23944         * locale/programs/localedef.c (construct_output_path): Use ssize_t
23945         for n.
23947         [BZ #12711]
23948         * locale/C-translit.h.in: Add entry for U20B9.
23949         Patch by pravin.d.s@gmail.com.
23951 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
23953         [BZ #12713]
23954         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
23955         ENAMETOOLONG use generic getcwd.
23956         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
23957         in rtld.  Use *stat64.
23958         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
23959         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
23960         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
23961         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
23962         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
23963         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
23964         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
23965         __fstatat64 macros.
23966         * include/dirent.h: Add libc_hidden_proto for rewinddir.
23967         * dirent/rewinddir.c: Add libc_hidden_def.
23968         * sysdeps/mach/hurd/rewinddir.c: Likewise.
23969         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
23971         * include/dirent.h (__alloc_dir): Add flags parameter.
23972         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
23973         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
23974         __alloc_dir.
23975         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
23976         from fdopendir if O_CLOEXEC is already set.
23978 2011-03-15  Alan Modra  <amodra@gmail.com>
23980         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
23981         l_tls_firstbyte_offset non-zero.  Save padding offset in
23982         l_tls_firstbyte_offset for later use.
23983         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
23984         freeing static tls block.
23986 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
23988         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
23989         where #ifdef was intended.  The intent is to prevent ARG_MAX from
23990         being defined by the kernel headers.
23992 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
23994         [BZ #12734]
23995         * resolv/resolv.h: Define RES_NOTLDQUERY.
23996         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
23997         no-tld-query and set RES_NOTLDQUERY.
23998         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
23999         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
24000         modern BIND to search name as TLD unless forbidden.
24002 2011-05-07  Petr Baudis  <pasky@suse.cz>
24003             Ulrich Drepper  <drepper@gmail.com>
24005         [BZ #12393]
24006         * elf/dl-load.c (fillin_rpath): Move trusted path check...
24007         (is_trusted_path): ...to here.
24008         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
24009         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
24010         using is_trusted_path_normalize() in setuid scripts.
24012 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
24014         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
24015         __BEGIN/__END_DECLS.
24017 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
24019         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
24020         NSS_STATUS_NOTFOUND if no record was found.
24022 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24024         * sunrpc/Makefile (headers): Add rpc/netdb.h.
24025         (headers-not-in-tirpc): Remove rpc/netdb.h
24026         * resolv/netdb.h: Revert last change.
24028 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24030         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
24031         circular dependency between libgcc.a and libc.a.
24033 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24035         * resolv/netdb.h: Don't include <rpc/netdb.h>.
24036         * nis/Makefile: Don't install rpcsvc/*.
24037         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
24038         instead of <rpc/types.h>.
24039         (MAXHOSTNAMELEN): Define.
24041 2011-05-03  Andreas Schwab  <schwab@redhat.com>
24043         * elf/ldconfig.c (add_dir): Don't crash on empty path.
24045 2011-04-28  Maciej Babinski  <mbabinski@google.com>
24047         [BZ #12714]
24048         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
24049         gethostbyname4_r when IPv6 results are possible.
24051 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
24053         [BZ #12723]
24054         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
24055         _PC_PIPE_BUF handling.
24057 2011-04-30  Bruno Haible  <bruno@clisp.org>
24059         [BZ #12717]
24060         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
24061         * resolv/netdb.h (getnameinfo): Change type of flags parameter
24062         to 'int'.
24063         * inet/getnameinfo.c (getnameinfo): Likewise.
24065 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
24067         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
24068         to groups setting in database lookup.
24069         * nss/nsswitch.conf: Add initgroups entry.
24071 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
24073         [BZ #12685]
24074         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
24075         mode string.
24076         Patch by Eric Blake <eblake@redhat.com>.
24078 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
24080         * sunrpc/Makefile (need-export-routines): Add svc_run.
24081         (routines): Remove svc_run.
24082         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
24083         * sunrpc/clnt_perr.c (clnt_perrno): Export.
24084         * sunrpc/svc_run.c (svc_run): Likewise.
24085         * sunrpc/svc_udp.c (svcudp_create): Likewise.
24087 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
24089         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
24090         problem in reallocation in last patch.
24092 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
24094         * sunrpc/Makefile: Move inclusion of Rules.
24096 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24098         * nss/nss_files/files-initgroups.c: New file.
24099         * nss/Makefile (libnss_files-routines): Add files-initgroups.
24100         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
24101         _nss_files_initgroups_dyn.
24103 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
24105         * elf/elf.h (R_ARM_IRELATIVE): Define.
24107 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24109         * po/ru.po: Update from translation team.
24111 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24113         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
24114         dependencies.
24116 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
24118         [BZ #12653]
24119         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
24120         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
24121         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24122         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24123         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24125 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
24127         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
24128         differing bytes.
24129         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24130         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24131         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24133 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24135         [BZ #12420]
24136         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
24137         storing it.
24138         * stdlib/bug-getcontext.c: New file.
24139         * stdlib/Makefile: Add rules to build and run bug-getcontext.
24141 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24143         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
24144         instructions into .machine "z9-109".
24145         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
24146         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
24148 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24150         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
24151         between environment variables and auxiliary vector.
24153 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
24155         * Makefile: Add rules to build linkobj/libc.so.
24156         * include/libc-symbols.h: Define libc_hidden_nolink.
24157         * include/rpc/auth.h: Mark functions which are to be hidden.
24158         * include/rpc/auth_des.h: Likewise.
24159         * include/rpc/auth_unix.h: Likewise.
24160         * include/rpc/clnt.h: Likewise.
24161         * include/rpc/des_crypt.h: Likewise.
24162         * include/rpc/key_prot.h: Likewise.
24163         * include/rpc/pmap_clnt.h: Likewise.
24164         * include/rpc/pmap_prot.h: Likewise.
24165         * include/rpc/pmap_rmt.h: Likewise.
24166         * include/rpc/rpc_msg.h: Likewise.
24167         * include/rpc/svc.h: Likewise.
24168         * include/rpc/svc_auth.h: Likewise.
24169         * include/rpc/xdr.h: Likewise.
24170         * nis/Makefile: Link all DSOs against linkobj/libc.so.
24171         * nss/Makefile: Likewise.
24172         * sunrpc/Makefile: Don't install headers.  Build library with normal
24173         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
24174         * sunrpc/auth_des.c: Hide exported symbols by default, export some
24175         for the compat linking library.  Remove use of INTDEF/INTUSE.
24176         * sunrpc/auth_none.c: Likewise.
24177         * sunrpc/auth_unix.c: Likewise.
24178         * sunrpc/authdes_prot.c: Likewise.
24179         * sunrpc/authuxprot.c: Likewise.
24180         * sunrpc/clnt_gen.c: Likewise.
24181         * sunrpc/clnt_perr.c: Likewise.
24182         * sunrpc/clnt_raw.c: Likewise.
24183         * sunrpc/clnt_simp.c: Likewise.
24184         * sunrpc/clnt_tcp.c: Likewise.
24185         * sunrpc/clnt_udp.c: Likewise.
24186         * sunrpc/clnt_unix.c: Likewise.
24187         * sunrpc/des_crypt.c: Likewise.
24188         * sunrpc/des_soft.c: Likewise.
24189         * sunrpc/get_myaddr.c: Likewise.
24190         * sunrpc/key_call.c: Likewise.
24191         * sunrpc/key_prot.c: Likewise.
24192         * sunrpc/netname.c: Likewise.
24193         * sunrpc/pm_getmaps.c: Likewise.
24194         * sunrpc/pm_getport.c: Likewise.
24195         * sunrpc/pmap_clnt.c: Likewise.
24196         * sunrpc/pmap_prot.c: Likewise.
24197         * sunrpc/pmap_prot2.c: Likewise.
24198         * sunrpc/pmap_rmt.c: Likewise.
24199         * sunrpc/publickey.c: Likewise.
24200         * sunrpc/rpc_cmsg.c: Likewise.
24201         * sunrpc/rpc_common.c: Likewise.
24202         * sunrpc/rpc_dtable.c: Likewise.
24203         * sunrpc/rpc_prot.c: Likewise.
24204         * sunrpc/rpc_thread.c: Likewise.
24205         * sunrpc/rtime.c: Likewise.
24206         * sunrpc/svc.c: Likewise.
24207         * sunrpc/svc_auth.c: Likewise.
24208         * sunrpc/svc_authux.c: Likewise.
24209         * sunrpc/svc_raw.c: Likewise.
24210         * sunrpc/svc_run.c: Likewise.
24211         * sunrpc/svc_simple.c: Likewise.
24212         * sunrpc/svc_tcp.c: Likewise.
24213         * sunrpc/svc_udp.c: Likewise.
24214         * sunrpc/svc_unix.c: Likewise.
24215         * sunrpc/svcauth_des.c: Likewise.
24216         * sunrpc/xcrypt.c: Likewise.
24217         * sunrpc/xdr.c: Likewise.
24218         * sunrpc/xdr_array.c: Likewise.
24219         * sunrpc/xdr_float.c: Likewise.
24220         * sunrpc/xdr_intXX_t.c: Likewise.
24221         * sunrpc/xdr_mem.c: Likewise.
24222         * sunrpc/xdr_rec.c: Likewise.
24223         * sunrpc/xdr_ref.c: Likewise.
24224         * sunrpc/xdr_sizeof.c: Likewise.
24225         * sunrpc/xdr_stdio.c: Likewise.
24227 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
24229         [BZ #12650]
24230         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
24231         * sysdeps/ia64/dl-tls.h: Likewise.
24232         * sysdeps/powerpc/dl-tls.h: Likewise.
24233         * sysdeps/s390/dl-tls.h: Likewise.
24234         * sysdeps/sh/dl-tls.h: Likewise.
24235         * sysdeps/sparc/dl-tls.h: Likewise.
24236         * sysdeps/x86_64/dl-tls.h: Likewise.
24237         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
24239 2011-03-14  Andreas Schwab  <schwab@redhat.com>
24241         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
24242         rpath element also skip the following colon.
24243         (expand_dynamic_string_token): Add is_path parameter and pass
24244         down to DL_DST_REQUIRED and _dl_dst_substitute.
24245         (decompose_rpath): Call expand_dynamic_string_token with
24246         non-zero is_path.  Ignore empty rpaths.
24247         (_dl_map_object_from_fd): Call expand_dynamic_string_token
24248         with zero is_path.
24250 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
24252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
24253         Make cancelable.
24255 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
24257         [BZ #12655]
24258         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
24259         Patch by Filipe David Manana <fdmanana@apache.org>.
24261 2011-04-07  Andreas Schwab  <schwab@redhat.com>
24263         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
24264         Maintain aligned stack.
24265         (CHECK_RSP): Remove unused macro.
24267 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
24269         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
24270         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
24272 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
24274         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
24276         * include/features.h: Mention __USE_XOPEN2K8 in comment.
24278 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
24280         [BZ #12518]
24281         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
24282         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
24283         * sysdeps/x86_64/memmove.c: New file.
24284         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
24285         (memcpy): Renamed to ...
24286         (__new_memcpy): This.
24287         (memcpy): Provide GLIBC_2_14 memcpy.
24288         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
24289         (memcpy): Provide GLIBC_2_2_5 memcpy.
24291 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24293         [BZ #12631]
24294         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
24296 2011-03-30  Andreas Schwab  <schwab@redhat.com>
24298         * misc/syncfs.c: New file.
24299         * misc/Makefile (routines): Add syncfs.
24300         * posix/unistd.h: Declare syncfs.
24301         * sysdeps/unix/syscalls.list: Add syncfs.
24303 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24305         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
24306         open_by_handle_at.
24307         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24308         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24309         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24310         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24311         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24312         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
24313         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24315 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24317         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
24318         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24319         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
24320         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24321         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24322         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24323         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24325         * io/Makefile: Compile fallocate.c, fallocate64.c, and
24326         sync_file_range.c with -fexceptions.
24327         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
24328         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
24329         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24330         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24331         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
24332         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
24333         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
24334         sync_file_range as cancellation point
24335         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
24336         now a wrapper around __call_sync_file_range with cancellation handling.
24337         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
24338         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
24339         function name to __call_sync_file_range.
24340         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
24341         Add call_sync_file_range.
24343 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24346         bits/timex.h.
24348 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24350         * iconv/iconv.h: Fix typo in comment.
24351         * io/fcntl.h: Likewise.
24352         * libio/stdio.h: Likewise.
24353         * posix/spawn.h: Likewise.
24354         * posix/unistd.h: Likewise.
24355         * stdlib/stdlib.h: Likewise.
24356         * time/time.h: Likewise.
24357         * wcsmbs/wchar.h: Likewise.
24359         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
24360         open_by_handle): Add.
24361         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
24362         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
24363         Augment a few comments.
24364         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24365         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24366         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24367         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24368         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24369         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
24370         open_by_handle.
24372         * io/fcntl.h (AT_EMPTY_PATH): Define.
24374 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
24376         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
24377         * sysdeps/unix/sysv/linux/bits/time.h: New file.
24378         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
24379         to...
24380         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
24381         * Versions.def: Add GLIBC_2.14.
24382         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
24383         Export.
24385 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
24387         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
24388         round counter.
24389         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
24391 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24393         [BZ #12597]
24394         * string/test-strncmp.c (do_page_test): New function.
24395         (check2): Likewise.
24396         (test_main): Call check2.
24397         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
24399 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
24401         [BZ #12587]
24402         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
24403         Handle cache information in CPU leaf 4.
24404         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
24406 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
24408         [BZ #12583]
24409         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
24410         character representation.
24411         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
24413 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
24415         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
24416         END(__isnan) to END(__isnanf) to match function entry point/label
24417         EALIGN(__isnanf,...).
24419 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
24421         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
24423 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
24425         [BZ #12510]
24426         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
24427         copy from the symbol referenced in the relocation to initialize the
24428         used variable.
24429         Patch by Piotr Bury <pbury@goahead.com>.
24430         * elf/Makefile: Add rules to build and tst-unique3.
24431         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
24432         * elf/tst-unique3.cc: New file.
24433         * elf/tst-unique3.h: New file.
24434         * elf/tst-unique3lib.cc: New file.
24435         * elf/tst-unique3lib2.cc: New file.
24437         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
24439 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
24441         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
24442         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
24443         to _start.
24445 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
24447         * elf/dl-load.c (_dl_map_object): If we are looking for the first
24448         to-be-loaded object along a path to loader is ld.so.
24450 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24451             Ulrich Drepper  <drepper@gmail.com>
24453         * sysdeps/x86_64/memset.S: After aligning destination, code
24454         branches to different locations depending on the value of
24455         misalignment, when multiarch is enabled. Fix this.
24457 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24459         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
24460         Set _x86_64_preferred_memory_instruction for AMD processsors.
24461         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24462         Set bit_Prefer_SSE_for_memop for AMD processors.
24464 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
24466         * libio/fmemopen.c (fmemopen): Optimize a bit.
24468 2011-03-03  Andreas Schwab  <schwab@redhat.com>
24470         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
24472 2011-03-03  Roland McGrath  <roland@redhat.com>
24474         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
24476 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
24478         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
24479         __bzero_ultra1 instead of __memset_ultra1.
24481 2011-02-23  Andreas Schwab  <schwab@redhat.com>
24482             Ulrich Drepper  <drepper@gmail.com>
24484         [BZ #12509]
24485         * include/link.h (struct link_map): Add l_orig_initfini.
24486         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
24487         returning unsuccessfully.
24488         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
24489         close of a file loaded at startup, restore the original l_initfini
24490         list.
24491         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
24492         list, store the pointer.
24493         * elf/Makefile ($(objpfx)noload-mem): New rule.
24494         (noload-ENV): Define.
24495         (tests): Add $(objpfx)noload-mem.
24496         * elf/noload.c: Include <memcheck.h>.
24497         (main): Call mtrace.  Close all opened handles.
24499 2011-02-17  Andreas Schwab  <schwab@redhat.com>
24501         [BZ #12454]
24502         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
24503         dependencies are missing.
24505 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24507         Fix __if_freereq crash: Unlike the generic version which uses free,
24508         Hurd needs munmap.
24509         * sysdeps/mach/hurd/ifreq.h: New file.
24511 2011-01-27  Petr Baudis  <pasky@suse.cz>
24512             Ulrich Drepper  <drepper@gmail.com>
24514         [BZ 12445]#
24515         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
24516         to extend_alloca().
24517         * stdio-common/bug23.c: New file.
24518         * stdio-common/Makefile (tests): Add bug23.
24520 2010-09-28  Andreas Schwab  <schwab@redhat.com>
24521             Ulrich Drepper  <drepper@gmail.com>
24523         [BZ #12489]
24524         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
24525         before performing relro protection.  At old place add assertion
24526         to make sure nothing changed.
24528 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
24529             Glauber de Oliveira Costa  <glommer@gmail.com>
24531         * elf/elf.h: Add new ARM TLS relocs.
24533 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
24535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
24536         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
24537         cast from r3.
24538         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
24539         'tests' variable.
24540         * sysdeps/wordsize-64/tst-writev.c: New file.
24542 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
24544         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
24545         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
24546         insns in _dl_start to prevent a TOC reference before relocs are
24547         resolved.
24549 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
24551         [BZ #12469]
24552         * Makeconfig: Remove RANLIB definition.
24553         * Makerules: Don't use RANLIB.
24554         * aclocal.m4: Remove ranlib test.
24555         * configure.in: No need to check for ranlib.
24556         * elf/rtld-Rules: Don't use RANLIB.
24558 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24560         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
24561         protection macro.
24562         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
24563         inclusion protection macro.
24565         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
24566         SIGRTMIN and SIGRTMAX and print information in that case only when
24567         SIGRTMIN is defined.
24569 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24571         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
24572         arginfo fn returning -1.
24574         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
24575         and thousands string is zero terminated.
24577 2011-02-03  Andreas Schwab  <schwab@redhat.com>
24579         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
24580         sysdeps/unix/sysv/linux/bits/socket.h.
24582 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24584         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
24585         (__CPU_COUNT): Remove old macros.
24586         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
24587         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
24588         (__CPU_ALLOC, __CPU_FREE): Add macros.
24589         (__sched_cpualloc, __sched_cpufree): Add declarations.
24591 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
24593         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
24594         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
24595         * nscd/aicache.c (addhstaiX): Return timeout of added value.
24596         (readdhstai): Return value of addhstaiX call.
24597         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
24598         (addgrbyX): Return value returned by cache_addgr.
24599         (readdgrbyname): Return value returned by addgrbyX.
24600         (readdgrbygid): Likewise.
24601         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
24602         (addpwbyX): Return value returned by cache_addpw.
24603         (readdpwbyname): Return value returned by addhstbyX.
24604         (readdpwbyuid): Likewise.
24605         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
24606         (addservbyX): Return value returned by cache_addserv.
24607         (readdservbyname): Return value returned by addservbyX:
24608         (readdservbyport): Likewise.
24609         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
24610         (addhstbyX): Return value returned by cache_addhst.
24611         (readdhstbyname): Return value returned by addhstbyX.
24612         (readdhstbyaddr): Likewise.
24613         (readdhstbynamev6): Likewise.
24614         (readdhstbyaddrv6): Likewise.
24615         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
24616         (readdinitgroups): Return value returned by addinitgroupsX.
24617         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
24618         (prune_cache): Keep track of timeout value of re-added entries.
24619         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
24620         * nscd/nscd.h: Adjust prototypes of readd* functions.
24622 2011-02-04  Roland McGrath  <roland@redhat.com>
24624         * nis/nis_server.c (nis_servstate): Use the right name for 0.
24625         (nis_stats): Likewise.
24626         * nis/nis_modify.c (nis_modify): Likewise.
24627         * nis/nis_remove.c (nis_remove): Likewise.
24628         * nis/nis_add.c (nis_add): Likewise.
24630         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
24632         * posix/fnmatch_loop.c: Add some consts.
24634         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
24636 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
24638         [BZ #12460]
24639         * config.make.in (config-cflags-novzeroupper): Define.
24640         * configure.in: Substitute libc_cv_cc_novzeroupper.
24641         * elf/Makefile (AVX-CFLAGS): Define.
24642         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
24643         (CFLAGS-tst-auditmod4a.c): Likewise.
24644         (CFLAGS-tst-auditmod4b.c): Likewise.
24645         (CFLAGS-tst-auditmod6b.c): Likewise.
24646         (CFLAGS-tst-auditmod6c.c): Likewise.
24647         (CFLAGS-tst-auditmod7b.c): Likewise.
24648         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
24650 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
24652         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
24653         function to the callback.
24654         Patch partly by Jiri Olsa <jolsa@redhat.com>.
24656 2011-02-02  Andreas Schwab  <schwab@redhat.com>
24658         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
24659         of errno.
24661 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
24663         [BZ #11724]
24664         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
24665         of constructors.
24666         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
24667         of destructors.
24668         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
24670         [BZ #11724]
24671         * elf/Makefile: Add rules to build and run new test.
24672         * elf/tst-initorder.c: New file.
24673         * elf/tst-initorder.exp: New file.
24674         * elf/tst-initordera1.c: New file.
24675         * elf/tst-initordera2.c: New file.
24676         * elf/tst-initordera3.c: New file.
24677         * elf/tst-initordera4.c: New file.
24678         * elf/tst-initorderb1.c: New file.
24679         * elf/tst-initorderb2.c: New file.
24680         * elf/tst-order-a1.c: New file.
24681         * elf/tst-order-a2.c: New file.
24682         * elf/tst-order-a3.c: New file.
24683         * elf/tst-order-a4.c: New file.
24684         * elf/tst-order-b1.c: New file.
24685         * elf/tst-order-b2.c: New file.
24686         * elf/tst-order-main.c: New file.
24687         New test case by George Gensure <werkt0@gmail.com>.
24689 2010-10-01  Andreas Schwab  <schwab@redhat.com>
24691         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24692         decoding ACE if AI_CANONIDN.
24694 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
24696         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
24698 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
24700         * version.h (RELEASE): Bump for 2.13 release.
24701         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
24703         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
24705         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
24706         MADV_NOHUGEPAGE.
24707         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
24708         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
24709         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
24710         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
24711         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
24712         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24714         * posix/getconf.c: Update copyright year.
24715         * catgets/gencat.c: Likewise.
24716         * csu/version.c: Likewise.
24717         * debug/catchsegv.sh: Likewise.
24718         * debug/xtrace.sh: Likewise.
24719         * elf/ldconfig.c: Likewise.
24720         * elf/ldd.bash.in: Likewise.
24721         * elf/sprof.c (print_version): Likewise.
24722         * iconv/iconv_prog.c: Likewise.
24723         * iconv/iconvconfig.c: Likewise.
24724         * locale/programs/locale.c: Likewise.
24725         * locale/programs/localedef.c: Likewise.
24726         * malloc/memusage.sh: Likewise.
24727         * malloc/mtrace.pl: Likewise.
24728         * nscd/nscd.c (print_version): Likewise.
24729         * nss/getent.c: Likewise.
24731         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
24732         PF_CAIF, and PF_ALG.
24733         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24735 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
24737         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
24738         (modules-names): Use them.
24739         (ifunc-test-modules, ifunc-pie-tests): Define.
24740         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
24741         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
24742         (test-extras): Likewise.
24743         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
24744         $(compile-command.c).
24745         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
24746         (all-built-dso): Define.
24747         (check-textrel.out, check-execstack.out): Depend on it.
24749         * configure.in: Don't override --enable-multi-arch.
24751 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
24753         [BZ #6812]
24754         * nscd/hstcache.c (tryagain): Define.
24755         (cache_addhst): Return tryagain not notfound for temporary errors.
24756         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
24757         failed.
24759 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
24761         [BZ #10563]
24762         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
24763         to make the syscall.
24764         * sysdeps/unix/sysv/linux/setgroups.c: New file.
24766         [BZ #12378]
24767         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
24768         and fall back to matching as normal character if the string ends before
24769         the matching ']' is found.  This is what POSIX requires.
24770         * posix/testfnm.c: Adjust test result.
24771         * posix/globtest.sh: Adjust test result.  Add new test.
24772         * posix/tst-fnmatch.input: Likewise.
24773         * posix/tst-fnmatch2.c: Add new test.
24775 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
24777         * elf/Makefile (check-execstack): Revert last change.  Depend on
24778         check-execstack.h.
24779         (check-execstack.h): New target.
24780         (generated): Add check-execstack.h.
24781         * elf/check-execstack.c: Include "check-execstack.h".
24782         (main): Revert last change.
24783         (handle_file): Return zero if GNU_STACK is absent and
24784         DEFAULT_STACK_PERMS doesn't include PF_X.
24786 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
24788         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
24789         in child fails because the descriptor is already closed.
24790         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
24791         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
24792         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
24794         [BZ #12397]
24795         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
24796         syscall.
24798         [BZ #10484]
24799         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
24800         temporary buffer used to handle multi lookups locally.
24801         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
24803 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
24805         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
24806         loader is ld.so.
24808 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
24810         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
24811         alignment for SSE2.
24813 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
24815         [BZ #12394]
24816         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
24817         characters.  When rounding increased number of integer digits recompute
24818         number of groups.
24819         * stdio-common/tst-grouping.c: New file.
24820         * stdio-common/Makefile: Add rules to build and run tst-grouping.
24822 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
24824         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
24825         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
24827         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
24828         void.
24829         * bits/select.h: Likewise.
24831 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
24833         * po/ja.po: Update from translation team.
24835 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
24837         [BZ #11155]
24838         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
24839         implementation just like for lxstat, fxstatat, et al.
24841 2010-12-27  Jim Meyering  <meyering@redhat.com>
24843         [BZ #12348]
24844         * posix/regexec.c (build_trtable): Return failure indication upon
24845         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24847 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
24849         [BZ #12201]
24850         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
24851         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
24852         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
24853         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
24855         [BZ #12207]
24856         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
24858         [BZ #12204]
24859         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
24860         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
24862 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
24864         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
24865         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
24866         script has SORT_BY_INIT_PRIORITY.
24867         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
24868         NO_CTORS_DTORS_SECTIONS is defined.
24869         * elf/soinit.c: Likewise.
24870         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
24871         NO_CTORS_DTORS_SECTIONS is defined.
24872         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
24873         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
24874         * sysdeps/sh/init-first.c: Likewise.
24875         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
24877 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
24879         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
24880         always use the slow path.
24882 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
24884         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
24885         similar rule which adds the sysdep directories to the header search in
24886         order to pick up the correct platform stackinfo.h.
24887         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
24888         perform test if it is, otherwise return successfully without testing.
24889         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
24890         DEFAULT_STACK_PERMS define in stackinfo.h.
24891         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
24892         defined in stackinfo.h.
24893         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
24894         DEFAULT_STACK_PERMS defined in stackinfo.h.
24895         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
24896         * sysdeps/ia64/stackinfo.h: Likewise.
24897         * sysdeps/s390/stackinfo.h: Likewise.
24898         * sysdeps/sh/stackinfo.h: Likewise.
24899         * sysdeps/sparc/stackinfo.h: Likewise.
24900         * sysdeps/x86_64/stackinfo.h: Likewise.
24901         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
24902         PF_X for powerpc64.  Retain PF_X for powerpc32.
24904 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
24906         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
24907         accurately.
24908         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
24909         GETDENTS_64BIT_ALIGNED.
24911 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
24913         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
24915 2010-12-10  Andreas Schwab  <schwab@redhat.com>
24917         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
24918         _GNU_SOURCE.
24920         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
24921         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
24922         Remove __restrict.
24923         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
24924         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
24926 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
24928         [BZ #11655]
24929         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
24930         are initialized.
24932 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
24934         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
24936 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
24938         * po/it.po: Update from translation team.
24940 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
24942         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
24943         unused codes.
24945 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
24947         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
24949 2010-11-24  Andreas Schwab  <schwab@redhat.com>
24951         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
24952         specially.
24953         (gaih_getanswer_slice): Likewise.
24955 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
24957         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
24959 2010-05-31  Petr Baudis  <pasky@suse.cz>
24961         [BZ #11149]
24962         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
24963         silently even in the chroot mode.
24965 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
24967         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
24968         last patch a bit.  Pretty printing
24970 2010-05-31  Petr Baudis <pasky@suse.cz>
24972         [BZ #10085]
24973         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
24974         initialization of skip_initgroups_dyn.
24976 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
24978         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
24979         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24981 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
24983         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
24985 2010-11-11  Andreas Schwab  <schwab@redhat.com>
24987         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
24988         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
24989         (tst-fnmatch-ENV): Set MALLOC_TRACE.
24990         ($(objpfx)tst-fnmatch-mem): New rule.
24991         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
24992         * posix/tst-fnmatch.c (main): Call mtrace.
24994 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
24996         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24997         Support Intel processor model 6 and model 0x2c.
24999 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
25001         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
25002           signed comparison.
25004 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25006         [BZ #12205]
25007         * string/test-strncasecmp.c (check_result): New function.
25008         (do_one_test): Use it.
25009         (check1): New function.
25010         (test_main): Use it.
25011         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
25012         Support strcasecmp and strncasecmp.
25014 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
25016         [BZ #12194]
25017         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
25018         * sysdeps/x86_64/bits/byteswap.h: Likewise.
25020 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25022         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
25023         IFUNC support.
25024         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25025         memset-x86-64.
25026         * sysdeps/x86_64/multiarch/bzero.S: New file.
25027         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
25028         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
25029         * sysdeps/x86_64/multiarch/memset.S: New file.
25030         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
25031         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25032         Set bit_Prefer_SSE_for_memop for Intel processors.
25033         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
25034         Define.
25035         (index_Prefer_SSE_for_memop): Define.
25036         (HAS_PREFER_SSE_FOR_MEMOP): Define.
25038 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
25040         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
25041         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
25043 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
25045         [BZ #12191]
25046         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25047         (__x86_64_raw_data_cache_size_half): Likewise.
25048         (__x86_64_raw_shared_cache_size): Likewise.
25049         (__x86_64_raw_shared_cache_size_half): Likewise.
25051         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25052         (__x86_64_raw_data_cache_size_half): Likewise.
25053         (__x86_64_raw_shared_cache_size): Likewise.
25054         (__x86_64_raw_shared_cache_size_half): Likewise.
25055         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
25056         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
25057         and __x86_64_raw_shared_cache_size_half.  Round
25058         __x86_64_data_cache_size_half, __x86_64_data_cache_size
25059         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
25060         to multiple of 256 bytes.
25062 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
25064         [BZ #12167]
25065         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
25066         of inacessible symlinks.  Verify result of symlink before returning it.
25067         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25068         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
25070 2010-10-28  Erich Ritz  <erichritz@gmail.com>
25072         * math/math.h (isinf): Fix typo in comment.
25074 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
25076         * po/da.po: Update from translation team.
25078 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
25080         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
25081         is added to the list.
25083 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25084             Ulrich Drepper  <drepper@gmail.com>
25086         * elf/dl-object.c (_dl_new_object): Don't append the new object to
25087         the global list here.  Move code to...
25088         (_dl_add_to_namespace_list): ...here.  New function.
25089         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
25090         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
25091         * elf/dl-load.c (lose): Don't remove the element from the list.
25092         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
25093         (_dl_map_object): Likewise.
25095 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
25097         [BZ #12159]
25098         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
25099         into all bytes of SSE register.
25100         Patch by Richard Li <richardpku@gmail.com>.
25102 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
25104         [BZ #12140]
25105         * malloc/malloc.c (_int_free): Fill correct number of bytes when
25106         perturbing.
25108 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
25110         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
25111         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
25112         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
25113         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
25114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
25115         submachine.
25116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
25118 2010-10-22  Andreas Schwab  <schwab@redhat.com>
25120         * include/dlfcn.h (__RTLD_SECURE): Define.
25121         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
25122         mode & __RTLD_SECURE instead.
25123         (open_path): Rename preloaded parameter to secure.
25124         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
25125         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
25126         * elf/dl-deps.c (openaux): Likewise.
25127         * elf/rtld.c (struct map_args): Remove is_preloaded.
25128         (map_doit): Don't use it.
25129         (dl_main): Likewise.
25130         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
25131         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
25133 2010-09-09  Andreas Schwab  <schwab@redhat.com>
25135         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
25136         (sysd-rules-targets): Remove duplicates.
25137         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
25138         rtld-%.$o dependency.
25140 2010-10-18  Andreas Schwab  <schwab@redhat.com>
25142         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
25143         _dl_map_object do it.
25145 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
25147         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
25148         fast fma builtins, define the macros in the C99 standard.
25149         (FP_FAST_FMAF): Likewise.
25150         (FP_FAST_FMAL): Likewise.
25151         * sysdeps/x86_64/bits/mathdef.h: Likewise.
25153         * bits/mathdef.h: Update copyright year.
25154         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25156 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
25158         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
25159         builtins, define the macros in the C99 standard.
25160         (FP_FAST_FMAF): Likewise.
25161         (FP_FAST_FMAL): Likewise.
25162         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
25163         multiply/add.
25164         (FP_FAST_FMAF): Likewise.
25166 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
25168         [BZ #3268]
25169         * math/libm-test.inc (fma_test): Some new testcases.
25170         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
25171         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
25172         y and infinite z.  Do multiplication by C already in long double.
25173         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
25174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
25175         y and infinite z.  Do bitwise or of inexact bit into u.d.
25176         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
25177         * sysdeps/i386/fpu/s_fmaf.S: Removed.
25178         * sysdeps/i386/fpu/s_fma.S: Removed.
25179         * sysdeps/i386/fpu/s_fmal.S: Removed.
25181 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
25183         [BZ #3268]
25184         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
25185         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
25186         computation is not scheduled after fetestexcept.  Fix value
25187         of minimum denormal long double.
25189 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
25191         [BZ #3268]
25192         * math/libm-test.inc (fma_test): Add some more tests.
25193         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
25194         correctly.
25196 2010-10-15  Andreas Schwab  <schwab@redhat.com>
25198         * scripts/data/localplt-s390-linux-gnu.data: New file.
25199         * scripts/data/localplt-s390x-linux-gnu.data: New file.
25201 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
25203         [BZ #3268]
25204         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
25205         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
25206         instead of dbl-64.
25207         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
25208         inlines.
25209         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
25210         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
25211         if one of x and y is very large and the other is subnormal.
25212         * sysdeps/s390/fpu/s_fmaf.c: New file.
25213         * sysdeps/s390/fpu/s_fma.c: New file.
25214         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
25215         * sysdeps/powerpc/fpu/s_fma.S: New file.
25216         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
25217         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
25218         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
25220 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
25222         [BZ #3268]
25223         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
25224         fma tests.
25225         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
25226         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
25227         * sysdeps/i386/i686/multiarch/s_fma.c: Include
25228         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
25229         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
25230         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
25231         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
25233 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
25235         [BZ #12078]
25236         * posix/regcomp.c (parse_branch): One more memory leak plugged.
25237         * posix/bug-regex31.input: Add test case.
25239 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25241         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
25242         * posix/bug-regex31.input: New file.
25244         [BZ #12078]
25245         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
25246         (parse_sub_exp): Fix last change, use postorder.
25248         * posix/bug-regex31.c: New file.
25249         * posix/Makefile: Add rules to build and run bug-regex31.
25251         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
25253         [BZ #12078]
25254         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
25256         [BZ #12108]
25257         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
25258         to have entries in sys_siglist.
25260         [BZ #12093]
25261         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
25262         be NULL.
25264 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
25266         [BZ #3268]
25267         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
25268         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
25269         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
25270         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
25271         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
25272         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
25273         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
25274         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
25275         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
25276         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
25277         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
25278         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
25279         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25280         * math/ftestexcept.c (fetestexcept): Likewise.
25281         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
25282         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
25283         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
25284         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
25285         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
25286         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
25287         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
25289 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25291         [BZ #12107]
25292         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
25293         newline.
25295 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
25297         * string/bug-strstr1.c: New file.
25298         * string/Makefile: Add rules to build and run bug-strstr1.
25300 2010-10-05  Eric Blake  <eblake@redhat.com>
25302         [BZ #12092]
25303         * string/str-two-way.h (two_way_long_needle): Always clear memory
25304         when skipping input due to the shift table.
25306 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
25308         [BZ #12005]
25309         * malloc/mcheck.c: Handle large requests.
25311         [BZ #12077]
25312         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
25313         for strncmp and strncasecmp.
25314         * string/stratcliff.c: Add tests for strcmp and strncmp.
25315         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
25317 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25319         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
25320         __set_fpscr.
25322 2010-09-30  Andreas Jaeger  <aj@suse.de>
25324         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
25325         (CGROUP_SUPER_MAGIC): Define.
25326         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25327         Handle btrfs and cgroup file systems.
25328         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
25329         Likewise.
25331 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
25333         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
25334         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
25336 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25338         [BZ #12067]
25339         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
25340         trying to locate the ELF header.
25342 2010-09-27  Andreas Schwab  <schwab@redhat.com>
25344         [BZ #11611]
25345         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
25346         Mask out sign-bit copies when constructing f_fsid.
25348 2010-09-24  Petr Baudis <pasky@suse.cz>
25350         * debug/stack_chk_fail_local.c: Add missing licence exception.
25351         * debug/warning-nop.c: Likewise.
25353 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
25355         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
25356         implementing getdents64 using getdents syscall, set d_type if
25357         __ASSUME_GETDENTS32_D_TYPE.
25359 2010-09-16  Andreas Schwab  <schwab@redhat.com>
25361         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
25362         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
25364 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
25366         [BZ #12037]
25367         * posix/unistd.h: Undo change of feature selection for ftruncate from
25368         2010-01-11.
25370 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
25372         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
25373         detection.
25375 2010-09-20  Andreas Schwab  <schwab@redhat.com>
25377         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
25378         fanotify_mark.
25379         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
25381 2010-09-14  Andreas Schwab  <schwab@redhat.com>
25383         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
25384         variables after CHECK_SP call.
25385         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
25387 2010-09-13  Andreas Schwab  <schwab@redhat.com>
25388             Ulrich Drepper  <drepper@redhat.com>
25390         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
25391         re-relocationg ld.so.
25392         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
25393         _dl_init_paths call.
25394         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
25395         here anymore.
25397 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
25399         * resolv/res_init.c (__res_vinit): Count the default server we added.
25401 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
25402             Ulrich Drepper  <drepper@redhat.com>
25404         [BZ #11968]
25405         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25406         (____longjmp_chk): Use %ebx for saving value across system call.
25407         Add unwind info.
25409 2010-09-06  Andreas Schwab  <schwab@redhat.com>
25411         * manual/Makefile: Don't mix pattern rules with normal rules.
25413 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25415         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
25416         operation.
25417         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
25418         * libio/iofopncook.c (_IO_cookie_init): Likewise.
25419         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
25420         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
25421         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25422         Likewise.
25424 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
25426         [BZ #11979]
25427         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
25428         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
25430 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
25432         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
25433         * sysdeps/x86_64/addmul_1.S: Likewise.
25434         * sysdeps/x86_64/lshift.S: Likewise.
25435         * sysdeps/x86_64/mul_1.S: Likewise.
25436         * sysdeps/x86_64/rshift.S: Likewise.
25437         * sysdeps/x86_64/sub_n.S: Likewise.
25438         * sysdeps/x86_64/submul_1.S: Likewise.
25440 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25442         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
25443         Define __sched_param instead of SCHED_* and sched_param when
25444         <bits/sched.h> is included with __need_schedparam defined.
25445         * bits/sched.h [__need_schedparam]
25446         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
25447         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
25448         (__defined_schedparam): Define to 1.
25449         (__sched_param): New structure, identical to sched_param.
25450         (__need_schedparam): Undefine.
25452 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
25454         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
25455         (epoll_create1): Declare.
25457         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
25459 2010-08-31  Andreas Schwab  <schwab@redhat.com>
25461         [BZ #7066]
25462         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
25463         shifting retval into place.
25465 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
25467         * nis/rpcsvc/nis.h: Update copyright notice.
25468         * nis/rpcsvc/nis.x: Likewise.
25469         * nis/rpcsvc/nis_callback.h: Likewise.
25470         * nis/rpcsvc/nis_callback.x: Likewise.
25471         * nis/rpcsvc/nis_object.x: Likewise.
25472         * nis/rpcsvc/nis_tags.h: Likewise.
25473         * nis/rpcsvc/yp.h: Likewise.
25474         * nis/rpcsvc/yp.x: Likewise.
25475         * nis/rpcsvc/ypupd.h: Likewise.
25476         * nis/yp_xdr.c: Likewise.
25477         * nis/ypupdate_xdr.c: Likewise.
25479         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
25480         mainly the body of pmap_getport.  Add parameters to specify timeouts.
25481         (pmap_getport): Use __libc_rpc_getport.
25482         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
25483         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
25484         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
25486 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
25488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
25489         fanotify_mark.
25491 2010-08-27  Roland McGrath  <roland@redhat.com>
25493         * sysdeps/i386/i686/multiarch/Makefile
25494         (CFLAGS-varshift.c): New variable.
25496 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
25498         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
25499         * sysdeps/i386/i686/multiarch/varshift.c: New file.
25501         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
25503         * sysdeps/x86_64/strlen.S: Minimal code improvement.
25505 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
25507         * sysdeps/x86_64/strlen.S: Unroll the loop.
25508         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25509         strlen-sse2 strlen-sse2-bsf.
25510         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
25511         __strlen_no_bsf if bit_Slow_BSF is set.
25512         (__strlen_sse42): Removed.
25513         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
25514         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
25516 2010-08-25  Roland McGrath  <roland@redhat.com>
25518         * sysdeps/x86_64/multiarch/varshift.S: File removed.
25519         * sysdeps/x86_64/multiarch/varshift.c: New file.
25520         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
25521         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
25522         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
25523         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
25525 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
25527         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25528         strlen-sse2 strlen-sse2-bsf.
25529         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
25530         __strlen_sse2_bsf if bit_Slow_BSF is unset.
25531         (__strlen_sse2): Removed.
25532         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
25533         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
25534         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
25535         bit_Slow_BSF for Atom.
25536         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
25537         (index_Slow_BSF): Define.
25538         (HAS_SLOW_BSF): Define.
25540 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
25542         [BZ #10851]
25543         * resolv/res_init.c (__res_vinit): When no server address at all
25544         is given default to loopback.
25546 2010-08-24  Roland McGrath  <roland@redhat.com>
25548         * configure.in: Remove config-name.h generation.
25549         * configure: Regenerated.
25550         * config-name.in: File removed.
25551         * scripts/config-uname.sh: New file.
25552         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
25553         ($(objdir)config-name.h): New target.
25555         * sunrpc/rpc_parse.h: Avoid nested comment.
25557 2010-08-24  Richard Henderson  <rth@redhat.com>
25558             Ulrich Drepper  <drepper@redhat.com>
25559             H.J. Lu  <hongjiu.lu@intel.com>
25561         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
25562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
25563         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
25564         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
25565         _mm_alignr_epi8 with _mm_loadu_si128.
25566         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
25567         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
25568         (__m128i_shift_right): Removed.
25569         * sysdeps/i386/i686/multiarch/varshift.h: New file.
25570         * sysdeps/i386/i686/multiarch/varshift.S: New file.
25571         * sysdeps/x86_64/multiarch/varshift.h: New file.
25572         * sysdeps/x86_64/multiarch/varshift.S: New file.
25574 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
25576         * configure.in: Move assembler checks to before sysdep dir checking.
25578 2010-08-20  Petr Baudis  <pasky@suse.cz>
25580         * LICENSES: Sync the sunrpc license.
25582 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
25584         * sunrpc/auth_des.c: Update copyright notice once again.
25585         * sunrpc/auth_none.c: Likewise.
25586         * sunrpc/auth_unix.c: Likewise.
25587         * sunrpc/authdes_prot.c: Likewise.
25588         * sunrpc/authuxprot.c: Likewise.
25589         * sunrpc/bindrsvprt.c: Likewise.
25590         * sunrpc/clnt_gen.c: Likewise.
25591         * sunrpc/clnt_perr.c: Likewise.
25592         * sunrpc/clnt_raw.c: Likewise.
25593         * sunrpc/clnt_simp.c: Likewise.
25594         * sunrpc/clnt_tcp.c: Likewise.
25595         * sunrpc/clnt_udp.c: Likewise.
25596         * sunrpc/clnt_unix.c: Likewise.
25597         * sunrpc/des_crypt.c: Likewise.
25598         * sunrpc/des_soft.c: Likewise.
25599         * sunrpc/get_myaddr.c: Likewise.
25600         * sunrpc/getrpcport.c: Likewise.
25601         * sunrpc/key_call.c: Likewise.
25602         * sunrpc/key_prot.c: Likewise.
25603         * sunrpc/openchild.c: Likewise.
25604         * sunrpc/pm_getmaps.c: Likewise.
25605         * sunrpc/pm_getport.c: Likewise.
25606         * sunrpc/pmap_clnt.c: Likewise.
25607         * sunrpc/pmap_prot.c: Likewise.
25608         * sunrpc/pmap_prot2.c: Likewise.
25609         * sunrpc/pmap_rmt.c: Likewise.
25610         * sunrpc/rpc/auth.h: Likewise.
25611         * sunrpc/rpc/auth_unix.h: Likewise.
25612         * sunrpc/rpc/clnt.h: Likewise.
25613         * sunrpc/rpc/des_crypt.h: Likewise.
25614         * sunrpc/rpc/key_prot.h: Likewise.
25615         * sunrpc/rpc/netdb.h: Likewise.
25616         * sunrpc/rpc/pmap_clnt.h: Likewise.
25617         * sunrpc/rpc/pmap_prot.h: Likewise.
25618         * sunrpc/rpc/pmap_rmt.h: Likewise.
25619         * sunrpc/rpc/rpc.h: Likewise.
25620         * sunrpc/rpc/rpc_des.h: Likewise.
25621         * sunrpc/rpc/rpc_msg.h: Likewise.
25622         * sunrpc/rpc/svc.h: Likewise.
25623         * sunrpc/rpc/svc_auth.h: Likewise.
25624         * sunrpc/rpc/types.h: Likewise.
25625         * sunrpc/rpc/xdr.h: Likewise.
25626         * sunrpc/rpc_clntout.c: Likewise.
25627         * sunrpc/rpc_cmsg.c: Likewise.
25628         * sunrpc/rpc_common.c: Likewise.
25629         * sunrpc/rpc_cout.c: Likewise.
25630         * sunrpc/rpc_dtable.c: Likewise.
25631         * sunrpc/rpc_hout.c: Likewise.
25632         * sunrpc/rpc_main.c: Likewise.
25633         * sunrpc/rpc_parse.c: Likewise.
25634         * sunrpc/rpc_parse.h: Likewise.
25635         * sunrpc/rpc_prot.c: Likewise.
25636         * sunrpc/rpc_sample.c: Likewise.
25637         * sunrpc/rpc_scan.c: Likewise.
25638         * sunrpc/rpc_scan.h: Likewise.
25639         * sunrpc/rpc_svcout.c: Likewise.
25640         * sunrpc/rpc_tblout.c: Likewise.
25641         * sunrpc/rpc_util.c: Likewise.
25642         * sunrpc/rpc_util.h: Likewise.
25643         * sunrpc/rpcinfo.c: Likewise.
25644         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
25645         * sunrpc/rpcsvc/key_prot.x: Likewise.
25646         * sunrpc/rpcsvc/klm_prot.x: Likewise.
25647         * sunrpc/rpcsvc/mount.x: Likewise.
25648         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
25649         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
25650         * sunrpc/rpcsvc/rex.x: Likewise.
25651         * sunrpc/rpcsvc/rstat.x: Likewise.
25652         * sunrpc/rpcsvc/rusers.x: Likewise.
25653         * sunrpc/rpcsvc/sm_inter.x: Likewise.
25654         * sunrpc/rpcsvc/spray.x: Likewise.
25655         * sunrpc/rpcsvc/yppasswd.x: Likewise.
25656         * sunrpc/rtime.c: Likewise.
25657         * sunrpc/svc.c: Likewise.
25658         * sunrpc/svc_auth.c: Likewise.
25659         * sunrpc/svc_authux.c: Likewise.
25660         * sunrpc/svc_raw.c: Likewise.
25661         * sunrpc/svc_run.c: Likewise.
25662         * sunrpc/svc_simple.c: Likewise.
25663         * sunrpc/svc_tcp.c: Likewise.
25664         * sunrpc/svc_udp.c: Likewise.
25665         * sunrpc/svc_unix.c: Likewise.
25666         * sunrpc/svcauth_des.c: Likewise.
25667         * sunrpc/xcrypt.c: Likewise.
25668         * sunrpc/xdr.c: Likewise.
25669         * sunrpc/xdr_array.c: Likewise.
25670         * sunrpc/xdr_float.c: Likewise.
25671         * sunrpc/xdr_mem.c: Likewise.
25672         * sunrpc/xdr_rec.c: Likewise.
25673         * sunrpc/xdr_ref.c: Likewise.
25674         * sunrpc/xdr_sizeof.c: Likewise.
25675         * sunrpc/xdr_stdio.c: Likewise.
25677         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
25678         handling.
25680 2010-08-19  Andreas Schwab  <schwab@redhat.com>
25682         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
25684 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
25686         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
25687         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
25688         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
25689         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
25690         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
25691         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
25692         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
25693         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
25694         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
25695         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
25696         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
25697         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
25698         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
25699         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
25701 2010-07-26  Anton Blanchard  <anton@samba.org>
25703         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
25704         * malloc/arena.c (heap_trim): Likewise.
25706 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
25708         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
25709         here.  Not...
25710         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
25711         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
25713 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
25715         * sysdeps/i386/elf/Makefile: New file.
25717 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
25719         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
25720         from fanotify_init.
25721         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
25722         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
25724 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
25726         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
25727         of strncasecmp_l.
25728         * sysdeps/multiarch/strcmp.S: Likewise.
25730 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
25732         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25733         strncase_l-nonascii.
25734         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25735         Add strncase_l-ssse3.
25736         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
25737         * sysdeps/x86_64/strcmp.S: Likewise.
25738         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
25739         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
25740         * sysdeps/x86_64/strncase.S: New file.
25741         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
25742         * sysdeps/x86_64/strncase_l.S: New file.
25743         * string/Makefile (strop-tests): Add strncasecmp.
25744         * string/test-strncasecmp.c: New file.
25746         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
25747         warning.
25749         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
25750         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
25752 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
25754         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
25756 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
25758         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
25759         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
25760         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
25762 2010-05-01  Alan Modra  <amodra@gmail.com>
25764         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
25765         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
25766         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
25767         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
25768         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
25769         tidying.  Don't tail-call __sigjmp_save for static lib.
25770         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
25771         save location.
25772         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
25773         (CALL_MCOUNT): Add eh info, and nop after bl.
25774         (TAIL_CALL_SYSCALL_ERROR): New macro.
25775         (PSEUDO_RET): Use it.
25776         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
25777         Correct save location of integer regs and cr.
25778         (_dl_profile_resolve): Correct cr save location.  Delete nops
25779         after bl when SHARED.  Reduce cfi size a little by better
25780         placement of cfi directives.
25781         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
25782         make a stack frame.  Instead use parm save area as a temp.
25783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
25784         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
25785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
25786         Don't make a stack frame for parent, use parm save area.
25787         Increase child stack frame to 112 bytes.  Don't save unused reg,
25788         and adjust reg usage.  Set up cfi on error recovery and
25789         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
25790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
25791         (__makecontext): Add dummy nop after jump to exit.
25792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
25793         Use correct parm save area and cr save, reduce stack frame.
25794         Correct cfi for possible PSEUDO_RET frame setup.
25795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
25796         Branch to local label emitted by PSEUDO_RET rather than
25797         __syscall_error.
25799 2010-08-12  Andreas Schwab  <schwab@redhat.com>
25801         [BZ #11904]
25802         * locale/programs/locale.c (print_assignment): New function.
25803         (show_locale_vars): Use it.
25805 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
25807         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
25808         field.
25809         (struct statfs64): Likewise.
25810         (_STATFS_F_FLAGS): Define.
25811         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
25812         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25813         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
25814         (ST_VALID): Define locally.
25815         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
25816         __statvfs_getflags, use the provided value.
25817         * sysdeps/unix/sysv/linux/kernel-features.h: Define
25818         __ASSUME_STATFS_F_FLAGS.
25820         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
25822         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
25823         Add sys/fanotify.h.
25824         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
25825         fanotify_mask for GLIBC_2.13.
25826         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
25827         fanotify_init and fanotify_mark.
25828         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
25829         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
25831         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
25832         Add prlimit.
25833         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
25834         prlimit64 for GLIBC_2.13.
25835         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
25836         prlimit64.
25837         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
25838         syscall.
25839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
25840         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
25841         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
25842         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
25843         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
25844         add prlimit alias.
25845         * sysdeps/unix/sysv/linux/prlimit.c: New file.
25847         [BZ #11903]
25848         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
25849         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
25851         * nss/Makefile: Add rules to build and run tst-nss-test1.
25852         * shlib-versions: Add entry for libnss_test1.
25853         * nss/nss_test1.c: New file.
25854         * nss/tst-nss-test1.c: New file.
25856         * nss/nsswitch.c (__nss_database_custom): Define new variable.
25857         (__nss_configure_lookup): Set appropriate entry in
25858         __nss_configure_lookup to true.
25859         * nss/nsswitch.h: Define enum with indeces of databases in
25860         databases and __nss_database_custom arrays.  Declare
25861         __nss_database_custom.
25862         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
25863         to avoid using nscd when custom rules are installed.
25864         * nss/getXXbyYY_r.c: Likewise.
25865         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
25867         * nss/nss_files/files-parse.c: Whitespace fixes.
25869 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
25871         [BZ #11883]
25872         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
25873         * posix/fnmatch_loop.c: Likewise.
25875 2010-07-17  Andi Kleen  <ak@linux.intel.com>
25877         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
25878         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
25879         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
25880         * Versions.def [GLIBC_2.13]: Add.
25882 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
25884         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25885         Also fail if tpwd after pwuid call is NULL.
25887 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25889         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
25890         when converting to ms.
25892 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25894         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
25895         EOPNOTSUPP errors with ENOTTY.
25896         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
25897         EOPNOTSUPP errors with ENOTTY.
25899 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
25901         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25902         Add strcasecmp_l-ssse3.
25903         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
25904         strcasecmp.
25905         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
25906         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
25907         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
25909 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
25911         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
25913         * string/Makefile (strop-tests): Add strcasecmp.
25914         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25915         strcasecmp_l-nonascii.
25916         (gen-as-const-headers): Add locale-defines.sym.
25917         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
25918         * sysdeps/x86_64/strcasecmp.S: New file.
25919         * sysdeps/x86_64/strcasecmp_l.S: New file.
25920         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
25921         * sysdeps/x86_64/locale-defines.sym: New file.
25922         * string/test-strcasecmp.c: New file.
25924         * string/test-strcasestr.c: Test both ends of the range of characters.
25925         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
25927 2010-07-29  Roland McGrath  <roland@redhat.com>
25929         [BZ #11856]
25930         * manual/locale.texi (Yes-or-No Questions): Fix example code.
25932 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
25934         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
25935         for ld.so.
25937 2010-07-27  Andreas Schwab  <schwab@redhat.com>
25939         * manual/memory.texi (Malloc Tunable Parameters): Document
25940         M_PERTURB.
25942 2010-07-26  Roland McGrath  <roland@redhat.com>
25944         [BZ #11840]
25945         * configure.in (-fgnu89-inline check): Set and substitute
25946         gnu89_inline, not libc_cv_gnu89_inline.
25947         * configure: Regenerated.
25948         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
25950 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
25952         * string/test-strnlen.c: New file.
25953         * string/Makefile (strop-tests): Add strnlen.
25954         * string/tester.c (test_strnlen): Add a few more test cases.
25955         * string/tst-strlen.c: Better error reporting.
25957         * sysdeps/x86_64/strnlen.S: New file.
25959 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
25961         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
25962         lower-latency instructions.
25964 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
25966         * string/test-strcasestr.c: New file.
25967         * string/test-strstr.c: New file.
25968         * string/Makefile (strop-tests): Add strstr and strcasestr.
25969         * string/str-two-way.h: Don't undefine MAX.
25970         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
25972 2010-07-21  Andreas Schwab  <schwab@redhat.com>
25974         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25975         strcasestr-nonascii.
25976         (CFLAGS-strcasestr-nonascii.c): Define.
25977         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
25978         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
25979         Remove unused attribute.
25981 2010-07-20  Roland McGrath  <roland@redhat.com>
25983         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
25984         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
25985         ld.so.cache was broken.  With it, there is no way to disable dsocaps
25986         like LD_HWCAP_MASK can disable hwcaps.
25988 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
25990         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
25992 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
25994         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
25995         call in strcasestr.
25996         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
25997         __strcasestr_sse42_nonascii.
25998         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
25999         strcasestr-nonascii.c.
26000         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
26002 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
26004         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
26005         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
26006         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
26007         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
26009 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
26011         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
26012         fcntl.
26014 2010-07-06  Andreas Schwab  <schwab@redhat.com>
26016         [BZ #11577]
26017         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
26018         dl_signal_cerror.
26020 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
26022         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
26023         _PC_PIPE_BUF using F_GETPIPE_SZ.
26025 2010-07-05  Roland McGrath  <roland@redhat.com>
26027         * manual/arith.texi (Rounding Functions): Fix rint description
26028         implicit in round description.
26030 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
26032         * elf/Makefile: Fix linking for a few tests to make recent linker
26033         happy.
26035 2010-06-30  Andreas Schwab  <schwab@redhat.com>
26037         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
26038         $(common-objpfx)libc_nonshared.a.
26040 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
26042         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
26043         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
26044         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26045         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26046         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
26047         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
26048         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26049         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
26051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
26052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
26053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
26055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
26057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
26058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
26059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
26060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
26062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
26064         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
26065         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
26066         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
26067         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
26068         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
26069         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
26070         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
26071         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
26072         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
26073         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
26074         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
26075         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
26076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
26077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
26078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
26079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
26080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
26081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
26082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
26083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
26084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
26085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
26086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
26087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
26088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
26089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
26091 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
26093         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
26094         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
26095         * string/memmove.c (memmove): Renamed to ...
26096         (MEMMOVE): ...this.  Default to memmove.
26097         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
26098         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
26099         (END_CHK): Define.
26100         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26101         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
26102         mempcpy-ssse3-back memmove-ssse3-back.
26103         * sysdeps/x86_64/multiarch/bcopy.S: New file .
26104         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
26105         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
26106         * sysdeps/x86_64/multiarch/memcpy.S: New file.
26107         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
26108         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
26109         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
26110         * sysdeps/x86_64/multiarch/memmove.c: New file.
26111         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
26112         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
26113         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
26114         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
26115         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
26116         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
26117         Define.
26118         (index_Fast_Copy_Backward): Define.
26119         (HAS_ARCH_FEATURE): Define.
26120         (HAS_FAST_REP_STRING): Define.
26121         (HAS_FAST_COPY_BACKWARD): Define.
26123 2010-06-21  Andreas Schwab  <schwab@redhat.com>
26125         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26126         Restore proper fallback handling.
26128 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
26130         [BZ #11701]
26131         * posix/group_member.c (__group_member): Correct checking loop.
26133         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
26134         OOM in getpwuid_r correctly.  Return error number when the caller
26135         should return, otherwise -1.
26136         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
26137         call returning > 0 value.
26138         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
26140 2010-06-07  Andreas Schwab  <schwab@redhat.com>
26142         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
26143         libc_nonshared.a from targets in modules-names.
26145 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
26147         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
26148         requires it.
26150 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
26152         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
26153         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
26154         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
26155         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
26157 2010-06-02  Andreas Schwab  <schwab@redhat.com>
26159         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
26161 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
26163         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
26164         and F_GETPIPE_SZ.
26165         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26166         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26167         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26168         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26169         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26170         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
26172 2010-06-14  Roland McGrath  <roland@redhat.com>
26174         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
26176 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
26178         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
26179         __REDIRECT followed by __THROW.
26180         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
26181         * posix/getopt.h (getopt): Likewise.
26183 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
26185         * hurd/lookup-at.c (__file_name_lookup_at): Accept
26186         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
26187         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
26188         in AT_FLAGS.
26189         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
26190         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
26192 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
26194         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
26196 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
26198         [BZ #11640]
26199         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26200         Properly check family and model.
26202 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
26204         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
26206 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
26208         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
26210 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
26212         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
26213         symbol reference.
26215 2010-05-19  Andreas Schwab  <schwab@redhat.com>
26217         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
26218         symbol reference.
26220 2010-05-21  Andreas Schwab  <schwab@redhat.com>
26222         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
26223         and internal_recvmmsg.
26224         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
26225         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
26226         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
26227         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
26229         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
26230         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
26231         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
26233 2010-05-20  Andreas Schwab  <schwab@redhat.com>
26235         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
26237 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
26239         POWER7 optimizations.
26240         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
26241         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
26243 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
26245         * version.h: Update for 2.13 development version.
26247 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
26249         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
26250         exceptions.  Return 0.
26252 2010-05-07  Roland McGrath  <roland@redhat.com>
26254         * elf/ldconfig.c (main): Add a const.
26256 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
26258         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
26259         (args_options): Add no-idn option.
26260         (ahosts_keys_int): Add idn_flags to ai_flags.
26261         (parse_option): Handle 'i' option to clear idn_flags.
26263         * malloc/malloc.c (_int_free): Possible race in the most recently
26264         added check.  Only act on the data if no current modification
26265         happened.
26267 See ChangeLog.17 for earlier changes.