alpha: Include errno.h in sysdep.h
[glibc.git] / ChangeLog
blob5d2a885a8126d1610aa0893453d61d8647a4b079
1 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3         * manual/nss.texi (System Databases and Name Service Switch):
4         Remove frobnicate @pxref.
6 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
9         __attribute__ ((unused)) to __attribute__ ((__unused__)).
11 2013-02-20  Petr Machata  <pmachata@redhat.com>
13         * elf/elf.h (R_ARM_TARGET1): New macro.
14         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
15         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
16         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
17         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
18         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
19         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
20         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
22         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
23         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
24         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
25         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
26         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
27         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
28         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
29         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
30         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
31         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
32         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
33         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
34         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
35         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
36         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
37         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
38         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
39         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
40         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
41         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
42         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
43         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
44         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
45         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
46         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
47         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
48         (R_ARM_THM_GOT_BREL12): Likewise.
49         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
52         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
53         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
54         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
55         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
56         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
59 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
61         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
62         __attribute_used__ to __attribute__ ((unused)).
64 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
66         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
67         powerpc mpa.c.
68         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
69         comment formatting.
70         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
72 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
74         [BZ #13550]
75         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
76         Remove macro.
77         (ENTER): Remove both macro definitions.
78         (LEAVE): Likewise.
79         (CHECK_BOUNDS_LOW): Likewise.
80         (CHECK_BOUNDS_HIGH): Likewise.
81         (CHECK_BOUNDS_BOTH): Likewise.
82         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
83         (RETURN_BOUNDED_POINTER): Likewise.
84         (RETURN_NULL_BOUNDED_POINTER): Likewise.
85         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
86         (POP_ERRNO_LOCATION_RETURN): Likewise.
87         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
88         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
89         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
90         macros.
91         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
92         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
93         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
94         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
95         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
96         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
97         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
98         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
99         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
100         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
101         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
102         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
103         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
104         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
105         removed macros.
106         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
107         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
108         macros.
109         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
110         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
111         * sysdeps/i386/i586/memset.S (memset): Likewise.
112         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
113         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
114         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
115         macros.
116         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
117         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
118         Change uses of L(2) to L(out).
119         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
120         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
121         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
122         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
123         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
124         removed macros.
125         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
126         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
127         macros.
128         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
129         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
130         (RETURN): Do not use macro LEAVE.
131         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
132         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
133         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
134         * sysdeps/i386/i686/memset.S (memset): Likewise.
135         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
136         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
137         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
138         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
139         Likewise.
140         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
141         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
142         L(1_2) and L(1_3) into L(1).
143         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
144         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
145         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
146         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
147         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
148         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
149         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
150         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
151         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
152         macros.
153         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
154         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
155         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
156         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
157         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
158         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
159         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
160         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
161         * sysdeps/i386/strcspn.S (strcspn): Likewise.
162         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
163         * sysdeps/i386/strrchr.S (strrchr): Likewise.
164         * sysdeps/i386/strspn.S (strspn): Likewise.
165         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
166         conditional code.
167         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
168         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
169         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
170         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
171         L(1_3) into L(1_1).
172         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
173         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
174         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
175         macros.
176         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
178 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
180         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
181         macro.
183 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
185         * math/atest-exp.c (exp_mpn): Remove ROUND.
186         * math/atest-exp2.c (exp_mpn): Likewise.
187         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
189         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
190         * stdlib/tst-tls-atexit-lib.c: Likewise.
191         * stdlib/tst-tls-atexit.c: Likewise.
193 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
195         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
196         and __attribute_alloc_size__.
198 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
200         * include/programs/xmalloc.h: Change __attribute_alloc_size to
201         __attribute_alloc_size__.
202         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
203         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
205 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
207         * include/programs/xmalloc.h: New file.
208         * catgets/gencat.c: Include it.
209         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
210         * elf/pldd.c: Likewise.
211         * iconv/iconv_charmap.c: Likewise.
212         * iconv/iconvconfig.c: Likewise.
213         * iconv/strtab.c: Likewise.
214         * locale/programs/locale.c: Likewise.
215         * locale/programs/localedef.h: Likewise.
216         * locale/programs/simple-hash.c: Likewise.
217         * nscd/nscd.h: Likewise.
218         * nss/makedb.c: Likewise.
219         * sysdeps/generic/ldconfig.h: Likewise.
221 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
223         * Versions.def: Add GLIBC_2.18.
224         * include/link.h (struct link_map): New member l_tls_dtor_count.
225         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
226         (__call_tls_dtors): Likewise.
227         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
228         __cxa_thread_atexit_impl.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
230         Likewise.
231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
232         Likewise.
233         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
234         Likewise.
235         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
236         Likewise.
237         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
238         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
239         Likewise.
240         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
241         Likewise.
242         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
243         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
244         Likewise.
245         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
246         (tests): Add test case tst-tls-atexit.
247         (modules-names): Add shared library for tst-tls-atexit.
248         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
249         (GLIBC_PRIVATE): Add __call_tls_dtors.
250         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
251         for libstdc++.
252         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
253         * stdlib/tst-tls-atexit.c: New test case.
254         * stdlib/tst-tls-atexit-lib.c: New test case.
256         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
258         * elf/Versions (ld): Add _dl_find_dso_for_object.
259         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
260         * elf/dl-open.c (_dl_find_dso_for_object): New function.
261         (dl_open_worker): Use _dl_find_dso_for_object.
262         * elf/dl-sym.c (do_sym): Likewise.
263         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
265 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
267         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
268         Syntactic changes only.
269         (_dl_runtime_profile): Do a tail-call to the resolved function.
271 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
273         [BZ #13550]
274         * sysdeps/x86_64/bp-asm.h: Remove file.
275         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
276         <bp-sym.h> and <bp-asm.h>.
277         (__clone): Do not use BP_SYM.
278         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
279         <bp-sym.h> and <bp-asm.h>.
280         * sysdeps/unix/x86_64/sysdep.S: Likewise.
281         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
282         "bp-asm.h".
283         (_setjmp): Do not use BP_SYM.
284         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
285         "bp-asm.h".
286         (setjmp): Do not use BP_SYM.
287         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
288         libc_hidden_def.
289         (mempcpy): Do not use BP_SYM in weak_alias.
290         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
291         "bp-asm.h".
292         (strchr): Do not use BP_SYM.
293         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
294         "bp-asm.h".
295         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
296         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
297         (_start): Do not use BP_SYM.
298         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
299         "bp-asm.h".
300         (strcat): Do not use BP_SYM.
301         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
302         "bp-asm.h".
303         (STRCMP): Do not use BP_SYM.
304         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
305         "bp-asm.h".
306         (STRCPY): Do not use BP_SYM.
307         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
308         "bp-asm.h".
309         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
310         "bp-asm.h".
311         (FUNCTION): Do not use BP_SYM.
312         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
313         weak_alias.
314         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
316 2013-02-17  Andreas Jaeger  <aj@suse.de>
318         * time/Versions: Sort entries.
319         * string/Versions: Likewise.
320         * resolv/Versions: Likewise.
321         * posix/Versions: Likewise.
322         * iconv/Versions: Likewise.
323         * elf/Versions: Likewise.
324         * wcsmbs/Versions: Likewise.
326 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
328         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
329         loop termination condition.
331         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
332         variable to calculate EZ.
333         (__sqr): Likewise.
335         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
336         the lower precision input.
338 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
340         [BZ #13550]
341         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
342         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
343         (run-via-rtld-prefix): Do not handle %-bp tests.
344         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
345         (all-object-suffixes): Remove .ob.
346         (bppfx): Remove variable.
347         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
348         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
349         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
350         [$(build-bounded) = yes] (libtype.ob): Likewise.
351         * Makerules (elide-routines.ob): Remove variable.
352         (do-tests-clean): Do not handle *-bp.out.
353         (common-mostlyclean): Do not handle *-bp and *-bp.out.
354         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
355         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
356         (tests): Do not include $(tests-bp.out).
357         (xtests): Do not include $(xtests-bp.out).
358         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
359         [$(build-bounded) = yes] ($(addprefix
360         $(objpfx),$(binaries-bounded))): Remove rule.
361         ($(objpfx)%-bp.out): Remove rule.
362         * config.make.in (build-bounded): Remove variable.
363         * crypt/Makefile [$(build-bounded) = yes]
364         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
365         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
366         append to variable.
367         [$(build-bounded) = yes] (install-lib): Likewise.
368         [$(build-bounded) = yes] (generated): Likewise.
369         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
370         Remove rule.
371         * intl/Makefile [$(build-bounded) = yes]
372         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
373         * math/Makefile [$(build-bounded) = yes]
374         ($(tests:%=$(objpfx)%-bp): Likewise.
375         * misc/Makefile [$(build-bounded) = yes]
376         ($(objpfx)tst-tsearch-bp): Likewise.
377         * nptl/Makeconfig (bounded-thread-library): Remove variable.
378         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
379         Remove dependency.
380         * string/Makefile (o-objects.ob): Remove variable.
381         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
382         (CFLAGS-.ob): Remove variable.
383         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
384         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
385         both definitions of variable.
386         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
387         (ASFLAGS-.ob): Remove variable.
389 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
391         [BZ #13550]
392         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
393         Remove __BOUNDED_POINTERS__ from condition.
394         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
395         * string/bits/string2.h [!__NO_STRING_INLINES &&
396         !__BOUNDED_POINTERS__]: Likewise.
397         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
398         Likewise.
399         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
400         Remove conditional code.
401         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
402         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
403         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
404         condition.
406         [BZ #13550]
407         * csu/libc-start.c: Do not include <bp-sym.h>.
408         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
409         * elf/dl-open.c: Do not include <bp-sym.h>.
410         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
411         * math/fegetenv.c: Do not include <bp-sym.h>.
412         (fegetenv): Do not use BP_SYM in versioned symbols.
413         * nptl/sysdeps/pthread/bits/libc-lockP.h
414         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
415         <bp-sym.h>.
416         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
417         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
418         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
419         (__pthread_mutex_destroy): Likewise.
420         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
421         (__pthread_mutex_lock): Likewise.
422         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
423         (__pthread_mutex_trylock): Likewise.
424         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
425         (__pthread_mutex_unlock): Likewise.
426         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
427         (__pthread_mutexattr_init): Likewise.
428         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
429         (__pthread_mutexattr_destroy): Likewise.
430         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
431         (__pthread_mutexattr_settype): Likewise.
432         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
433         (__pthread_rwlock_init): Likewise.
434         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
435         (__pthread_rwlock_destroy): Likewise.
436         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
437         (__pthread_rwlock_rdlock): Likewise.
438         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
439         (__pthread_rwlock_tryrdlock): Likewise.
440         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
441         (__pthread_rwlock_wrlock): Likewise.
442         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
443         (__pthread_rwlock_trywrlock): Likewise.
444         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
445         (__pthread_rwlock_unlock): Likewise.
446         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
447         (__pthread_key_create): Likewise.
448         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
449         (__pthread_setspecific): Likewise.
450         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
451         (__pthread_getspecific): Likewise.
452         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
453         Likewise.
454         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
455         (_pthread_cleanup_push_defer): Likewise.
456         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
457         (_pthread_cleanup_pop_restore): Likewise.
458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
459         (pthread_setcancelstate): Likewise.
460         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
461         <bp-sym.h>.
462         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
463         (memchr): Do not use BP_SYM in weak_alias.
464         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
465         (fegetenv): Do not use BP_SYM in versioned symbols.
466         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
467         (fesetenv): Do not use BP_SYM in versioned symbols.
468         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
469         (feupdateenv): Do not use BP_SYM in versioned symbols.
470         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
471         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
472         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
473         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
474         (open64): Do not use BP_SYM in weak_alias.
475         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
476         (fegetenv): Do not use BP_SYM in versioned symbols.
477         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
478         (fesetenv): Do not use BP_SYM in versioned symbols.
479         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
480         (feupdateenv): Do not use BP_SYM in versioned symbols.
481         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
482         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
483         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
484         (feraiseexcept): Do not use BP_SYM in versioned symbols.
485         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
486         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
487         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
488         <bp-sym.h>.
489         (__libc_start_main): Do not use BP_SYM.
491 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
493         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
494         redundant return line.
495         (norm): Likewise.
496         (denorm): Likewise.
497         (dbl_mp): Likewise.
498         (sub_magnitudes): Likewise.
499         (__add): Likewise.
500         (__sub): Likewise.
501         (__mul): Likewise.
502         (__inv): Likewise.
503         (__dvd): Likewise.
504         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
505         (norm): Likewise.
506         (denorm): Likewise.
507         (dbl_mp): Likewise.
508         (sub_magnitudes): Likewise.
509         (__add): Likewise.
510         (__sub): Likewise.
511         (__mul): Likewise.
512         (__inv): Likewise.
513         (__dvd): Likewise.
515         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
516         instead of __mul.
517         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
518         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
519         (cc32): Likewise.
521         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
522         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
523         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
524         of __mul for squares.
525         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
526         function
527         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
528         Likewise.
529         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
530         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
532 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
534         [BZ #13550]
535         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
536         code.
537         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
538         prototype or function definition.  Rename ubp_* variables and
539         parameters.  Remove argv definitions conditional on
540         [__BOUNDED_POINTERS__].
541         * debug/backtrace.c (__backtrace): Do not use __unbounded.
542         * elf/dl-runtime.c (_dl_fixup): Likewise.
543         * include/set-hooks.h (RUN_HOOK): Likewise.
544         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
545         definition.
546         * string/strcpy.c (strcpy): Do not use __unbounded.
547         * sysdeps/generic/frame.h (struct layout): Likewise.
548         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
549         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
550         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
551         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
552         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
553         (__backtrace): Likewise.
554         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
555         use __ptrvalue.
556         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
557         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
558         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
559         Likewise.
560         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
561         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
562         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
563         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
564         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
565         Do not use __unbounded.
566         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
567         Rename __unboundedrlimits parameter to rlimits in prototype.
568         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
569         Do not use __unbounded.
570         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
571         not use __ptrvalue.
572         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
573         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
574         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
575         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
576         __ptrvalue or __unbounded.
577         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
578         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
579         use __unbounded.
580         (__new_msgctl): Do not use __ptrvalue.
581         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
582         __unbounded.
583         (__libc_msgrcv): Do not use __ptrvalue.
584         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
585         startup_info): Do not use __unbounded.
586         (__libc_start_main): Likewise.  Rename ubp_* variables and
587         parameters.  Remove argv definitions conditional on
588         [__BOUNDED_POINTERS__].
589         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
590         __ptrvalue.
591         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
592         use __unbounded.
593         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
594         or __ptrvalue.
595         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
596         use __unbounded.
597         (__new_shmctl): Do not use __ptrvalue.
598         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
599         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
600         Likewise.
601         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
602         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
603         (__libc_sigaction): Likewise.
604         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
605         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
606         Likewise.
607         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
609 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
611         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
613         * string/mempcpy.c: Implement by calling memcpy.
615 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
617         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
619         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
620         evaluation.
622         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
623         values in the mantissa.
625         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
626         minimize writes to Z.
627         (sub_magnitudes): Simplify code a bit.
629 2013-02-12  Roland McGrath  <roland@hack.frob.com>
631         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
632         from the message.  The linker prefixes all warnings with that already.
634 2013-02-12  Andreas Schwab  <schwab@suse.de>
636         [BZ #15078]
637         * posix/regexec.c (extend_buffers): Add parameter min_len.
638         (check_matching): Pass minimum needed length.
639         (clean_state_log_if_needed): Likewise.
640         (get_subexp): Likewise.
641         * posix/Makefile (tests): Add bug-regex34.
642         (bug-regex34-ENV): Define.
643         * posix/bug-regex34.c: New file.
645         [BZ #11561]
646         * posix/regcomp.c (parse_bracket_exp): When looking up collating
647         elements compare against the byte sequence of it, not its name.
648         * posix/Makefile (tests): Add bug-regex35.
649         (bug-regex35-ENV): Define.
650         * posix/bug-regex35.c: New file.
652 2013-02-11  Tom de Vries  <tom@codesourcery.com>
654         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
655         comment.
656         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
657         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
658         (CHECK_EOL): Add undef.
660 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
662         * bits/stdlib-bsearch.h: New file.
663         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
664         * stdlib/stdlib.h: Likewise.
666 2013-02-11  Roland McGrath  <roland@hack.frob.com>
668         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
669         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
670         declaration.
671         * manual/search.texi (Array Search Function): Add missing const in
672         lfind prototype.
673         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
674         declaration to use rlim_t.
675         (Basic Scheduling Functions): Remove erroneous const from
676         sched_getparam prototype.  Remove erroneous * from
677         sched_get_priority_max and sched_get_priority_min prototypes.
678         (Resource Usage): Fix summary @comment on vtimes to refer to
679         sys/vtimes.h rather than vtimes.h.
680         Add missing *s in vtimes prototype.
681         (Limits on Resources): Fix ulimit prototype to return long int.
682         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
683         prototypes to use long int rather than double.
684         (BSD Random): Fix initstate and setstate to use char *, not void *.
685         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
686         prototype to make second argument 'struct aiocb64 *const[]'.
687         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
688         (Status of AIO Operations): Remove erroneous const in aio_return and
689         aio_return64 prototypes.
690         (Synchronizing I/O): Fix sync prototype to return void.
691         * manual/startup.texi (Suboptions): Remove an erroneous const in
692         getsubopt prototype.
693         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
694         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
695         use size_t rather than int.
696         (Scanning All Users): Likewise for getpwent_r.
697         (Setting Groups): Add missing const to setgroups prototype.
698         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
699         * manual/socket.texi (Host Names): Fix gethostbyaddr and
700         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
701         'const void *' rather than 'const char *'.
702         (Host Address Functions): Likewise for inet_ntop.
703         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
704         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
705         ssize_t for return value.
706         (Sending Data): Likewise for send, sendto, sendmsg.
707         (Socket Option Functions): Add a missing const in setsockopt prototype.
708         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
709         use wchar_t for the argument.
710         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
711         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
712         take no arguments.
713         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
714         double/float/long double for second argument.
715         Fix return types of significand, significandf, significandl.
716         * manual/filesys.texi (Setting Permissions): Use mode_t for second
717         argument in fchmod prototype.
718         (File Owner): Use uid_t and gid_t in fchown prototype.
719         (File Times): Add const to utimes, futimes, and lutimes prototypes.
720         (Making Special Files): Use mode_t and dev_t in mknod prototype.
721         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
722         use 'const struct dirent **' as argument types to CMP function pointer
723         argument.
724         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
725         (File Times): Fix summary magic @comment for struct utimbuf and utime
726         to refer to utime.h, not time.h.
727         * manual/string.texi (Argz Functions): Add missing const in
728         argz_extract and argz_next prototypes.
729         (Finding Tokens in a String): Likewise for basename.
730         (String/Array Comparison): Fix typo in wcscasecmp prototype.
731         (Copying and Concatenation): Fix typo in wmemmove prototype.
732         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
733         (Signal Stack): Remove erroneous const in sigstack prototype.
734         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
735         prototype.
736         (Simple Calendar Time): Likewise for stime.
737         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
738         prototype.
739         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
740         say sys/sysctl.h instead.
741         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
742         and vsyslog prototypes.
744 2013-02-11  Tom de Vries  <tom@codesourcery.com>
746         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
747         Remove.
749 2013-02-11  Roland McGrath  <roland@hack.frob.com>
751         * misc/sys/mman.h: Fix typo in mremap comment.
753 2013-02-08  Roland McGrath  <roland@hack.frob.com>
755         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
756         the '\0' terminator.
758 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
760         [BZ #13550]
761         * debug/segfault.c: Don't include <bp-checks.h>.
762         * sysdeps/generic/bp-checks.h: Remove file.
763         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
764         (__GETDENTS): Don't use CHECK_N.
765         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
766         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
767         (__getgroups): Don't use CHECK_N.
768         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
769         (setgroups): Don't use CHECK_N.
770         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
771         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
772         (__libc_msgrcv): Don't use CHECK_N.
773         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
774         (__libc_msgsnd): Don't use CHECK_N.
775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
776         <bp-checks.h>.
777         (__libc_pread): Don't use CHECK_N.
778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
779         include <bp-checks.h>.
780         (__libc_pread64): Don't use CHECK_N.
781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
782         include <bp-checks.h>.
783         (__libc_pwrite): Don't use CHECK_N.
784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
785         include <bp-checks.h>.
786         (__libc_pwrite64): Don't use CHECK_N.
787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
788         <bp-checks.h>.
789         (__libc_pread): Don't use CHECK_N.
790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
791         include <bp-checks.h>.
792         (__libc_pread64): Don't use CHECK_N.
793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
794         include <bp-checks.h>.
795         (__libc_pwrite): Don't use CHECK_N.
796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
797         include <bp-checks.h>.
798         (__libc_pwrite64): Don't use CHECK_N.
799         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
800         (do_pread): Don't use CHECK_N.
801         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
802         (do_pread64): Don't use CHECK_N.
803         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
804         (do_pwrite): Don't use CHECK_N.
805         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
806         (do_pwrite64): Don't use CHECK_N.
807         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
808         (__libc_readv): Don't use CHECK_N.
809         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
810         (semop): Don't use CHECK_N.
811         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
812         <bp-checks.h>.
813         (semtimedop): Don't use CHECK_N.
814         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
815         (__libc_pread): Don't use CHECK_N.
816         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
817         <bp-checks.h>.
818         (__libc_pread64): Don't use CHECK_N.
819         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
820         <bp-checks.h>.
821         (__libc_pwrite): Don't use CHECK_N.
822         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
823         <bp-checks.h>.
824         (__libc_pwrite64): Don't use CHECK_N.
825         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
826         <bp-checks.h>.
827         (__libc_msgrcv): Don't use CHECK_N.
828         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
829         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
830         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
831         (__libc_writev): Don't use CHECK_N.
833 2013-02-08  Roland McGrath  <roland@hack.frob.com>
835         * string/strcpy.c: Removed unused variable.
837         * Makeconfig (+sysdep-includes): Define with := rather than =.
838         Use an existing include/ subdir of each sysdeps dir before it.
840 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
842         * nscd/connection.c (register_traced_file): Comment function.
843         [HAVE_INOTIFY] (union __inev): Define.
844         [HAVE_INOTIFY] (inotify_check_files): New function.
845         [HAVE_INOTIFY] (clear_db_cache): Likewise.
846         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
847         clear_db_cache.
848         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
850 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
852         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
853         loaded if not already and that a failure is permanent.
855 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
857         [BZ #15006]
858         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
859         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
861 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
863         [BZ #13550]
864         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
865         (CHECK_1_NULL_OK): Likewise.
866         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
867         (__fxstat): Do not use CHECK_1.
868         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
869         <bp-checks.h>.
870         (___fxstat64): Do not use CHECK_1.
871         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
872         <bp-checks.h>.
873         (__fxstatat): Do not use CHECK_1.
874         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
875         <bp-checks.h>.
876         (__fxstatat64): Do not use CHECK_1.
877         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
878         <bp-checks.h>.
879         (__fxstat): Do not use CHECK_1.
880         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
881         <bp-checks.h>.
882         (__fxstatat): Do not use CHECK_1.
883         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
884         <bp-checks.h>.
885         (__getresgid): Do not use CHECK_1.
886         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
887         <bp-checks.h>.
888         (__getresuid): Do not use CHECK_1.
889         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
890         <bp-checks.h>.
891         (__lxstat): Do not use CHECK_1.
892         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
893         <bp-checks.h>.
894         (__old_msgctl): Do not use CHECK_1.
895         (__new_msgctl): Likewise.
896         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
897         <bp-checks.h>.
898         (__new_setrlimit): Do not use CHECK_1.
899         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
900         <bp-checks.h>.
901         (__old_shmctl): Do not use CHECK_1.
902         (__new_shmctl): Likewise.
903         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
904         <bp-checks.h>.
905         (__xstat): Do not use CHECK_1.
906         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
907         (__lxstat): Do not use CHECK_1.
908         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
909         <bp-checks.h>.
910         (___lxstat64): Do not use CHECK_1.
911         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
912         (__old_msgctl): Do not use CHECK_1.
913         (__new_msgctl): Likewise.
914         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
915         <bp-checks.h>.
916         (__gettimeofday): Do not use CHECK_1.
917         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
918         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
919         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
920         <bp-checks.h>.
921         (__gettimeofday): Do not use CHECK_1.
922         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
923         (__old_shmctl): Do not use CHECK_1_NULL_OK.
924         (__new_shmctl): Do not use CHECK_1.
925         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
926         <bp-checks.h>.
927         (do_sigtimedwait): Do not use CHECK_1.
928         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
929         <bp-checks.h>.
930         (do_sigwaitinfo): Do not use CHECK_1.
931         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
932         <bp-checks.h>.
933         (msgctl): Do not use CHECK_1.
934         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
935         <bp-checks.h>.
936         (shmctl): Do not use CHECK_1.
937         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
938         (ustat): Do not use CHECK_1.
939         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
940         <bp-checks.h>.
941         (__fxstat): Do not use CHECK_1.
942         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
943         <bp-checks.h>.
944         (__fxstatat): Do not use CHECK_1.
945         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
946         <bp-checks.h>.
947         (__lxstat): Do not use CHECK_1.
948         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
949         <bp-checks.h>.
950         (__xstat): Do not use CHECK_1.
951         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
952         (__xstat): Do not use CHECK_1.
953         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
954         (___xstat64): Do not use CHECK_1.
956         [BZ #13550]
957         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
958         definitions.
959         (CHECK_BOUNDS_HIGH): Likewise.
960         * string/strcpy.c: Do not include <bp-checks.h>.
961         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
963 2013-02-07  Roland McGrath  <roland@hack.frob.com>
965         * nscd/nscd-client.h (__nscd_drop_map_ref):
966         Add __attribute__ ((unused)).
967         * nis/nss-nisplus.h (niserr2nss): Likewise.
969         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
970         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
972         * csu/libc-tls.c (init_static_tls, init_slotinfo):
973         Remove inline keyword.
974         * include/rounding-mode.h (round_away): Likewise.
975         * libio/wfileops.c (adjust_wide_data): Likewise.
976         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
977         (__m128i_strloadu_tolower): Likewise.
978         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
979         (__m128i_strloadu_tolower): Likewise.
980         * time/mktime.c (ydhms_diff): Likewise.
981         * locale/elem-hash.h (elem_hash): Likewise.
982         * locale/setlocale.c (setdata): Likewise.
983         * posix/regex_internal.h (re_string_char_size_at): Likewise.
984         (re_string_wchar_at): Likewise.
985         (bitset_not, bitset_merge, bitset_mask): Likewise.
986         [!(__GNUC__ > 3)] (inline): Remove macro.
987         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
988         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
989         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
990         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
991         * string/memcmp.c (memcmp_bytes): Likewise.
992         * locale/programs/locarchive.c (compute_hashval): Likewise.
993         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
994         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
995         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
996         * nss/getent.c (print_rpc, print_protocols): Likewise.
997         (print_passwd, print_group, print_aliases): Likewise.
998         * nis/nss-nisplus.h (niserr2nss): Likewise.
999         * nscd/connections.c (restart_p): Likewise.
1000         Change return type to bool.
1002 2013-02-05  Roland McGrath  <roland@hack.frob.com>
1004         * Makeconfig (all-Depend-files): Add existing
1005         $(sorted-subdirs:=/Depend) files.
1006         (all-subdirs): Remove nss.
1007         * sysdeps/unix/inet/Subdirs: Add it here instead.
1008         * hesiod/Depend: New file.
1010         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
1011         instead of calling alloca.
1013         * io/lseek.c (__lseek): Rename to __libc_lseek.
1014         Define __lseek as an alias.
1016         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
1018 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
1020         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
1021         else clause and remove check for non-standard endianness.
1023 2013-02-04  David S. Miller  <davem@davemloft.net>
1025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1027 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
1029         [BZ #13550]
1030         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
1031         (__ubp_memchr): Remove prototype.
1032         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
1033         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1034         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
1035         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1036         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
1037         Remove alias.
1038         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
1039         (__ubp_memchr): Likewise.
1040         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
1041         (__ubp_memchr): Likewise.
1042         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
1043         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
1044         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
1045         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
1046         CHECK_STRING.
1047         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
1048         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
1049         (__getcwd): Do not use CHECK_STRING.
1050         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1051         <bp-checks.h>.
1052         (__real_chown): Do not use CHECK_STRING.
1053         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
1054         <bp-checks.h>.
1055         (fchownat): Do not use CHECK_STRING.
1056         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
1057         CHECK_STRING.
1058         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1059         <bp-checks.h>.
1060         (__lchown): Do not use CHECK_STRING.
1061         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1062         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1063         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1064         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1066         include <bp-checks.h>.
1067         (truncate64): Do not use CHECK_STRING.
1068         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
1069         <bp-checks.h>.
1070         (__real_chown): Do not use CHECK_STRING.
1071         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
1072         <bp-checks.h>.
1073         (__lchown): Do not use CHECK_STRING.
1074         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
1075         <bp-checks.h>.
1076         (__chown): Do not use CHECK_STRING.
1077         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
1078         <bp-checks.h>.
1079         (truncate64): Do not use CHECK_STRING.
1080         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
1081         Likewise.
1082         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
1083         (__xmknod): Do not use CHECK_STRING.
1084         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
1085         <bp-checks.h>.
1086         (__xmknodat): Do not use CHECK_STRING.
1087         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1088         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
1090 2013-02-04  Andreas Schwab  <schwab@suse.de>
1092         [BZ #14142]
1093         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
1094         * include/netdb.h: Likewise for h_errno.
1095         * elf/tst-stackguard1.c: Include <tls.h>.
1097 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1099         * elf/link.h (struct link_map): Extend the l_addr comment.
1100         * include/link.h (struct link_map): Likewise.
1102 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
1104         [BZ #13550]
1105         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
1106         (BOUNDED_1): Remove macro.
1107         * debug/backtrace.c: Don't include <bp-checks.h>.
1108         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
1109         (__backtrace): Likewise.
1110         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
1111         <bp-checks.h>.
1112         (__backtrace): Don't use BOUNDED_1.
1113         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
1114         <bp-checks.h>.
1115         (__backtrace): Don't use BOUNDED_1.
1116         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
1117         (__backtrace): Don't use BOUNDED_1.
1118         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
1119         (shmat): Don't use BOUNDED_N.
1121 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
1123         [BZ #13550]
1124         * sysdeps/generic/bp-start.h: Remove file.
1125         * csu/libc-start.c: Don't include <bp-start.h>.
1126         (LIBC_START_MAIN): Set up __environ directly instead of using
1127         INIT_ARGV_and_ENVIRON.
1128         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
1129         <bp-start.h>.
1131         [BZ #13550]
1132         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
1133         definitions.
1134         (CHECK_FCNTL): Likewise.
1135         (CHECK_N_PAGES): Likewise.
1137         [BZ #13550]
1138         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
1139         definitions.
1140         (CHECK_SIGSET_NULL_OK): Likewise.
1141         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
1142         <bp-checks.h>.
1143         (sigpending): Don't use CHECK_SIGSET.
1144         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
1145         <bp-checks.h>.
1146         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1147         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
1148         <bp-checks.h>.
1149         (do_sigsuspend): Don't use CHECK_SIGSET.
1150         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
1151         use CHECK_SIGSET.
1152         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
1153         (do_sigwait): Don't use CHECK_SIGSET.
1154         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
1155         use CHECK_SIGSET.
1156         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
1157         include <bp-checks.h>.
1158         (sigpending): Don't use CHECK_SIGSET.
1159         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
1160         include <bp-checks.h>.
1161         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1162         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
1163         <bp-checks.h>.
1164         (sigpending): Don't use CHECK_SIGSET.
1165         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
1166         <bp-checks.h>.
1167         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
1169         [BZ #13550]
1170         * sysdeps/generic/bp-semctl.h: Remove file.
1171         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
1172         <bp-checks.h> and <bp-semctl.h>.
1173         (__old_semctl): Don't use CHECK_SEMCTL.
1174         (__new_semctl): Likewise.
1175         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
1176         and <bp-semctl.h>.
1177         (__old_semctl): Don't use CHECK_SEMCTL.
1178         (__new_semctl): Likewise.
1179         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
1180         <bp-checks.h> and <bp-semctl.h>.
1181         (__old_semctl): Don't use CHECK_SEMCTL.
1182         (__new_semctl): Likewise.
1183         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
1184         <bp-checks.h> and <bp-semctl.h>.
1185         (semctl): Don't use CHECK_SEMCTL.
1187         [BZ #13550]
1188         * Makerules (elide-bp-thunks): Remove variable.
1189         (elide-routines.oS): Don't use $(elide-bp-thunks).
1190         (elide-routines.os): Likewise.
1191         (elide-routines.o): Likewise.
1192         (elide-routines.op): Likewise.
1193         (elide-routines.og): Likewise.
1194         (objects): Don't use $(bp-thunks).
1195         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
1196         include.
1197         (common-generated): Do not add s-proto-bp.d.
1198         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
1199         (int): Likewise.
1200         (typ): Likewise.
1201         Do not generate makefile rules for bounded-pointer thunks.
1202         * sysdeps/generic/bp-thunks.h: Remove file.
1203         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1204         * sysdeps/unix/s-proto-bp.S: Likewise.
1206         [BZ #15062]
1207         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
1208         parts of result separately when argument is not close to line from
1209         -i to i and one part of argument is small.
1210         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1211         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1212         * math/libm-test.inc (cacos_test): Add more tests.
1213         (casin_test): Likewise.
1214         (casinh_test): Likewise.
1215         * sysdeps/i386/fpu/libm-test-ulps: Update.
1216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1218 2013-01-31  David S. Miller  <davem@davemloft.net>
1220         * po/de.po: Update from translation team.
1222 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
1224         * time/tzfile.c: Include stdint.h for SIZE_MAX.
1226 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
1228         * configure.in (_AC_PROG_CC_C89): New definition.
1229         * configure: Regenerate.
1231         * configure.in (AC_PROG_CPP): New definition.
1232         * configure: Regenerate.
1234 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
1236         * debug/tst-backtrace.h: New file.
1237         * debug/tst-backtrace2.c: Include tst-backtrace.h.
1238         (ret): Remove variable.
1239         (x): Likewise.
1240         (FAIL): Remove macro.
1241         (NO_INLINE): Likewise.
1242         (fn1): Use match function instead of strstr.
1243         * debug/tst-backtrace3.c: Include tst-backtrace.h.
1244         (ret): Remove variable.
1245         (x): Likewise.
1246         (FAIL): Remove macro.
1247         (NO_INLINE): Likewise.
1248         (fn): Use match function instead of strstr.
1249         * debug/tst-backtrace4.c: Include tst-backtrace.h.
1250         (ret): Remove variable.
1251         (x): Likewise.
1252         (FAIL): Remove macro.
1253         (NO_INLINE): Likewise.
1254         (handle_signal): Use match function instead of strstr.
1255         * debug/tst-backtrace5.c: Include tst-backtrace.h.
1256         (ret): Remove variable.
1257         (x): Likewise.
1258         (FAIL): Remove macro.
1259         (NO_INLINE): Likewise.
1260         (handle_signal): Use match function instead of strstr.
1262 2013-01-23  Roland McGrath  <roland@hack.frob.com>
1264         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
1266 2013-01-23  David S. Miller  <davem@davemloft.net>
1268         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1269         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
1270         argument of CAS if possible.
1271         * sysdeps/sparc/sparc64/bits/atomic.h
1272         (__arch_compare_and_exchange_val_32_acq): Likewise.
1273         (__arch_compare_and_exchange_val_64_acq): Likewise.
1275 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
1277         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
1278         * sysdeps/posix/ulimit.c: ... this.
1279         Include <limits.h>.
1280         * sysdeps/unix/bsd/ulimit.c: Remove file.
1282 2013-01-23  Adam Conrad  <adconrad@0c3.net>
1284         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
1285         (LDFLAGS-tst-array5): Likewise.
1287 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
1289         [BZ #15036]
1290         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
1291         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
1292         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
1293         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
1295 2013-01-21  David S. Miller  <davem@davemloft.net>
1297         * sysdeps/sparc/backtrace.c: New file.
1298         * sysdeps/sparc/sparc32/backtrace.h: New file.
1299         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
1300         * sysdeps/sparc/sparc64/backtrace.h: New file.
1301         * sysdeps/sparc/sparc64/backtrace.c: Delete.
1302         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
1303         -funwind-tables.
1305 2013-01-21  Andreas Schwab  <schwab@suse.de>
1307         [BZ #15020]
1308         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
1309         closed its stdout.
1311 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
1313         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
1314         "mpa2.h".
1315         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1317 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
1318             Mark Mitchell  <mark@codesourcery.com>
1319             Tom de Vries  <tom@codesourcery.com>
1320             Paul Pluzhnikov  <ppluzhnikov@google.com>
1322         * debug/tst-backtrace2.c: New file.
1323         * debug/tst-backtrace3.c: Likewise.
1324         * debug/tst-backtrace4.c: Likewise.
1325         * debug/tst-backtrace5.c: Likewise.
1326         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
1327         (CFLAGS-tst-backtrace3.c): Likewise.
1328         (CFLAGS-tst-backtrace4.c): Likewise.
1329         (CFLAGS-tst-backtrace5.c): Likewise.
1330         (LDFLAGS-tst-backtrace2): Likewise.
1331         (LDFLAGS-tst-backtrace3): Likewise.
1332         (LDFLAGS-tst-backtrace4): Likewise.
1333         (LDFLAGS-tst-backtrace5): Likewise.
1334         (tests): Add new tests tst-backtrace2, tst-backtrace3,
1335         tst-backtrace4 and tst-backtrace5.
1337 2013-01-18  Anton Blanchard  <anton@samba.org>
1338             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1340         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
1341         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
1342         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
1343         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
1344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1345         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
1346         "+r" and remove output regs list as redundant.  Add explicit inline
1347         asm to specify register of return val to work around compiler codegen
1348         bug.  Remove (int) cast on return value.  Add return type parameter to
1349         use in macro so that this macro does not truncate return value for
1350         64-bit values.
1351         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
1352         pass to INTERNAL_VSYSCALL_NCS.
1353         (INLINE_VSYSCALL): Add 'long int' as return type to
1354         INTERNAL_VSYSCALL_NCS macro invocation.
1355         (INTERNAL_VSYSCALL): Add 'long int' as return type to
1356         INTERNAL_VSYSCALL_NCS macro invocation.
1357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1359 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1361         [BZ #14496]
1362         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
1363         Fix application of SIMD FP exception mask.
1365         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
1366         mp_no from a power of two.
1367         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
1368         __mpexp_twomm1.  Use __pow_mp.
1370         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
1371         multiplication.
1373 2013-01-17  David S. Miller  <davem@davemloft.net>
1375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1377 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1379         [BZ #15023]
1380         * include/complex.h: Condition contents on [!_COMPLEX_H].
1381         (__kernel_casinhf): New prototype.
1382         (__kernel_casinh): Likewise.
1383         (__kernel_casinhl): Likewise.
1384         * math/Makefile (libm_calls): Add k_casinh.
1385         * math/k_casinh.c: New file.
1386         * math/k_casinhf.c: Likewise.
1387         * math/k_casinhl.c: Likewise.
1388         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
1389         finite nonzero arguments.
1390         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
1391         finite nonzero arguments.
1392         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
1393         finite nonzero arguments.
1394         * math/s_casinh.c: Do not include <float.h>.
1395         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
1396         * math/s_casinhf.c: Do not include <float.h>.
1397         (__casinhf): Move code for finite nonzero arguments to
1398         k_casinhf.c.
1399         * math/s_casinhl.c: Do not include <float.h>.
1400         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
1401         redefine.
1402         (__casinhl): Move code for finite nonzero arguments to
1403         k_casinhl.c.
1404         * math/libm-test.inc (cacos_test): Add more tests.
1405         * sysdeps/i386/fpu/libm-test-ulps: Update.
1406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1408 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
1410         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
1411         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
1412         [!HAVE_MREMAP]: Remove [defined linux] case.
1413         * malloc/arena.c: Do not include <malloc-sysdep.h>.
1415 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1417         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
1419 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1421         * elf/elf.h (R_386_SIZE32): New relocation.
1422         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
1423         R_386_SIZE32.
1424         (elf_machine_rela): Likewise.
1425         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1426         R_X86_64_SIZE64 and R_X86_64_SIZE32.
1428 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
1430         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
1431         (FP_FAST_FMA): Do not define.
1432         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
1433         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
1434         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
1435         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
1436         !_SOFT_FLOAT]: Likewise.
1437         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
1438         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
1439         value.
1440         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
1441         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
1442         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
1443         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
1444         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
1445         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
1446         file.
1448 2013-01-16  Andreas Schwab  <schwab@suse.de>
1450         [BZ #14327]
1451         * include/stdlib.h (__mktemp): Add declaration.
1452         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
1453         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
1455 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1457         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
1458         definitions.
1459         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1460         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
1461         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
1462         definitions here.
1463         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
1464         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
1465         definitions.
1466         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
1467         and ONE.
1468         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
1469         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
1470         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
1471         definitions.
1472         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
1473         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
1474         definitions.
1475         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1477         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
1479 2013-01-15  David S. Miller  <davem@davemloft.net>
1481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1482         trunc{,f} to libm-sysdep_routes.
1483         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
1485         file.
1486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
1487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
1488         file.
1489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
1490         file.
1491         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
1492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
1493         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
1494         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
1495         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
1496         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
1497         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
1498         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
1500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1501         nearbyint{,f} to libm-sysdep_routes.
1502         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
1504         New file.
1505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
1506         file.
1507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
1508         New file.
1509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
1510         file.
1511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
1512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
1513         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
1514         file.
1515         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
1516         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
1517         file.
1518         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
1519         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
1520         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
1522         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
1523         libc_feholdexcept and libc_fesetenv.
1525 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
1527         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
1529 2013-01-14  David S. Miller  <davem@davemloft.net>
1531         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
1532         (SPARC_ASM_VIS2_IFUNC): Likewise.
1533         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
1534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
1535         use of 'siam' instruction.
1536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
1537         Likewise.
1538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
1539         Likewise.
1540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
1541         Likewise.
1542         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
1543         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
1544         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
1545         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
1546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
1547         file.
1548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
1549         file.
1550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
1551         file.
1552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
1553         file.
1554         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
1555         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
1556         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
1557         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
1558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
1559         new VIS2 routines.
1560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1563         Likewise.
1564         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1565         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1566         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1567         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
1569         routines to libm-sysdep_routines.
1570         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
1572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
1573         fdim/fdimf to libm-sysdep_routines.
1574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
1575         file.
1576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
1577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
1578         file.
1579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
1580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
1581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
1582         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
1583         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
1584         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
1585         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
1587 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1589         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
1590         to optimize copies.
1592         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
1593         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
1594         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1596         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
1597         local variable MPTWO.
1598         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
1599         Likewise.
1601 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
1603         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
1604         GLOB_NOESCAPE.
1606 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
1608         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
1610 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
1612         * manual/pattern.texi (glob_t): Document gl_flags.
1613         (glob64_t): Likewise.
1615 2013-01-11  David S. Miller  <davem@davemloft.net>
1617         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
1618         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
1619         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
1620         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
1621         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
1622         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
1623         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
1624         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
1625         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
1626         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
1627         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
1628         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
1629         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
1631         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
1632         sparc V9 rather than using V8 code.
1633         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
1634         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
1636         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1637         Move to...
1638         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
1639         Here.
1641 2013-01-11  Roland McGrath  <roland@hack.frob.com>
1643         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
1644         not in the main loop.
1645         * configure: Regenerated.
1647 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
1649         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
1650         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
1651         to just #else.
1652         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
1653         [!__GLIBC_HAVE_LONG_LONG] case.
1654         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
1655         condition to just #else.
1656         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
1657         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
1658         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
1659         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
1660         unconditional.
1661         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
1662         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
1663         #elif condition to just #else.
1664         * sysdeps/unix/sysv/linux/sys/sysmacros.h
1665         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
1666         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
1667         #elif condition to just #else.
1669 2013-01-11  Steve Ellcey  <sellcey@mips.com>
1671         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
1672         (EF_MIPS_ARCH_64): Fix value.
1673         (EF_MIPS_ARCH_32R2): New.
1674         (EF_MIPS_ARCH_64R2): New.
1676 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1678         * Makeconfig (+link-pie-before-libc): New.
1679         (+link-pie-after-libc): Likewise.
1680         (+link-pie-tests): Likewise.
1681         (+link-pie): Rewritten.
1682         (link-before-libc): Remove $(config-LDFLAGS).
1683         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
1684         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
1685         (config-LDFLAGS): Renamed to ...
1686         (rtld-LDFLAGS): This.
1687         (rtld-tests-LDFLAGS): New macro.
1688         (link-libc-rpath-link): Likewise.
1689         (link-libc-tests-rpath-link): Likewise.
1690         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
1691         (link-libc): Prepand $(link-libc-rpath-link).
1692         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
1693         (test-program-prefix): New macro.
1694         (test-via-rtld-prefix): Likewise.
1695         (test-program-cmd): Likewise.
1696         (host-test-program-cmd): Likewise.
1697         * Makefile ($(common-objpfx)testrun.sh): Replace
1698         $(run-program-prefix) with $(test-program-prefix).
1699         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
1700         $(rtld-LDFLAGS).
1701         ($(common-objpfx)shlib.lds): Likewise.
1702         (build-module-helper): Likewise.
1703         ($(common-objpfx)format.lds): Likewise.
1704         * Rules (binaries-pie-tests): New.
1705         (binaries-pie-notests): Likewise.
1706         (binaries-pie): Rewritten.
1707         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
1708         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
1709         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
1710         (make-test-out): Replace $(host-built-program-cmd) with
1711         $(host-test-program-cmd).
1712         * config.make.in (build-hardcoded-path-in-tests): New variable.
1713         * configure.in (--enable-hardcoded-path-in-tests): New configure
1714         option.
1715         (hardcoded_path_in_tests): New AC_SUBST.
1716         * configure: Regenerated.
1717         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
1718         $(built-program-cmd) with $(test-program-cmd).
1719         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
1720         (test_program_cmd): This.
1721         * elf/Makefile ($(objpfx)order.out): Run test with
1722         $(test-program-prefix).
1723         ($(objpfx)order2.out): Likewise.
1724         ($(objpfx)tst-initorder.out): Likewise.
1725         ($(objpfx)tst-initorder2.out): Likewise.
1726         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
1727         $(test-program-cmd).
1728         ($(objpfx)tst-array1-static.out): Likewise.
1729         ($(objpfx)tst-array2.out): Likewise.
1730         ($(objpfx)tst-array3.out): Likewise.
1731         ($(objpfx)tst-array4.out): Likewise.
1732         ($(objpfx)tst-array5.out): Likewise.
1733         ($(objpfx)tst-array5-static.out): Likewise.
1734         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
1735         $(test-program-cmd).
1736         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
1737         $(run-program-prefix) with $(test-program-prefix).
1738         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
1739         (test_program_prefix): This.
1740         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
1741         $(run-program-prefix) with $(test-program-prefix).
1742         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
1743         (test_program_prefix): This.
1744         * iconvdata/tst-tables.sh: Likewise.
1745         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
1746         $(run-program-prefix) with $(test-program-prefix).
1747         ($(objpfx)tst-translit.out): Likewise.
1748         ($(objpfx)tst-gettext2.out): Likewise.
1749         ($(objpfx)tst-gettext4.out): Likewise.
1750         ($(objpfx)tst-gettext6.out): Likewise.
1751         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
1752         (test_program_prefix): This.
1753         * intl/tst-gettext2.sh: Likewise.
1754         * intl/tst-gettext4.sh  Likewise.
1755         * intl/tst-gettext6.sh: Likewise.
1756         * intl/tst-translit.sh: Likewise.
1757         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
1758         with $(test-program-cmd).
1759         * libio/Makefile ($(objpfx)test-freopen.out): Replace
1760         $(run-program-prefix) with $(test-program-prefix).
1761         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
1762         (test_program_prefix): This.
1763         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
1764         $(run-program-prefix) with $(test-program-prefix).
1765         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
1766         (test_program_prefix): This.
1767         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
1768         * posix/Makefile ($(objpfx)globtest.out): Replace
1769         $(run-via-rtld-prefix) and $(test-wrapper) with
1770         $(test-program-prefix) and $(test-via-rtld-prefix).
1771         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
1772         $(test-program-prefix).
1773         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
1774         $(host-test-program-cmd).
1775         (tst-spawn-ARGS): Likewise.
1776         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
1777         $(test-program-prefix).
1778         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
1779         (test_via_rtld_prefix): This.
1780         (test_wrapper): Renamed to ...
1781         (test_program_prefix): This.
1782         (run_program_prefix): Replaced by test_program_prefix.
1783         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
1784         (test_program_prefix): This.
1785         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
1786         with $(host-test-program-cmd).
1787         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
1788         $(run-program-prefix) with $(test-program-prefix).
1789         ($(objpfx)tst-printf.out): Likewise.
1790         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
1791         $(test-program-cmd).
1792         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
1793         (test_program_prefix): This.
1794         * stdio-common/tst-unbputc.sh: Likewise.
1795         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
1796         $(run-program-prefix) with $(test-program-prefix).
1797         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
1798         (test_program_prefix): This.
1799         * string/Makefile ($(objpfx)tst-svc.out):  Replace
1800         $(built-program-cmd) with $(test-program-cmd).
1802 2013-01-11  Andreas Jaeger  <aj@suse.de>
1804         [BZ #15003]
1805         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
1806         value. Sync with Linux 3.7.
1808 2013-01-10  David S. Miller  <davem@davemloft.net>
1810         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
1811         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
1812         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
1814 2013-01-10  Roland McGrath  <roland@hack.frob.com>
1816         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
1817         never set.
1818         * configure: Regenerated.
1820 2013-01-10  David S. Miller  <davem@davemloft.net>
1822         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
1823         sparc V9 rather than using V8 code.
1824         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
1825         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
1827 2013-01-10  Roland McGrath  <roland@hack.frob.com>
1829         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
1830         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
1831         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
1832         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
1833         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
1834         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
1835         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
1836         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
1837         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
1838         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
1839         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
1840         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
1841         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
1842         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
1843         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
1844         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
1845         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
1846         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
1847         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
1848         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
1849         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
1850         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
1851         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
1852         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
1853         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
1854         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
1855         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
1857 2013-01-10  David S. Miller  <davem@davemloft.net>
1859         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1861 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1863         * posix/Makefile (tests-static): New variable.
1864         (tests): Add $(tests-static).
1865         (tst-exec-static-ARGS): New variable.
1866         (tst-spawn-static-ARGS): Likewise.
1867         * posix/tst-exec-static.c: New file.
1868         * posix/tst-spawn-static.c: Likewise.
1869         * posix/tst-exec.c: Support run directly.
1870         * posix/tst-spawn.c: Likewise.
1872 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
1874         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
1875         long.
1876         * math/bits/mathcalls.h (llrint): Likewise.
1877         (llround): Likewise.
1878         * stdlib/stdlib.h (struct drand48_data): Likewise.
1879         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
1880         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
1881         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
1882         Likewise.
1883         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
1884         Likewise.
1885         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
1886         (elf_greg_t): Likewise.
1887         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
1888         (__jmp_buf): Likewise.
1889         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
1890         definitions.
1891         (llrint): Likewise, for all definitions.
1892         (llrintl): Likewise.
1894         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
1895         Remove [__GNUC__] condition.
1896         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
1897         condition to just [__USE_ISOC99].
1898         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
1900 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1902         [BZ #14200]
1903         * sysdeps/unix/sysv/linux/x86/bits/environments.h
1904         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
1905         defined.
1906         (_POSIX_V6_ILP32_OFF32): Likewise.
1907         (_XBS5_ILP32_OFF32): Likewise.
1908         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
1909         (__ILP32_OFFBIG_LDFLAGS): Likewise.
1911 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1913         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
1915         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
1916         doubles __mpexp_twomm1.  Adjust usage.
1917         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
1918         Remove.
1920 2013-01-10  Andreas Schwab  <schwab@suse.de>
1922         [BZ #14964]
1923         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
1924         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
1926 2013-01-09  David S. Miller  <davem@davemloft.net>
1928         [BZ #15003]
1929         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
1930         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
1931         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
1932         TCP_FASTOPEN): Define.
1933         (tcp_repair_opt): New structure.
1934         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
1935         enum values.
1936         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
1937         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
1938         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
1939         (tcp_cookie_transactions): New structure.
1941 2013-01-09  Anton Blanchard  <anton@samba.org>
1943         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
1944         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
1945         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
1946         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
1948 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
1950         * include/features.h (__USE_ANSI): Remove.
1952 2013-01-09  Roland McGrath  <roland@hack.frob.com>
1954         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
1956         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
1958 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
1960         * sysdeps/s390/fpu/libm-test-ulps: Update.
1962         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1964         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
1965         (__acr): Likewise.
1966         (__cpy): Likewise.
1967         (norm): Likewise.
1968         (denorm): Likewise.
1969         (__mp_dbl): Likewise.
1970         (__dbl_mp): Likewise.
1971         (add_magnitudes): Likewise.
1972         (sub_magnitudes): Likewise.
1973         (__add): Likewise.
1974         (__sub): Likewise.
1975         (__mul): Likewise.
1976         (__inv): Likewise.
1977         (__dvd): Likewise.
1978         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
1979         (__acr): Likewise.
1980         (__cpy): Likewise.
1981         (norm): Likewise.
1982         (denorm): Likewise.
1983         (__mp_dbl): Likewise.
1984         (__dbl_mp): Likewise.
1985         (add_magnitudes): Likewise.
1986         (sub_magnitudes): Likewise.
1987         (__add): Likewise.
1988         (__sub): Likewise.
1989         (__mul): Likewise.
1990         (__inv): Likewise.
1991         (__dvd): Likewise.
1992         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
1993         (__acr): Likewise.
1994         (__cpy): Likewise.
1995         (norm): Likewise.
1996         (denorm): Likewise.
1997         (__mp_dbl): Likewise.
1998         (__dbl_mp): Likewise.
1999         (add_magnitudes): Likewise.
2000         (sub_magnitudes): Likewise.
2001         (__add): Likewise.
2002         (__sub): Likewise.
2003         (__mul): Likewise.
2004         (__inv): Likewise.
2005         (__dvd): Likewise.
2007 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
2009         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
2010         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
2011         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
2012         2 && __USE_EXTERN_INLINES]: Likewise.
2014 2013-01-08  Andreas Jaeger  <aj@suse.de>
2016         [BZ# 14985]
2017         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
2018         Remove.
2019         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2020         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2022 2013-01-07  Anton Blanchard  <anton@samba.org>
2024         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
2025         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2026         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
2027         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
2028         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2029         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2030         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2031         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2032         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2033         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2034         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2035         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2036         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2037         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2038         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
2039         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2040         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2041         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2042         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
2043         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2044         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
2045         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
2046         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
2047         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
2048         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
2049         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2050         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2051         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
2052         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
2053         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2054         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
2055         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2056         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2057         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2058         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2059         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
2060         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2061         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2062         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
2063         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
2064         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
2065         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
2066         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2068 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
2070         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
2071         (__MALLOC_PMT): Likewise.
2072         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
2073         [__GNUC__], only on [_LIBC].
2074         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
2075         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
2076         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
2077         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
2078         forward declaration.
2079         (realloc_hook_ini): Likewise.
2080         (memalign_hook_ini): Likewise.
2081         (__libc_memalign): Do not use __MALLOC_PMT in variable
2082         declaration.
2083         (__libc_valloc): Likewise.
2084         (__libc_pvalloc): Likewise.
2085         (__libc_calloc): Likewise.
2086         (__posix_memalign): Likewise.
2088         [BZ #14996]
2089         * math/s_casinh.c: Include <float.h>.
2090         (__casinh): Do not do computation with squaring and square root
2091         for large arguments.
2092         * math/s_casinhf.c: Include <float.h>.
2093         (__casinhf): Do not do computation with squaring and square root
2094         for large arguments.
2095         * math/s_casinhl.c: Include <float.h>.
2096         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
2097         (__casinhl): Do not do computation with squaring and square root
2098         for large arguments.
2099         * math/libm-test.inc (casin_test): Add more tests.
2100         (casinh_test): Likewise.
2101         * sysdeps/i386/fpu/libm-test-ulps: Update.
2102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2104 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2106         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
2107         (__x86_64_raw_data_cache_size): Likewise.
2108         (__x86_64_data_cache_size_half): Likewise.
2109         (__x86_64_raw_data_cache_size_half): Likewise.
2110         (__x86_64_shared_cache_size): Likewise.
2111         (__x86_64_raw_shared_cache_size): Likewise.
2112         (__x86_64_shared_cache_size_half): Likewise.
2113         (__x86_64_raw_shared_cache_size_half): Likewise.
2114         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
2115         to ...
2116         (__x86_data_cache_size): This.
2117         (__x86_64_raw_data_cache_size): Renamed to ...
2118         (__x86_raw_data_cache_size): This.
2119         (__x86_64_data_cache_size_half): Renamed to ...
2120         (__x86_data_cache_size_half): This.
2121         (__x86_64_raw_data_cache_size_half): Renamed to ...
2122         (__x86_raw_data_cache_size_half): This.
2123         (__x86_64_shared_cache_size): Renamed to ...
2124         (__x86_shared_cache_size): This.
2125         (__x86_64_raw_shared_cache_size): Renamed to ...
2126         (__x86_raw_shared_cache_size): This.
2127         (__x86_64_shared_cache_size_half): Renamed to ...
2128         (__x86_shared_cache_size_half): This.
2129         (__x86_64_raw_shared_cache_size_half): Renamed to ...
2130         (__x86_raw_shared_cache_size_half): This.
2131         * sysdeps/x86_64/memcpy.S: Updated.
2132         * sysdeps/x86_64/memset.S: Likewise.
2133         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2134         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
2135         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2137 2013-01-04  David S. Miller  <davem@davemloft.net>
2139         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2141 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
2143         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
2144         1 to avoid redefinition warning.
2145         (__USE_GNU): Don't define.
2146         (init_signaling_nan): Protoize.
2148         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2150 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2152         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
2153         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
2154         (__cpymn): Likewise.
2155         (norm): Remove commented code.
2156         (denorm): Likewise.
2157         (__mp_dbl): Likewise.
2158         (__inv): Likewise.
2159         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
2160         (__cpymn): Likewise.
2161         (norm): Remove commented code.
2162         (denorm): Likewise.
2163         (__mp_dbl): Likewise.
2164         (__inv): Likewise.
2166         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
2167         mp_no value for 1.0 and 2.0.
2168         (norm): Use RADIXI instead of radixi.d.
2169         (denorm): Likewise.
2170         (__mul): Use 0.0 instead of zero.d.
2171         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
2172         mp_no value for 1.0 and 2.0.
2173         (norm): Use RADIXI instead of radixi.d.
2174         (denorm): Likewise.
2175         (__mul): Use 0.0 instead of zero.d.
2177 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
2179         [BZ #14994]
2180         * math/s_casinh.c (__casinh): Reduce finite argument to first
2181         quadrant then set signs of results at the end.
2182         * math/s_casinhf.c (__casinhf): Likewise.
2183         * math/s_casinhl.c (__casinhl): Likewise.
2184         * math/libm-test.inc (casin_test): Add more tests.
2185         (casinh_test): Likewise.
2186         * sysdeps/i386/fpu/libm-test-ulps: Update.
2187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2189 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2191         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
2193         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
2195         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
2196         declarations.
2197         (denorm): Likewise.
2198         (__mp_dbl): Likewise.
2199         (__inv): Likewise.
2201         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
2202         and adjust the header comment.
2204         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
2205         variable name from declaration.
2207 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2209         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2210         Initialize COMMON_CPUID_INDEX_7 element.
2211         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
2212         (CPUID_RTM): Likewise.
2213         (HAS_RTM): Likewise.
2214         (COMMON_CPUID_INDEX_7): New enum.
2216 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
2218         [BZ #14981]
2219         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
2220         size is zero, record memory as freed.
2222 2013-01-03  Andreas Jaeger  <aj@suse.de>
2224         * po/ia.po: Add new Interlingua translation.
2226 2012-01-03  Allan McRae  <allan@archlinux.org>
2228         * locale/programs/localedef.c: Fix description of '--posix' flag.
2230 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
2232         * NEWS: Update dates in second copyright notice.
2233         * README: Update copyright dates in example.
2234         * manual/libc.texinfo: Update copyright dates.
2235         * scripts/test-installation.pl: Update copyright date in --version
2236         output.
2238         * hurd/ctty-input.c: Fix copyright notice formatting.
2239         * hurd/ctty-output.c: Likewise.
2240         * hurd/dtable.c: Likewise.
2241         * hurd/hurd-raise.c: Likewise.
2242         * hurd/hurdprio.c: Likewise.
2243         * hurd/msgportdemux.c: Likewise.
2244         * misc/sys/file.h: Likewise.
2245         * misc/sys/ioctl.h: Likewise.
2246         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2247         * sysdeps/mach/hurd/chdir.c: Likewise.
2248         * sysdeps/mach/hurd/fchdir.c: Likewise.
2249         * sysdeps/mach/hurd/rename.c: Likewise.
2250         * sysdeps/mach/hurd/rmdir.c: Likewise.
2251         * sysdeps/mach/hurd/seekdir.c: Likewise.
2252         * sysdeps/mach/hurd/setsid.c: Likewise.
2253         * sysdeps/posix/wait3.c: Likewise.
2255         * All files with FSF copyright notices: Update copyright dates
2256         using scripts/update-copyrights.
2257         * intl/plural.c: Regenerated.
2258         * locale/programs/charmap-kw.h: Likewise.
2259         * locale/programs/locfile-kw.h: Likewise.
2261 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2263         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
2264         four values.
2266         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
2267         calculation loop and add branch prediction.
2269         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
2270         check access beyond bounds of m1np.
2272         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2273         MPTWO.
2274         (__inv): Remove local variable MPTWO to use the global
2275         constant.
2276         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
2277         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2278         variable MPTWO.
2279         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
2280         MP3HALFS static const.
2282 2013-01-01  David S. Miller  <davem@davemloft.net>
2284         * po/ca.po: Update from translation team.
2286 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
2288         * scripts/update-copyrights: New file.
2289         * Makeconfig: Reformat copyright notice.
2290         * ctype/ctype.h: Likewise.
2291         * debug/swprintf_chk.c: Likewise.
2292         * elf/dl-cache.c: Likewise.
2293         * elf/dl-debug.c: Likewise.
2294         * elf/dl-object.c: Likewise.
2295         * grp/initgroups.c: Likewise.
2296         * hurd/Makefile: Likewise.
2297         * hurd/hurd/signal.h: Likewise.
2298         * hurd/hurdfault.c: Likewise.
2299         * hurd/hurdioctl.c: Likewise.
2300         * hurd/hurdlookup.c: Likewise.
2301         * hurd/intr-msg.c: Likewise.
2302         * iconv/gconv_open.c: Likewise.
2303         * libio/swprintf.c: Likewise.
2304         * locale/lc-ctype.c: Likewise.
2305         * locale/nl_langinfo.c: Likewise.
2306         * mach/Machrules: Likewise.
2307         * mach/Makefile: Likewise.
2308         * malloc/obstack.h: Likewise.
2309         * manual/Makefile: Likewise.
2310         * manual/tsort.awk: Likewise.
2311         * misc/bits/stab.def: Likewise.
2312         * nis/nis_print_group_entry.c: Likewise.
2313         * nis/nis_table.c: Likewise.
2314         * nis/nss_compat/compat-pwd.c: Likewise.
2315         * nis/nss_compat/compat-spwd.c: Likewise.
2316         * po/Makefile: Likewise.
2317         * posix/fnmatch.c: Likewise.
2318         * posix/regex.h: Likewise.
2319         * resolv/Makefile: Likewise.
2320         * resolv/nss_dns/dns-network.c: Likewise.
2321         * resolv/res_hconf.c: Likewise.
2322         * scripts/gen-sorted.awk: Likewise.
2323         * soft-fp/soft-fp.h: Likewise.
2324         * stdio-common/printf.h: Likewise.
2325         * stdlib/monetary.h: Likewise.
2326         * stdlib/random.c: Likewise.
2327         * stdlib/random_r.c: Likewise.
2328         * sysdeps/generic/Makefile: Likewise.
2329         * sysdeps/gnu/Makefile: Likewise.
2330         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2331         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2332         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2353         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
2354         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
2355         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
2356         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
2357         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
2358         * sysdeps/mach/hurd/errnos.awk: Likewise.
2359         * sysdeps/mach/hurd/fork.c: Likewise.
2360         * sysdeps/mach/hurd/getcwd.c: Likewise.
2361         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2362         * sysdeps/mach/hurd/mmap.c: Likewise.
2363         * sysdeps/mach/hurd/utimes.c: Likewise.
2364         * sysdeps/mach/hurd/xmknod.c: Likewise.
2365         * sysdeps/posix/profil.c: Likewise.
2366         * sysdeps/posix/readdir_r.c: Likewise.
2367         * sysdeps/powerpc/bits/mathdef.h: Likewise.
2368         * sysdeps/powerpc/bits/setjmp.h: Likewise.
2369         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
2370         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2371         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2372         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2373         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2374         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2375         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2376         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2377         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2378         * sysdeps/pthread/lio_listio.c: Likewise.
2379         * sysdeps/sparc/dl-procinfo.h: Likewise.
2380         * sysdeps/unix/i386/sysdep.S: Likewise.
2381         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2382         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
2383         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2384         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2386         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
2387         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2388         * sysdeps/unix/sysv/linux/speed.c: Likewise.
2389         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
2390         * sysdeps/wordsize-32/divdi3.c: Likewise.
2391         * time/sys/time.h: Likewise.
2392         * wcsmbs/Makefile: Likewise.
2394 2013-01-01  David S. Miller  <davem@davemloft.net>
2396         * po/fr.po: Update from translation team.
2398         * catgets/gencat.c: Update copyright year.
2399         * csu/version.c: Likewise.
2400         * debug/catchsegv.sh: Likewise.
2401         * debug/pcprofiledump.c: Likewise.
2402         * debug/xtrace.sh: Likewise.
2403         * elf/ldconfig.c: Likewise.
2404         * elf/ldd.bash.in: Likewise.
2405         * elf/pldd.c: Likewise.
2406         * elf/sotruss.ksh: Likewise.
2407         * elf/sprof.c: Likewise.
2408         * iconv/iconv_prog.c: Likewise.
2409         * iconv/iconvconfig.c: Likewise.
2410         * locale/programs/locale.c: Likewise.
2411         * locale/programs/localedef.c: Likewise.
2412         * login/programs/pt_chown.c: Likewise.
2413         * malloc/memusage.sh: Likewise.
2414         * malloc/memusagestat.c: Likewise.
2415         * malloc/mtrace.pl: Likewise.
2416         * nscd/nscd.c: Likewise.
2417         * nss/getent.c: Likewise.
2418         * nss/makedb.c: Likewise.
2419         * posix/getconf.c: Likewise.
2421 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2423         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
2424         numbers.
2426 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
2428         * math/bits/mathcalls.h (modf): Use __nonnull.
2430 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2432         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
2433         (split): Use macro CN instead of the bare value.
2434         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
2435         could be used.
2436         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
2437         instead of the bare value.
2438         (power1): Likewise.
2440 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2442         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
2443         __ATAN_TWOM.
2444         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2446         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
2447         their values.
2448         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2449         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2450         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2451         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2453 2012-12-28  Andreas Jaeger  <aj@suse.de>
2455         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
2456         values are from Linux 3.7.
2458         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
2459         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
2461 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2463         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
2464         TRUE case.
2466         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
2467         (norm): Likewise.
2468         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
2469         variables with preprocessor constants.
2470         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2471         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2472         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2474 2012-12-27  Bruno Haible  <bruno@clisp.org>
2476         [BZ #14317]
2477         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
2478         only if needed.
2480 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2482         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
2483         and use variable directly.
2484         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
2486         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
2487         MPONE.
2488         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
2489         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
2490         variable MPONE.
2491         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2492         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2493         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
2494         include directive.  Remove local variable MPONE.
2495         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
2496         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
2497         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2499 2012-12-25  David S. Miller  <davem@davemloft.net>
2501         * version.h (RELEASE): Set to "development".
2502         (VERSION): Set to "2.17.90".
2503         * NEWS: Add 2.18 section.
2505 2012-12-21  David S. Miller  <davem@davemloft.net>
2507         * po/hr.po: Update from translation team.
2509 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2511         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
2513 2012-12-19  Steve Ellcey  <sellcey@mips.com>
2515         * NEWS:  Mention new memcpy for MIPS.
2517 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2519         * manual/contrib.texi (Contributors): Spelling correction.
2521 2012-12-15  David S. Miller  <davem@davemloft.net>
2523         * po/ru.po: Update from translation team.
2525 2012-12-13  David S. Miller  <davem@davemloft.net>
2527         * NEWS: Mention IFUNC testsuite enhancements.
2529         * po/pl.po: Update from translation team.
2530         * po/bg.po: Likewise.
2532         * manual/contrib.texi (Contributors): Update entries for Hongjiu
2533         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
2535 2012-12-11  David S. Miller  <davem@davemloft.net>
2537         * po/sv.po: Update from translation team.
2539         * po/vi.po: Update from translation team.
2541         * po/cs.po: Update from translation team.
2543         * po/de.po: Update from translation team.
2544         * po/eo.po: Likewise.
2545         * po/nl.po: Likewise.
2547 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2549         [BZ #14246]
2550         * manual/argp.texi (Argp Helper Functions): Move node to follow
2551         Argp Parsing State.
2553         [BZ #14872]
2554         * manual/conf.texi (Limits on File System Capacity): Mention if
2555         terminating null is included in the max size.
2557 2012-12-10  Andreas Jaeger  <aj@suse.de>
2559         * po/cs.po: Update from translation team.
2561 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2563         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
2564         void pointer and cast to uintptr_t.
2565         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
2566         path.
2567         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2568         * sysdeps/s390/s390-64/memset.S: Likewise.
2570 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
2572         [BZ #14833]
2573         * menual/message.texi (Message Translation): Fix typos.
2574         (Helper programs for gettext): Likewise.
2576 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
2578         [BZ #14898]
2579         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
2580         Change to -1.
2582 2012-12-07  David S. Miller  <davem@davemloft.net>
2584         * po/libc.pot: Update.
2586 2012-12-07  Richard Henderson  <rth@redhat.com>
2588         [BZ #10114]
2589         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
2590         normal/normal case to before the switch.
2591         (_FP_DIV): Likewise.
2593 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
2594             Mike Frysinger  <vapier@gentoo.org>
2596         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
2597         check for __NR_fadvise64_64.
2599 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
2601         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
2602         0, not just to plain "0" as a statement.
2603         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
2604         with cw.
2606 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
2608         * NEWS: Use sourceware.org in Bugzilla URL.
2610 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2613         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
2615         * stdio-common/tst-put-error.c (do_test): Add newline to the
2616         padded test to ensure flush.
2618 2012-12-05  Jeff Law  <law@redhat.com>
2620         * sunrpc/etc.rpc (fedfs_admin): Add entry.
2622 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
2624         * README: Don't refer to ports add-on as distributed separately.
2625         Mention AArch64 in list of systems supported in the ports add-on.
2627         * LICENSES: Add more non-FSF copyright and license notices.
2629         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
2630         ((unused)).
2632         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
2634         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
2635         10000 as width of padded output.
2637 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
2639         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
2641         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
2642         variable LX with __attribute__ ((unused)).
2643         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
2644         Likewise.
2645         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
2646         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2647         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
2648         with __attribute__ ((unused)).
2650 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
2652         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
2654 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
2656         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
2657         (CFLAGS-nldbl-acos.c): New variable.
2658         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
2659         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
2660         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
2661         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
2662         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
2663         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
2664         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
2665         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
2666         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
2667         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
2668         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
2669         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
2670         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
2671         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
2672         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
2673         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
2674         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
2675         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
2676         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
2677         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
2678         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
2679         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
2680         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
2681         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
2682         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
2683         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
2684         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
2685         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
2686         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
2687         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
2688         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
2689         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
2690         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
2691         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
2692         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
2693         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
2694         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
2695         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
2696         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
2697         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
2698         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
2699         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
2700         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
2701         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
2702         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
2703         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
2704         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
2705         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
2706         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
2707         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
2708         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
2709         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
2710         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
2711         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
2712         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
2713         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
2714         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
2715         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
2716         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
2717         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
2718         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
2719         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
2720         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
2721         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
2722         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
2723         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
2724         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
2725         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
2726         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
2727         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
2728         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
2729         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
2730         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
2731         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
2732         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
2733         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
2734         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
2735         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
2736         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
2737         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
2738         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
2739         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
2740         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
2741         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
2742         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
2743         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
2744         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
2745         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
2746         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
2747         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
2748         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
2749         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
2750         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
2751         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
2752         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
2753         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
2754         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
2756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2757         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
2759         [BZ #14914]
2760         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
2761         whole low double instead of just low 47 bits when splitting values
2762         into two parts.
2764 2012-12-03  Allan McRae  <allan@archlinux.org>
2766         * manual/stdio.texi (Predefined Printf Handlers): Remove
2767         @hsep and @vsep usage.
2769 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
2771         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
2772         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
2774 2012-12-03  Jeff Law  <law@redhat.com>
2776         * time/sys/time.h (settimeofday): Do not mark TV argument
2777         as __nonnull.
2779 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
2781         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
2782         when currently writing and seek to current position when not.
2783         * libio/Makefile (tests): Remove bug-fclose1.
2784         * libio/bug-fclose1.c: Delete.
2786 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
2788         * manual/arith.texi (feenableexcept): Fix typo.
2789         (fedisableexcept): Likewise.
2791 2012-11-30  Roland McGrath  <roland@hack.frob.com>
2793         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
2794         second, differently-typed declaration, rather than a cast.
2796 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2798         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
2799         * include/rpc/svc.h: ... here.
2801 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
2803         [BZ #13013]
2804         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
2805         depending n and resplen2 to catch cases where answer
2806         equals answerp2.
2808 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
2810         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
2811         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
2813 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
2815         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
2817 2012-11-29  Roland McGrath  <roland@hack.frob.com>
2819         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
2821 2012-11-28  Jeff Law  <law@redhat.com>
2823         [BZ #13761]
2824         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
2825         dataset_temporary.  Track alloca usage into alloca_used.
2826         If dataset is large allocate and release it via malloc/free.
2828 2012-06-04  Florian Weimer  <fweimer@redhat.com>
2830         [BZ #14197]
2831         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
2833 2012-11-28  David S. Miller  <davem@davemloft.net>
2835         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2837 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
2839         [BZ #14803]
2840         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
2841         of pi/2 rounded to nearest to 64 bits.
2842         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
2843         nearest to 64 bits.
2844         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
2845         bits.
2847 2012-11-28  Jeff Law <law@redhat.com>
2848             Martin Osvald <mosvald@redhat.com>
2850         [BZ #14889]
2851         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
2852         * sunrpc/svc.c: Include time.h.
2853         (__svc_accept_failed): New function.
2854         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
2855         any reason other than EINTR, call __svc_accept_failed.
2856         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
2857         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
2859 2012-11-28  Andreas Schwab  <schwab@suse.de>
2861         * scripts/abilist.awk: Also handle indirect functions in .opd
2862         section.
2864 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
2866         [BZ #13881]
2867         * sysdeps/x86/fpu/powl_helper.c: New file.
2868         * sysdeps/x86/fpu/Makefile: Likewise.
2869         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
2870         (p3): New object.
2871         (__ieee754_powl): Use __powl_helper for finite arguments except
2872         integer exponents below 8.
2873         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
2874         (p3): New object.
2875         (__ieee754_powl): Use __powl_helper for finite arguments except
2876         integer exponents below 8.
2877         * math/libm-test.inc (pow_test): Add more tests and enable some
2878         previously disabled tests.
2879         * sysdeps/i386/fpu/libm-test-ulps: Update.
2880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2882 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2883             Carlos O'Donell  <carlos_odonell@mentor.com>
2885         * nss/makedb.c (is_prime): Assert that input is odd and greater
2886         than 4.  Note that fact in a comment too.
2887         (next_prime): Add 4 to input.
2889 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2891         [BZ #11741]
2892         * libio/Makefile (tests): Add test case tst-fwrite-error.
2893         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
2894         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2895         * libio/tst-fwrite-error.c: New test case.
2897 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
2899         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
2900         before casting to void *.
2901         * include/libc-internal.h (__pointer_type): New macro.
2902         (__integer_if_pointer_type_sub): Likewise.
2903         (__integer_if_pointer_type): Likewise.
2904         (cast_to_integer): Likewise.
2905         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
2906         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
2907         before casting to atomic64_t.
2908         (atomic_exchange_acq): Likewise.
2909         (__arch_exchange_and_add_body): Likewise.
2910         (__arch_add_body): Likewise.
2911         (atomic_add_negative): Likewise.
2912         (atomic_add_zero): Likewise.
2914 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
2916         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
2917         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
2918         (add_fdes): Likewise.
2919         (linear_search_fdes): Likewise.
2920         (binary_search_unencoded_fdes): Likewise.
2922 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
2924         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
2926 2012-11-24  Adam Conrad  <adconrad@0c3.net>
2928         * configure.in: Autodetect C++ header directories.
2929         * configure: Regenerated.
2931 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
2933         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
2935 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
2937         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2939 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
2941         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
2942         LDBL_MANT_DIG == 106]: Disable some tests.
2943         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
2944         Likewise.
2945         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
2946         Likewise.
2948         [BZ #14871]
2949         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
2950         input for small inputs.  Return +/- pi/2 for large inputs.
2951         * math/libm-test.inc (atan_test): Add more tests.
2953         * sysdeps/generic/unwind-dw2-fde-glibc.c
2954         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
2955         __attribute__ ((unused)).
2957         [BZ #14645]
2958         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
2959         x * y if x and y are nonzero and z is zero.
2961         [BZ #14811]
2962         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
2963         nonzero exponents with absolute value below 0x1p-117 to +/-
2964         0x1p-117.
2966         [BZ #14869]
2967         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
2968         up arguments below 2**-450, not just those below 2**-500.
2969         * math/libm-test.inc (hypot_test): Add another test.
2971         [BZ #14868]
2972         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
2973         Return a+b for ratio over 2**120, not 2**60.
2974         * math/libm-test.inc (hypot_test): Add another test.
2976         * math/libm-test.inc (clog_test): Use
2977         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
2978         (clog10_test): Likewise.
2980         [BZ #6778]
2981         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
2983 2012-11-22  Andreas Schwab  <schwab@suse.de>
2985         * sysdeps/i386/fpu/libm-test-ulps: Update.
2987 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
2989         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
2990         printf output with newline.
2992 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
2994         [BZ #14865]
2995         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
2996         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
2997         -z nodlopen, -z initfirst and -z execstack support.
2998         * configure: Regenerated.
3000         * elf/elf.h (DF_1_NODIRECT): New macro.
3001         (DF_1_IGNMULDEF): Likewise.
3002         (DF_1_NOKSYMS): Likewise.
3003         (DF_1_NOHDR): Likewise.
3004         (DF_1_EDITED): Likewise.
3005         (DF_1_NORELOC): Likewise.
3006         (DF_1_SYMINTPOSE): Likewise.
3007         (DF_1_GLOBAUDIT): Likewise.
3008         (DF_1_SINGLETON): Likewise.
3009         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
3010         DT_1_SUPPORTED_MASK bits.
3011         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
3013 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
3015         * sysdeps/unix/make-syscalls.sh: Document prefixes.
3017 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
3019         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
3020         macro.
3022         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
3023         (sendmmsg): Move declarations...
3024         * socket/sys/socket.h: ... here.
3025         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
3026         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
3027         include it from...
3028         * socket/recvmmsg.c: ... this new file.
3029         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
3030         (sendmmsg): Rename to __sendmmsg, create weak alias and make
3031         definition of __sendmmsg hidden.
3032         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
3033         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
3034         Move ENOSYS stub into and include it from...
3035         * socket/sendmmsg.c: ... this new file.
3036         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
3037         (sysdep_routines): Move recvmmsg and sendmmsg...
3038         * socket/Makefile (routines): ... here.
3039         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
3040         (GLIBC_PRIVATE): Add __sendmmsg.
3041         * include/sys/socket.h (__sendmmsg): Add declarations.
3042         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
3043         sendmmsg.
3045 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
3047         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
3048         variable I1 with __attribute__ ((unused)).
3049         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3051 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
3053         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
3054         DUMMY variables with __attribute__ ((unused)).
3056         * bits/byteswap.h: Include <bits/types.h>.
3057         (__bswap_64): Use __uint64_t instead of unsigned long long int.
3059 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
3061         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
3062         string_t.  Do not manually set errno.
3063         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
3064         length with __strnlen.  Make sure to both set errno and return it on
3065         failure.
3067 2012-11-19  David S. Miller  <davem@davemloft.net>
3069         With help from Joseph Myers.
3070         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
3071         very large arguments properly.
3072         * math/libm-test.inc (atan_test): New tests.
3073         (atan2_test): New tests.
3074         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3075         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3077 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
3079         [BZ #14856]
3080         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
3081         Define to 3.
3083         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
3084         [POSIX] (EADDRNOTAVAIL): Likewise.
3085         [POSIX] (EAFNOSUPPORT): Likewise.
3086         [POSIX] (EALREADY): Likewise.
3087         [POSIX] (ECONNABORTED): Likewise.
3088         [POSIX] (ECONNREFUSED): Likewise.
3089         [POSIX] (ECONNRESET): Likewise.
3090         [POSIX] (EDESTADDRREQ): Likewise.
3091         [POSIX] (EDQUOT): Likewise.
3092         [POSIX] (EHOSTUNREACH): Likewise.
3093         [POSIX] (EIDRM): Likewise.
3094         [POSIX] (EISCONN): Likewise.
3095         [POSIX] (ELOOP): Likewise.
3096         [POSIX] (EMULTIHOP): Likewise.
3097         [POSIX] (ENETDOWN): Likewise.
3098         [POSIX] (ENETUNREACH): Likewise.
3099         [POSIX] (ENOBUFS): Likewise.
3100         [POSIX] (ENODATA): Likewise.
3101         [POSIX] (ENOLINK): Likewise.
3102         [POSIX] (ENOMSG): Likewise.
3103         [POSIX] (ENOPROTOOPT): Likewise.
3104         [POSIX] (ENOSR): Likewise.
3105         [POSIX] (ENOSTR): Likewise.
3106         [POSIX] (ENOTCONN): Likewise.
3107         [POSIX] (ENOTSOCK): Likewise.
3108         [POSIX] (EOPNOTSUPP): Likewise.
3109         [POSIX] (EOVERFLOW): Likewise.
3110         [POSIX] (EPROTO): Likewise.
3111         [POSIX] (EPROTONOSUPPORT): Likewise.
3112         [POSIX] (EPROTOTYPE): Likewise.
3113         [POSIX] (ESTALE): Likewise.
3114         [POSIX] (ETIME): Likewise.
3115         [POSIX] (ETXTBSY): Likewise.
3116         [POSIX] (EWOULDBLOCK): Likewise.
3117         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
3118         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
3119         [POSIX] (SEEK_CUR): Likewise.
3120         [POSIX] (SEEK_END): Likewise.
3121         [POSIX || UNIX98] (mode_t): Do not require.
3122         [POSIX] (off_t): Likewise.
3123         [POSIX] (pid_t): Likewise.
3124         [POSIX] (sys/stat.h): Do not allow header.
3125         [POSIX] (unistd.h): Likewise.
3126         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
3127         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
3128         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
3129         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
3130         require.
3131         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
3132         sigevent): Specify elements.
3133         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
3134         entry.
3135         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
3136         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
3138         * conform/data/cpio.h-data [POSIX]: Disable whole file.
3139         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
3140         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
3141         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
3142         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
3143         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
3144         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
3145         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
3146         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
3147         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
3148         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
3149         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
3150         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
3151         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
3152         Likewise.
3153         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
3154         Likewise.
3155         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
3156         Likewise.
3157         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
3158         Likewise.
3159         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
3160         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
3161         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
3162         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
3163         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
3164         Specify lower bound on value.
3165         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
3166         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
3167         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
3168         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
3169         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
3170         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
3171         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
3172         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
3173         value.
3174         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
3175         as optional.
3176         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
3177         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
3178         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
3179         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
3180         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
3181         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
3182         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
3183         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
3184         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
3185         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
3186         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
3187         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
3188         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
3189         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
3190         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
3191         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
3192         entry.
3193         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
3194         optional.
3195         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
3196         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
3197         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
3198         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
3199         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
3200         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
3201         Likewise.
3202         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
3203         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
3204         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
3205         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
3206         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
3207         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
3208         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
3209         as optional.
3210         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
3211         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
3212         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
3213         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
3214         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
3215         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
3216         specify as optional.
3217         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
3218         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
3219         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
3220         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
3221         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
3222         [XPG3] (NL_LANGMAX): Likewise.
3223         [POSIX || XPG3] (NL_MSGMAX): Likewise.
3224         [POSIX || XPG3] (NL_NMAX): Likewise.
3225         [POSIX || XPG3] (NL_SETMAX): Likewise.
3226         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
3227         [XPG3] (NZERO): Likewise.
3228         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
3229         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
3230         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
3231         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
3232         (REG_ERANGE): Expect.
3233         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
3234         optional-constant.
3235         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
3236         Use (void) in prototype.
3237         [POSIX] (*_t): Allow.
3238         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
3239         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
3240         (WRDE_BADVAL): Expect.
3242         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
3243         expect.
3244         [XPG3 || XPG4] (O_RSYNC): Likewise.
3245         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
3246         Likewise.
3247         [XPG3 || XPG4] (pthread_sigmask): Likewise.
3248         [XPG3 || XPG4] (sigqueue): Likewise.
3249         [XPG3 || XPG4] (sigtimedwait): Likewise.
3250         [XPG3 || XPG4] (sigwaitinfo): Likewise.
3251         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
3252         [XPG3 || XPG4] (vsnprintf): Likewise.
3253         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
3254         Likewise.
3255         [XPG3 || XPG4] (blksize_t): Likewise.
3256         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
3257         Likewise.
3258         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
3259         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
3260         [XPG3 || XPG4] (struct itimerspec): Likewise.
3261         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
3262         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
3263         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
3264         [XPG3 || XPG4] (clockid_t): Likewise.
3265         [XPG3 || XPG4] (timer_t): Likewise.
3266         [XPG3 || XPG4] (clock_getres): Likewise.
3267         [XPG3 || XPG4] (clock_gettime): Likewise.
3268         [XPG3 || XPG4] (clock_settime): Likewise.
3269         [XPG3 || XPG4] (nanosleep): Likewise.
3270         [XPG3 || XPG4] (timer_create): Likewise.
3271         [XPG3 || XPG4] (timer_delete): Likewise.
3272         [XPG3 || XPG4] (timer_gettime): Likewise.
3273         [XPG3 || XPG4] (timer_getoverrun): Likewise.
3274         [XPG3 || XPG4] (timer_settime): Likewise.
3275         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
3276         [XPG3 || XPG4] (getlogin_r): Likewise.
3277         [XPG3 || XPG4] (pread): Likewise.
3278         [XPG3 || XPG4] (pthread_atfork): Likewise.
3279         [XPG3 || XPG4] (pwrite): Likewise.
3281         [BZ #14835]
3282         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
3283         <bits/siginfo.h>.
3285 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
3287         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
3288         finalizing MALLSTREAM.
3290         * sysdeps/mach/hurd/syncfs.c: New file.
3292 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3294         [BZ #14719]
3295         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
3296         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
3297         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
3298         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
3299         (_nss_dns_gethostbyname4_r): Likewise.
3300         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
3301         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
3303 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
3305         [BZ #13763]
3306         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
3308 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
3310         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
3311         * elf/cache.c (print_entry): Print ",AArch64" for
3312         FLAG_AARCH64_LIB64
3314         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
3315         * elf/cache.c (print_entry): Print ",hard-float" for
3316         FLAG_ARM_LIBHF.
3318 2012-11-18  David S. Miller  <davem@davemloft.net>
3320         With help from Joseph Myers.
3321         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
3322         cutoff to 2**-13.
3323         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
3324         cutoff to 2**-25.
3325         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
3326         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
3327         small.
3328         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3329         * math/libm-test.inc (y0_test): New tests.
3330         (y1_test): New tests.
3331         * sysdeps/i386/fpu/libm-test-ulps: Update.
3332         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3333         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3335 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
3337         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
3338         64-bit targets.
3339         * configure: Regenerated.
3341 2012-11-17  David S. Miller  <davem@davemloft.net>
3343         [BZ #14811]
3344         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
3345         nonzero exponents with absolute value below 0x1p-128 to +/-
3346         0x1p-128.
3348 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
3350         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
3352         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
3354         * posix/getconf-speclist.c: New file.
3355         * posix/posix-envs.def: Likewise.
3356         * posix/confstr.c (START_ENV_GROUP): New macro.
3357         (END_ENV_GROUP): Likewise.
3358         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
3359         (KNOWN_PRESENT_ENV_STRING): Likewise.
3360         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
3361         (UNKNOWN_ENVIRONMENT): Likewise.
3362         (confstr): Include posix-envs.def instead of handling
3363         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
3364         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
3365         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
3366         (END_ENV_GROUP): Likewise.
3367         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
3368         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
3369         (UNKNOWN_ENVIRONMENT): Likewise.
3370         (__sysconf): Include posix-envs.def instead of handling associated
3371         cases directly here.
3372         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
3373         preprocessing getconf-speclist.c rather than running getconf or
3374         generating empty file.
3376 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
3378         * scripts/check-local-headers.sh: Ignore 'mach' headers.
3380 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
3382         [BZ #14672]
3383         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
3385 2012-11-16  David S. Miller  <davem@davemloft.net>
3387         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
3388         smaller than LDBL_EPSILON/2.0L, just return xm1.
3390 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
3392         * elf/tst-array1.c (init): Set constructor priority to 1000.
3393         (fini): Set destructor priority to 1000.
3394         * elf/tst-array2dep.c: Likewise.
3396 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3398         [BZ #11741]
3399         * libio/fileops.c (_IO_new_file_write): Correctly return error.
3400         (_IO_new_file_xsputn): Also return EOF if none of the input
3401         data was written when overflow failed.
3402         * libio/iopadn.c (_IO_padn): Likewise.
3403         * libio/iowpadn.c (_IO_wpadn): Likewise.
3404         * stdio-common/tst-put-error.c: Add copyright notice.
3405         (do_test): Add case for printing padded string.
3406         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
3407         _IO_padn returned error.
3408         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
3409         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
3410         return EOF.
3412 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3414         * libio/libioP.h: Add comment note that the references to C++
3415         bits are now obsolete.
3417 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3419         * math/libm-test.inc (check_complex): Use asprintf.
3421 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
3423         * debug/pcprofiledump.c (print_version): Update copyright year.
3424         * malloc/memusagestat.c (print_version): Likewise.
3426 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
3428         [BZ #14831]
3429         * elf/Makefile (tests): Add tst-audit8.
3430         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
3431         ($(objpfx)tst-audit8.out): New target.
3432         (tst-audit8-ENV): New variable.
3433         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
3434         audit if l_reloc_result is NULL.
3435         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
3436         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
3437         * elf/tst-audit8.c: New file.
3439 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3441         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
3442         * misc/Makefile (CFLAGS-select.c): Define.
3443         * posix/Makefile (CFLAGS-pause.c): Define.
3445 2012-11-13  David S. Miller  <davem@davemloft.net>
3447         * crypt/Makefile: Move test targets after toplevel Rules
3448         inclusion.  Grab any necessary sysdep routines when linking.
3449         * crypt/md5.c (md5_process_block): Remove define, we will always
3450         name it __md5_process_block.
3451         (md5_finish_ctx): Update md5_process_block call.
3452         (md5_stream): Likewise.
3453         (md5_process_bytes): Likewise.
3454         (md5_process_block): Rename to __md5_process_block and move to ...
3455         * crypt/md5-block.c: ... here.
3456         * crypt/sha256.c (sha256_process_block): Move to ...
3457         * crypt/sha256-block.c: ... here.
3458         * crypt/sha512.c (sha512_process_block): Move to ...
3459         * crypt/sha512-block.c: ... here.
3460         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
3461         path.
3462         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
3463         * sysdeps/sparc/sparc64/multiarch/Makefile
3464         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
3465         crypt subdir.
3466         (localedef-aux): Add md5 crypto assembler when in locale subdir.
3467         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
3468         multiarch changes.
3469         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
3470         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
3471         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
3472         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
3473         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
3474         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
3475         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
3476         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
3477         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
3478         file.
3479         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
3480         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
3481         file.
3482         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
3484 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
3486         * timezone/tzselect.ksh: Update from tzcode git revision
3487         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
3488         * timezone/zdump.c: Likewise.
3489         * timezone/zic.c: Likewise.
3490         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
3491         in TZVERSION setting, not $(PKGVERSION).
3492         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
3493         REPORT_BUGS_TO settings.
3495         [BZ #14838]
3496         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
3497         macro.
3499 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3501         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
3502         detection to immediately after _FP_ROUND().
3503         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
3504         bits are 0.
3506 2012-11-11  David S. Miller  <davem@davemloft.net>
3508         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
3509         inttypes.h
3510         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
3511         __close rather than their public counterparts.
3513 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
3515         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
3516         file.
3517         [UNIX98] (sem_timedwait): Do not expect.
3518         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
3519         [XPG4 || UNIX98] (sockatmark): Do not expect.
3520         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
3521         (clock_getcpuclockid): Do not expect.
3522         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
3523         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
3524         Do not expect.
3525         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
3526         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
3527         [UNIX98] (vwscanf): Likewise.
3528         [UNIX98] (vswscanf): Likewise.
3530 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
3532         * timezone/version.h: Remove file.
3533         * timezone/README: Do not refer to version.h.
3534         * timezone/Makefile ($(objpfx)zic.o): New dependency on
3535         $(objpfx)version.h.
3536         ($(objpfx)zdump.o): Likewise.
3537         ($(objpfx)version.h): New target.
3539         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
3540         2012i.
3541         * timezone/README: Don't mention modification to tzselect.ksh.
3542         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
3543         work on unmodified tzselect.ksh.  Substitute version numbers in
3544         tzselect.ksh.
3546         * Makefile (format-me): Remove.
3547         (INSTALL): Adjust indentation.  Use commands directly instead of
3548         using $(format-me).
3550         * aclocal.m4 (ACX_PKGVERSION): New macro.
3551         (ACX_BUGURL): Likewise.
3552         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
3553         (PKGVERSION): New AC_DEFINE_UNQUOTED.
3554         (REPORT_BUGS_TO): Likewise.
3555         * configure: Regenerated.
3556         * config.h.in (PKGVERSION): New macro.
3557         (REPORT_BUGS_TO): Likewise.
3558         * config.make.in (PKGVERSION): New variable.
3559         (PKGVERSION_TEXI): Likewise.
3560         (REPORT_BUGS_TO): Likewise.
3561         (REPORT_BUGS_TEXI): Likewise.
3562         * Makefile (format-me): Use -I$(common-objpfx)manual.
3563         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
3564         ($(common-objpfx)manual/%): New target.
3565         (manual/%): Remove target.
3566         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
3567         (print_version): Use PKGVERSION.
3568         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
3569         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
3570         and REPORT_BUGS_TO.
3571         ($(objpfx)xtrace): Likewise.
3572         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
3573         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
3574         (print_version): Use PKGVERSION.
3575         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
3576         (do_version): Use PKGVERSION.
3577         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
3578         REPORT_BUGS_TO.
3579         (common-ldd-rewrite): Likewise.
3580         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
3581         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
3582         (print_version): Use PKGVERSION.
3583         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
3584         * elf/pldd.c (argp_program_bug_address): Remove variable.
3585         (more_help): New function.
3586         (argp): Use more_help.
3587         (print_version): Use PKGVERSION.
3588         * elf/sln.c (main): Use PKGVERSION.
3589         (usage): Use REPORT_BUGS_TO.
3590         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
3591         (top level): Use PKGVERSION.
3592         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
3593         (print_version): Use PKGVERSION.
3594         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
3595         (print_version): Use PKGVERSION.
3596         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
3597         (print_version): Use PKGVERSION.
3598         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
3599         (print_version): Use PKGVERSION.
3600         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
3601         (print_version): Use PKGVERSION.
3602         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
3603         (print_version): Use PKGVERSION.
3604         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
3605         and BUGURL.
3606         ($(objpfx)memusage): Likewise.
3607         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
3608         (do_version): Use PKGVERSION.
3609         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
3610         (print_version): Use PKGVERSION.
3611         * malloc/mtrace.pl ($PACKAGE): Remove variable.
3612         ($PKGVERSION): New variable.
3613         ($REPORT_BUGS_TO): Likewise.
3614         (usage): Use $REPORT_BUGS_TO.
3615         (top level): Use $PKGVERSION.
3616         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
3617         ($(objpfx)pkgvers.texi): New rule.
3618         ($(objpfx)stamp-pkgvers): Likewise.
3619         * manual/install.texi: Include pkgvers.texi.
3620         (--with-pkgversion): Document new configure option.
3621         (--with-bugurl): Likewise.
3622         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
3623         than necessarily for this particular distribution.  Use
3624         REPORT_BUGS_TO for where to report bugs.
3625         * INSTALL: Regenerated.
3626         * manual/libc.texinfo: Include pkgvers.texi.
3627         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
3628         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
3629         (print_version): Use PKGVERSION.
3630         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
3631         (print_version): Use PKGVERSION.
3632         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
3633         (print_version): Use PKGVERSION.
3634         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
3635         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
3636         macro.
3637         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
3638         (print_version): Use PKGVERSION.
3639         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
3640         (print_version): Use PKGVERSION.
3641         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
3642         and PKGVERSION.
3644         * timezone/checktab.awk: Update from tzcode 2012i.
3645         * timezone/ialloc.c: Likewise.
3646         * timezone/private.h: Likewise.
3647         * timezone/scheck.c: Likewise.
3648         * timezone/tzfile.h: Likewise.
3649         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
3650         (TZVERSION): Hardcode tzcode version number.
3651         * timezone/zdump.c: Update from tzcode 2012i.
3652         * timezone/zic.c: Likewise.
3653         * timezone/version.h: New file.
3654         * timezone/README: Describe version.h.  Update upstream location.
3656         [BZ #14824]
3657         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
3658         (mktemp): Enable declaration.
3659         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
3660         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
3661         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
3662         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
3663         Likewise.
3664         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
3665         Likewise.
3666         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
3667         Likewise.
3668         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
3669         Likewise.
3670         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
3671         Likewise.
3672         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
3673         Likewise.
3675         [BZ #14821]
3676         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
3677         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
3678         for copies of such integer values.
3679         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
3680         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
3682 2012-11-09  Andreas Jaeger  <aj@suse.de>
3684         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
3685         definitions and declarations that are provided by
3686         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
3688 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3690         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
3691         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
3692         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
3693         definition.
3695 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3697         * elf/elf.h: Update comment before AArch64 relocations.
3699 2012-11-07  David S. Miller  <davem@davemloft.net>
3701         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
3702         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3703         (__start_context): Declare.
3704         (__makecontext_ret): Delete.
3705         (__makecontext): Hook up __start_context instead of
3706         __makecontext_ret.
3707         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
3708         (sysdep_routines): Add __start_context when in stdlib.
3710 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
3712         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
3713         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
3714         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
3715         hardcoded "nm".
3716         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
3717         (READELF): New variable.  Use it instead of hardcoded "readelf".
3719 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3721         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
3722         * sysdeps/x86/Makefile: Here.
3723         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
3724         * sysdeps/x86/tst-xmmymm.sh: This.
3726 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
3728         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
3729         expectations.
3730         [UNIX98] (pthread_barrier_t): Do not expect.
3731         [UNIX98] (pthread_barrierattr_t): Likewise.
3732         [UNIX98] (pthread_spinlock_t): Likewise.
3733         [UNIX98] (pthread_barrier_destroy): Likewise.
3734         [UNIX98] (pthread_barrier_init): Likewise.
3735         [UNIX98] (pthread_barrier_wait): Likewise.
3736         [UNIX98] (pthread_barrierattr_destroy): Likewise.
3737         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
3738         [UNIX98] (pthread_barrierattr_init): Likewise.
3739         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
3740         [UNIX98] (pthread_getcpuclockid): Likewise.
3741         [UNIX98] (pthread_mutex_timedlock): Likewise.
3742         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
3743         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
3744         [UNIX98] (pthread_sigmask): Likewise.
3745         [UNIX98] (pthread_spin_destroy): Likewise.
3746         [UNIX98] (pthread_spin_init): Likewise.
3747         [UNIX98] (pthread_spin_lock): Likewise.
3748         [UNIX98] (pthread_spin_trylock): Likewise.
3749         [UNIX98] (pthread_spin_unlock): Likewise.
3750         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
3751         Do not expect.
3752         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
3753         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
3754         [XPG3 || XPG4] (pthread_cond_t): Likewise.
3755         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
3756         [XPG3 || XPG4] (pthread_key_t): Likewise.
3757         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
3758         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
3759         [XPG3 || XPG4] (pthread_once_t): Likewise.
3760         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
3761         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
3762         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
3763         [XPG3 || XPG4] (pthread_t): Likewise.
3765         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
3766         not expect.
3767         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
3769         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
3770         Change function return type to int.
3772         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
3773         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
3774         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
3775         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
3776         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
3777         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
3778         [!POSIX] (posix_madvise): Likewise.
3779         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
3780         && !UNIX98].
3781         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
3782         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
3783         (mode_t): Likewise.
3784         (posix_mem_offset): Likewise.
3785         (posix_typed_mem_get_info): Likewise.
3786         (posix_typed_mem_open): Likewise.
3788         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
3789         Change condition to [XOPEN2K8].
3791         * conform/conformtest.pl: Preprocess allow-header data with -x c
3792         instead of from stdin.
3793         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
3794         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
3795         [C99-based standards] (cerfc): Likewise.
3796         [C99-based standards] (cexp2): Likewise.
3797         [C99-based standards] (cexpm1): Likewise.
3798         [C99-based standards] (clog10): Likewise.
3799         [C99-based standards] (clog1p): Likewise.
3800         [C99-based standards] (clog2): Likewise.
3801         [C99-based standards] (clgamma): Likewise.
3802         [C99-based standards] (ctgamma): Likewise.
3803         [C99-based standards] (cerff): Likewise.
3804         [C99-based standards] (cerfcf): Likewise.
3805         [C99-based standards] (cexp2f): Likewise.
3806         [C99-based standards] (cexpm1f): Likewise.
3807         [C99-based standards] (clog10f): Likewise.
3808         [C99-based standards] (clog1pf): Likewise.
3809         [C99-based standards] (clog2f): Likewise.
3810         [C99-based standards] (clgammaf): Likewise.
3811         [C99-based standards] (ctgammaf): Likewise.
3812         [C99-based standards] (cerfl): Likewise.
3813         [C99-based standards] (cerfcl): Likewise.
3814         [C99-based standards] (cexp2l): Likewise.
3815         [C99-based standards] (cexpm1l): Likewise.
3816         [C99-based standards] (clog10l): Likewise.
3817         [C99-based standards] (clog1pl): Likewise.
3818         [C99-based standards] (clog2l): Likewise.
3819         [C99-based standards] (clgammal): Likewise.
3820         [C99-based standards] (ctgammal): Likewise.
3821         * conform/data/inttypes.h-data [C99-based standards]: Include
3822         stdint.h-data.  Remove all expectations for stdint.h contents.
3823         [C99-based standards] (PRI*): Do not allow.
3824         [C99-based standards] (SCN*): Likewise.
3825         [C99-based standards] (*_t): Likewise.
3826         [C99-based-standards] (PRId8): Expect macro.
3827         [C99-based-standards] (PRIi8): Likewise.
3828         [C99-based-standards] (PRIo8): Likewise.
3829         [C99-based-standards] (PRIu8): Likewise.
3830         [C99-based-standards] (PRIx8): Likewise.
3831         [C99-based-standards] (PRIX8): Likewise.
3832         [C99-based-standards] (SCNd8): Likewise.
3833         [C99-based-standards] (SCNi8): Likewise.
3834         [C99-based-standards] (SCNo8): Likewise.
3835         [C99-based-standards] (SCNu8): Likewise.
3836         [C99-based-standards] (SCNx8): Likewise.
3837         [C99-based-standards] (PRIdLEAST8): Likewise.
3838         [C99-based-standards] (PRIiLEAST8): Likewise.
3839         [C99-based-standards] (PRIoLEAST8): Likewise.
3840         [C99-based-standards] (PRIuLEAST8): Likewise.
3841         [C99-based-standards] (PRIxLEAST8): Likewise.
3842         [C99-based-standards] (PRIXLEAST8): Likewise.
3843         [C99-based-standards] (SCNdLEAST8): Likewise.
3844         [C99-based-standards] (SCNiLEAST8): Likewise.
3845         [C99-based-standards] (SCNoLEAST8): Likewise.
3846         [C99-based-standards] (SCNuLEAST8): Likewise.
3847         [C99-based-standards] (SCNxLEAST8): Likewise.
3848         [C99-based-standards] (PRIdFAST8): Likewise.
3849         [C99-based-standards] (PRIiFAST8): Likewise.
3850         [C99-based-standards] (PRIoFAST8): Likewise.
3851         [C99-based-standards] (PRIuFAST8): Likewise.
3852         [C99-based-standards] (PRIxFAST8): Likewise.
3853         [C99-based-standards] (PRIXFAST8): Likewise.
3854         [C99-based-standards] (SCNdFAST8): Likewise.
3855         [C99-based-standards] (SCNiFAST8): Likewise.
3856         [C99-based-standards] (SCNoFAST8): Likewise.
3857         [C99-based-standards] (SCNuFAST8): Likewise.
3858         [C99-based-standards] (SCNxFAST8): Likewise.
3859         [C99-based-standards] (PRId16): Likewise.
3860         [C99-based-standards] (PRIi16): Likewise.
3861         [C99-based-standards] (PRIo16): Likewise.
3862         [C99-based-standards] (PRIu16): Likewise.
3863         [C99-based-standards] (PRIx16): Likewise.
3864         [C99-based-standards] (PRIX16): Likewise.
3865         [C99-based-standards] (SCNd16): Likewise.
3866         [C99-based-standards] (SCNi16): Likewise.
3867         [C99-based-standards] (SCNo16): Likewise.
3868         [C99-based-standards] (SCNu16): Likewise.
3869         [C99-based-standards] (SCNx16): Likewise.
3870         [C99-based-standards] (PRIdLEAST16): Likewise.
3871         [C99-based-standards] (PRIiLEAST16): Likewise.
3872         [C99-based-standards] (PRIoLEAST16): Likewise.
3873         [C99-based-standards] (PRIuLEAST16): Likewise.
3874         [C99-based-standards] (PRIxLEAST16): Likewise.
3875         [C99-based-standards] (PRIXLEAST16): Likewise.
3876         [C99-based-standards] (SCNdLEAST16): Likewise.
3877         [C99-based-standards] (SCNiLEAST16): Likewise.
3878         [C99-based-standards] (SCNoLEAST16): Likewise.
3879         [C99-based-standards] (SCNuLEAST16): Likewise.
3880         [C99-based-standards] (SCNxLEAST16): Likewise.
3881         [C99-based-standards] (PRIdFAST16): Likewise.
3882         [C99-based-standards] (PRIiFAST16): Likewise.
3883         [C99-based-standards] (PRIoFAST16): Likewise.
3884         [C99-based-standards] (PRIuFAST16): Likewise.
3885         [C99-based-standards] (PRIxFAST16): Likewise.
3886         [C99-based-standards] (PRIXFAST16): Likewise.
3887         [C99-based-standards] (SCNdFAST16): Likewise.
3888         [C99-based-standards] (SCNiFAST16): Likewise.
3889         [C99-based-standards] (SCNoFAST16): Likewise.
3890         [C99-based-standards] (SCNuFAST16): Likewise.
3891         [C99-based-standards] (SCNxFAST16): Likewise.
3892         [C99-based-standards] (PRId32): Likewise.
3893         [C99-based-standards] (PRIi32): Likewise.
3894         [C99-based-standards] (PRIo32): Likewise.
3895         [C99-based-standards] (PRIu32): Likewise.
3896         [C99-based-standards] (PRIx32): Likewise.
3897         [C99-based-standards] (PRIX32): Likewise.
3898         [C99-based-standards] (SCNd32): Likewise.
3899         [C99-based-standards] (SCNi32): Likewise.
3900         [C99-based-standards] (SCNo32): Likewise.
3901         [C99-based-standards] (SCNu32): Likewise.
3902         [C99-based-standards] (SCNx32): Likewise.
3903         [C99-based-standards] (PRIdLEAST32): Likewise.
3904         [C99-based-standards] (PRIiLEAST32): Likewise.
3905         [C99-based-standards] (PRIoLEAST32): Likewise.
3906         [C99-based-standards] (PRIuLEAST32): Likewise.
3907         [C99-based-standards] (PRIxLEAST32): Likewise.
3908         [C99-based-standards] (PRIXLEAST32): Likewise.
3909         [C99-based-standards] (SCNdLEAST32): Likewise.
3910         [C99-based-standards] (SCNiLEAST32): Likewise.
3911         [C99-based-standards] (SCNoLEAST32): Likewise.
3912         [C99-based-standards] (SCNuLEAST32): Likewise.
3913         [C99-based-standards] (SCNxLEAST32): Likewise.
3914         [C99-based-standards] (PRIdFAST32): Likewise.
3915         [C99-based-standards] (PRIiFAST32): Likewise.
3916         [C99-based-standards] (PRIoFAST32): Likewise.
3917         [C99-based-standards] (PRIuFAST32): Likewise.
3918         [C99-based-standards] (PRIxFAST32): Likewise.
3919         [C99-based-standards] (PRIXFAST32): Likewise.
3920         [C99-based-standards] (SCNdFAST32): Likewise.
3921         [C99-based-standards] (SCNiFAST32): Likewise.
3922         [C99-based-standards] (SCNoFAST32): Likewise.
3923         [C99-based-standards] (SCNuFAST32): Likewise.
3924         [C99-based-standards] (SCNxFAST32): Likewise.
3925         [C99-based-standards] (PRId64): Likewise.
3926         [C99-based-standards] (PRIi64): Likewise.
3927         [C99-based-standards] (PRIo64): Likewise.
3928         [C99-based-standards] (PRIu64): Likewise.
3929         [C99-based-standards] (PRIx64): Likewise.
3930         [C99-based-standards] (PRIX64): Likewise.
3931         [C99-based-standards] (SCNd64): Likewise.
3932         [C99-based-standards] (SCNi64): Likewise.
3933         [C99-based-standards] (SCNo64): Likewise.
3934         [C99-based-standards] (SCNu64): Likewise.
3935         [C99-based-standards] (SCNx64): Likewise.
3936         [C99-based-standards] (PRIdLEAST64): Likewise.
3937         [C99-based-standards] (PRIiLEAST64): Likewise.
3938         [C99-based-standards] (PRIoLEAST64): Likewise.
3939         [C99-based-standards] (PRIuLEAST64): Likewise.
3940         [C99-based-standards] (PRIxLEAST64): Likewise.
3941         [C99-based-standards] (PRIXLEAST64): Likewise.
3942         [C99-based-standards] (SCNdLEAST64): Likewise.
3943         [C99-based-standards] (SCNiLEAST64): Likewise.
3944         [C99-based-standards] (SCNoLEAST64): Likewise.
3945         [C99-based-standards] (SCNuLEAST64): Likewise.
3946         [C99-based-standards] (SCNxLEAST64): Likewise.
3947         [C99-based-standards] (PRIdFAST64): Likewise.
3948         [C99-based-standards] (PRIiFAST64): Likewise.
3949         [C99-based-standards] (PRIoFAST64): Likewise.
3950         [C99-based-standards] (PRIuFAST64): Likewise.
3951         [C99-based-standards] (PRIxFAST64): Likewise.
3952         [C99-based-standards] (PRIXFAST64): Likewise.
3953         [C99-based-standards] (SCNdFAST64): Likewise.
3954         [C99-based-standards] (SCNiFAST64): Likewise.
3955         [C99-based-standards] (SCNoFAST64): Likewise.
3956         [C99-based-standards] (SCNuFAST64): Likewise.
3957         [C99-based-standards] (SCNxFAST64): Likewise.
3958         [C99-based-standards] (PRIdMAX): Likewise.
3959         [C99-based-standards] (PRIiMAX): Likewise.
3960         [C99-based-standards] (PRIoMAX): Likewise.
3961         [C99-based-standards] (PRIuMAX): Likewise.
3962         [C99-based-standards] (PRIxMAX): Likewise.
3963         [C99-based-standards] (PRIXMAX): Likewise.
3964         [C99-based-standards] (SCNdMAX): Likewise.
3965         [C99-based-standards] (SCNiMAX): Likewise.
3966         [C99-based-standards] (SCNoMAX): Likewise.
3967         [C99-based-standards] (SCNuMAX): Likewise.
3968         [C99-based-standards] (SCNxMAX): Likewise.
3969         [C99-based-standards] (PRIdPTR): Likewise.
3970         [C99-based-standards] (PRIiPTR): Likewise.
3971         [C99-based-standards] (PRIoPTR): Likewise.
3972         [C99-based-standards] (PRIuPTR): Likewise.
3973         [C99-based-standards] (PRIxPTR): Likewise.
3974         [C99-based-standards] (PRIXPTR): Likewise.
3975         [C99-based-standards] (SCNdPTR): Likewise.
3976         [C99-based-standards] (SCNiPTR): Likewise.
3977         [C99-based-standards] (SCNoPTR): Likewise.
3978         [C99-based-standards] (SCNuPTR): Likewise.
3979         [C99-based-standards] (SCNxPTR): Likewise.
3980         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
3981         allow.
3982         * conform/data/stdint.h-data: Update comments to clarify
3983         requirements.
3984         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
3985         type.
3986         [C99-based standards] (INT8_MAX): Likewise.
3987         [C99-based standards] (INT16_MIN): Likewise.
3988         [C99-based standards] (INT16_MAX): Likewise.
3989         [C99-based standards] (INT32_MIN): Likewise.
3990         [C99-based standards] (INT32_MAX): Likewise.
3991         [C99-based standards] (INT64_MIN): Likewise.
3992         [C99-based standards] (INT64_MAX): Likewise.
3993         [C99-based standards] (UINT8_MAX): Likewise.
3994         [C99-based standards] (UINT16_MAX): Likewise.
3995         [C99-based standards] (UINT32_MAX): Likewise.
3996         [C99-based standards] (UINT64_MAX): Likewise.
3997         [C99-based standards] (INT_LEAST8_MIN): Likewise.
3998         [C99-based standards] (INT_LEAST8_MAX): Likewise.
3999         [C99-based standards] (INT_LEAST16_MIN): Likewise.
4000         [C99-based standards] (INT_LEAST16_MAX): Likewise.
4001         [C99-based standards] (INT_LEAST32_MIN): Likewise.
4002         [C99-based standards] (INT_LEAST32_MAX): Likewise.
4003         [C99-based standards] (INT_LEAST64_MIN): Likewise.
4004         [C99-based standards] (INT_LEAST64_MAX): Likewise.
4005         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
4006         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
4007         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
4008         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
4009         [C99-based standards] (INT_FAST8_MIN): Likewise.
4010         [C99-based standards] (INT_FAST8_MAX): Likewise.
4011         [C99-based standards] (INT_FAST16_MIN): Likewise.
4012         [C99-based standards] (INT_FAST16_MAX): Likewise.
4013         [C99-based standards] (INT_FAST32_MIN): Likewise.
4014         [C99-based standards] (INT_FAST32_MAX): Likewise.
4015         [C99-based standards] (INT_FAST64_MIN): Likewise.
4016         [C99-based standards] (INT_FAST64_MAX): Likewise.
4017         [C99-based standards] (UINT_FAST8_MAX): Likewise.
4018         [C99-based standards] (UINT_FAST16_MAX): Likewise.
4019         [C99-based standards] (UINT_FAST32_MAX): Likewise.
4020         [C99-based standards] (UINT_FAST64_MAX): Likewise.
4021         [C99-based standards] (INTPTR_MIN): Likewise.
4022         [C99-based standards] (INTPTR_MAX): Likewise.
4023         [C99-based standards] (UINTPTR_MAX): Likewise.
4024         [C99-based standards] (INTMAX_MIN): Likewise.
4025         [C99-based standards] (INTMAX_MAX): Likewise.
4026         [C99-based standards] (UINTMAX_MAX): Likewise.
4027         [C99-based standards] (PTRDIFF_MIN): Likewise.
4028         [C99-based standards] (PTRDIFF_MAX): Likewise.
4029         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
4030         [C99-based standards] (SIZE_MAX): Likewise.
4031         [C99-based standards] (WCHAR_MAX): Likewise.
4032         [C99-based standards] (WINT_MAX): Likewise.
4033         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
4034         constraint on value.
4035         [C99-based standards] (WCHAR_MIN): Likewise.
4036         [C99-based standards] (WINT_MIN): Likewise.
4037         [C99-based standards] (*_t): Allow.
4038         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
4039         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
4040         Include math.h-data and complex.h-data.  Remove all expectations
4041         of math.h and complex.h contents.
4042         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
4043         at end of line.
4044         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
4045         (struct tm): Expect tag.
4046         [C99-based-standards] (wcstof): Expect function.
4047         [C99-based-standards] (wcstold): Likewise.
4048         [C99-based-standards] (wcstoll): Likewise.
4049         [C99-based-standards] (wcstoull): Likewise.
4050         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
4051         macro-int-constant.  Specify type.
4052         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
4053         constraint on value.
4054         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
4055         Specify type.
4056         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
4057         Specify value.
4058         [ISO C standards]: Do not allow headers.
4059         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
4060         wcs[abcdefghijklmnopqrstuvwxyz]*.
4061         [ISO C standards] (*_t): Do not allow.
4062         * conform/data/wctype.h-data [C99-based standards] (iswblank):
4063         Expect function.
4064         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
4065         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
4066         Specify type.
4067         [ISO C standards]: Do not allow headers.
4068         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
4069         is[abcdefghijklmnopqrstuvwxyz]*.
4070         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
4071         to[abcdefghijklmnopqrstuvwxyz]*.
4072         [ISO C standards] (*_t): Do not allow.
4073         * conform/data/stdalign.h-data: New file.
4074         * conform/data/stdbool.h-data: Likewise.
4075         * conform/data/stdnoreturn.h-data: Likewise.
4077 2012-11-07  Roland McGrath  <roland@hack.frob.com>
4079         [BZ #14815]
4080         * manual/filesys.texi (Directory Entries): Typo fix.
4081         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
4083 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4085         * elf/elf.h (EM_AARCH64): New macro.
4086         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
4087         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
4088         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
4089         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
4090         (R_AARCH64_TLSDESC): Likewise.
4091         (NT_ARM_TLS): Likewise.
4092         (NT_ARM_HW_BREAK): Likewise.
4093         (NT_ARM_HW_WATCH): Likewise.
4095 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4097         [BZ #14811]
4098         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
4099         (__ieee754_powl): Saturate nonzero exponents with absolute value
4100         below 0x1p-79 to +/- 0x1p-79.
4101         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
4102         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
4103         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
4104         nonzero exponents with absolute value below 0x1p-32 to +/-
4105         0x1p-32.
4106         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
4107         (__ieee754_powl): Saturate nonzero exponents with absolute value
4108         below 0x1p-79 to +/- 0x1p-79.
4109         * math/libm-test.inc (pow_test): Add more tests.
4111 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4113         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
4114         _dl_s390_cap_flags with kernel. Increase string length.
4115         (_dl_s390_platforms): Add z196 and zEC12.
4117 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4119         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
4120         Change XOPEN21K to XOPEN2K.
4122 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4124         * string/memmove.c: Use memcpy when possible.
4126 2012-11-06  Andreas Jaeger  <aj@suse.de>
4128         * po/eo.po: Update from translation team.
4130 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
4132         [BZ #14793]
4133         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
4134         exponent and small x and y exponents, scale x or y up.  Increase
4135         by 2 the exponent used in scaling up.
4136         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4137         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4138         * math/libm-test.inc (fma_test): Add more tests.
4139         (fma_test_towardzero): Likewise.
4140         (fma_test_downward): Likewise.
4141         (fma_test_upward): Likewise.
4143 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
4145         [BZ #14805]
4146         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
4147         fenv_t *.
4149         [BZ #14801]
4150         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
4151         namespace for names of struct fields.
4152         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
4153         fenv_t fields.
4154         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
4155         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
4157 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4159         [BZ #3665]
4160         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
4162 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4164         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
4165         PTR_DEMANGLE.
4167         [BZ #5246]
4168         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
4169         PTR_DEMANGLE.
4171 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
4173         [BZ #14797]
4174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
4175         definitely overflow as x * y not x * y + z.
4176         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4177         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4178         * math/libm-test.inc (fma_test): Add more tests.
4179         (fma_test_towardzero): Likewise.
4180         (fma_test_downward): Likewise.
4181         (fma_test_upward): Likewise.
4183 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4185         [BZ #157]
4187         * include/stub-tag.h: Remove file.
4188         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
4189         '#include' of it.
4190         * manual/maint.texi (Porting): Don't reference it.
4191         * Makerules ($(objpfx)stubs): Likewise.
4192         * dirent/closedir.c: Don't include <stub-tag.h>.
4193         * dirent/dirfd.c: Likewise.
4194         * dirent/fdopendir.c: Likewise.
4195         * dirent/getdents.c: Likewise.
4196         * dirent/getdents64.c: Likewise.
4197         * dirent/opendir.c: Likewise.
4198         * dirent/readdir.c: Likewise.
4199         * dirent/readdir64.c: Likewise.
4200         * dirent/readdir64_r.c: Likewise.
4201         * dirent/readdir_r.c: Likewise.
4202         * dirent/rewinddir.c: Likewise.
4203         * dirent/seekdir.c: Likewise.
4204         * dirent/telldir.c: Likewise.
4205         * gmon/profil.c: Likewise.
4206         * grp/setgroups.c: Likewise.
4207         * inet/if_index.c: Likewise.
4208         * io/access.c: Likewise.
4209         * io/chdir.c: Likewise.
4210         * io/chmod.c: Likewise.
4211         * io/chown.c: Likewise.
4212         * io/close.c: Likewise.
4213         * io/dup.c: Likewise.
4214         * io/dup2.c: Likewise.
4215         * io/dup3.c: Likewise.
4216         * io/euidaccess.c: Likewise.
4217         * io/faccessat.c: Likewise.
4218         * io/fchdir.c: Likewise.
4219         * io/fchmod.c: Likewise.
4220         * io/fchmodat.c: Likewise.
4221         * io/fchown.c: Likewise.
4222         * io/fchownat.c: Likewise.
4223         * io/fcntl.c: Likewise.
4224         * io/flock.c: Likewise.
4225         * io/fstatfs.c: Likewise.
4226         * io/fstatfs64.c: Likewise.
4227         * io/fstatvfs.c: Likewise.
4228         * io/fstatvfs64.c: Likewise.
4229         * io/futimens.c: Likewise.
4230         * io/fxstat.c: Likewise.
4231         * io/fxstat64.c: Likewise.
4232         * io/fxstatat.c: Likewise.
4233         * io/fxstatat64.c: Likewise.
4234         * io/getcwd.c: Likewise.
4235         * io/isatty.c: Likewise.
4236         * io/lchmod.c: Likewise.
4237         * io/lchown.c: Likewise.
4238         * io/link.c: Likewise.
4239         * io/linkat.c: Likewise.
4240         * io/lseek.c: Likewise.
4241         * io/lseek64.c: Likewise.
4242         * io/lxstat64.c: Likewise.
4243         * io/mkdir.c: Likewise.
4244         * io/mkdirat.c: Likewise.
4245         * io/mkfifo.c: Likewise.
4246         * io/mkfifoat.c: Likewise.
4247         * io/open.c: Likewise.
4248         * io/open64.c: Likewise.
4249         * io/openat.c: Likewise.
4250         * io/openat64.c: Likewise.
4251         * io/pipe.c: Likewise.
4252         * io/pipe2.c: Likewise.
4253         * io/poll.c: Likewise.
4254         * io/posix_fadvise.c: Likewise.
4255         * io/posix_fadvise64.c: Likewise.
4256         * io/posix_fallocate.c: Likewise.
4257         * io/posix_fallocate64.c: Likewise.
4258         * io/read.c: Likewise.
4259         * io/readlink.c: Likewise.
4260         * io/readlinkat.c: Likewise.
4261         * io/rmdir.c: Likewise.
4262         * io/sendfile.c: Likewise.
4263         * io/sendfile64.c: Likewise.
4264         * io/statfs.c: Likewise.
4265         * io/statfs64.c: Likewise.
4266         * io/statvfs.c: Likewise.
4267         * io/statvfs64.c: Likewise.
4268         * io/symlink.c: Likewise.
4269         * io/symlinkat.c: Likewise.
4270         * io/ttyname.c: Likewise.
4271         * io/ttyname_r.c: Likewise.
4272         * io/umask.c: Likewise.
4273         * io/unlink.c: Likewise.
4274         * io/unlinkat.c: Likewise.
4275         * io/utime.c: Likewise.
4276         * io/utimensat.c: Likewise.
4277         * io/write.c: Likewise.
4278         * io/xmknod.c: Likewise.
4279         * io/xmknodat.c: Likewise.
4280         * io/xstat.c: Likewise.
4281         * io/xstat64.c: Likewise.
4282         * login/getpt.c: Likewise.
4283         * login/grantpt.c: Likewise.
4284         * login/unlockpt.c: Likewise.
4285         * math/e_acoshl.c: Likewise.
4286         * math/e_acosl.c: Likewise.
4287         * math/e_asinl.c: Likewise.
4288         * math/e_atan2l.c: Likewise.
4289         * math/e_atanhl.c: Likewise.
4290         * math/e_coshl.c: Likewise.
4291         * math/e_expl.c: Likewise.
4292         * math/e_fmodl.c: Likewise.
4293         * math/e_gammal_r.c: Likewise.
4294         * math/e_hypotl.c: Likewise.
4295         * math/e_j0l.c: Likewise.
4296         * math/e_j1l.c: Likewise.
4297         * math/e_jnl.c: Likewise.
4298         * math/e_lgammal_r.c: Likewise.
4299         * math/e_log10l.c: Likewise.
4300         * math/e_log2l.c: Likewise.
4301         * math/e_logl.c: Likewise.
4302         * math/e_powl.c: Likewise.
4303         * math/e_rem_pio2l.c: Likewise.
4304         * math/e_sinhl.c: Likewise.
4305         * math/e_sqrtl.c: Likewise.
4306         * math/fclrexcpt.c: Likewise.
4307         * math/fedisblxcpt.c: Likewise.
4308         * math/feenablxcpt.c: Likewise.
4309         * math/fegetenv.c: Likewise.
4310         * math/fegetexcept.c: Likewise.
4311         * math/fegetround.c: Likewise.
4312         * math/feholdexcpt.c: Likewise.
4313         * math/fesetenv.c: Likewise.
4314         * math/fesetround.c: Likewise.
4315         * math/feupdateenv.c: Likewise.
4316         * math/fgetexcptflg.c: Likewise.
4317         * math/fraiseexcpt.c: Likewise.
4318         * math/fsetexcptflg.c: Likewise.
4319         * math/ftestexcept.c: Likewise.
4320         * math/k_cosl.c: Likewise.
4321         * math/k_rem_pio2l.c: Likewise.
4322         * math/k_sinl.c: Likewise.
4323         * math/k_tanl.c: Likewise.
4324         * math/s_asinhl.c: Likewise.
4325         * math/s_atanl.c: Likewise.
4326         * math/s_cbrtl.c: Likewise.
4327         * math/s_erfl.c: Likewise.
4328         * math/s_expm1l.c: Likewise.
4329         * math/s_log1pl.c: Likewise.
4330         * math/s_tanhl.c: Likewise.
4331         * misc/acct.c: Likewise.
4332         * misc/brk.c: Likewise.
4333         * misc/chflags.c: Likewise.
4334         * misc/chroot.c: Likewise.
4335         * misc/fchflags.c: Likewise.
4336         * misc/fgetxattr.c: Likewise.
4337         * misc/flistxattr.c: Likewise.
4338         * misc/fremovexattr.c: Likewise.
4339         * misc/fsetxattr.c: Likewise.
4340         * misc/fsync.c: Likewise.
4341         * misc/ftruncate.c: Likewise.
4342         * misc/futimes.c: Likewise.
4343         * misc/futimesat.c: Likewise.
4344         * misc/getdomain.c: Likewise.
4345         * misc/getdtsz.c: Likewise.
4346         * misc/gethostid.c: Likewise.
4347         * misc/gethostname.c: Likewise.
4348         * misc/getloadavg.c: Likewise.
4349         * misc/getpagesize.c: Likewise.
4350         * misc/getsysstats.c: Likewise.
4351         * misc/getxattr.c: Likewise.
4352         * misc/gtty.c: Likewise.
4353         * misc/ioctl.c: Likewise.
4354         * misc/lgetxattr.c: Likewise.
4355         * misc/listxattr.c: Likewise.
4356         * misc/llistxattr.c: Likewise.
4357         * misc/lremovexattr.c: Likewise.
4358         * misc/lsetxattr.c: Likewise.
4359         * misc/lutimes.c: Likewise.
4360         * misc/madvise.c: Likewise.
4361         * misc/mincore.c: Likewise.
4362         * misc/mlock.c: Likewise.
4363         * misc/mlockall.c: Likewise.
4364         * misc/mmap.c: Likewise.
4365         * misc/mprotect.c: Likewise.
4366         * misc/msync.c: Likewise.
4367         * misc/munlock.c: Likewise.
4368         * misc/munlockall.c: Likewise.
4369         * misc/munmap.c: Likewise.
4370         * misc/preadv.c: Likewise.
4371         * misc/preadv64.c: Likewise.
4372         * misc/ptrace.c: Likewise.
4373         * misc/pwritev.c: Likewise.
4374         * misc/pwritev64.c: Likewise.
4375         * misc/readv.c: Likewise.
4376         * misc/reboot.c: Likewise.
4377         * misc/remap_file_pages.c: Likewise.
4378         * misc/removexattr.c: Likewise.
4379         * misc/revoke.c: Likewise.
4380         * misc/select.c: Likewise.
4381         * misc/setdomain.c: Likewise.
4382         * misc/setegid.c: Likewise.
4383         * misc/seteuid.c: Likewise.
4384         * misc/sethostid.c: Likewise.
4385         * misc/sethostname.c: Likewise.
4386         * misc/setregid.c: Likewise.
4387         * misc/setreuid.c: Likewise.
4388         * misc/setxattr.c: Likewise.
4389         * misc/sstk.c: Likewise.
4390         * misc/stty.c: Likewise.
4391         * misc/swapoff.c: Likewise.
4392         * misc/swapon.c: Likewise.
4393         * misc/sync.c: Likewise.
4394         * misc/syncfs.c: Likewise.
4395         * misc/syscall.c: Likewise.
4396         * misc/truncate.c: Likewise.
4397         * misc/ualarm.c: Likewise.
4398         * misc/usleep.c: Likewise.
4399         * misc/ustat.c: Likewise.
4400         * misc/utimes.c: Likewise.
4401         * misc/vhangup.c: Likewise.
4402         * misc/writev.c: Likewise.
4403         * posix/_exit.c: Likewise.
4404         * posix/alarm.c: Likewise.
4405         * posix/execve.c: Likewise.
4406         * posix/fexecve.c: Likewise.
4407         * posix/fork.c: Likewise.
4408         * posix/fpathconf.c: Likewise.
4409         * posix/getaddrinfo.c: Likewise.
4410         * posix/getegid.c: Likewise.
4411         * posix/geteuid.c: Likewise.
4412         * posix/getgid.c: Likewise.
4413         * posix/getgroups.c: Likewise.
4414         * posix/getlogin.c: Likewise.
4415         * posix/getlogin_r.c: Likewise.
4416         * posix/getpgid.c: Likewise.
4417         * posix/getpid.c: Likewise.
4418         * posix/getppid.c: Likewise.
4419         * posix/getresgid.c: Likewise.
4420         * posix/getresuid.c: Likewise.
4421         * posix/getsid.c: Likewise.
4422         * posix/getuid.c: Likewise.
4423         * posix/glob64.c: Likewise.
4424         * posix/nanosleep.c: Likewise.
4425         * posix/pathconf.c: Likewise.
4426         * posix/pause.c: Likewise.
4427         * posix/posix_madvise.c: Likewise.
4428         * posix/pread.c: Likewise.
4429         * posix/pread64.c: Likewise.
4430         * posix/pwrite.c: Likewise.
4431         * posix/pwrite64.c: Likewise.
4432         * posix/sched_getaffinity.c: Likewise.
4433         * posix/sched_getp.c: Likewise.
4434         * posix/sched_gets.c: Likewise.
4435         * posix/sched_primax.c: Likewise.
4436         * posix/sched_primin.c: Likewise.
4437         * posix/sched_rr_gi.c: Likewise.
4438         * posix/sched_setaffinity.c: Likewise.
4439         * posix/sched_setp.c: Likewise.
4440         * posix/sched_sets.c: Likewise.
4441         * posix/sched_yield.c: Likewise.
4442         * posix/setgid.c: Likewise.
4443         * posix/setlogin.c: Likewise.
4444         * posix/setpgid.c: Likewise.
4445         * posix/setresgid.c: Likewise.
4446         * posix/setresuid.c: Likewise.
4447         * posix/setsid.c: Likewise.
4448         * posix/setuid.c: Likewise.
4449         * posix/sleep.c: Likewise.
4450         * posix/spawni.c: Likewise.
4451         * posix/sysconf.c: Likewise.
4452         * posix/times.c: Likewise.
4453         * posix/wait.c: Likewise.
4454         * posix/wait3.c: Likewise.
4455         * posix/wait4.c: Likewise.
4456         * posix/waitpid.c: Likewise.
4457         * resolv/gai_sigqueue.c: Likewise.
4458         * resource/getpriority.c: Likewise.
4459         * resource/getrlimit.c: Likewise.
4460         * resource/getrusage.c: Likewise.
4461         * resource/nice.c: Likewise.
4462         * resource/setpriority.c: Likewise.
4463         * resource/setrlimit.c: Likewise.
4464         * resource/ulimit.c: Likewise.
4465         * rt/aio_cancel.c: Likewise.
4466         * rt/aio_fsync.c: Likewise.
4467         * rt/aio_read.c: Likewise.
4468         * rt/aio_sigqueue.c: Likewise.
4469         * rt/aio_suspend.c: Likewise.
4470         * rt/aio_write.c: Likewise.
4471         * rt/clock_getres.c: Likewise.
4472         * rt/clock_gettime.c: Likewise.
4473         * rt/clock_nanosleep.c: Likewise.
4474         * rt/clock_settime.c: Likewise.
4475         * rt/lio_listio.c: Likewise.
4476         * rt/mq_close.c: Likewise.
4477         * rt/mq_getattr.c: Likewise.
4478         * rt/mq_notify.c: Likewise.
4479         * rt/mq_open.c: Likewise.
4480         * rt/mq_receive.c: Likewise.
4481         * rt/mq_send.c: Likewise.
4482         * rt/mq_setattr.c: Likewise.
4483         * rt/mq_timedreceive.c: Likewise.
4484         * rt/mq_timedsend.c: Likewise.
4485         * rt/mq_unlink.c: Likewise.
4486         * rt/shm_open.c: Likewise.
4487         * rt/shm_unlink.c: Likewise.
4488         * rt/timer_create.c: Likewise.
4489         * rt/timer_delete.c: Likewise.
4490         * rt/timer_getoverr.c: Likewise.
4491         * rt/timer_gettime.c: Likewise.
4492         * rt/timer_settime.c: Likewise.
4493         * setjmp/__longjmp.c: Likewise.
4494         * setjmp/setjmp.c: Likewise.
4495         * signal/kill.c: Likewise.
4496         * signal/killpg.c: Likewise.
4497         * signal/raise.c: Likewise.
4498         * signal/sigaction.c: Likewise.
4499         * signal/sigaltstack.c: Likewise.
4500         * signal/sigblock.c: Likewise.
4501         * signal/sigignore.c: Likewise.
4502         * signal/sigintr.c: Likewise.
4503         * signal/signal.c: Likewise.
4504         * signal/sigpause.c: Likewise.
4505         * signal/sigpending.c: Likewise.
4506         * signal/sigqueue.c: Likewise.
4507         * signal/sigreturn.c: Likewise.
4508         * signal/sigset.c: Likewise.
4509         * signal/sigsetmask.c: Likewise.
4510         * signal/sigstack.c: Likewise.
4511         * signal/sigsuspend.c: Likewise.
4512         * signal/sigtimedwait.c: Likewise.
4513         * signal/sigvec.c: Likewise.
4514         * signal/sigwait.c: Likewise.
4515         * signal/sigwaitinfo.c: Likewise.
4516         * signal/sysv_signal.c: Likewise.
4517         * socket/accept.c: Likewise.
4518         * socket/accept4.c: Likewise.
4519         * socket/bind.c: Likewise.
4520         * socket/connect.c: Likewise.
4521         * socket/getpeername.c: Likewise.
4522         * socket/getsockname.c: Likewise.
4523         * socket/getsockopt.c: Likewise.
4524         * socket/isfdtype.c: Likewise.
4525         * socket/listen.c: Likewise.
4526         * socket/recv.c: Likewise.
4527         * socket/recvfrom.c: Likewise.
4528         * socket/recvmsg.c: Likewise.
4529         * socket/send.c: Likewise.
4530         * socket/sendmsg.c: Likewise.
4531         * socket/sendto.c: Likewise.
4532         * socket/setsockopt.c: Likewise.
4533         * socket/shutdown.c: Likewise.
4534         * socket/sockatmark.c: Likewise.
4535         * socket/socket.c: Likewise.
4536         * socket/socketpair.c: Likewise.
4537         * stdio-common/ctermid.c: Likewise.
4538         * stdio-common/cuserid.c: Likewise.
4539         * stdio-common/remove.c: Likewise.
4540         * stdio-common/rename.c: Likewise.
4541         * stdio-common/renameat.c: Likewise.
4542         * stdio-common/tempname.c: Likewise.
4543         * stdlib/getcontext.c: Likewise.
4544         * stdlib/makecontext.c: Likewise.
4545         * stdlib/setcontext.c: Likewise.
4546         * stdlib/swapcontext.c: Likewise.
4547         * stdlib/system.c: Likewise.
4548         * streams/fattach.c: Likewise.
4549         * streams/fdetach.c: Likewise.
4550         * streams/getmsg.c: Likewise.
4551         * streams/getpmsg.c: Likewise.
4552         * streams/putmsg.c: Likewise.
4553         * streams/putpmsg.c: Likewise.
4554         * sysdeps/unix/bsd/getpt.c: Likewise.
4555         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
4556         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
4557         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
4558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
4559         Likewise.
4560         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
4561         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
4562         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
4563         * sysvipc/msgctl.c: Likewise.
4564         * sysvipc/msgget.c: Likewise.
4565         * sysvipc/msgrcv.c: Likewise.
4566         * sysvipc/msgsnd.c: Likewise.
4567         * sysvipc/semctl.c: Likewise.
4568         * sysvipc/semget.c: Likewise.
4569         * sysvipc/semop.c: Likewise.
4570         * sysvipc/semtimedop.c: Likewise.
4571         * sysvipc/shmat.c: Likewise.
4572         * sysvipc/shmctl.c: Likewise.
4573         * sysvipc/shmdt.c: Likewise.
4574         * sysvipc/shmget.c: Likewise.
4575         * termios/tcdrain.c: Likewise.
4576         * termios/tcflow.c: Likewise.
4577         * termios/tcflush.c: Likewise.
4578         * termios/tcgetattr.c: Likewise.
4579         * termios/tcgetpgrp.c: Likewise.
4580         * termios/tcsendbrk.c: Likewise.
4581         * termios/tcsetattr.c: Likewise.
4582         * termios/tcsetpgrp.c: Likewise.
4583         * time/adjtime.c: Likewise.
4584         * time/clock.c: Likewise.
4585         * time/getitimer.c: Likewise.
4586         * time/gettimeofday.c: Likewise.
4587         * time/setitimer.c: Likewise.
4588         * time/settimeofday.c: Likewise.
4589         * time/stime.c: Likewise.
4590         * time/time.c: Likewise.
4592 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
4594         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
4595         /usr/old/bin.
4597         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
4598         instead of spaces.
4599         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
4601 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
4603         [BZ #14796]
4604         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
4605         FE_TONEAREST before applying Dekker multiplication and Knuth
4606         addition.  Clear inexact exceptions and check for exact zero
4607         results afterwards.
4608         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4609         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4610         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4611         * math/libm-test.inc (fma_test): Add more tests.
4612         (fma_test_towardzero): Likewise.
4613         (fma_test_downward): Likewise.
4614         (fma_test_upward): Likewise.
4615         * sysdeps/generic/math_private.h (default_libc_fesetround): New
4616         function.
4617         (libc_fesetround): New macro.
4618         (libc_fesetroundf): Likewise.
4619         (libc_fesetroundl): Likewise.
4620         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
4621         function.
4622         (libc_fesetround_387): Likewise.
4623         (libc_fesetroundf): New macro.
4624         (libc_fesetround): Likewise.
4625         (libc_fesetroundl): Likewise.
4626         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
4627         function.
4628         (libc_fesetroundf): New macro.
4629         (libc_fesetround): Likewise.
4630         (libc_fesetroundl): Likewise.
4631         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
4632         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
4633         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
4634         libm_hidden_ver.
4635         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
4636         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
4637         libm_hidden_def.
4638         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
4639         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
4640         libm_hidden_ver.
4641         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
4642         libm_hidden_def.
4644         [BZ #3439]
4645         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
4646         integer constant usable in #if and use that to give value to enum
4647         constant.
4648         (FE_DIVBYZERO): Likewise.
4649         (FE_UNDERFLOW): Likewise.
4650         (FE_OVERFLOW): Likewise.
4651         (FE_INVALID): Likewise.
4652         (FE_INVALID_SNAN): Likewise.
4653         (FE_INVALID_ISI): Likewise.
4654         (FE_INVALID_IDI): Likewise.
4655         (FE_INVALID_ZDZ): Likewise.
4656         (FE_INVALID_IMZ): Likewise.
4657         (FE_INVALID_COMPARE): Likewise.
4658         (FE_INVALID_SOFTWARE): Likewise.
4659         (FE_INVALID_SQRT): Likewise.
4660         (FE_INVALID_INTEGER_CONVERSION): Likewise.
4661         (FE_TONEAREST): Likewise.
4662         (FE_TOWARDZERO): Likewise.
4663         (FE_UPWARD): Likewise.
4664         (FE_DOWNWARD): Likewise.
4665         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
4666         (FE_DIVBYZERO): Likewise.
4667         (FE_OVERFLOW): Likewise.
4668         (FE_UNDERFLOW): Likewise.
4669         (FE_INEXACT): Likewise.
4670         (FE_TONEAREST): Likewise.
4671         (FE_DOWNWARD): Likewise.
4672         (FE_UPWARD): Likewise.
4673         (FE_TOWARDZERO): Likewise.
4674         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
4675         (FE_UNDERFLOW): Likewise.
4676         (FE_OVERFLOW): Likewise.
4677         (FE_DIVBYZERO): Likewise.
4678         (FE_INVALID): Likewise.
4679         (FE_TONEAREST): Likewise.
4680         (FE_TOWARDZERO): Likewise.
4681         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
4682         (FE_OVERFLOW): Likewise.
4683         (FE_UNDERFLOW): Likewise.
4684         (FE_DIVBYZERO): Likewise.
4685         (FE_INEXACT): Likewise.
4686         (FE_TONEAREST): Likewise.
4687         (FE_TOWARDZERO): Likewise.
4688         (FE_UPWARD): Likewise.
4689         (FE_DOWNWARD): Likewise.
4690         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
4691         (FE_DIVBYZERO): Likewise.
4692         (FE_OVERFLOW): Likewise.
4693         (FE_UNDERFLOW): Likewise.
4694         (FE_INEXACT): Likewise.
4695         (FE_TONEAREST): Likewise.
4696         (FE_DOWNWARD): Likewise.
4697         (FE_UPWARD): Likewise.
4698         (FE_TOWARDZERO): Likewise.
4700 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
4702         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
4704 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
4706         * scripts/cross-test-ssh.sh (command): Use newlines to separate
4707         commands.  Quote $PWD.
4708         (blacklist_exports): Don't use remove_newlines.  Replace "declare
4709         -x" by "export".
4710         (remove_newlines): Remove.
4712 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4714         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
4715         * stdlib/stdlib.h (atof): Moved to ...
4716         * include/bits/stdlib-float.h: Here.  New file.
4717         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
4718         * stdlib/bits/stdlib-float.h: New file.
4719         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
4720         -mno-sse -mno-mmx.
4721         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
4722         <xmmintrin.h>.
4724 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
4726         * conform/conformtest.pl (@headers): Add fenv.h.
4727         * conform/data/fenv.h-data: New file.
4728         * include/fenv.h [_ISOMAC]: Disable all contents of file except
4729         include of <math/fenv.h>.
4731         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
4732         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
4733         && !UNIX98].  Enables tests for XOPEN2K8.
4734         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
4735         POSIX2008]: Likewise.
4737         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
4738         (struct rusage): Do not expect type or its members.
4740         [BZ #3439]
4741         * math/math.h (FP_NAN): Define macro to integer constant usable in
4742         #if and use that to give value to enum constant.
4743         (FP_INFINITE): Likewise.
4744         (FP_ZERO): Likewise.
4745         (FP_SUBNORMAL): Likewise.
4746         (FP_NORMAL): Likewise.
4748 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
4750         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
4751         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
4752         arguments.
4754 2012-11-02  Roland McGrath  <roland@hack.frob.com>
4756         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
4757         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
4758         autoconf-time if not.
4759         * configure.in: Remove AC_PREREQ.
4761 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4763         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
4764         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
4765         of the internal implementation.
4767 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
4769         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
4770         except include of <misc/sys/syslog.h>.
4772 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
4774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
4775         function returns with a NULL context exit with zero.
4777 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4779         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
4781 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
4783         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
4784         (run_program_cmd): This.
4785         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
4786         (tst_langinfo): New variable.  Use it.
4788 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
4790         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
4791         floating point opcodes.
4793 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
4795         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
4796         variable.
4798         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
4800         * sysdeps/mach/hurd/powerpc: Remove directory.
4801         * sysdeps/mach/powerpc: Likewise.
4803 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
4805         * scripts/check-local-headers.sh: Ignore c++ headers.
4807 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
4809         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
4810         __libc_cleanup_region_start argument.
4812 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
4814         [BZ #14784]
4815         [BZ #14785]
4816         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
4817         x * y using scaling, not as x * y + z.
4818         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4819         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4820         * math/libm-test.inc (fma_test): Add more tests.
4821         (fma_test_towardzero): Likewise.
4822         (fma_test_downward): Likewise.
4823         (fma_test_upward): Likewise.
4825 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
4827         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
4829 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
4831         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
4832         New variable.
4834 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
4836         * rt/tst-shm.c (worker): Correct checking for mmap failure.
4838 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
4840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4841         Fix sort order.
4842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4843         Likewise.
4845 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4848         Fix the order of the list for glibc 2.17.
4849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4850         Likewise.
4852 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
4854         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4856 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
4858         [BZ #14610]
4859         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
4860         for low part of x being zero before using __atanl (y).
4861         * math/libm-test.inc (atan2_test): Add another test.
4863         * manual/install.texi (Configuring and compiling): Document
4864         general use of test-wrapper and test-wrapper-env.
4865         * INSTALL: Regenerated.
4867         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
4868         (__fma): Do not extract and scale down low bits on after-rounding
4869         systems when result rounded to normal precision would have normal
4870         exponent.
4871         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
4872         (__fmal): Do not extract and scale down low bits on after-rounding
4873         systems when result rounded to normal precision would have normal
4874         exponent.
4875         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
4876         (__fmal): Do not extract and scale down low bits on after-rounding
4877         systems when result rounded to normal precision would have normal
4878         exponent.
4879         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
4880         macro.
4881         (fma_test): Add more tests.
4882         (fma_test_towardzero): Likewise.
4883         (fma_test_downward): Likewise.
4884         (fma_test_upward): Likewise.
4886 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4888         * sysdeps/i386/tininess.h: Renamed to ...
4889         * sysdeps/x86/tininess.h: This.
4890         * sysdeps/x86_64/tininess.h: Removed.
4892 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
4894         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
4895         input.  Use $(build-program-cmd).
4896         ($(objpfx)tst-array1-static.out): Likewise.
4897         ($(objpfx)tst-array2.out): Likewise.
4898         ($(objpfx)tst-array3.out): Likewise.
4899         ($(objpfx)tst-array4.out): Likewise.
4900         ($(objpfx)tst-array5.out): Likewise.
4901         ($(objpfx)tst-array5-static.out): Likewise.
4903 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
4905         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
4906         if defined.
4908         * nss/nsswitch.h (nss_interface_function): Provide new
4909         macro for use with NSS functions.
4910         * grp/initgroups.c: Use new macro.
4911         * nss/getXXbyYY.c: Likewise.
4912         * nss/getXXbyYY_r.c: Likewise.
4913         * nss/getXXent.c: Likewise.
4914         * nss/getXXent_r.c: Likewise.
4915         * sysdeps/posix/getaddrinfo.c: Likewise.
4917 2012-10-30  Andreas Jaeger  <aj@suse.de>
4919         * po/ru.po: Update Russion translation from translation project.
4921 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
4923         [BZ #14152]
4924         [BZ #14783]
4925         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
4926         result and shift together with sticky bit instead of replicating
4927         round-to-nearest rounding.
4928         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4929         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4930         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
4931         missing underflow exceptions.
4932         (fma_test_towardzero): Add more tests.
4933         (fma_test_downward): Likewise.
4934         (fma_test_upward): Likewise.
4936         [BZ #14047]
4937         * sysdeps/generic/tininess.h: New file.
4938         * sysdeps/i386/tininess.h: Likewise.
4939         * sysdeps/sh/tininess.h: Likewise.
4940         * sysdeps/x86_64/tininess.h: Likewise.
4941         * stdlib/tst-strtod-underflow.c: Likewise.
4942         * stdlib/tst-tininess.c: Likewise.
4943         * stdlib/strtod_l.c: Include <tininess.h>.
4944         (round_and_return): Do not set errno for exact underflow cases.
4945         Force an underflow exception when setting errno for underflow.
4946         Determine underflow based on rounding to normal precision if
4947         TININESS_AFTER_ROUNDING.
4948         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
4949         ERANGE for exact underflow cases.
4950         * stdlib/Makefile (tests): Add tst-tininess and
4951         tst-strtod-underflow.
4952         ($(objpfx)tst-tininess): Use $(link-libm).
4953         ($(objpfx)tst-strtod-underflow): Likewise.
4955 2012-10-30  Andreas Jaeger  <aj@suse.de>
4957         [BZ#14767]
4958         * elf/Makefile (tests): Remove conditional for have-initfini-array
4959         since this is now always required and the variable does not exist
4960         anymore.
4961         (tests-static): Likewise.
4962         (modules-names): Likewise.
4964         * po/eo.po: Add Esperanto translation from translation project.
4966         * elf/tst-array1.c (fini_array): Make writeable so that it can be
4967         merged with constructor/destructor.
4968         (init_array): Likewise.
4969         * elf/tst-array2dep.c (fini_array): Likewise.
4970         (init_array): Likewise.
4972 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
4974         * manual/message.texi: Delete @cartouche tags.
4976 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
4978         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
4979         EOPNOTSUPP.
4980         * sysdeps/mach/hurd/fsync.c: Likewise.
4982         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
4983         [_POSIX_REALTIME_SIGNALS]: Change condition to
4984         [_POSIX_REALTIME_SIGNALS > 0].
4986 2012-10-27  Andreas Jaeger  <aj@suse.de>
4988         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
4989         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
4990         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
4991         [__WORDSIZE != 64]: Likewise.
4993 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
4995         *  iconvdata/tst-table.sh: Remove ${SHELL}.
4996         *  iconvdata/tst-tables.sh: Likewise.
4998 2012-10-25  David S. Miller  <davem@davemloft.net>
5000         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5001         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
5002         of strtoull.
5004         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
5005         ifunc-impl-list.c
5006         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5007         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
5008         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
5009         file.
5011 2012-10-25  Roland McGrath  <roland@hack.frob.com>
5013         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5014         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
5015         __getdirentries.
5017 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5018             Jim Blandy  <jimb@codesourcery.com>
5020         * scripts/cross-test-ssh.sh: New file.
5021         * manual/install.texi (Configuring and compiling): Document use of
5022         cross-test-ssh.sh.
5023         * INSTALL: Regenerated.
5025 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
5027         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
5028         EOPNOTSUPP.
5030 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5032         * Makeconfig (run-program-prefix): Fix comment.
5034 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5035             Jim Blandy  <jimb@codesourcery.com>
5037         * Makeconfig (test-wrapper): New variable,
5038         (test-wrapper-env): Likewise.
5039         [$(cross-compiling) = yes && $(test-wrapper) != ""]
5040         (run-built-tests): Define to yes.
5041         (run-program-prefix): Use $(test-wrapper).
5042         (built-program-cmd): Likewise.
5043         * Rules (make-test-out): Use $(test-wrapper-env) and
5044         $(host-built-program-cmd).
5045         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
5046         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
5047         tst-pathopt.sh.
5048         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
5049         $(test-wrapper-env) to tst-rtld-load-self.sh.
5050         ($(objpfx)order2.out): Use $(test-wrapper).
5051         ($(objpfx)tst-initorder.out): Likewise.
5052         ($(objpfx)tst-initorder2.out): Likewise.
5053         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
5054         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
5055         (test_wrapper_env): New variable.  Use it to run ld.so.
5056         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
5057         Use it to run ld.so.
5058         (test_wrapper_env): Likewise.
5059         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
5060         $(test-wrapper) to run-iconv-test.sh.
5061         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
5062         (ICONV): Use $test_wrapper.
5063         * posix/Makefile ($(objpfx)globtest.out): Pass
5064         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
5065         globtest.sh, not $(run-program-prefix).
5066         * posix/globtest.sh (run_via_rtld_prefix): New variable.
5067         (test_wrapper): Likewise.
5068         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
5069         set together with run_via_rtld_prefix.
5070         (run_program_prefix): Define in terms of test_wrapper and
5071         run_via_rtld_prefix.
5073 2012-10-24  Roland McGrath  <roland@hack.frob.com>
5075         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
5076         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
5077         Targets removed.
5079         [BZ #14743]
5080         * include/time.h: Remove librt_hidden_proto (clock_gettime).
5081         Declare __clock_getres, __clock_gettime, __clock_settime,
5082         __clock_nanosleep, and __clock_getcpuclockid.
5083         * rt/clock_gettime.c: Define __clock_gettime as an alias.
5084         Remove librt_hidden_def (clock_gettime).
5085         * sysdeps/unix/clock_gettime.c: Likewise.
5086         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
5087         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
5088         * rt/clock_getres.c: Define __clock_getres as an alias.
5089         * sysdeps/posix/clock_getres.c: Likewise.
5090         * rt/clock_settime.c: Define __clock_settime as an alias.
5091         * sysdeps/unix/clock_settime.c: Likewise.
5092         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
5093         * sysdeps/unix/clock_nanosleep.c: Likewise.
5094         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5095         * rt/clock-compat.c: New file.
5096         * rt/Makefile (librt-routines): Add clock-compat and move
5097         $(clock-routines) to ...
5098         (routines): ... here, new variable.
5099         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
5100         Don't add get_clockfreq here.
5101         * rt/Versions (libc: GLIBC_2.17): New version set.
5102         Add clock_* symbols here.
5103         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
5104         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
5105         (GLIBC_2.17): Add clock_* symbols.
5106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5107         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5108         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5110         Likewise.
5111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5112         Likewise.
5113         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5114         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5115         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5117         * NEWS: Mention the move.
5119         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
5120         Use __open, __read, __close rather than their public counterparts.
5121         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5122         (__get_clockfreq_via_cpuinfo): Likewise.
5123         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
5124         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
5126         * config.h.in (HAVE_IFUNC): New #undef.
5127         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
5128         was successful.
5129         * configure: Regenerated.
5131 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
5133         * configure.in: Move READELF check to start of file.
5134         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
5135         libc_cv_asm_gnu_indirect_function in the process.
5136         * configure: Regenerated.
5138 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
5140         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
5141         send the output to /dev/null.
5142         (libc_cv_cc_with_libunwind): Likewise.
5143         (libc_cv_as_noexecstack): Likewise.
5144         * configure: Regenerate.
5146 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5148         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
5150         * posix/globtest.sh (TMPDIR): Do not set.
5151         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
5152         (testout): Likewise.
5154 2012-10-24  Andreas Jaeger  <aj@suse.de>
5156         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
5157         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
5158         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
5159         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
5160         posix_fadvise64, posix_fallocate64.
5162         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
5163         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
5164         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
5165         Likewise.
5166         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
5167         Likewise.
5168         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
5170         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
5171         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
5172         <bits/fcntl-linux.h>.
5173         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
5175         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
5176         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
5177         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
5178         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
5179         [__WORDSIZE != 64]: Likewise.
5181 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5183         * Makeconfig (run-built-tests): New variable.
5184         * Rules [$(cross-compiling) = yes]: Change condition to
5185         [$(run-built-tests) = no].
5186         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
5187         to [$(run-built-tests) = yes].
5188         * elf/Makefile [$(cross-compiling) = no]: Likewise
5189         * grp/Makefile [$(cross-compiling) = no]: Likewise.
5190         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
5191         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
5192         * intl/Makefile [$(cross-compiling) = no]: Likewise.
5193         * io/Makefile [$(cross-compiling) = no]: Likewise.
5194         * libio/Makefile [$(cross-compiling) = no]: Likewise.
5195         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
5196         * misc/Makefile [$(cross-compiling) = no]: Likewise.
5197         * posix/Makefile [$(cross-compiling) = no]: Likewise.
5198         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
5199         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
5200         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
5201         * string/Makefile [$(cross-compiling) = no]: Likewise.
5203         * posix/Makefile ($(objpfx)globtest.out): Pass
5204         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
5205         $(rtld-installed-name).
5206         * posix/globtest.sh (elf_objpfx): Remove variable.
5207         (rtld_installed_name): Likewise.
5208         (library_path): Likewise.
5209         (run_program_prefix): New variable.  Use for running globtest
5210         binary.
5212 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
5213             Joseph Myers  <joseph@codesourcery.com>
5215         * Makeconfig (host-built-program-cmd): New variable.
5216         * elf/Makefile (tst-stackguard1-ARGS): Use
5217         $(host-built-program-cmd).
5218         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
5219         (tst-spawn-ARGS): Likewise.
5220         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
5222 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5223             Jim Blandy  <jimb@codesourcery.com>
5225         * Makeconfig (run-via-rtld-prefix): New variable.
5226         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
5227         (built-program-cmd): Likewise.
5229 2012-10-22  Andreas Jaeger  <aj@suse.de>
5231         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
5232         __O_RSYNC if it exists, otherwise to O_SYNC.
5234 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
5235             Joseph Myers  <joseph@codesourcery.com>
5237         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
5238         /dev/null.
5239         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
5240         from /dev/null
5241         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
5242         /dev/null.
5244 2012-10-22  Andreas Jaeger  <aj@suse.de>
5246         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
5247         Define always.
5248         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
5250         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5251         bits/fcntl-linux.h.
5253         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
5254         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
5256         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
5257         to __O_LARGEFILE.
5258         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
5259         to __O_LARGEFILE.
5261 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
5262             Joseph Myers  <joseph@codesourcery.com>
5264         * config.make.in (NM): New variable.
5266 2012-10-21  Andreas Jaeger  <aj@suse.de>
5268         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
5269         definitions and declarations that are provided by
5270         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
5272 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5274         [BZ #14683]
5275         * elf/Makefile (tests-static): Add tst-leaks1-static.
5276         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
5277         ($(objpfx)tst-leaks1-static): New rule.
5278         ($(objpfx)tst-leaks1-static-mem): Likewise.
5279         (tst-leaks1-static-ENV): New macro.
5280         * elf/dl-open.c (dl_open_worker): Check the main application
5281         only if SHARED is defined.
5282         * elf/tst-leaks1-static.c: New file.
5284 2012-10-20  Andreas Jaeger  <aj@suse.de>
5286         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
5287         generic values for Linux.
5288         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
5289         and declarations that are provided by <bits/fcntl-linux.h> and
5290         include <bits/fcntl-linux.h>.
5291         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5292         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5294 2012-10-20  Roland McGrath  <roland@hack.frob.com>
5296         * io/fcntl.h: Move include of <bits/types.h> to the top and
5297         include it unconditionally.
5299 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5301         * wcsmbs/Makefile (tests-ifunc): New variable.
5302         (tests): Add $(tests-ifunc).
5303         * wcsmbs/test-wcschr-ifunc.c: New file.
5304         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
5305         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
5306         * wcsmbs/test-wcslen-ifunc.c: Likewise.
5307         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
5308         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
5310         * string/Makefile (tests-ifunc): New variable.
5311         (tests): Add $(tests-ifunc).
5312         * string/test-memccpy.c (TEST_NAME): New macro.
5313         * string/test-memchr.c (TEST_NAME): Likewise.
5314         * string/test-memcmp.c (TEST_NAME): Likewise.
5315         * string/test-memcpy.c (TEST_NAME): Likewise.
5316         * string/test-memmem.c (TEST_NAME): Likewise.
5317         * string/test-memmove.c (TEST_NAME): Likewise.
5318         * string/test-memset.c (TEST_NAME): Likewise.
5319         * string/test-rawmemchr.c (TEST_NAME): Likewise.
5320         * string/test-stpcpy.c (TEST_NAME): Likewise.
5321         * string/test-stpncpy.c (TEST_NAME): Likewise.
5322         * string/test-strcasecmp.c (TEST_NAME): Likewise.
5323         * string/test-strcasestr.c (TEST_NAME): Likewise.
5324         * string/test-strcat.c (TEST_NAME): Likewise.
5325         * string/test-strchr.c (TEST_NAME): Likewise.
5326         * string/test-strcmp.c(TEST_NAME): Likewise.
5327         * string/test-strcpy.c (TEST_NAME): Likewise.
5328         * string/test-strcspn.c (TEST_NAME): Likewise.
5329         * string/test-strlen.c (TEST_NAME): Likewise.
5330         * string/test-strncasecmp.c (TEST_NAME): Likewise.
5331         * string/test-strncmp.c (TEST_NAME): Likewise.
5332         * string/test-strncpy.c (TEST_NAME): Likewise.
5333         * string/test-strnlen.c (TEST_NAME): Likewise.
5334         * string/test-strpbrk.c (TEST_NAME): Likewise.
5335         * string/test-strrchr.c (TEST_NAME): Likewise.
5336         * string/test-strspn.c (TEST_NAME): Likewise.
5337         * string/test-strstr.c (TEST_NAME): Likewise.
5338         * string/test-bcopy-ifunc.c: New file.
5339         * string/test-bzero-ifunc.c: Likewise.
5340         * string/test-memccpy-ifunc.c: Likewise.
5341         * string/test-memchr-ifunc.c: Likewise.
5342         * string/test-memcmp-ifunc.c: Likewise.
5343         * string/test-memcpy-ifunc.c: Likewise.
5344         * string/test-memmem-ifunc.c: Likewise.
5345         * string/test-memmove-ifunc.c: Likewise.
5346         * string/test-mempcpy-ifunc.c: Likewise.
5347         * string/test-memset-ifunc.c: Likewise.
5348         * string/test-rawmemchr-ifunc.c: Likewise.
5349         * string/test-stpcpy-ifunc.c: Likewise.
5350         * string/test-stpncpy-ifunc.c: Likewise.
5351         * string/test-strcasecmp-ifunc.c: Likewise.
5352         * string/test-strcasestr-ifunc.c: Likewise.
5353         * string/test-strcat-ifunc.c: Likewise.
5354         * string/test-strchr-ifunc.c: Likewise.
5355         * string/test-strchrnul-ifunc.c: Likewise.
5356         * string/test-strcmp-ifunc.c: Likewise.
5357         * string/test-strcpy-ifunc.c: Likewise.
5358         * string/test-strcspn-ifunc.c: Likewise.
5359         * string/test-strlen-ifunc.c: Likewise.
5360         * string/test-strncasecmp-ifunc.c: Likewise.
5361         * string/test-strncat-ifunc.c: Likewise.
5362         * string/test-strncmp-ifunc.c: Likewise.
5363         * string/test-strncpy-ifunc.c: Likewise.
5364         * string/test-strnlen-ifunc.c: Likewise.
5365         * string/test-strpbrk-ifunc.c: Likewise.
5366         * string/test-strrchr-ifunc.c: Likewise.
5367         * string/test-strspn-ifunc.c: Likewise.
5368         * string/test-strstr-ifunc.c: Likewise.
5370         * debug/Makefile (tests-ifunc): New variable.
5371         (tests): Add $(tests-ifunc).
5372         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
5373         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
5374         * debug/test-stpcpy_chk-ifunc.c: New file.
5375         * debug/test-strcpy_chk-ifunc.c: Likewise.
5377 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
5379         [BZ #13601]
5380         * elf/dl-load.c (open_verify): Retry read if the entire ELF
5381         header is not read in.
5383 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
5385         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
5386         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
5387         directly.  Pass built executable to script as
5388         $(built-program-cmd).
5389         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
5390         $testprogram without using LD_LIBRARY_PATH and $ldso.
5392         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
5393         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
5394         $(rtld-installed-name).
5395         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
5396         (rtld_installed_name): Likewise.
5397         (library_path): Likewise.
5398         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
5399         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
5400         $(run-program-prefix) to tst-tables.sh.
5401         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
5402         it to run tst-table-from and tst-table-to.
5403         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
5404         Pass it to tst-table.sh.
5405         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
5406         $(run-program-prefix) to tst-gettext.sh.
5407         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
5408         tst-translit.sh.
5409         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
5410         tst-gettext2.sh.
5411         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
5412         to run tst-gettext.
5413         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
5414         to run tst-gettext2.
5415         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
5416         to run tst-translit.
5417         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
5418         $(run-program-prefix) to tst-mtrace.sh.
5419         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
5420         to run tst-mtrace.
5421         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
5422         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
5423         $(rtld-installed-name).
5424         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
5425         (rtld_installed_name): Likewise.
5426         (run_program_prefix): New variable.  Use it to run wordexp-test.
5428         * Makeconfig (ARCH): Remove all definitions.
5429         (machine): Likewise.
5430         [ARCH]: Remove conditional code.
5431         [!objdir]: Give error.
5432         [!objdir] (objpfx): Remove.
5433         [!objdir] (common-objpfx): Likewise.
5434         [!objdir] (common-objdir): Likewise.
5435         * configure.in (config_makefile): Remove.  Hardcode Makefile in
5436         AC_CONFIG_FILES call.
5437         * configure: Regenerated.
5439         [BZ #13888]
5440         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
5441         or TMPDIR.
5442         (testout): Likewise.
5444         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
5445         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
5446         $(rtld-installed-name).
5447         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
5448         (rtld_installed_name): Likwise.
5449         (runit): Remove function.
5450         (run_getconf): New variable,  Use it for running getconf binary.
5452 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
5454         [BZ #14716]
5455         * string/test-memmem.c (check_result): New function.
5456         (do_one_test): Use it.
5457         (check1): New function.
5458         (test_main): Use it.
5460 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5462         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
5464 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
5466         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
5467         (_G_LSEEK64): Likewise.
5468         (_G_MMAP64): Likewise.
5469         (_G_FSTAT64): Likewise.
5470         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
5471         (_G_LSEEK64): Likewise.
5472         (_G_MMAP64): Likewise.
5473         (_G_FSTAT64): Likewise.
5474         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
5475         unconditional.  Call __mmap64 directly.
5476         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
5477         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
5478         __lseek64 directly.
5479         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
5480         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
5481         __mmap64 directly.
5482         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
5483         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5484         __lseek64 directly.
5485         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
5486         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
5487         __lseek64 directly.
5488         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
5489         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
5490         __lseek64 directly.
5491         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
5492         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
5493         __fxstat64 directly.
5494         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
5495         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
5496         unconditional.
5497         (freopen64) [!_G_OPEN64]: Remove conditional code.
5498         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
5499         unconditional.
5500         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
5501         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
5502         unconditional.
5503         (ftello64) [!_G_LSEEK64]: Remove conditional code.
5504         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
5505         unconditional.
5506         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5507         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
5508         unconditional.
5509         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
5510         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
5511         unconditional.
5512         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5513         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
5514         unconditional.
5515         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
5516         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
5517         unconditional.
5518         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
5520 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5522         [BZ #12140]
5523         * manual/memory.texi (Malloc Tunable Parameters): Add note
5524         about free list pointers overwriting some perturb bytes.
5525         Wording suggested by Roland McGrath.
5527 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
5529         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
5530         (lgamma_test): Likewise.
5531         (tgamma_test): Likewise.
5533 2012-10-16  Florian Weimer  <fweimer@redhat.com>
5535         [BZ #14700]
5536         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
5537         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
5539 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
5541         * NEWS: Mention BZ #14716.
5542         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
5543         when removing AVAILABLE1_USES_J macro.
5545 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5547         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
5548         (__bswap_64): __uint64_t for unsigned 64-bit int.
5550 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
5552         * include/string.h (memmem): Declare libc hidden alias.
5553         * string/memmem.c (memmem): Define libc hidden alias.
5554         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
5555         __read, __close instead of open, read, close.
5557 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5559         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
5560         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
5561         global and hidden.
5562         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
5563         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
5564         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
5565         Likewise.
5566         (__rawmemchr_sse2): Likewise.
5567         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
5568         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
5569         (__strchr_sse2): Likewise.
5570         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
5571         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
5572         (__strcasecmp_sse2): Likewise.
5573         (__strncasecmp_sse2): Likewise.
5574         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
5575         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
5576         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
5577         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
5578         (__strrchr_sse2): Likewise.
5579         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
5580         ifunc-impl-list.c.
5581         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
5582         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5583         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5584         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5585         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5586         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5587         * sysdeps/x86_64/multiarch/memset.S: Likewise.
5588         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5589         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
5590         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
5591         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
5592         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
5593         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
5594         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
5595         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
5596         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
5597         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
5598         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
5599         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
5600         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
5601         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
5602         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
5603         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
5604         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
5605         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
5606         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5607         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
5608         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
5609         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
5610         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
5612         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
5613         global and hidden.
5614         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
5615         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
5616         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
5617         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
5618         Likewise.
5619         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
5620         Likewise.
5621         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
5622         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
5623         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
5624         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
5625         ifunc-impl-list.c.
5626         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5627         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5628         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5629         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5630         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5631         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5632         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5633         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5634         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5635         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5636         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5637         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5638         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5639         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
5640         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
5641         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5642         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
5643         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
5644         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5645         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5646         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5647         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5648         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5649         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5650         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5651         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
5652         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
5653         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
5654         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
5655         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5656         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
5657         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5658         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5659         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
5660         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5661         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5662         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5663         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5664         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5665         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5666         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
5668         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
5669         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
5670         * include/ifunc-impl-list.h: New file.
5671         * misc/ifunc-impl-list.c: Likewise.
5672         * misc/Makefile (routines): Add ifunc-impl-list.
5673         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
5674         * string/test-string.h: Include <ifunc-impl-list.h>.
5675         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
5676         impl_array): New variables.
5677         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
5678         are defined.
5679         (test_init): Call __libc_ifunc_impl_list to initialize
5680         func_list if TEST_IFUNC and TEST_NAME are defined.
5682         * string/Makefile (strop-tests): Add bcopy and bzero.
5683         * string/test-bcopy.c: New file.
5684         * string/test-bzero.c: Likewise.
5685         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
5686         defined.
5687         * string/test-memset.c: Support bzero test if TEST_BZERO is
5688         defined.
5689         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
5690         __libc_memmove.
5691         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
5692         __libc_memset.
5693         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
5694         of memset.
5696 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
5698         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
5699         * configure: Regenerated.
5701         * Makeconfig (+link-static-before-libc): Don't include
5702         $(link-static-libc).
5704         * libio/libio.h (_IO_pos_t): Remove.
5706 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
5708         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
5709         McGrath.
5711 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
5713         * crypt/crypt-entry.c: Include fips-private.h.
5714         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
5715         * crypt/md5c-test.c (main): Tolerate disabled MD5.
5716         * sysdeps/unix/sysv/linux/fips-private.h: New file.
5717         * sysdeps/generic/fips-private.h: New file, dummy fallback.
5719 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
5721         * crypt/crypt-private.h: Include stdbool.h.
5722         (_ufc_setup_salt_r): Return bool.
5723         * crypt/crypt-entry.c: Include errno.h.
5724         (__crypt_r): Return NULL with EINVAL for bad salt.
5725         * crypt/crypt_util.c (bad_for_salt): New.
5726         (_ufc_setup_salt_r): Check that salt is long enough and within
5727         the specified alphabet.
5728         * crypt/badsalttest.c: New file.
5729         * crypt/Makefile (tests): Add it.
5730         ($(objpfx)badsalttest): New.
5732 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5734         * NEWS: Add entry for BZ #14602.
5736 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
5738         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
5739         type-generic.
5740         * math/libm-test.inc: Update comment listing what functions and
5741         macros are tested.
5742         (isgreater_test): New function.
5743         (isgreaterequal_test): Likewise.
5744         (isless_test): Likewise.
5745         (islessequal_test): Likewise.
5746         (islessgreater_test): Likewise.
5747         (isunordered_test): Likewise.
5748         (main): Call the new functions.
5750 2012-10-09  Roland McGrath  <roland@hack.frob.com>
5752         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
5753         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
5754         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
5755         * sysdeps/i386/configure: Regenerated.
5756         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
5757         * sysdeps/mach/configure: Regenerated.
5758         * sysdeps/mach/hurd/configure: Regenerated.
5759         * sysdeps/powerpc/configure: Regenerated.
5760         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5761         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5762         * sysdeps/s390/s390-32/configure: Regenerated.
5763         * sysdeps/s390/s390-64/configure: Regenerated.
5764         * sysdeps/sh/configure: Regenerated.
5765         * sysdeps/sparc/configure: Regenerated.
5766         * sysdeps/unix/sysv/linux/configure: Regenerated.
5767         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
5768         * sysdeps/x86_64/configure: Regenerated.
5770         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
5771         defined.  Don't check if MAP is NULL.
5773 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
5775         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
5776         (_G_stat64): Likewise.
5777         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
5778         (_G_stat64): Likewise.
5779         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
5780         instead of struct _G_stat64.
5781         * libio/fileops.c (mmap_remap_check): Likewise.
5782         (decide_maybe_mmap): Likewise.
5783         (_IO_new_file_seekoff): Likewise.
5784         (_IO_file_stat): Likewise.
5785         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
5786         _G_off64_t.
5787         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
5788         instead of struct _G_stat64.
5789         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
5791 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
5793         [BZ #14602]
5794         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
5795         Replace with ...
5796         (CHECK_EOL): New macro.
5797         (two_way_short_needle): Check beginning of haystack for EOL.  Use
5798         CHECK_EOL.
5799         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
5800         Replace with CHECK_EOL.
5801         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
5802         Replace with CHECK_EOL.
5804 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
5806         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
5807         type-generic.
5808         * math/libm-test.inc: Update comment listing what functions and
5809         macros are tested.
5810         (finite_test): New function.
5811         (isinf_test): Likewise.
5812         (isnan_test): Likewise.
5813         (fpclassify_test): Test subnormal input.
5814         (isfinite_test): Likewise.
5815         (isnormal_test): Likewise.
5816         (main): Call the new functions.
5818 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
5820         [BZ #14660]
5821         * Makerules (%.dynsym): Force C locale when running
5822         $(OBJDUMP) --dynamic-syms.
5824 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
5826         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
5827         <stdint.h>.
5829 2012-10-06  David S. Miller  <davem@davemloft.net>
5831         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
5832         upper 32-bits of the length value in %o2 since we use branch-on-register
5833         tests which consider the entire 64-bit register.
5835 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
5837         * string/test-strstr.c (check2): Add a test for page boundary.
5839 2012-10-05  David S. Miller  <davem@davemloft.net>
5841         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
5842         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
5843         file.
5844         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
5845         sysdep_routines.
5846         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
5847         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
5848         and bzero when HWCAP_SPARC_CRYPTO is present.
5850 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
5852         [BZ #14602]
5853         * string/test-strstr.c (check2): New function.
5854         (test_main): Call check2.
5856         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
5857         and bug-strchr1.
5858         * string/bug-strcasestr1.c (do_test): Moved to ...
5859         * string/test-strcasestr.c (check1): Here.  New function.
5860         (do_one_test): Break out result checking code into ...
5861         (check_result): This.  New function.
5862         (do_one_test): Call check_result.
5863         (test_main): Call check1.
5864         * string/bug-strchr1.c (do_test): Moved to ...
5865         * string/test-strchr.c (check1): Here.  New function.
5866         (do_one_test): Break out result checking code into ...
5867         (check_result): This.  New function.
5868         (do_one_test): Call check_result.
5869         (test_main): Call check1.
5870         * string/bug-strstr1.c (main): Moved to ...
5871         * string/test-strstr.c (check1): Here.  New function.
5872         (do_one_test): Break out result checking code into ...
5873         (check_result): This.  New function.
5874         (do_one_test): Call check_result.
5875         (test_main): Call check1.
5876         * string/bug-strcasestr1.c: Removed.
5877         * string/bug-strchr1.c: Likewise.
5878         * string/bug-strstr1.c: Likewise.
5880         * elf/Makefile (dl-routines): Add hwcaps.
5881         * elf/dl-support.c (_dl_important_hwcaps): Removed.
5882         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
5883         (_dl_important_hwcaps): Moved to ...
5884         * elf/dl-hwcaps.c: Here.  New file.
5885         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
5887         [BZ #14557]
5888         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
5889         if IS_IN_rtld isn't defined.
5891         * elf/dl-support.c (_dl_sysinfo_map): New.
5892         Include "get-dynamic-info.h" and "setup-vdso.h".
5893         (_dl_non_dynamic_init): Call setup_vdso.
5894         * elf/dynamic-link.h: Don't include <assert.h>.
5895         (elf_get_dynamic_info): Moved to ...
5896         * elf/get-dynamic-info.h: Here.  New file.
5897         * elf/dynamic-link.h: Include "get-dynamic-info.h".
5898         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
5899         * elf/setup-vdso.h: Here.  New file.
5900         * elf/rtld.c: Include "setup-vdso.h".
5901         (dl_main): Call setup_vdso.
5903 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
5905         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
5906         creal in comment listing functions tested.  List finite, isinf,
5907         isnan, isless, islessequal, isgreater, isgreaterequal,
5908         islessgreater, isunordered, lgamma_r and pow10 as functions and
5909         macros not tested.  Mention which functions not tested are aliases
5910         for other functions.  Fix typo.  Note that signs of NaNs are not
5911         tested.
5913         * scripts/config.guess: Update from config.git.
5914         * scripts/config.sub: Likewise.
5916 2012-10-04  Roland McGrath  <roland@hack.frob.com>
5918         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
5919         * misc/madvise.c (madvise): Renamed to __madvise.
5920         Make madvise a weak alias.
5921         * include/sys/mman.h: Declare __madvise.
5922         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
5923         * sysdeps/unix/syscalls.list
5924         (madvise): Make __madvise the strong name, and madvise a weak alias.
5925         * sysdeps/unix/sysv/linux/syscalls.list
5926         (madvise, mmap): Remove redundant entries.
5927         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
5928         * malloc/malloc.c (mtrim): Likewise.
5929         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
5931 2012-10-03  Roland McGrath  <roland@hack.frob.com>
5933         * sysdeps/mach/hurd/dl-cache.c: File removed.
5934         * config.h.in (USE_LDCONFIG): New #undef.
5935         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
5936         * configure: Regenerated.
5937         * elf/Makefile (dl-routines): Add dl-cache only under
5938         [$(use-ldconfig) = yes].
5939         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
5940         cache on [USE_LDCONFIG].
5941         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
5942         [USE_LDCONFIG].
5943         * elf/rtld.c (dl_main): Likewise.
5945 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
5947         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
5948         _SC_LEVEL4_CACHE_LINESIZE.
5950 2012-10-03  Roland McGrath  <roland@hack.frob.com>
5952         * sysdeps/unix/bsd/confstr.h: File removed.
5954 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
5956         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
5957         sys/sdt-config.h.
5959 2012-10-02  Roland McGrath  <roland@hack.frob.com>
5961         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
5962         Make 'mapoff' field ElfW(Off) rather than off_t.
5964 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
5966         * nscd/Makefile: Remove nscd-cflags and all its users.
5967         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
5968         (CFLAGS-nonlib): Add compiler flags for nscd modules.
5970         [BZ #10631]
5971         * malloc.c (malloc_printerr): Clarify error message.
5973 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
5975         [BZ #14648]
5976         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5977         Set bit_FMA_Usable if FMA is supported.
5978         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
5979         macro.
5980         (bit_FMA4_Usable): Updated.
5981         (index_FMA_Usable): New macro.
5982         (CPUID_FMA): Likewise
5983         (HAS_FMA): Defined with bit_FMA_Usable.
5985 2012-10-01  Roland McGrath  <roland@hack.frob.com>
5987         * bits/types.h (__swblk_t): Type removed.
5988         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
5989         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
5990         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5991         (__SWBLK_T_TYPE): Likewise.
5992         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
5993         (__SWBLK_T_TYPE): Likewise.
5994         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5995         (__SWBLK_T_TYPE): Likewise.
5996         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5997         (__SWBLK_T_TYPE): Likewise.
5999 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
6000             Honza Horak <hhorak@redhat.com>
6002         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
6003         (xdr_mapname): Use YPMAXMAP as maxsize.
6004         (xdr_peername): Use YPMAXPEER as maxsize.
6005         (xdr_keydat): Use YPAXRECORD as maxsize.
6006         (xdr_valdat): Use YPMAXRECORD as maxsize.
6008 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6010         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
6012         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
6013         * csu/init-first.c: ... here.
6014         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
6015         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
6016         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
6017         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
6018         * sysdeps/i386/init-first.c: File removed.
6019         * sysdeps/sh/init-first.c: File removed.
6021 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
6023         [BZ #14645]
6024         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
6025         if x * y might underflow to zero and z is zero.
6026         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6027         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6028         * math/libm-test.inc (min_subnorm_value): New variable.
6029         (fma_test): Add more tests.
6030         (fma_test_towardzero): Likewise.
6031         (fma_test_downward): Likewise
6032         (fma_test_upward): Likewise.
6033         (initialize): Set min_subnorm_value.
6035 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
6037         [BZ #14638]
6038         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
6039         0 + 0.
6040         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
6041         mode for addition resulting in exact zero.
6042         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
6043         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
6044         exact 0 + 0.
6045         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6046         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6047         * math/libm-test.inc (fma_test): Add more tests.
6048         (fma_test_towardzero): New function.
6049         (fma_test_downward): Likewise.
6050         (fma_test_upward): Likewise.
6051         (main): Call the new functions.
6053 2012-09-28  David S. Miller  <davem@davemloft.net>
6055         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
6057 2012-09-28  Roland McGrath  <roland@hack.frob.com>
6059         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
6060         instead of SIGALRM.
6062         * sysdeps/gnu/_G_config.h: Moved to ...
6063         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
6064         * sysdeps/mach/hurd/_G_config.h: Moved to ...
6065         * sysdeps/generic/_G_config.h: ... here.
6067         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
6069         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
6071         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
6072         Conditionalize target on [libnss_test1.so-version].
6074         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
6076         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
6077         (elfobjdir): Move out of conditionals.
6079         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
6080         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
6081         (__nss_lookup_function): Conditionalize label remove_from_tree on
6082         [!DO_STATIC_NSS || SHARED], matching its only use.
6084 2012-09-28  David S. Miller  <davem@davemloft.net>
6086         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
6087         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
6088         file.
6089         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6090         sysdep_routines.
6091         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6092         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
6093         when HWCAP_SPARC_CRYPTO is present.
6095 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6097         * io/tst-mknodat.c: Create a FIFO instead of a socket.
6099 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
6101         [BZ #6530]
6102         * stdio-common/vfprintf.c (process_string_arg): Revert
6103         2000-07-22 change.
6105 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
6107         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
6108         for testcase.
6109         * stdio-common/tst-sprintf.c: Include <locale.h>
6110         (main): Test sprintf's handling of incomplete multibyte
6111         characters.
6113 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
6115         * elf/dl-runtime.c (VERSYMIDX): Removed.
6116         * elf/dl-version.c (VERSYMIDX): Likewise.
6117         * elf/do-rel.h (VERSYMIDX): Likewise.
6118         (VALIDX): Likewise.
6119         * elf/dynamic-link.h (VERSYMIDX): Likewise.
6120         * elf/rtld.c (VALIDX): Likewise.
6121         (ADDRIDX): Likewise.
6122         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
6123         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
6124         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
6125         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
6126         (VALIDX): Likewise.
6127         (ADDRIDX): Likewise.
6129 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6131         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
6133 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
6135         [BZ #11438]
6136         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
6137         to global scope.
6138         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
6139         addresses are in the same scope as 192.0.2/24.
6140         * posix/gai.conf: Document new scope table defaults.
6142 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6144         [BZ #5298]
6145         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
6146         for ftell.  Compute offsets from write pointers instead.
6147         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6149 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6151         [BZ #14543]
6152         * libio/Makefile (tests): New test case tst-fseek.
6153         * libio/tst-fseek.c: New test case to verify that fseek/ftell
6154         combination works in wide mode.
6155         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
6156         state when the external buffer state changes.
6158 2012-09-27  David S. Miller  <davem@davemloft.net>
6160         [BZ #14376]
6161         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
6162         pass reloc->r_addend in as the 'high' argument to
6163         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
6165         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6167 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
6169         * rt/tst-aio2.c: Include <pthread.h>.
6170         * rt/tst-aio3.c: Likewise.
6172 2012-09-27  Steve Ellcey  <sellcey@mips.com>
6174         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
6176 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
6178         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
6179         contents on [SHARED].
6181 2012-09-26  Marek Polacek  <polacek@redhat.com>
6183         [BZ #14530]
6184         [BZ #13741]
6185         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
6186         for C++ and GCC <4.3 as well as for non GCC compilers.
6188 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6192 2012-09-25  Roland McGrath  <roland@hack.frob.com>
6194         * Makefile.in (all, install): Declare with .PHONY.
6195         Reported by Michael Hope <michael.hope@linaro.org>.
6197 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6199         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
6200         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
6201         system header.
6202         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
6203         Likewise.
6204         (sydep_routines): Add the new and the internal functions.
6205         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
6206         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
6207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
6208         (GLIBC_2.17): Add the new function.
6209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6210         (GLIBC_2.17): Likewise.
6211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
6212         (GLIBC_2.17): Likewise.
6213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
6214         (GLIBC_2.17): Likewise.
6215         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
6217 2012-09-25  Alan Modra  <amodra@gmail.com>
6219         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6220         Add release barrier before setting once_control to say
6221         initialisation is done.  Add hints on lwarx.  Use macro in
6222         place of isync.
6223         (clear_once_control): Add release barrier.
6225 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
6227         [BZ #13629]
6228         * math/s_clog.c (__clog): Handle more values close to |z| = 1
6229         specially.
6230         * math/s_clog10.c (__clog10): Likewise.
6231         * math/s_clog10f.c (__clog10f): Likewise.
6232         * math/s_clog10l.c (__clog10l): Likewise.
6233         * math/s_clogf.c (__clogf): Likewise.
6234         * math/s_clogl.c (__clogl): Likewise.
6235         * math/Makefile (libm-calls): Add x2y2m1.
6236         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
6237         (__x2y2m1): Likewise.
6238         (__x2y2m1l): Likewise.
6239         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
6240         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
6241         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6242         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6243         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
6244         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6245         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
6246         * sysdeps/i386/fpu/libm-test-ulps: Update.
6247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6249         [BZ #14621]
6250         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
6251         int as type of variable DEPTH.
6252         (glob): Use size_t instead of int as type of variables NEWCOUNT
6253         and OLD_PATHC.
6255 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6257         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
6258         Add s_sincosf-sse2.
6259         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
6260         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
6261         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
6262         macros for using routine as __sincosf_ia32.
6263         Use macro for function declaration and weak_alias.
6264         * sysdeps/i386/fpu/libm-test-ulps: Update.
6266         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
6267         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6269         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
6270         subnormal argument.
6271         * math/s_cexpf.c (__cexpf): Likewise.
6272         * math/s_csinf.c (__csinf): Likewise.
6273         * math/s_csinhf.c (__csinhf): Likewise.
6274         * math/s_ctanf.c (__ctanf): Likewise.
6275         * math/s_ctanhf.c (__ctanhf): Likewise.
6276         * math/s_ccosh.c (__ccoshf): Likewise.
6277         * math/s_cexp.c (__cexpl): Likewise.
6278         * math/s_csin.c (__csin): Likewise.
6279         * math/s_csinh.c (__csinh): Likewise.
6280         * math/s_ctan.c (__ctan): Likewise.
6281         * math/s_ctanh.c (ctanh): Likewise.
6282         * math/s_ccoshl.c (__ccoshl): Likewise.
6283         * math/s_cexpl.c (__cexpl): Likewise.
6284         * math/s_csinl.c (__csinl): Likewise.
6285         * math/s_csinhl.c (__csinhl): Likewise.
6286         * math/s_ctanl.c (__ctanl): Likewise.
6287         * math/s_ctanhl.c (__ctanhl): Likewise.
6289 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
6291         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
6292         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
6293         (_IO_off_t): Define to __off_t, not _G_off_t.
6294         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
6295         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
6296         (_IO_wint_t): Define to wint_t, not _G_wint_t.
6297         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
6298         type of __dummy and __dummy2 fields.
6299         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
6300         (_G_ssize_t): Likewise.
6301         (_G_off_t): Likewise.
6302         (_G_pid_t): Likewise.
6303         (_G_uid_t): Likewise.
6304         (_G_wchar_t): Likewise.
6305         (_G_wint_t): Likewise.
6306         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
6307         (_G_ssize_t): Likewise.
6308         (_G_off_t): Likewise.
6309         (_G_pid_t): Likewise.
6310         (_G_uid_t): Likewise.
6311         (_G_wchar_t): Likewise.
6312         (_G_wint_t): Likewise.
6313         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
6314         (_G_ssize_t): Likewise.
6315         (_G_off_t): Likewise.
6316         (_G_pid_t): Likewise.
6317         (_G_uid_t): Likewise.
6318         (_G_wchar_t): Likewise.
6319         (_G_wint_t): Likewise.
6321 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6323         * malloc/arena.c: Include malloc-sysdep.h.
6324         (shrink_heap): Use check_may_shrink_heap to decide if madvise
6325         is sufficient to shrink the heap or an unmap is needed.
6326         * sysdeps/generic/malloc-sysdep.h: New file.  Define
6327         new function check_may_shrink_heap.
6328         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
6329         new function check_may_shrink_heap.
6331 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6333         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
6334         comments.
6336 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
6338         * catgets/test-gencat.sh: Add "set -e".
6339         * elf/tst-pathopt.sh: Likewise.
6340         * grp/tst_fgetgrent.sh: Likewise.
6341         * iconvdata/run-iconv-test.sh: Likewise.
6342         * intl/tst-gettext.sh: Likewise.
6343         * intl/tst-gettext2.sh: Likewise.
6344         * intl/tst-gettext4.sh: Likewise.
6345         * intl/tst-gettext6.sh: Likewise.
6346         * intl/tst-translit.sh: Likewise.
6347         * io/ftwtest-sh: Likewise.
6348         * libio/test-freopen.sh: Likewise.
6349         * malloc/tst-mtrace.sh: Likewise.
6350         * posix/globtest.sh: Likewise.
6351         * posix/tst-getconf.sh: Likewise.
6352         * posix/wordexp-tst.sh: Likewise.
6353         * stdio-common/tst-printf.sh: Likewise.
6354         * stdio-common/tst-unbputc.sh: Likewise.
6355         * stdlib/tst-fmtmsg.sh: Likewise.
6356         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
6357         * catgets/Makefile: Do not specify -e option when running
6358         testsuite shell scripts.
6359         * elf/Makefile: Likewise.
6360         * grp/Makefile: Likewise.
6361         * iconvdata/Makefile: Likewise.
6362         * intl/Makefile: Likewise.
6363         * io/Makefile: Likewise.
6364         * libio/Makefile: Likewise.
6365         * malloc/Makefile: Likewise.
6366         * posix/Makefile: Likewise.
6367         * stdio-common/Makefile: Likewise.
6368         * stdlib/Makefile: Likewise.
6369         * sysdeps/x86_64/Makefile: Likewise.
6371         * io/ftwtest-sh: Add copyright header.
6372         * posix/globtest.sh: Likewise.
6373         * posix/tst-getconf.sh: Likewise.
6374         * posix/wordexp-tst.sh: Likewise.
6375         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
6377 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
6379         [BZ #13679]
6380         * Makeconfig (+link): Defined as $(+link-static) if
6381         $(build-shared) isn't yes.
6382         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
6383         isn't yes.
6384         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
6386         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
6388         [BZ #14562]
6389         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
6390         new chunk size with MALLOC_ALIGN_MASK.
6392 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
6394         [BZ #5044]
6395         * stdio-common/printf_fphex.c: Include <stdbool.h> and
6396         <rounding-mode.h>.
6397         (__printf_fphex): Determine rounding using get_rounding_mode and
6398         round_away.
6399         * stdio-common/tst-printf-round.c (struct hex_test): New
6400         structure.
6401         (hex_tests): New variable.
6402         (test_hex_in_one_mode): New function.
6403         (do_test): Also run tests for hex float output.
6405 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
6407         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6408         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6409         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
6410         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
6411         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
6412         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
6413         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6414         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
6416 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
6418         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
6419         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
6420         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
6421         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
6423 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
6425         [BZ #14579]
6426         * elf/rtld.c (dl_main): Limit the check for self loading to normal
6427         mode only.
6428         * elf/tst-rtld-load-self.sh: New test.
6429         * elf/Makefile: Run it.
6431 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
6433         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
6434         (tst-writev-ENV): Remove.
6435         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
6437 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
6439         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
6441 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
6443         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
6444         unconditional.
6445         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
6446         Likewise.
6447         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
6448         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
6449         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
6450         Likewise.
6452 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6454         [BZ #14587]
6455         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
6456         * config.make.in (have-cpp-asm-debuginfo): Removed.
6457         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
6458         * configure: Regenerated.
6460 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
6462         [BZ #5044]
6463         * stdio-common/printf_fp.c: Include <stdbool.h> and
6464         <rounding-mode.h>.
6465         (___printf_fp): Determine rounding using get_rounding_mode and
6466         round_away.
6467         * stdio-common/tst-printf-round.c: New file.
6468         * stdio-common/Makefile (tests): Add tst-printf-round.
6469         (link-libm): New variable.
6470         ($(objpfx)tst-printf-round): Depend in $(link-libm).
6472 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6474         [BZ #14576]
6475         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
6476         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
6477         Likewise.
6478         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
6479         Likewise.
6481 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
6483         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
6484         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6485         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6486         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
6488 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
6490         [BZ #14518]
6491         * include/rounding-mode.h: New file.
6492         * sysdeps/generic/get-rounding-mode.h: Likewise.
6493         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
6494         * stdlib/strtod_l.c: Include <rounding-mode.h>.
6495         (MAX_VALUE): New macro.
6496         (MIN_VALUE): Likewise.
6497         (overflow_value): New function.
6498         (underflow_value): Likewise.
6499         (round_and_return): Use overflow_value and underflow_value to
6500         determine return values in overflow and underflow cases.  Use
6501         round_away to determine rounding depending on rounding mode.
6502         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
6503         determine return values in overflow and underflow cases.
6504         * stdlib/tst-strtod-round.c: Include <fenv.h>.
6505         (struct test_results): New structure.
6506         (struct test): Use struct test_results to store expected results
6507         for all rounding modes.
6508         (TEST): Include expected results for all rounding modes.
6509         (test_in_one_mode): New function.
6510         (do_test): Use test_in_one_mode to compute and check results.
6511         Check results for all rounding modes.
6512         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
6513         $(link-libm).
6515 2012-12-09  Allan McRae  <allan@archlinux.org>
6517         * sysdeps/i386/fpu/libm-test-ulps: Update
6519 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
6521         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
6522         (_G_int32_t): Likewise.
6523         (_G_uint16_t): Likewise.
6524         (_G_uint32_t): Likewise.
6525         (_G_HAVE_BOOL): Likewise.
6526         (_G_HAVE_ATEXIT): Likewise.
6527         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6528         (_G_HAVE_IO_FILE_OPEN): Likewise.
6529         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
6530         (_G_int32_t): Likewise.
6531         (_G_uint16_t): Likewise.
6532         (_G_uint32_t): Likewise.
6533         (_G_HAVE_BOOL): Likewise.
6534         (_G_HAVE_ATEXIT): Likewise.
6535         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6536         (_G_HAVE_IO_FILE_OPEN): Likewise.
6537         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
6538         (_G_int32_t): Likewise.
6539         (_G_uint16_t): Likewise.
6540         (_G_uint32_t): Likewise.
6541         (_G_HAVE_BOOL): Likewise.
6542         (_G_HAVE_ATEXIT): Likewise.
6543         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
6544         (_G_HAVE_IO_FILE_OPEN): Likewise.
6546 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6548         * csu/libc-tls.c: Update copyright years.
6550 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
6552         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
6553         [!_G_USING_THUNKS]: Remove conditional code.
6554         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
6555         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
6557         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
6558         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
6559         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6560         (_G_VTABLE_LABEL_PREFIX): Likewise.
6561         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6562         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6563         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6564         (_G_VTABLE_LABEL_PREFIX): Likewise.
6565         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
6566         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
6567         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
6568         (_G_VTABLE_LABEL_PREFIX): Likewise.
6569         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
6571 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6573         * libio/Makefile: Include ../Makeconfig before tests.
6574         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
6575         only if $(build-shared) is yes.
6577         * iconv/gconv_db.c: Update copyright years.
6579 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6581         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
6582         unwind info if defined PIC. Fix special cases description.
6583         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
6585         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
6586         DP_HI_MASK entry.
6587         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
6589 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6591         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
6593         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
6594         is NULL.
6596         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
6597         (LDLIBS-tst-chk4): This.
6598         (LDFLAGS-tst-chk5): Renamed to ...
6599         (LDLIBS-tst-chk5): This.
6600         (LDFLAGS-tst-chk6): Renamed to ...
6601         (LDLIBS-tst-chk6): This.
6602         (LDFLAGS-tst-lfschk4): Renamed to ...
6603         (LDLIBS-tst-lfschk4): This.
6604         (LDFLAGS-tst-lfschk5): Renamed to ...
6605         (LDLIBS-tst-lfschk5): This.
6606         (LDFLAGS-tst-lfschk6): Renamed to ...
6607         (LDLIBS-tst-lfschk6): This.
6609         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
6610         on $(common-objpfx)soversions.mk.
6612 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
6614         [BZ #10014]
6615         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
6616         example host name.
6618 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
6620         * malloc/arena.c (arena_get_retry): New function that gets
6621         another arena for the caller to try its request on.
6622         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
6623         current arena cannot fulfill the request.
6624         (__libc_memalign): Likewise.
6625         (__libc_memalign): Likewise.
6626         (__libc_pvalloc): Likewise.
6627         (__libc_calloc): Likewise.
6629 2012-09-05  John Tobey  <john.tobey@gmail.com>
6631         [BZ #13542]
6632         * manual/arith.texi (Operations on Complex): Fix description
6633         of carg branch cut.
6635 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
6637         [BZ #10014]
6638         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
6639         host name.
6641         [BZ #10038]
6642         * manual/memory.texi (Memory): Make order of menu items match
6643         order of sections.
6645 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6647         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
6648         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
6649         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
6651 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6653         * csu/libc-tls.c (static_dtv): Renamed to ...
6654         (_dl_static_dtv): This.  Make it global.
6655         (_dl_initial_dtv): Removed.
6656         (__libc_setup_tls): Updated.
6657         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
6658         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
6659         DL_INITIAL_DTV.
6661 2012-09-06  Petr Machata  <pmachata@redhat.com>
6663         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
6664         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
6665         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
6666         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
6668 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6670         [BZ #14545]
6671         * csu/libc-tls.c (_dl_initial_dtv): New variable.
6672         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
6673         freeing dtv[-1].
6675 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6677         [BZ #14544]
6678         * Makeconfig (link-static-before-libc): Replace $(+prector)
6679         with $(+prectorT).
6680         (link-static-after-libc): Replace $(+postctor) with
6681         $(+postctorT).
6682         (link-bounded): Replace $(+prector)/$(+postctor) with
6683         $(+prectorT)/$(+postctorT).
6684         (+prectorT): New macro.
6685         (+postctorT): Likewise.
6687 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
6689         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
6690         (round_str): Handle values above the maximum for IBM long double
6691         as inexact.
6692         * stdlib/tst-strtod-round.c (tests): Regenerated.
6694 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6696         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
6697         assembler flag.
6698         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
6699         zarch_nohighgprs around the zarch optimized routines.
6700         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
6701         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
6702         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
6703         for zarch.
6705 2012-09-05  David S. Miller  <davem@davemloft.net>
6707         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6709         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
6710         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
6711         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
6712         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
6713         entries.
6715 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6717         * malloc/arena.c: Fold copyright years.
6718         * malloc/mcheck.c, malloc/memusage.c: Likewise.
6720 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6722         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
6724 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6726         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
6728 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6730         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
6731         change internal state upon failure.
6733 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
6735         * malloc/mcheck.c (mcheck_check_all): Fix typo.
6736         * malloc/memusage.c (mmap): Likewise.
6737         (mmap64, mremap): Likewise.  Adjust name in comment.
6739 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6741         * libio/fileops.c: Fix typos in comments.
6742         * libio/oldfileops.c: Likewise.
6743         * libio/wfileops.c: Likewise.
6745 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6747         [BZ #1349]
6748         * malloc/Makefile (tests): Add tst-malloc-usable test case.
6749         (tst-malloc-usable-ENV): Set environment for test case.
6750         * malloc/hooks.c (malloc_check_get_size): New function to get
6751         requested size.
6752         * malloc/malloc.c (musable): Use malloc_check_get_size.
6753         * malloc/tst-malloc-usable.c: New test case.
6755 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
6757         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
6759 2012-09-05  Allan McRae  <allan@archlinux.org>
6761         [BZ #13966]
6762         * configure.in (CXX_SYSINCLUDES): Use compiler output to
6763         determine header location.
6764         * configure: Regenerated.
6766 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
6768         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
6769         float format.
6770         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
6771         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
6772         format.
6773         (test): Regenerate.
6775 2012-09-04  David S. Miller  <davem@davemloft.net>
6777         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
6778         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
6779         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
6781 2012-09-04  Florian Weimer  <fweimer@redhat.com>
6783         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
6784         failures.
6786         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
6788 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
6790         [BZ #9914]
6791         * libio/iogetdelim.c: Include <limits.h>.
6792         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
6793         + len + 1 would overflow.
6795 2012-09-03  Andreas Jaeger  <aj@suse.de>
6797         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6798         * sysdeps/i386/fpu/libm-test-ulps: Update.
6800 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6802         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
6803         Add s_sinf-sse2, s_conf-sse2.
6805         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
6806         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
6807         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
6808         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
6810         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
6811         for using routine as __sinf_ia32.
6812         Use macro for function declaration and weak_alias.
6813         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
6814         for using routine as __cosf_ia32.
6815         Use macro for function declaration and weak_alias.
6817         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
6818         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
6820         * sysdeps/x86_64/fpu/s_sinf.S: New file.
6821         * sysdeps/x86_64/fpu/s_cosf.S: New file.
6822         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6824         * math/libm-test.inc (cos_test): Add more test cases.
6825         (sin_test): Likewise.
6826         (sincos_test): Likewise.
6828 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6830         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
6831         (IFUNC_RESOLVE): Make pointers to the specialized implementations
6832         hidden.
6833         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
6835 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
6837         [BZ #14538]
6838         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
6839         first element of the GOT.
6840         (elf_machine_load_address): Return the difference between
6841         the runtime address of _DYNAMIC and elf_machine_dynamic ().
6843 2012-09-01  Allan McRae  <allan@archlinux.org>
6845         [BZ #13412]
6846         * configure.in (AWK): Require gawk version 3.0 or later.
6847         * configure: Regenerated.
6849 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
6851         * sysdeps/unix/sysv/linux/kernel-features.h
6852         (__ASSUME_POSIX_CPU_TIMERS): Remove.
6853         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6854         [__NR_clock_getres]: Make code unconditional.
6855         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
6856         (clock_getcpuclockid): Remove code left unreachable by removal of
6857         conditionals.
6858         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
6859         code unconditional.
6860         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
6861         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
6862         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
6863         Make code unconditional.
6864         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
6865         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
6866         * sysdeps/unix/sysv/linux/clock_settime.c
6867         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
6868         conditional code.
6869         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
6870         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
6872 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
6874         [BZ #14476]
6875         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
6876         scripts/test-installation.pl.
6878         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
6879         and $ld_so_version if it is set.
6881 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6883         [BZ #14516]
6884         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
6885         failure if reading from procfs failed.
6886         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
6888 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
6890         * sysdeps/unix/sysv/linux/kernel-features.h
6891         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
6892         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
6893         Remove conditional code.
6894         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6895         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
6896         Remove conditional code.
6897         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6898         * sysdeps/unix/sysv/linux/i386/fxstat.c
6899         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
6900         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6901         * sysdeps/unix/sysv/linux/i386/fxstatat.c
6902         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
6903         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6904         * sysdeps/unix/sysv/linux/i386/lxstat.c
6905         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
6906         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6907         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
6908         Remove conditional code.
6909         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6910         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
6911         Remove conditional code.
6912         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6913         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
6914         <kernel-features.h>.
6915         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
6916         Remove.
6917         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
6918         Remove conditional code.
6919         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
6920         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
6921         Remove conditional.
6923 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
6925         [BZ #5400]
6926         * NEWS: Add fixed bug number.
6928 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
6930         [BZ #14519]
6931         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
6932         underflowing exponent in case of negative sign.
6933         * stdlib/tst-strtod-round-data: Add more tests.
6934         * stdlib/tst-strtod-round.c (tests): Regenerated.
6936         [BZ #3479]
6937         * stdlib/strtod_l.c (NDIG): Remove.
6938         (HEXNDIG): Likewise.
6939         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
6940         smallest representable value.
6941         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
6942         lie within an exact representation of 1/2 ulp of the result.
6943         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
6944         unconditionally.
6945         (TENS_P9_IDX): Define unconditionally.
6946         (TENS_P9_SIZE): Likewise.
6947         (TENS_P10_IDX): Likewise.
6948         (TENS_P10_SIZE): Likewise.
6949         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
6950         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
6951         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
6952         entries for 10^2^13 and 10^2^14.
6953         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
6954         (TENS_P13_IDX): Define.
6955         (TENS_P13_SIZE): Likewise.
6956         (TENS_P14_IDX): Likewise.
6957         (TENS_P14_SIZE): Likewise.
6958         (_fpioconst_pow10): Change array size to
6959         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
6960         unconditional.
6961         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
6962         1024]: Add entries for 10^2^13 and 10^2^14.
6963         [LAST_POW10 > _LAST_POW10]: Remove #error.
6964         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
6965         (_fpioconst_pow10): Change array size to
6966         FPIOCONST_POW10_ARRAY_SIZE.
6967         * stdlib/gen-fpioconst.c: New file.
6968         * stdlib/gen-tst-strtod-round.c: Likewise.
6969         * stdlib/tst-strtod-round-data: Likewise.
6970         * stdlib/tst-strtod-round.c: Likewise.
6971         * stdlib/Makefile (tests): Add tst-strtod-round.
6973         [BZ #14459]
6974         * stdlib/strtod_l.c: Include <stdint.h>.
6975         (NDEBUG): Do not define.
6976         (round_and_return): Change EXPONENT parameter to type intmax_t.
6977         Rearrange calculations to avoid internal overflow possibilities.
6978         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
6979         Rearrange calculations to avoid internal overflow possibilities.
6980         Assert that number fits inside MPNSIZE limbs.
6981         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
6982         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
6983         calculations and add assertions to avoid internal overflow
6984         possibilities.  Add casts to avoid signed/unsigned operations.
6985         * stdlib/tst-strtod-overflow.c: New file.
6986         * stdlib/Makefile (tests): Add tst-strtod-overflow.
6988 2012-08-25  Marek Polacek  <polacek@redhat.com>
6990         * time/time.h: Fix some typos in comments.
6992 2012-08-23  Roland McGrath  <roland@hack.frob.com>
6994         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
6995         * posix/tst-rfc3484-2.c: Likewise.
6996         * posix/tst-rfc3484-3.c: Likewise.
6998 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
7000         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
7001         (EF_ARM_ABI_FLOAT_HARD): Likewise.
7003 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
7005         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
7006         #include of fxstatat64.c.
7008 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7010         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
7011         * shadow/getspent_r.c: Likewise.
7012         * shadow/getspnam.c: Likewise.
7013         * shadow/getspnam_r.c: Likewise.
7014         * gshadow/getsgent.c: Likewise.
7015         * gshadow/getsgent_r.c: Likewise.
7016         * gshadow/getsgnam.c: Likewise.
7017         * gshadow/getsgnam_r.c: Likewise.
7018         * inet/getnetbyad.c: Likewise.
7019         * inet/getnetbyad_r.c: Likewise.
7020         * inet/getnetbynm.c: Likewise.
7021         * inet/getnetbynm_r.c: Likewise.
7022         * inet/getnetent.c: Likewise.
7023         * inet/getnetent_r.c: Likewise.
7024         * inet/getproto.c: Likewise.
7025         * inet/getproto_r.c: Likewise.
7026         * inet/getprtent.c: Likewise.
7027         * inet/getprtent_r.c: Likewise.
7028         * inet/getprtname.c: Likewise.
7029         * inet/getprtname_r.c: Likewise.
7030         * inet/getrpcbyname.c: Likewise.
7031         * inet/getrpcbyname_r.c: Likewise.
7032         * inet/getrpcbynumber.c: Likewise.
7033         * inet/getrpcbynumber_r.c: Likewise.
7034         * inet/getrpcent.c: Likewise.
7035         * inet/getrpcent_r.c: Likewise.
7036         * inet/getaliasent.c: Likewise.
7037         * inet/getaliasent_r.c: Likewise.
7038         * inet/getaliasname.c: Likewise.
7039         * inet/getaliasname_r.c: Likewise.
7040         * nscd/getgrgid_r.c: Likewise.
7041         * nscd/getgrnam_r.c: Likewise.
7042         * nscd/gethstbyad_r.c: Likewise.
7043         * nscd/gethstbynm3_r.c: Likewise.
7044         * nscd/getpwnam_r.c: Likewise.
7045         * nscd/getpwuid_r.c: Likewise.
7046         * nscd/getsrvbynm_r.c: Likewise.
7047         * nscd/getsrvbypt_r.c: Likewise.
7048         * nscd/gai.c: Likewise.
7050         * configure.in (build_nscd): New substituted variable, set
7051         by --disable-build-nscd and defaults to $use_nscd.
7052         * configure: Regenerated.
7053         * config.make.in (build-nscd): New substituted variable.
7054         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
7055         Change conditional to require [$(build-nscd) = yes] as well.
7056         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
7058         [BZ# 13696]
7059         * configure.in (use_nscd): New substituted variable, set by
7060         --disable-nscd.  If enabled, define USE_NSCD.
7061         * configure: Regenerated.
7062         * config.h.in: Add USE_NSCD.
7063         * config.make.in (use-nscd): New substituted variable.
7064         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
7065         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
7066         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
7067         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
7068         (CFLAGS-getgrnam_r.c): Likewise.
7069         (CFLAGS-initgroups.c): Likewise.
7070         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
7071         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
7072         Variables removed.
7073         * inet/getnetgrent_r.c
7074         (nscd_setnetgrent): New function, broken out of ...
7075         (setnetgrent): ... here.  Call it.
7076         (innetgr): Conditionalize nscd bits on [USE_NSCD].
7077         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
7078         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
7079         * nscd/Makefile (routines, aux): Move definitions after include of
7080         Makeconfig.  Conditionalize on [$(use-nscd) != no].
7081         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
7082         Conditionalize on [USE_NSCD].
7083         (is_nscd, nscd_init_cb): Likewise.
7084         (nss_load_library): Conditionalize init callback on [USE_NSCD].
7085         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
7086         * nss/nss_db/db-init.c: Likewise.
7087         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
7088         [USE_NSCD].
7089         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
7090         (make_request): Use it.
7091         (cache_valid_p): New function.
7092         (__check_pf): Use it.
7093         * NEWS: Add item for --disable-nscd.
7095 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
7097         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
7098         to support sed >= 4.2.1-20-ga9bf076.
7099         * configure: Regenerated.
7101 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7103         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
7104         Conditionalize whole body on [IREL].
7106 2012-08-22  Jeff Law <law@redhat.com>
7108         [BZ #14505]
7109         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
7110         if the family is PF_UNSPEC.
7112 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
7114         * Makerules (lib-version): Rename from V.
7115         (install-lib-nosubdir): Change V to lib-version.
7117 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
7119         [BZ #14252]
7120         * powerpc32/power6/wcschr.c: New file.
7121         * powerpc32/power6/wcscpy.c: New file.
7122         * powerpc32/power6/wcsrchr.c: New file.
7123         * powerpc64/power6/wcschr.c: New file.
7124         * powerpc64/power6/wcscpy.c: New file.
7125         * powerpc64/power6/wcsrchr.c: New file.
7127 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
7129         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
7130         (two_way_short_needle): Use it.
7131         * string/strstr.c (AVAILABLE1_USES_J): Define.
7132         * string/strcasestr.c: Likewise.
7134         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
7135         array references.
7136         * string/strcasestr.c (TOLOWER): Make side-effect safe.
7138         [BZ #11607]
7139         * NEWS: Add an entry.
7140         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
7141         define their defaults.
7142         (two_way_short_needle): Detect end-of-string on-the-fly.
7143         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
7144         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
7145         * string/bug-strcasestr1.c: New test.
7146         * string/Makefile: Run it.
7148 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
7150         [BZ #11607]
7151         * string/str-two-way.h (two_way_short_needle): Optimize matching of
7152         the first character.
7154 2012-08-21  Roland McGrath  <roland@hack.frob.com>
7156         * csu/elf-init.c (__libc_csu_irel): Function removed.
7157         * csu/libc-start.c (apply_irel): New function.
7158         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
7160 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
7162         * sysdeps/unix/sysv/linux/kernel-features.h
7163         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
7164         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
7165         <kernel-features.h>.
7166         [__NR_fadvise64_64]: Make code unconditional.
7167         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
7168         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
7169         !__NR_fadvise64_64)]: Likewise.
7170         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
7171         !__NR_fadvise64_64))]: Likewise.
7172         [__NR_fadvise64]: Make code unconditional.
7173         [!__NR_fadvise64]: Remove conditional code.
7174         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
7175         <kernel-features.h>.
7176         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7177         unconditional.
7178         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7179         conditional code.
7180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
7181         not include <kernel-features.h>.
7182         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7183         unconditional.
7184         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7185         conditional code.
7186         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
7187         include <kernel-features.h>.
7188         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
7189         unconditional.
7190         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
7191         conditional code.
7193 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
7195         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
7196         slight instruction rearrangements per scrollpipe analysis.
7197         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
7199 2012-08-20  Roland McGrath  <roland@hack.frob.com>
7201         * manual/syslog.texi (syslog; vsyslog, closelog):
7202         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
7203         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
7205         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
7206         DSOCAPS to match condition on defining it.
7208 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
7210         * sysdeps/unix/sysv/linux/kernel-features.h
7211         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
7212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
7213         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7214         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
7216         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7217         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
7219         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
7220         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
7222         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
7223         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
7225         * sysdeps/unix/sysv/linux/kernel-features.h
7226         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
7227         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
7228         unconditional.
7229         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7230         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
7231         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
7232         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7233         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
7234         Make code unconditional.
7235         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7236         (__mmap64) [!__NR_mmap2]: Likewise.
7237         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
7238         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
7239         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7240         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
7241         [__NR_mmap2]: Make code unconditional.
7242         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
7243         (__mmap64) [!__NR_mmap2]: Likewise.
7245 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7247         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
7249 2012-08-18  Andreas Jaeger  <aj@suse.de>
7251         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
7253 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
7255         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
7256         * include/unistd.h (__have_sock_cloexec): Likewise.
7257         (__have_pipe2): Likewise.
7258         (__have_dup3): Likewise.
7260 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
7262         [BZ #9685]
7263         * include/unistd.h (__have_pipe2): Change define into an extern int.
7264         (__have_dup3): Likewise.
7265         * socket/have_sock_cloexec.c: Include fcntl.h.
7266         (__have_pipe2): New variable.
7267         (__have_dup3): Likewise.
7269 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
7271         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
7273 2012-08-17  Marek Polacek  <polacek@redhat.com>
7275         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
7276         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
7278 2012-08-17  Roland McGrath  <roland@hack.frob.com>
7280         * configure.in: Add AC_SUBST for sysheaders.
7281         * configure: Regenerated.
7282         * config.make.in (sysheaders): New substituted variable.
7284         * sysdeps/unix/mkfifo.c: Moved ...
7285         * sysdeps/posix/mkfifo.c: ... here.
7286         * sysdeps/unix/mkfifoat.c: Moved ...
7287         * sysdeps/posix/mkfifoat.c: ... here.
7289         * sysdeps/unix/utime.c: Moved ...
7290         * sysdeps/posix/utime.c: ... here.
7292         * sysdeps/unix/time.c: Moved ...
7293         * sysdeps/posix/time.c: ... here.
7294         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
7295         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
7297         * sysdeps/unix/nice.c: Moved ...
7298         * sysdeps/posix/nice.c: ... here.
7300         * sysdeps/unix/alarm.c: Moved ...
7301         * sysdeps/posix/alarm.c: ... here.
7303         * intl/Makefile ($(codeset_mo)): Depend on the input file.
7305 2012-08-17  Jeff Law <law@redhat.com>
7307         * intl/Makefile (codeset_mo): New variable.
7308         ($(codeset_mo)): New target.
7309         (tst-codeset.out): Depend on that.  Remove explicit rule.
7310         (tst-gettext3.out, tst-gettext5.out): Likewise.
7311         (LOCPATH-ENV, tst-codeset-ENV): New variables.
7312         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
7313         * intl/tst-codeset.sh: Remove.
7314         * intl/tst-gettext3.sh: Likewise.
7315         * intl/tst-gettext5.sh: Likewise.
7317 2012-08-17  Roland McGrath  <roland@hack.frob.com>
7319         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
7320         * sysdeps/unix/syscalls.list: ... here.
7322         * sysdeps/posix/getaddrinfo.c
7323         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
7324         (gaiconf_init, gaiconf_reload): Use them.
7325         [!_STATBUF_ST_NSEC]
7326         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
7327         Define using time_t rather than struct timespec.
7329         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
7330         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
7331         Macros removed.
7332         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
7333         [!NO_THREADS].
7334         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
7335         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
7336         Likewise.
7338         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
7339         __libc_cleanup_push argument.
7341         * bits/param.h: New file.
7342         * misc/sys/param.h: New file.
7343         * include/sys/param.h: New file.
7344         * misc/Makefile (headers): Add bits/param.h.
7345         * sysdeps/generic/sys/param.h: File removed.
7346         * sysdeps/unix/sysv/linux/bits/param.h: New file.
7347         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
7348         * sysdeps/mach/hurd/bits/param.h: New file.
7349         * sysdeps/mach/hurd/sys/param.h: File removed.
7351         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
7352         last change.
7354         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
7355         [_IO_MTSAFE_IO].
7356         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
7357         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
7358         New macros.
7360         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
7361         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
7362         rather than -D_IO_MTSAFE_IO conditionally.
7363         * stdio-common/Makefile (CPPFLAGS): Likewise.
7364         * wcsmbs/Makefile (CPPFLAGS): Likewise.
7365         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
7366         Use $(libio-mtsafe).
7367         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
7368         of -D_IO_MTSAFE_IO.
7369         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
7370         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
7371         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
7372         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
7373         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
7374         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
7375         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
7376         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
7377         (CFLAGS-fread_u_chk.c): Likewise.
7378         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
7379         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
7380         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
7381         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
7382         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
7383         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
7384         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
7385         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
7386         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
7388         * libio/Makefile: Test [$(libc-reentrant) = yes]
7389         instead of [$(filter %REENTRANT, $(defines)) nonempty].
7391         * Makeconfig
7392         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
7393         * sysdeps/pthread/configure: File removed.
7394         * sysdeps/pthread/Makeconfig: New file.
7395         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
7396         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
7398 2012-08-16  Gary Benson  <gbenson@redhat.com>
7400         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
7401         unmapping the first object in a namespace.
7403 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7405         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
7406         (__internal_setnetgrent): ... this.  Add internal_function to
7407         definition.  Add libc_hidden_def.
7408         (setnetgrent): Update caller.
7409         (internal_endnetgrent): Renamed to ...
7410         (__internal_endnetgrent): ... this.  Add internal_function to
7411         definition.  Add libc_hidden_def.
7412         (endnetgrent): Update caller.
7413         (internal_getnetgrent_r): Renamed to ...
7414         (__internal_getnetgrent_r): ... this.  Add internal_function to
7415         definition.  Add libc_hidden_def.
7416         (__getnetgrent_r): Update caller.
7417         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
7419 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7421         * stdlib/longlong.h: Update from GCC.
7423 2012-08-16  Roland McGrath  <roland@hack.frob.com>
7425         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
7426         on _QL, which is set by umul_ppmm but never used.
7427         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
7428         variables, which are set by GMP macros but never used.
7429         * stdio-common/_itowa.c (_itowa): Likewise.
7430         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
7431         * stdlib/mod_1.c (mpn_mod_1): Likewise.
7433 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
7435         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
7436         struct La_sh_regs is not constant.
7437         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
7438         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
7439         and struct La_sparc64_regs are not constant.
7441 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
7443         * sysdeps/unix/sysv/linux/kernel-features.h
7444         (__ASSUME_POSIX_TIMERS): Remove.
7445         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7446         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7447         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
7448         Make code unconditional.
7449         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7450         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
7451         Make code unconditional.
7452         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7453         * sysdeps/unix/sysv/linux/clock_nanosleep.c
7454         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
7455         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7456         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
7457         Make code unconditional.
7458         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
7459         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
7460         (__libc_missing_posix_timers): Remove.
7462 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7464         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
7465         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
7467         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
7469         * elf/dl-sym.c: Include <stdlib.h>.
7471         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
7472         constants, which avoids warnings in 32-bit builds.
7474         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
7475         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
7477         * misc/lseek.c: File moved to ...
7478         * io/lseek.c: ... here.
7480         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
7482         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
7483         shifting LEN more than 31 bits at once.
7485 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7487         [BZ #14195]
7488         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
7489         segmentation fault for a case of two empty input strings.
7490         * string/test-strncasecmp.c (check1): Renamed to...
7491         (bz12205): ...this.
7492         (bz14195): Add new testcase for two empty input strings and N > 0.
7493         (test_main): Call new testcase, adapt for renamed function.
7495 2012-08-15  Andreas Jaeger  <aj@suse.de>
7497         [BZ #14090]
7498         * crypt/md5test2.c: New test, based on test supplied by Serge
7499         Belyshev <belyshev@depni.sinp.msu.ru>.
7500         * crypt/Makefile (xtests): Add md5test-giant..
7501         * crypt/Makefile ($(objpfx)md5test-giant): Add.
7503 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7505         [BZ #14090]
7506         * crypt/md5.c (md5_process_block): Don't assume the buffer
7507         length is less than 2**32.
7508         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
7509         length is less than 2**64.
7511 2012-08-15  Roland McGrath  <roland@hack.frob.com>
7513         * string/str-two-way.h: Include <sys/param.h>.
7514         (MAX): Macro removed.
7516         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
7517         Move #define and #undef of memmove to just before and after
7518         including <string.h>.
7520         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
7521         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
7522         and after including <string.h>.  Move declarations of
7523         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
7524         to before #include "string/memmove.c".
7526         * include/dirent.h: Declare __getdirentries.
7528         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
7529         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
7531 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
7533         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
7534         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
7535         * sysdeps/i386/configure: Regenerated.
7536         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
7537         STABS_CURRENT_FILE, and STABS_FUN.
7538         (END): Remove call to STABS_FUN_END.
7539         (STABS_CURRENT_FILE1): Delete.
7540         (STABS_CURRENT_FILE): Likewise.
7541         (STABS_FUN): Likewise.
7542         (STABS_FUN_END): Likewise.
7543         (STABS_FUN2): Likewise.
7544         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
7545         * sysdeps/x86_64/configure: Regenerated.
7547 2012-08-14  Roland McGrath  <roland@hack.frob.com>
7549         * elf/dl-open.c: Include <atomic.h>.
7550         * elf/dl-lookup.c: Likewise.
7552 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
7554         * sysdeps/unix/sysv/linux/kernel-features.h
7555         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
7556         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
7557         unconditionally.
7558         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
7559         unconditionally.
7560         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
7561         condition on __ASSUME_CLONE_THREAD_FLAGS.
7563 2012-08-14  Andreas Jaeger  <aj@suse.de>
7565         * sysdeps/i386/fpu/libm-test-ulps: Update.
7567 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
7569         * include/atomic.h (atomic_exchange_and_add): Split into ...
7570         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
7571         New atomic macros.
7573 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
7575         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7577 2012-08-13  Jeff Law <law@redhat.com>
7579         * manual/stdio.texi (snprintf): Clarify handling of the trailing
7580         null byte in the output string.
7582 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
7584         * sysdeps/unix/sysv/linux/kernel-features.h
7585         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
7586         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
7587         (__ASSUME_ARG_MAX_STACK_BASED): Define.
7588         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
7589         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
7590         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
7591         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
7593 2012-08-09  Jeff Law <law@redhat.com>
7595         [BZ #13939]
7596         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
7597         When avoid_arena is set, don't retry in the that arena.  Pick the
7598         next one, whatever it might be.
7599         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
7600         (arena_lock): Pass in new parameter to arena_get2.
7601         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
7602         arena_get2.
7603         (__libc_malloc): Unify retrying after main arena failure with
7604         __libc_memalign version.
7605         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
7607 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7609         [BZ #14166]
7610         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
7611         to __redirect_strstr.
7612         (__strstr_sse42): Use typeof __redirect_strstr.
7613         (__strstr_ia32): Likewise.
7614         (__libc_strstr): New prototype.
7615         (strstr): Renamed to ...
7616         (__libc_strstr): This.
7617         (strstr): New strong alias of __libc_strstr.
7618         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
7619         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
7620         __redirect_time.
7621         Include <time.h>.
7622         (__libc_time): New prototype.
7623         (time_ifunc): Replace time with __libc_time.
7624         (time): New strong alias and hidden definition of __libc_time.
7625         (__GI_time): Remove strong alias.
7626         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
7627         Include <stddef.h>.
7628         (memmove): Redefined to __redirect_memmove.
7629         (__memmove_sse2): Use typeof __redirect_memmove.
7630         (__memmove_ssse3): Likewise.
7631         (__memmove_ssse3_back): Likewise.
7632         (__libc_memmove): New prototype.
7633         (memmove): Renamed to ...
7634         (__libc_memmove): This.
7635         (memmove): New strong alias of __libc_memmove.
7637 2012-08-08  Mark Salter  <msalter@redhat.com>
7639         * elf/elf.h
7640         (R_MN10300_TLS_GD): Define.
7641         (R_MN10300_TLS_LD): Likewise.
7642         (R_MN10300_TLS_LDO): Likewise.
7643         (R_MN10300_TLS_GOTIE): Likewise.
7644         (R_MN10300_TLS_IE): Likewise.
7645         (R_MN10300_TLS_LE): Likewise.
7646         (R_MN10300_TLS_DTPMOD): Likewise.
7647         (R_MN10300_TLS_DTPOFF): Likewise.
7648         (R_MN10300_TLS_TPOFF): Likewise.
7649         (R_MN10300_SYM_DIFF): Likewise.
7650         (R_MN10300_ALIGN): Likewise.
7651         (R_MN10300_NUM): Update.
7653 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
7655         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
7656         Remove.
7658 2012-08-08  Roland McGrath  <roland@hack.frob.com>
7660         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
7662         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
7663         sysdeps/unix -> sysdeps/posix move.
7664         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
7666 2012-08-07      Allan McRae     <allan@archlinux.org>
7668         [BZ #14303]
7669         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
7670         (SUNOS_CPP): Likewise.
7671         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
7672         not found.
7673         (open_input): Call CPP using execvp.
7675 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
7677         * sysdeps/unix/sysv/linux/kernel-features.h
7678         (__ASSUME_PROT_GROWSUPDOWN): Remove.
7679         (__ASSUME_NO_CLONE_DETACHED): Likewise.
7680         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
7681         (__ASSUME_WAITID_SYSCALL): Likewise.
7682         * sysdeps/unix/sysv/linux/dl-execstack.c
7683         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
7684         code unconditional.
7685         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
7686         conditional code.
7687         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
7688         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
7689         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
7690         code.
7691         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
7692         unconditional.
7693         [__ASSUME_WAITID_SYSCALL]: Likewise.
7694         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
7696 2012-08-07  Roland McGrath  <roland@hack.frob.com>
7698         * sysdeps/unix/closedir.c: Renamed to ...
7699         * sysdeps/posix/closedir.c: ... here.
7700         * sysdeps/unix/dirfd.c: Renamed to ...
7701         * sysdeps/posix/dirfd.c: ... here.
7702         * sysdeps/unix/dirstream.h: Renamed to ...
7703         * sysdeps/posix/dirstream.h: ... here.
7704         * sysdeps/unix/fdopendir.c: Renamed to ...
7705         * sysdeps/posix/fdopendir.c: ... here.
7706         * sysdeps/unix/opendir.c: Renamed to ...
7707         * sysdeps/posix/opendir.c: ... here.
7708         * sysdeps/unix/readdir.c: Renamed to ...
7709         * sysdeps/posix/readdir.c: ... here.
7710         * sysdeps/unix/readdir_r.c: Renamed to ...
7711         * sysdeps/posix/readdir_r.c: ... here.
7712         * sysdeps/unix/rewinddir.c: Renamed to ...
7713         * sysdeps/posix/rewinddir.c: ... here.
7714         * sysdeps/unix/seekdir.c: Renamed to ...
7715         * sysdeps/posix/seekdir.c: ... here.
7716         * sysdeps/unix/telldir.c: Renamed to ...
7717         * sysdeps/posix/telldir.c: ... here.
7718         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
7719         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
7720         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
7721         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
7723         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
7724         * bits/fcntl.h: ... here.
7726         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
7727         not 0.
7728         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
7729         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
7730         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
7731         (struct flock): Move l_start, l_len to the beginning.
7732         Use __pid_t for l_pid.
7733         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
7734         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
7735         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
7736         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
7737         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
7738         [__USE_LARGEFILE64] (struct flock64): New type.
7739         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
7741         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
7742         * bits/dirent.h: ... here.
7744         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
7745         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
7747 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
7749         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7750         Change from 2.6.0 to 2.6.16.
7751         * sysdeps/unix/sysv/linux/configure: Regenerated.
7752         * sysdeps/unix/sysv/linux/kernel-features.h
7753         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
7754         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
7755         version.
7756         (__ASSUME_UTIMES): Likewise.
7757         (__ASSUME_CLONE_STOPPED): Remove.
7758         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
7759         architectures, not kernel version.
7760         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
7761         (__ASSUME_NO_CLONE_DETACHED): Likewise.
7762         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
7763         (__ASSUME_WAITID_SYSCALL): Likewise.
7764         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
7765         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
7766         * README: State 2.6.16 as minimum Linux kernel version.  Do not
7767         refer to older versions.
7769 2012-08-06  Roland McGrath  <roland@hack.frob.com>
7771         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
7772         Define alphasort64 as an alias.
7773         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
7774         Define versionsort64 as an alias.
7775         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
7776         Define scandir64 as an alias.
7777         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
7778         Define scandirat64 as an alias.
7779         * dirent/alphasort64.c (alphasort64):
7780         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
7781         * dirent/versionsort64.c: Likewise.
7782         * dirent/scandir64.c: Likewise.
7783         * dirent/scandirat64.c: Likewise.
7784         * sysdeps/wordsize-64/alphasort.c: File removed.
7785         * sysdeps/wordsize-64/alphasort64.c: File removed.
7786         * sysdeps/wordsize-64/scandir.c: File removed.
7787         * sysdeps/wordsize-64/scandir64.c: File removed.
7788         * sysdeps/wordsize-64/scandirat.c: File removed.
7789         * sysdeps/wordsize-64/scandirat64.c: File removed.
7790         * sysdeps/wordsize-64/versionsort.c: File removed.
7791         * sysdeps/wordsize-64/versionsort64.c: File removed.
7792         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
7793         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
7794         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
7795         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
7796         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
7797         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
7798         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
7799         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
7801         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
7802         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
7803         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
7804         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7805         [defined __arch64__ || defined __sparcv9]
7806         (__INO_T_MATCHES_INO64_T): New macro.
7807         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7808         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
7809         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
7810         * sysdeps/unix/sysv/linux/bits/dirent.h
7811         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
7812         (_DIRENT_MATCHES_DIRENT64): New macro.
7814         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
7815         Define lockf64 as an alias.
7816         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
7817         Define fseeko64 as an alias.
7818         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
7819         Define ftello64 as an alias.
7820         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
7821         Define _IO_fgetpos64 and fgetpos64 as aliases.
7822         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
7823         Define _IO_fsetpos64 and fsetpos64 as aliases.
7824         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
7825         Conditionalize body on this.
7826         * libio/fseeko64.c: Likewise.
7827         * libio/ftello64.c: Likewise.
7828         * libio/iofgetpos64.c: Likewise.
7829         * libio/iofsetpos64.c: Likewise.
7830         * sysdeps/wordsize-64/lockf.c: File removed.
7831         * sysdeps/wordsize-64/lockf64.c: File removed.
7832         * sysdeps/wordsize-64/fseeko.c: File removed.
7833         * sysdeps/wordsize-64/fseeko64.c: File removed.
7834         * sysdeps/wordsize-64/ftello.c: File removed.
7835         * sysdeps/wordsize-64/ftello64.c: File removed.
7836         * sysdeps/wordsize-64/iofgetpos.c: File removed.
7837         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
7838         * sysdeps/wordsize-64/iofsetpos.c: File removed.
7839         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
7840         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
7841         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
7842         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
7843         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
7844         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
7845         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
7846         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
7847         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
7848         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
7849         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
7851         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
7852         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
7853         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
7854         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7855         [defined __arch64__ || defined __sparcv9]
7856         (__OFF_T_MATCHES_OFF64_T): New macro.
7857         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7858         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
7859         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7860         (__OFF_T_MATCHES_OFF64_T): New macro.
7862 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7864         * stdlib/secure-getenv.c (__secure_getenv): Replace
7865         GLIBC_2_16 with GLIBC_2_17.
7867 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7869         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
7870         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7872 2012-08-03  David S. Miller  <davem@davemloft.net>
7874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7876 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
7878         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
7879         Remove.
7880         (__ASSUME_CORRECT_SI_PID): Likewise.
7881         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
7882         (__ASSUME_TMPFS_NAME): Likewise.
7883         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
7884         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
7885         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
7886         (HAVE_AUX_SECURE): Make definition unconditional.
7887         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
7888         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
7890 2012-08-03  Roland McGrath  <roland@hack.frob.com>
7892         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
7893         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
7894         * sysdeps/mach/hurd/eloop-threshold.h: New file.
7895         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7896         __eloop_threshold instead of SYMLOOP_MAX.
7898         * sysdeps/generic/eloop-threshold.h: New file.
7899         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
7900         of MAXSYMLINKS.
7901         * elf/chroot_canon.c (chroot_canon): Likewise.
7903 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
7905         [BZ #13717]
7906         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7907         Change to 2.6.0 everywhere.
7908         * sysdeps/unix/sysv/linux/configure: Regenerated.
7909         * sysdeps/unix/sysv/linux/kernel-features.h
7910         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
7911         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
7912         kernel versions.
7913         (__ASSUME_POSIX_TIMERS): Define unconditionally.
7914         (__ASSUME_FUTEX_REQUEUE): Remove.
7915         (__ASSUME_STATFS64): Define unconditionally.
7916         (__ASSUME_AT_SECURE): Likewise.
7917         (__ASSUME_CORRECT_SI_PID): Likewise.
7918         (__ASSUME_TGKILL): Define without depending on kernel version for
7919         i386.
7920         (__ASSUME_UTIMES): Likewise.
7921         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
7922         kernel version.
7923         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
7924         (__ASSUME_TMPFS_NAME): Likewise.
7925         * README: Update reference to Linux kernel versions.
7927 2012-08-02  Marek Polacek  <polacek@redhat.com>
7929         [BZ# 14150]
7930         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
7931         libc_cv_asm_type_prefix with %.
7932         * configure: Regenerated.
7933         * include/libc-symbols.h: Remove comment about
7934         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
7935         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
7936         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
7937         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
7938         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
7939         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
7940         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
7941         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
7942         * elf/tst-unique2mod1.c: Likewise.
7943         * elf/tst-unique1mod2.c: Likewise.
7944         * elf/tst-unique1mod1.c: Likewise.
7945         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
7946         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
7947         Replace ASM_TYPE_DIRECTIVE with .type.
7948         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7949         * sysdeps/i386/sysdep.h: Likewise.
7950         * sysdeps/x86_64/sysdep.h: Likewise.
7951         * sysdeps/sh/sysdep.h: Likewise.
7952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7953         Do not define ASM_TYPE_DIRECTIVE.
7954         * sysdeps/powerpc/sysdep.h: Likewise.
7955         * sysdeps/powerpc/powerpc32/sysdep.h:
7956         Replace ASM_TYPE_DIRECTIVE with .type.
7957         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
7958         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7959         * sysdeps/i386/fpu/e_powf.S: Likewise.
7960         * sysdeps/i386/fpu/e_expl.S: Likewise.
7961         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7962         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7963         * sysdeps/i386/fpu/e_pow.S: Likewise.
7964         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7965         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7966         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7967         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7968         * sysdeps/i386/fpu/e_log2.S: Likewise.
7969         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7970         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7971         * sysdeps/i386/fpu/e_powl.S: Likewise.
7972         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7973         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7974         * sysdeps/i386/fpu/e_logl.S: Likewise.
7975         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7976         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7977         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7978         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7979         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7980         * sysdeps/i386/fpu/e_log.S: Likewise.
7981         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7982         * sysdeps/i386/fpu/e_logf.S: Likewise.
7983         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7984         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7985         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7986         * sysdeps/i386/fpu/e_log10.S: Likewise.
7987         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7988         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7989         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7990         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7991         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7992         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
7993         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7994         * sysdeps/i386/i686/strtok.S: Likewise.
7995         * sysdeps/i386/i386-mcount.S: Likewise.
7996         * sysdeps/i386/strtok.S: Likewise.
7997         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
7998         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7999         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8000         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8001         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8002         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8003         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8004         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8005         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8006         * sysdeps/x86_64/_mcount.S: Likewise.
8007         * sysdeps/x86_64/strtok.S: Likewise.
8008         * sysdeps/sh/_mcount.S: Likewise.
8010 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8012         * libio/iofopen.c: Include <fcntl.h>.
8013         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
8014         (_IO_fopen64, fopen64): Define as aliases.
8015         * libio/iofopen64.c: Include <fcntl.h>.
8016         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
8017         Conditionalize body on this.
8018         * sysdeps/wordsize-64/iofopen.c: File removed.
8019         * sysdeps/wordsize-64/iofopen64.c: File removed.
8021 2012-08-01  Marek Polacek  <polacek@redhat.com>
8023         * libc/Makeconfig: Use elf in place of binfmt-subdir.
8024         Use dlfcn directly instead of a variable.
8025         (binfmt-subdir): Do not define.
8026         (dlfcn): Likewise.
8028 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
8030         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
8031         Remove all definitions.
8032         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
8033         <kernel-features.h>.
8034         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8035         (miss_F_GETOWN_EX): Remove all definitions.
8036         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
8037         macro definition.
8038         [!__ASSUME_FCNTL64]: Remove conditional code.
8039         [__ASSUME_FCNTL64]: Make code unconditional.
8040         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
8041         <kernel-features.h>.
8042         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8043         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
8044         (lockf64) [__NR_fcntl64]: Make code unconditional.
8045         (lockf64) [__ASSUME_FCNTL64]: Likewise.
8047         * sysdeps/unix/sysv/linux/kernel-features.h
8048         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
8049         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
8050         Make code unconditional.
8051         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8052         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
8054         [__NR_vfork]: Make code unconditional.
8055         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8056         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
8058         [__NR_vfork]: Make code unconditional.
8059         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
8060         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
8062 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8064         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
8065         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
8067         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8068         Define mkstemp64 as an alias.
8069         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8070         Define mkstemps64 as an alias.
8071         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8072         Define mkostemp64 as an alias.
8073         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
8074         Define mkostemps64 as an alias.
8075         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
8076         Conditionalize body on this.
8077         * misc/mkostemp64.c: Likewise.
8078         * misc/mkostemps64.c: Likewise.
8079         * misc/mkstemps64.c: Likewise.
8080         * sysdeps/wordsize-64/mkstemp64.c: File removed.
8081         * sysdeps/wordsize-64/mkostemp64.c: File removed.
8082         * sysdeps/wordsize-64/mkostemp.c: File removed.
8083         * sysdeps/wordsize-64/mkstemp.c: File removed.
8084         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
8085         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
8086         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
8087         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
8089         [BZ #14138]
8090         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
8091         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
8092         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
8093         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
8095         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
8096         compat_symbol macros from <shlib-compat.h> rather than the underlying
8097         default_symbol_version and symbol_version macros, so that DEFAULT
8098         lines in shlib-versions are respected.
8099         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
8101 2012-08-01  Florian Weimer  <fweimer@redhat.com>
8103         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
8104         Declare with warn_unused_result.
8105         (setgid, setregid, setegid, setresgid): Likewise.
8106         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
8107         Likewise.
8108         * WUR-REPORT: Remove set*id functions.
8110 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
8112         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
8114 2012-07-31  Roland McGrath  <roland@hack.frob.com>
8116         * include/sys/socket.h (__libc_accept, __libc_accept4):
8117         Add attribute_hidden.
8118         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
8120         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
8121         use of PTR_MANGLE.
8122         * inet/getnetgrent_r.c (setup): Likewise.
8124         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
8126 2012-07-31  David S. Miller  <davem@davemloft.net>
8128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8130 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
8132         [BZ #13629]
8133         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
8134         value between 1.0 and 2.0 and smaller part has absolute value less
8135         than 1.0.
8136         * math/s_clog10.c (__clog10): Likewise.
8137         * math/s_clog10f.c (__clog10f): Likewise.
8138         * math/s_clog10l.c (__clog10l): Likewise.
8139         * math/s_clogf.c (__clogf): Likewise.
8140         * math/s_clogl.c (__clogl): Likewise.
8141         * math/libm-test.inc (clog_test): Add more tests.
8142         (clog10_test): Likewise.
8143         * sysdeps/i386/fpu/libm-test-ulps: Update.
8144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8146 2012-07-31  Florian Weimer  <fweimer@redhat.com>
8148         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
8149         Exit with zero in case no suitable GID is found, and write a
8150         message to standard error.
8152 2012-07-30  Roland McGrath  <roland@hack.frob.com>
8154         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
8155         rather than to 1.
8156         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
8157         (MAXPATHLEN): Removed.
8158         (NOGROUP, NODEV): New macros.
8159         (setbit, clrbit, isset, isclr): New macros.
8160         (howmany, roundup, powerof2): New macros.
8161         (DEV_BSIZE): New macro.
8163         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
8164         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
8166         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
8167         definition on [!__NO_LONG_DOUBLE_MATH].
8169         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
8170         PTR_MANGLE and PTR_DEMANGLE.
8172         * socket/accept4.c (accept4): Rename to __libc_accept4.
8173         Define accept4 as a weak alias.
8175         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
8176         on [_DIRENT_HAVE_D_TYPE].
8177         * io/ftw.c (ftw_dir): Likewise.
8179         * io/xmknod.c (__xmknod): Don't check PATH for being null.
8181         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
8183         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
8184         Use the BSD numbers rather than the arbitrary ones we had.
8185         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
8186         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
8187         (SIGXCPU, SIGXFSZ): New macros.
8188         (_NSIG): Now 32.
8190         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
8191         initializer on [_LIBC_REENTRANT].
8193         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
8194         definitions inside [_POSIX_MAPPED_FILES].
8196         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
8198         * dirent/opendir.c: Include <fcntl.h>.
8200         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
8201         (__libc_getspecific): Likewise.
8202         (__libc_key_create): Likewise.
8204         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
8205         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
8206         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
8207         (tmpfile64): Define as alias.
8208         * sysdeps/wordsize-64/tmpfile.c: File removed.
8209         * sysdeps/wordsize-64/tmpfile64.c: File removed.
8210         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
8211         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
8213         * stdio-common/vfscanf.c: Include <stdbool.h>.
8214         * nss/makedb.c: Likewise.
8215         * stdio-common/_i18n_number.h: Likewise.
8216         * argp/argp-help.c: Likewise.
8217         * posix/wordexp.c: Likewise.
8218         * sysdeps/posix/spawni.c: Likewise.
8219         * nss/nss_files/files-initgroups.c: Likewise.
8220         * stdio-common/reg-modifier.c: Include <stdlib.h>.
8221         * nss/nss_files/files-initgroups.c: Likewise.
8222         * nss/nss_db/db-netgrp.c: Likewise.
8223         * nss/nss_db/db-initgroups.c: Likewise.
8224         * io/fchmodat.c: Include <sys/stat.h>.
8226         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
8227         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
8229         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
8230         [HAVE_MMAP].
8232         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
8233         Add multiple inclusion protection.
8235 2012-07-27  David S. Miller  <davem@davemloft.net>
8237         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8239 2012-07-27  Gary Benson  <gbenson@redhat.com>
8241         [BZ #14298]
8242         * elf/rtld.c: Include <stap-probe.h>.
8243         (dl_main): Added static probes "init_start" and "init_complete".
8244         * elf/dl-load.c: Include <stap-probe.h>.
8245         (lose): Take new parameter "nsid".
8246         Added static probe "map_failed".
8247         (_dl_map_object_from_fd): Pass namespace id to lose.
8248         Added static probe "map_start".
8249         (open_verify): Pass namespace id to lose.
8250         * elf/dl-open.c: Include <stap-probe.h>.
8251         (dl_open_worker) Added static probes "map_complete", "reloc_start"
8252         and "reloc_complete".
8253         * elf/dl-close.c: Include <stap-probe.h>.
8254         (_dl_close_worker): Added static probes "unmap_start" and
8255         "unmap_complete".
8256         * elf/rtld-debugger-interface.txt: New file documenting the above.
8258 2012-07-26  Roland McGrath  <roland@hack.frob.com>
8260         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
8261         rather than a string variable.
8262         * sunrpc/rpc_main.c (h_output): Likewise.
8263         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
8265 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
8267         * inet/check_native.c: New file.
8269 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
8271         [BZ #13629]
8272         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
8273         if larger part has absolute value 1.0.
8274         * math/s_clog10.c (__clog10): Likewise.
8275         * math/s_clog10f.c (__clog10f): Likewise.
8276         * math/s_clog10l.c (__clog10l): Likewise.
8277         * math/s_clogf.c (__clogf): Likewise.
8278         * math/s_clogl.c (__clogl): Likewise.
8279         * math/libm-test.inc (clog_test): Add more tests.
8280         (clog10_test): Likewise.
8281         * sysdeps/i386/fpu/libm-test-ulps: Update.
8282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8284         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
8285         (pltexit): Likewise.
8286         (La_regs): Likewise.
8287         (La_retval): Likewise.
8288         (int_retval): Likewise.
8289         Update #error for removed macros to refer only to definitions in
8290         tst-audit.h.
8291         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
8292         macro.
8293         (pltexit): Likewise.
8294         (La_regs): Likewise.
8295         (La_retval): Likewise.
8296         (int_retval): Likewise.
8297         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
8298         macro.
8299         (pltexit): Likewise.
8300         (La_regs): Likewise.
8301         (La_retval): Likewise.
8302         (int_retval): Likewise.
8303         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
8304         macro.
8305         (pltexit): Likewise.
8306         (La_regs): Likewise.
8307         (La_retval): Likewise.
8308         (int_retval): Likewise.
8309         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
8310         macro.
8311         (pltexit): Likewise.
8312         (La_regs): Likewise.
8313         (La_retval): Likewise.
8314         (int_retval): Likewise.
8315         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
8316         macro.
8317         (pltexit): Likewise.
8318         (La_regs): Likewise.
8319         (La_retval): Likewise.
8320         (int_retval): Likewise.
8321         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
8322         macro.
8323         (pltexit): Likewise.
8324         (La_regs): Likewise.
8325         (La_retval): Likewise.
8326         (int_retval): Likewise.
8327         * sysdeps/generic/tst-audit.h: Update comment to refer only to
8328         macro definitions in tst-audit.h.
8329         * sysdeps/i386/tst-audit.h: New file.
8330         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
8331         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
8332         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
8333         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
8334         * sysdeps/sh/tst-audit.h: Likewise.
8335         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
8336         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
8337         * sysdeps/x86_64/tst-audit.h: Likewise.
8339 2012-07-26  Andreas Jaeger  <aj@suse.de>
8341         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
8342         ptrace.
8344         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
8345         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
8346         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
8347         PTRACE_O_MASK.
8348         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
8349         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
8350         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
8352         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
8353         value.
8355         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
8356         _sigsys.
8357         (si_call_addr, si_syscall, si_arch): Define new macro.
8358         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
8359         _sigsys.
8360         (si_call_addr, si_syscall, si_arch): Define new marcro.
8361         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
8362         _sigsys.
8363         (si_call_addr, si_syscall, si_arch): Define new macro.
8364         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
8365         _sigsys.
8366         (si_call_addr, si_syscall, si_arch): Define new macro.
8368 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8370         [BZ #13717]
8371         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8372         Change to 2.4.21 where previously 2.4.1.
8373         * sysdeps/unix/sysv/linux/configure: Regenerated.
8374         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
8375         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
8376         Linux kernel version.
8377         (__ASSUME_STD_AUXV): Remove.
8378         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
8379         kernel version.
8380         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
8381         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
8382         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
8383         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
8384         (__ASSUME_NETLINK_SUPPORT): Likewise.
8385         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
8386         (__no_netlink_support): Remove conditional definition.
8387         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
8388         Remove.
8389         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8390         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
8391         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
8392         (if_nameindex_ioctl): Remove.
8393         (if_nameindex_netlink): Do not handle __no_netlink_support.
8394         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
8395         code.
8396         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
8397         Remove conditional code.
8398         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
8399         code.
8400         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
8401         unconditional.
8402         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
8403         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
8404         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
8405         Remove.
8406         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8407         [!__ASSUME_STD_AUXV]: Remove conditional code.
8408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
8409         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
8410         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
8411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
8412         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
8413         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8414         code.
8415         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
8417         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
8418         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8419         conditional code.
8420         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
8421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
8422         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
8423         code.
8424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
8425         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
8426         conditional code.
8427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
8428         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8429         code unconditional.
8430         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8431         conditional code.
8432         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8433         unconditional.
8434         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8435         conditional code.
8436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8437         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8438         unconditional.
8439         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8440         conditional code.
8441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8442         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8443         code unconditional.
8444         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8445         conditional code.
8446         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8447         unconditional.
8448         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8449         conditional code.
8450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8451         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
8452         code unconditional.
8453         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8454         conditional code.
8455         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
8456         unconditional.
8457         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
8458         conditional code.
8460 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
8462         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
8463         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
8464         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8465         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
8466         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8467         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8468         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8469         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
8470         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8471         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8472         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8473         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8474         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
8475         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8476         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8477         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
8478         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
8479         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
8480         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
8481         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
8482         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
8483         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8484         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8486 2012-07-25  Florian Weimer  <fweimer@redhat.com>
8488         * Versions.def: Add GLIBC_2.17.
8489         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
8490         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
8491         Introduce __libc_secure_getenv.
8492         * stdlib/Versions (2.17): Add secure_getenv
8493         (GLIBC_PRIVATE): Add __libc_secure_getenv.
8494         * stdlib/secure-getenv.c: Rename __secure_getenv to
8495         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
8496         symbol __secure_getenv for GLIBC_2.0.
8497         * stdlib/tst-secure-getenv.c: New.
8498         * stdlib/Makefile (tests): Add testcase.
8499         * manual/startup.texi (Environment Access): Document
8500         secure_getenv.
8501         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
8502         __libc_secure_getenv.
8503         * inet/ruserpass.c (ruserpass): Likewise.
8504         * malloc/mtrace.c (mtrace): Likewise.
8505         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
8506         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8507         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
8508         * sysdeps/posix/tempname.c: Likewise.  Evaluate
8509         HAVE_SECURE_GETENV.
8510         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
8511         __secure_getenv to __libc_secure_getenv.
8512         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
8513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8514         Likewise.
8515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8516         Likewise.
8517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8518         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8519         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8520         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8521         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8522         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8525 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
8527         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
8528         (struct La_i86_retval): Likewise.
8529         (struct La_x86_64_regs): Likewise.
8530         (struct La_x86_64_retval): Likewise.
8531         (struct La_x32_regs): Likewise.
8532         (struct La_x32_retval): Likewise.
8533         (struct La_ppc32_regs): Likewise.
8534         (struct La_ppc32_retval): Likewise.
8535         (struct La_ppc64_regs): Likewise.
8536         (struct La_ppc64_retval): Likewise.
8537         (struct La_sh_regs): Likewise.
8538         (struct La_sh_retval): Likewise.
8539         (struct La_s390_32_regs): Likewise.
8540         (struct La_s390_32_retval): Likewise.
8541         (struct La_s390_64_regs): Likewise.
8542         (struct La_s390_64_retval): Likewise.
8543         (struct La_sparc32_regs): Likewise.
8544         (struct La_sparc32_retval): Likewise.
8545         (struct La_sparc64_regs): Likewise.
8546         (struct La_sparc64_retval): Likewise.
8547         (struct audit_ifaces): Remove architecture-specific pltenter and
8548         pltexit members.
8549         * sysdeps/i386/ldsodefs.h: New file.
8550         * sysdeps/powerpc/ldsodefs.h: Likewise.
8551         * sysdeps/s390/ldsodefs.h: Likewise.
8552         * sysdeps/sh/ldsodefs.h: Likewise.
8553         * sysdeps/sparc/ldsodefs.h: Likewise.
8554         * sysdeps/x86_64/ldsodefs.h: Likewise.
8556 2012-07-25  Marek Polacek  <polacek@redhat.com>
8558         [BZ #6808]
8559         * math/libm-test.inc (yn_test): Add another test.
8560         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
8561         to ERANGE when the result is +-Inf.
8562         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
8563         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8564         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
8565         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
8567 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
8569         * conform/data/time.h-data (NULL): Use macro-constant.  Require
8570         equal to 0.
8571         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
8572         clock_t.
8573         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
8575 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
8577         * configure.in <sysdeps resolving>: Correct printing
8578         Implies_before.
8579         * configure: Regenerate.
8581 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
8583         * math/w_ilogb.c: Include <limits.h>.
8584         * math/w_ilogbl.c: Likewise.
8586 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
8588         * manual/lang.texi (__va_copy): Document primarily as ISO C99
8589         va_copy.  Document allowing for unavailable va_copy only as
8590         pre-C99 compatibility.
8591         * manual/string.texi (Copying and Concatenation): Use va_copy
8592         instead of __va_copy in concat example.
8594 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
8596         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
8597         (__sendto): Use create_address_port.  Initialize APORT and deallocate
8598         it if not null.
8600         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
8601         with O_NOLINK passed to __file_name_lookup.
8603         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
8604         with O_NOLINK passed to __file_name_lookup.
8606         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
8607         negative N or less than NGIDS.
8609         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
8610         type to string_t.  Set ERANGE as errno and return it if NAME is not big
8611         enough.  Use memcpy instead of strncpy.
8613 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
8615         * elf/Makefile (check-data): Remove.
8616         (localplt.data): New vpath directive.
8617         ($(objpfx)check-localplt.out): Use localplt.data from vpath
8618         instead of $(check-data).
8619         * scripts/data/localplt-generic.data: Move to ...
8620         * sysdeps/generic/localplt.data: ... here.
8621         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
8622         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
8623         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
8624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
8625         ... here.
8626         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
8627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
8628         ... here.
8629         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
8630         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
8631         ... here.
8632         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
8633         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
8634         ... here.
8635         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
8636         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
8637         ... here.
8638         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
8639         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
8640         ... here.
8642 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8644         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
8645         PPC32 and PPC64 files.
8646         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
8647         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
8649 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8651         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
8652         __makecontext_ret to ...
8653         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
8654         ... here and call exit if uc_link is NULL.  New file.
8655         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
8656         __makecontext_ret.S.
8657         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
8658         __makecontext_ret to ...
8659         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
8660         ... here and call exit if uc_link is NULL.  New file.
8661         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
8662         __makecontext_ret.S.
8664 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8666         * elf/elf.h (R_390_IRELATIVE): New definition.
8667         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
8668         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
8669         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
8670         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8671         (elf_machine_lazy_rel): Likewise.
8672         * sysdeps/s390/dl-irel.h: New file.
8673         * sysdeps/s390/s390-64/memcpy.S: New asm code.
8674         * sysdeps/s390/s390-64/memset.S: New asm code.
8675         * sysdeps/s390/s390-64/memcmp.S: New asm code.
8676         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
8677         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
8678         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
8679         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
8680         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
8681         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
8682         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
8683         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
8684         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
8685         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
8686         * sysdeps/s390/s390-32/memcpy.S: New asm code.
8687         * sysdeps/s390/s390-32/memset.S: New asm code.
8688         * sysdeps/s390/s390-32/memcmp.S: New asm code.
8690 2012-07-17  Marek Polacek  <polacek@redhat.com>
8692         [BZ #14349]
8693         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
8694         * sysdeps/s390/s390-64/configure.in: Likewise.
8695         * sysdeps/sparc/configure.in: Likewise.
8696         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
8697         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
8698         * sysdeps/i386/configure.in: Likewise.
8699         * sysdeps/x86_64/configure.in: Likewise.
8700         * sysdeps/sh/configure.in: Likewise.
8701         * sysdeps/s390/s390-32/configure: Regenerated.
8702         * sysdeps/s390/s390-64/configure: Likewise.
8703         * sysdeps/x86_64/configure: Likewise.
8704         * sysdeps/sh/configure: Likewise.
8705         * sysdeps/powerpc/powerpc64/configure: Likewise.
8706         * sysdeps/powerpc/powerpc32/configure: Likewise.
8707         * sysdeps/sparc/configure: Likwise.
8708         * sysdeps/i386/configure: Likewise.
8710         * elf/dl-open.c: Comment fixes.
8712 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
8714         * Makefile [CXX] (check-data): Remove.
8715         [CXX] (c++-types.data): New vpath directive.
8716         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
8717         vpath.  Do not allow for C++ type data being missing.
8718         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
8719         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
8720         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
8721         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
8722         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
8723         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
8724         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
8725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
8726         ... here.
8727         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
8728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
8729         ... here.
8730         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
8731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
8732         ... here.
8733         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
8734         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
8735         ... here.
8736         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
8737         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
8738         ... here.
8739         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
8740         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
8741         ... here.
8742         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
8743         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
8744         ... here.
8745         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
8746         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
8748         * elf/tls-macros.h (TLS_LE): Move architecture-specific
8749         definitions to architecture-specific files.
8750         (TLS_IE): Likewise.
8751         (TLS_LD): Likewise.
8752         (TLS_GD): Likewise.
8753         * sysdeps/i386/tls-macros.h: New file.
8754         * sysdeps/powerpc/tls-macros.h: Likewise.
8755         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
8756         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
8757         * sysdeps/sh/tls-macros.h: Likewise.
8758         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
8759         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
8760         * sysdeps/x86_64/tls-macros.h: Likewise.
8762 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
8764         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
8765         zero value for regular exit case.
8767         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
8768         (__start_context): Preserve zero value for regular exit case.
8770 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
8771             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8773         * manual/setjmp.texi (setcontext): Clarify normal process
8774         termination when uc_link is the null pointer.
8775         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
8776         exit call.
8778 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
8780         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
8781         preprocessor.  Test for each exception mask separately.
8783 2012-07-16  Andreas Jaeger  <aj@suse.de>
8785         * po/ru.po: Update from translation team.
8787 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
8789         * conform/data/string.h-data (NULL): Use macro-constant.  Require
8790         equal to 0.
8791         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
8792         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
8793         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
8794         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
8795         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8797 2012-07-13  Andreas Jaeger  <aj@suse.de>
8799         * po/fr.po: Update from translation team.
8801 2012-07-12  Marek Polacek  <polacek@redhat.com>
8803         [BZ #14173]
8804         * math/libm-test.inc (yn_test): Add test for BZ #14173.
8805         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
8806         loop condition.
8808 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
8810         [BZ #13717]
8811         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8812         Change to 2.4.1 where previously 2.4.0.
8813         * sysdeps/unix/sysv/linux/configure: Regenerated.
8814         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
8815         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
8816         version.
8817         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
8818         (__ASSUME_AT_CLKTCK): Remove.
8819         (__ASSUME_AT_PAGESIZE): Likewise.
8820         (__ASSUME_AT_XID): Likewise.
8821         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
8822         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
8823         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
8824         unconditionally.
8825         (HAVE_AUX_PAGESIZE): Likewise.
8826         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
8827         [__ASSUME_AT_CLKTCK]: Make code unconditional.
8828         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
8830 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
8832         [BZ #14307]
8833         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
8834         the temporary buffer used to invoke __gethostbyname2_r,
8835         __gethostbyaddr_r and gethostbyname4_r to make room for struct
8836         host_data / struct gaih_addrtuple.
8837         * resolv/nss_dns/dns-host.c (global scope): Move definition of
8838         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
8839         header file nss/nsswitch.h.
8840         * nss/nsswitch.h (global scope): Add definition of implementation
8841         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
8842         resolv/nss_dns/dns-host.c).
8844 2012-07-11  Andreas Jaeger  <aj@suse.de>
8846         * po/fr.po: Update from translation team.
8848         * po/sv.po: Update from translation team
8849         * po/fr.po: Another update from translation team.
8851 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8853         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
8854         for subnormals or multiply small sinh result by itself.
8855         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8856         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8858 2012-07-11  David S. Miller  <davem@davemloft.net>
8860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8862 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
8864         [BZ #14347]
8865         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
8866         (INTERNAL_MARK): Shift it here.
8868 2012-07-10  Marek Polacek  <polacek@redhat.com>
8870         [BZ #14151]
8871         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
8872         libc_cv_asm_global_directive with .globl.
8873         * configure: Regenerated.
8874         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
8875         with .globl.
8876         * sysdeps/i386/configure: Regenerated.
8877         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
8878         with .globl.
8879         * sysdeps/x86_64/configure: Regenerated.
8880         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
8881         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
8882         * elf/tst-unique2mod2.c: Likewise.
8883         * elf/tst-unique2mod1.c: Likewise.
8884         * elf/tst-unique1mod2.c: Likewise.
8885         * elf/tst-unique1mod1.c: Likewise.
8886         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8887         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
8888         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8889         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8890         * sysdeps/mach/sysdep.h: Likewise.
8891         * sysdeps/i386/sysdep.h: Likewise.
8892         * sysdeps/i386/i386-mcount.S: Likewise.
8893         * sysdeps/x86_64/_mcount.S: Likewise.
8894         * sysdeps/x86_64/sysdep.h: Likewise.
8895         * sysdeps/sh/_mcount.S: Likewise.
8896         * sysdeps/sh/sysdep.h: Likewise.
8897         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
8898         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
8899         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
8900         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8901         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
8902         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
8903         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
8904         * locale/localeinfo.h: Likewise.
8905         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
8906         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
8908 2012-07-09  Roland McGrath  <roland@hack.frob.com>
8910         [BZ #14336]
8911         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
8912         system".
8913         * manual/message.texi (The Uniforum approach): Likewise.
8914         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
8915         (glibc iconv Implementation): Likewise.
8917 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
8919         [BZ #14337]
8920         * math/s_clog.c (__clog): Avoid scaling a value down where that
8921         could result in underflow.
8922         * math/s_clog10.c (__clog10): Likewise.
8923         * math/s_clog10f.c (__clog10f): Likewise.
8924         * math/s_clog10l.c (__clog10l): Likewise.
8925         * math/s_clogf.c (__clogf): Likewise.
8926         * math/s_clogl.c (__clogl): Likewise.
8927         * math/libm-test.inc (clog_test): Add more tests.
8928         (clog10_test): Likewise.
8929         * sysdeps/i386/fpu/libm-test-ulps: Update.
8930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8932 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
8934         [BZ #14283]
8935         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
8936         by 7 not 8 to examine high bit of fractional part.
8938         [BZ #14042]
8939         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
8940         for call to __mcount_internal.
8941         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
8942         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
8943         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
8945 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
8947         [BZ #14154]
8948         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
8949         approximation for values within 0x1p-13f of an odd multiple of
8950         pi/4.
8951         * math/libm-test.inc (tan_test): Do not allow spurious underflow
8952         exception.  Add more tests.
8953         * sysdeps/i386/fpu/libm-test-ulps: Update.
8955         [BZ #6778]
8956         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
8957         inputs and return -1 for them.  Do not check for +Inf in case not
8958         reachable for +Inf.
8959         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
8960         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
8961         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
8962         and return -1 for them.  Do not check for +Inf in case not
8963         reachable for +Inf.
8964         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
8965         define.
8966         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
8967         and return -1 for them.  Do not check for +Inf in case not
8968         reachable for +Inf.
8969         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
8970         spurious underflow.
8971         * sysdeps/i386/fpu/libm-test-ulps: Update.
8972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8974 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
8976         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
8978 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
8980         [BZ #14157]
8981         [BZ #14331]
8982         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
8983         could result in spurious underflow.  Scale down values above
8984         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
8985         * math/s_csqrtf.c (__csqrtf): Likewise.
8986         * math/s_csqrtl.c (__csqrtl): Likewise.
8987         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
8988         spurious underflow.
8989         * sysdeps/i386/fpu/libm-test-ulps: Update.
8990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8992 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
8994         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
8995         xopen-msg.sed.
8996         * catgets/xopen-msg.awk: New file.
8997         * catgets/xopen-msg.sed: Removed.
8999         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
9000         po2text.sed.
9001         * intl/po2test.awk: New file.
9002         * intl/po2test.sed: Removed.
9004 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
9006         [BZ #14328]
9007         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
9008         or multiply small sinh result by itself.
9009         * math/s_ctanf.c (__ctanf): Likewise.
9010         * math/s_ctanh.c (__ctanh): Likewise.
9011         * math/s_ctanhf.c (__ctanhf): Likewise.
9012         * math/s_ctanhl.c (__ctanhl): Likewise.
9013         * math/s_ctanl.c (__ctanl): Likewise.
9014         * math/libm-test.inc (ctan_test_tonearest): New function.
9015         (ctan_test_towardzero): Likewise.
9016         (ctan_test_downward): Likewise.
9017         (ctan_test_upward): Likewise.
9018         (ctanh_test_tonearest): Likewise.
9019         (ctanh_test_towardzero): Likewise.
9020         (ctanh_test_downward): Likewise.
9021         (ctanh_test_upward): Likewise.
9022         (main): Call these new functions.
9023         * sysdeps/i386/fpu/libm-test-ulps: Update.
9024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9026 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
9028         * .gitignore: Delete /ports entry.
9030 2012-07-03  Andreas Jaeger  <aj@suse.de>
9032         * po/bg.po: Update from translation team.
9033         * po/cs.po: Likewise.
9034         * po/de.po: Likewise.
9035         * po/hr.po: Likewise.
9036         * po/nl.pl: Likewise.
9037         * po/pl.po: Likewise.
9038         * po/vi.po: Likewise.
9040 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
9042         * Makeconfig [!+link] (+link-before-libc): New variable.
9043         [!+link] (+link-after-libc): Likewise.
9044         [!+link] (+link-tests): Likewise.
9045         [!+link] (+link): Define in terms of $(+link-before-libc) and
9046         $(+link-after-libc).
9047         [!+link-static] (+link-static-before-libc): New variable.
9048         [!+link-static] (+link-static-after-libc): Likewise.
9049         [!+link-static] (+link-static-tests): Likewise.
9050         [!+link-static] (+link-static): Define in terms of
9051         $(+link-static-before-libc) and $(+link-static-after-libc).
9052         [build-shared] (link-libc-before-gnulib): New variable.
9053         [build-shared] (link-libc-tests): Likewise.
9054         [build-shared] (link-libc): Define in terms of
9055         $(link-libc-before-gnulib).
9056         [!build-shared] (link-libc-tests): New variable.
9057         (link-libc-static-tests): New variable.
9058         [!gnulib] (gnulib-arch): New variable.
9059         [!gnulib] (gnulib-tests): Likewise.
9060         [!gnulib] (static-gnulib-arch): Likewise.
9061         [!gnulib] (static-gnulib-tests): Likewise.
9062         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
9063         Define with "=" instead of ":=".
9064         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
9065         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
9066         * Rules (binaries-all-notests): New variable.
9067         (binaries-all-tests): Likewise.
9068         (binaries-static-notests): Likewise.
9069         (binaries-static-tests): Likewise.
9070         (binaries-all): Define using $(binaries-all-notests) and
9071         $(binaries-all-tests).
9072         (binaries-static): Define using $(binaries-static-notests) and
9073         $(binaries-static-tests).
9074         (binaries-shared-tests): New variable.
9075         (binaries-shared-notests): Likewise.
9076         (binaries-shared): Remove variable.
9077         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
9078         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
9079         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
9080         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
9081         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
9082         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
9083         * elf/Makefile (sln-modules): New variable.
9084         (extra-objs): Add $(sln-modules:=.o).
9085         (ldconfig-modules): Add static-stubs.
9086         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
9087         * elf/static-stubs.c: New file.
9089         [BZ #14283]
9090         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
9091         by 7 not 8 to examine high bit of fractional part.  Use volatile
9092         variables when splitting into final array of floats if
9093         __FLT_EVAL_METHOD__ != 0.
9094         * math/libm-test.inc (cos_test): Add another test.
9095         (sin_test): Likewise.
9096         * sysdeps/i386/fpu/libm-test-ulps: Update.
9098         [BZ #14273]
9099         * math/libm-test.inc (cosh_test): Add more tests.
9101         * version.h (RELEASE): Set to "development".
9102         (VERSION): Set to "2.16.90".
9104 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
9106         * NEWS: Update copyright. Remove last-updated date.
9107         Mention math library bug fixes and timezone data changes.
9108         * README: Mention GNU/Hurd, x32, and HPPA support status.
9110 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
9112         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
9114 2012-06-27  Andreas Jaeger  <aj@suse.de>
9116         * manual/contrib.texi (Contributors): Add Samuel Thibault.
9118 2012-06-25  Andreas Jaeger  <aj@suse.de>
9120         * sysdeps/s390/fpu/libm-test-ulps: Update.
9122 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
9123             Thomas Schwinge  <thomas@codesourcery.com>
9125         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
9126         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
9127         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
9128         fanotify_mark.
9130 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
9132         * sysdeps/mach/start.c: Remove file.
9133         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
9134         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
9135         * sysdeps/sh/init-first.c: Likewise.
9137         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
9138         registers for frame unwinding purposes, add CFI directives.
9139         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
9140         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
9141         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9142         Likewise.
9144         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
9145         __fortify_fail returning.
9146         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
9148         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
9149         sysdeps/sh/____longjmp_chk.S.
9150         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
9151         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
9152         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
9153         (gen-as-const-headers): Append sigaltstack-offsets.sym.
9155         * sysdeps/sh/abort-instr.h: New file.
9156         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
9157         process in case exit returns.
9159         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
9160         initialize the GOT register before use.
9162         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
9163         calculation of ARGC > 4.
9165         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
9166         meaningful names to some local labels.
9168 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9169             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9171         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
9172         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
9173         (__arch_compare_and_exchange_val_16_acq): Likewise.
9174         (__arch_compare_and_exchange_val_32_acq): Likewise.
9175         (atomic_exchange_and_add): Fix gUSA sequence.
9176         (atomic_add): Likewise.
9177         (atomic_add_negative): Likewise.
9178         (atomic_add_zero): Likewise.
9179         (atomic_bit_test_set): Likewise.
9181 2012-06-22  Andreas Schwab  <schwab@redhat.com>
9183         [BZ #13579]
9184         * include/link.h (struct link_map): Add l_free_initfini.
9185         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
9186         l_initfini.
9187         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
9188         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
9189         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
9190         set.
9192 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
9194         * configure.in: Use AC_LANG_SOURCE.
9195         * configure: Regenerate.
9197 2012-06-22  Roland McGrath  <roland@hack.frob.com>
9199         * configure.in (libc_cv_localstatedir): New substituted variable.
9200         * configure: Regenerated.
9201         * config.make.in (localstatedir): New variable, substituted from
9202         libc_cv_localstatedir.
9203         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
9204         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
9205         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
9206         * sysdeps/gnu/configure: Regenerated.
9208 2012-06-21  Jeff Law  <law@redhat.com>
9210         [BZ #14277]
9211         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
9212         free.  Simplify list management for _LIBC case.
9214 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
9216         [BZ #14273]
9217         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
9218         Clear sign bit of 64-bit integer value before comparing against
9219         overflow value.
9221         * sysdeps/mach/configure: Regenerated.
9223 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9225         [BZ #14278]
9226         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
9228 2012-06-21  Jeff Law  <law@redhat.com>
9230         [BZ #13882]
9231         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
9232         uint16_t for elements in the "seen" array to avoid char overflows.
9233         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9234         * elf/dl-open.c (dl_open_worker): Likewise.
9236 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
9238         * scripts/list-sources.sh: Scan PORTS for translations.
9239         * po/libc.pot: Regenerated.
9241 2012-06-21  Andreas Jaeger  <aj@suse.de>
9243         [BZ #12194]
9244         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
9245         warning.
9246         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
9247         * bits/byteswap-16.h (__bswap_16): Likewise.
9248         * bits/byteswap.h (__bswap_constant_16): Likewise.
9250 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9252         [BZ #14117]
9253         * sysdeps/i386/fpu_control.h: Removed.
9254         * sysdeps/x86_64/fpu_control.h: Moved to ...
9255         * sysdeps/x86/fpu_control.h: Here.
9257         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
9258         (_FPU_SETCW): Likewise.
9260 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
9262         [BZ #14117]
9263         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
9264         * sysdeps/x86/fpu/bits/mathinline.h: This.
9265         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
9267         [BZ #14050]
9268         [BZ #14117]
9269         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
9270         functions if __x86_64__ is defined.
9272 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
9274         * string/endian.h: Add !__ASSEMBLER__ condition for including
9275         conversion interfaces.
9277 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
9279         [BZ #14241]
9280         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
9281         of ABS(x) in calculating zero to negative powers other than odd
9282         integers.
9283         * math/libm-test.inc (pow_test): Add more tests.
9285 2012-06-15  Andreas Jaeger  <aj@suse.de>
9287         * manual/contrib.texi (Contributors): Update entry of Liubov
9288         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
9289         Machado Filho.
9291 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
9293         * string/string.h: Add __wur to GNU version of strerror_r.
9295 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9297         [BZ #14229]
9298         * string/Makefile (tests): Add tst-strtok_r.
9299         * string/tst-strtok_r.c: New file.
9300         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
9301         RAX_LP/RDX_LP on SAVE_PTR.
9303 2012-06-14  Roland McGrath  <roland@hack.frob.com>
9305         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
9307 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
9309         * libm_test.inc (csqrt_test): Allow more spurious underflow
9310         exceptions.
9311         (j0_test): Likewise.
9312         (j1_test): Likewise.
9313         (y0_test): Likewise.
9314         (y1_test): Likewise.
9316 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
9318         * po/Makefile (libc.pot): Use UTF-8 charset.
9320 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
9322         [BZ #14210]
9323         Suppress sign-conversion warning from FD_SET.
9324         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
9325         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
9326         not unsigned long int.
9327         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
9329 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
9331         [BZ #14050]
9332         [BZ #14117]
9333         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
9334         __extern_always_inline instead of __extern_inline.
9335         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
9336         (__signbit): Likewise.
9337         (__signbitl): Support C++ namespace.
9338         (lrintf): New inline function.
9339         (lrint): Likewise.
9340         (llrintf): Likewise.
9341         (llrint): Likewise.
9342         (fmaxf): Likewise.
9343         (fmax): Likewise.
9344         (fminf): Likewise.
9345         (fmin): Likewise.
9346         (rint): Likewise.
9347         (rintf): Likewise.
9348         (ceil): Likewise.
9349         (ceilf): Likewise.
9350         (floor): Likewise.
9351         (floorf): Likewise.
9352         (nearbyint): Likewise.
9353         (nearbyintf): Likewise.
9355 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
9357         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
9358         non-default versions.
9360 2012-06-11  Roland McGrath  <roland@hack.frob.com>
9362         [BZ #14218]
9363         * manual/argp.texi (Argp): Reword argp_parse description slightly.
9365 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
9367         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
9368         (FE_UPWARD, FE_DOWNWARD): Don't define.
9369         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
9370         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
9372         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
9373         reading it.
9374         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
9375         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
9377 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9379         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9380         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
9381         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
9382         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
9384 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
9386         [BZ #14117]
9387         * sysdeps/i386/fpu/bits/fenv.h: Removed.
9388         * sysdeps/i386/fpu/Implies: New file.
9389         * sysdeps/x86_64/fpu/Implies: Likewise.
9390         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
9391         * sysdeps/x86/fpu/bits/fenv.h: This.
9393         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
9394         __SSE_MATH__.
9396 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9398         [BZ #14134]
9399         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
9400         character 0xffff that matches the last element of the
9401         conversion table.
9403 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9405         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
9406         fmodl commit.
9408 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9410         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
9411         values higher than 25.6283.
9413 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9415         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
9416         subnormal exponent extraction and add some __builtin_expect.
9417         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
9418         Fix for subnormal mantissa calculation.
9420 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
9422         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
9423         cpu2 is -1 and errno is not ENOSYS.
9425 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
9427         [BZ #14117]
9428         * sysdeps/i386/i486/bits/string.h: Renamed to ...
9429         * sysdeps/x86/bits/string.h: This.
9430         * sysdeps/x86_64/bits/string.h: Removed.
9432         * sysdeps/i386/i486/bits/string.h: Define inline functions only
9433         if not compiling for x86-64, but compiling for >= i486.
9435         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
9436         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
9438         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
9439         New macro from Linux kernel 3.4.0.
9440         (FP_XSTATE_MAGIC2): Likewise.
9441         (FP_XSTATE_MAGIC2_SIZE): Likewise.
9442         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
9443         (struct _fpx_sw_bytes): New struct.
9444         (struct _xsave_hdr): Likewise.
9445         (struct _ymmh_state): Likewise.
9446         (struct _xstate): Likewise.
9448         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
9449         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
9450         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
9451         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
9452         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
9453         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
9455         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
9456         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
9457         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
9458         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
9459         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
9460         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
9462 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9464         [BZ #13743]
9465         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
9466         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
9467         (sysdep_headers): Include sys/platform/ppc.h.
9468         * sysdeps/powerpc/test-gettimebase.c: Test for
9469         __ppc_get_timebase() to catch future ISA opcode/insn changes.
9470         * manual/Makefile (appendices): Include platform.texi.
9471         * manual/contrib.texi (Contributors): Update @node pointers.
9472         * manual/maint.texi (Maintenance): Likewise.
9473         (Platform): New node.
9474         * manual/platform.texi: New file.  Document the new features.
9476 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9477             Jakub Jelinek  <jakub@redhat.com>
9479         [BZ #14188]
9480         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
9481         where __builtin_expect is unavailable.
9483 2012-06-03  David S. Miller  <davem@davemloft.net>
9485         * stdlib/longlong.h: Updated from GCC.
9487 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
9489         [BZ #14042]
9490         * sysdeps/powerpc/powerpc32/mcount.c: New file.
9491         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
9492         __mcount_internal.
9493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9494         (GLIBC_2.16): Likewise.
9496 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9498         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
9500 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
9503         (default-abi): New variable.
9504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
9505         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
9506         variable.
9507         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
9508         Likewise.
9509         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
9510         Likewise.
9511         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
9512         Likewise.
9514         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
9515         definition.  Document in comment.
9517 2012-06-01  David S. Miller  <davem@davemloft.net>
9519         * stdlib/longlong.h: Updated from GCC.
9521 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9523         [BZ #14117]
9524         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
9525         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
9526         sys/debugreg.h sys/io.h here.
9527         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
9528         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
9529         sys/io.h.
9530         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
9531         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
9532         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
9533         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
9534         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
9535         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
9537         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
9538         Define only if __x86_64__ is defined.
9540 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
9542         [BZ #14048]
9543         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
9544         Use int64_t for variable i.
9545         * math/libm-test.inc (fmod_test): Add more tests.
9547         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
9548         z computation is not scheduled after fetestexcept.
9549         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
9550         Use math_force_eval instead of asm to ensure calculation scheduled
9551         before exception test.
9552         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
9553         Ensure a1 + u.d computation is not scheduled after fetestexcept.
9555 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
9557         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
9558         computation is not scheduled after fetestexcept.
9560 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
9562         [BZ #14117]
9563         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
9564         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
9566 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9568         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
9569         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9571 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
9573         [BZ #14117]
9574         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
9575         <bits/wordsize.h>.
9576         (__WCHAR_MIN): Support __WORDSIZE == 64.
9577         (__WCHAR_MAX): Likewise.
9579         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
9580         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
9582         [BZ #14183]
9583         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
9584         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
9586         [BZ #14117]
9587         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
9588         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
9590         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
9591         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
9593         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
9594         Defined to 1 if __x86_64__ isn't defined.
9595         (_STAT_VER_LINUX_OLD): New.
9596         (st_atime): Remove duplicate.
9597         (st_mtime): Likewise.
9598         (st_ctime): Likewise.
9600 2012-05-31  David S. Miller  <davem@davemloft.net>
9602         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
9603         entries.
9605 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
9607         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
9608         gen-libm-test.pl.
9610         [BZ #14132]
9611         * elf/dl-reloc.c: Include <_itoa.h>.
9612         (_dl_reloc_bad_type): Remove use of INTUSE.
9613         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
9614         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
9615         * stdio-common/psiginfo.c (psiginfo): Likewise.
9616         * stdio-common/psignal.c (psignal): Likewise.
9617         * string/strsignal.c (strsignal): Likewise.
9618         * include/signal.h (_sys_siglist): Declare hidden proto.
9619         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
9620         INTVARDEF with libc_hidden_data_def.
9621         * stdio-common/itoa-udigits.c: Likewise.
9622         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
9623         (_itoa_lower_digits_internal): Remove declaration.
9624         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
9625         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
9626         (_sys_sigabbrev_internal): Remove aliases.
9627         (_sys_siglist): Define hidden alias.
9629 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
9631         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9632         bits/sysctl.h.
9634 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
9636         [BZ #14117]
9637         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
9638         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
9640         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
9641         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
9642         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
9643         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
9644         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
9645         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
9647         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
9648         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
9649         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
9651         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
9652         with __addr.
9653         (insw): Likewise.
9654         (insl): Likewise.
9655         (outsb): Likewise.
9656         (outsw): Likewise.
9657         (outsl): Likewise.
9659         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
9660         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
9661         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
9663         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
9664         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
9665         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
9666         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
9667         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
9668         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
9670         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
9671         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
9673         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
9674         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
9676         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
9677         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
9678         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
9680         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
9681         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
9682         to ...
9683         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
9685         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
9686         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
9687         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
9689         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
9690         for x86-64.
9691         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
9693 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
9695         * math/math.h (M_El): Use two more decimal places.
9696         (M_LOG2El): Likewise.
9697         (M_LOG10El): Likewise.
9698         (M_LN2l): Likewise.
9699         (M_LN10l): Likewise.
9700         (M_PIl): Likewise.
9701         (M_PI_2l): Likewise.
9702         (M_PI_4l): Likewise.
9703         (M_1_PIl): Likewise.
9704         (M_2_PIl): Likewise.
9705         (M_2_SQRTPIl): Likewise.
9706         (M_SQRT2l): Likewise.
9707         (M_SQRT1_2l): Likewise.
9709 2012-05-31  David S. Miller  <davem@davemloft.net>
9711         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
9712         values between float registers.
9713         * sysdeps/sparc/sparc64/memset.S: Likewise.
9714         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9716 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
9718         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
9719         -D_FORTIFY_SOURCE=1.
9720         (CPPFLAGS-tst-longjmp_chk.c): Define.
9721         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
9722         (CPPFLAGS-tst-longjmp_chk2.c): Define.
9723         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
9724         CFLAGS-tst-wchar-h.c.
9726 2012-05-31  Marek Polacek  <polacek@redhat.com>
9728         [BZ #14132]
9729         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
9730         __endmntent_internal): Remove declaration.
9731         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
9732         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
9733         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
9735 2012-05-30  David S. Miller  <davem@davemloft.net>
9737         * sysdeps/sparc/sparc32/soft-fp/q_util.c
9738         (___Q_simulate_exceptions): Use real FP ops rather than writing
9739         into the %fsr.
9740         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
9741         Likewise.
9743 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9745         [BZ #14117]
9746         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
9747         * sysdeps/x86/bits/xtitypes.h: This.
9749         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
9750         * sysdeps/x86/bits/wordsize.h: This.
9752         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
9753         * sysdeps/x86/bits/huge_vall.h: This.
9755         * sysdeps/i386/bits/select.h: Removed.
9756         * sysdeps/x86_64/bits/select.h: Renamed to ...
9757         * sysdeps/x86/bits/select.h: This.
9759         * sysdeps/i386/bits/setjmp.h: Removed.
9760         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
9761         * sysdeps/x86/bits/setjmp.h: This.
9763         * sysdeps/i386/bits/mathdef.h: Removed.
9764         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
9765         * sysdeps/x86/bits/mathdef.h: This.
9767 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
9769         [BZ #14132]
9770         * include/sys/socket.h (__connect_internal)
9771         (__libc_sa_len_internal): Remove declaration.
9772         (__connect, __libc_sa_len): Declare hidden_proto.
9773         (SA_LEN): Remove use of INTUSE.
9774         * socket/connect.c: Add libc_hidden_def.
9775         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
9776         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
9777         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
9778         alias.
9779         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9780         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9781         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
9782         of adding _internal alias.
9784 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9786         [BZ #14117]
9787         * sysdeps/i386/bits/link.h: Removed.
9788         * sysdeps/i386/bits/linkmap.h: Likewise.
9789         * sysdeps/x86_64/bits/link.h: Renamed to ...
9790         * sysdeps/x86/bits/link.h: This.
9791         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
9792         * sysdeps/x86/bits/linkmap.h: This.
9794         * sysdeps/i386/bits/endian.h: Removed.
9795         * sysdeps/x86_64/bits/endian.h: Renamed to ...
9796         * sysdeps/x86/bits/endian.h: This.
9798         * sysdeps/i386/bits/byteswap.h: Removed.
9799         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9800         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
9801         * sysdeps/x86/bits/byteswap.h: This.
9802         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
9803         * sysdeps/x86/bits/byteswap-16.h: This.
9804         * sysdeps/i386/Implies: Add x86.
9805         * sysdeps/x86_64/Implies: Likewise.
9807 2012-05-30  David S. Miller  <davem@davemloft.net>
9809         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
9810         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
9811         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
9812         (FP_TRAPPING_EXCEPTIONS): Define.
9813         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
9814         (FP_TRAPPING_EXCEPTIONS): Define.
9815         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
9816         subnormals only when inexact has been signalled or underflow
9817         exceptions are enabled.
9818         (_FP_PACK_CANONICAL): Likewise.
9820 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9822         [BZ #14183]
9823         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
9824         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
9826 2012-05-30  Richard Henderson  <rth@twiddle.net>
9828         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
9829         with #ifndef NOT_IN_libc.
9831         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
9832         marked to avoid plt entry.
9834 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9836         [BZ #14112]
9837         * Makeconfig (default-abi): New macro.
9838         (abi-includes): Likewise.
9839         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
9840         $(abi-$(default-abi)-lib-soname) for soname if defined.
9841         ($(common-objpfx)gnu/lib-names.stmp): Generate from
9842         abi-variants.
9843         * Makefile (installed-stubs): Likewise.
9844         * include/stubs-biarch.h: Removed.
9845         * scripts/lib-names.awk: Only handle one library at a time.
9846         * scripts/soversions.awk: Remove WORDSIZE support.
9847         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
9848         entries.
9849         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
9850         Removed.
9851         (syscall-list-default-condition): Likewise.
9852         (syscall-list-default-condition): Likewise.
9853         (syscall-list-includes): Likewise.
9854         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
9855         syscall-list-* with abi-*.  Handle undefined abi-variants.
9856         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
9857         * sysdeps/unix/sysv/linux/i386/Implies: New file.
9858         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
9859         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
9860         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
9861         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
9862         Removed.
9863         (syscall-list-32-options): Likewise.
9864         (syscall-list-32-condition): Likewise.
9865         (syscall-list-64-options): Likewise.
9866         (syscall-list-64-condition): Likewise.
9867         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
9868         macro.
9869         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
9870         Renamed to ...
9871         (abi-*): This.
9872         (abi-64-ld-soname): New macro.
9873         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
9874         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
9875         Renamed to ...
9876         (abi-*): This.
9877         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
9878         * sysdeps/x86_64/x32/shlib-versions: Likewise.
9880 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
9882         * sysdeps/unix/sysv/linux/kernel-features.h
9883         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
9884         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
9885         include <kernel-features.h>.
9886         [!__NR_ftruncate64]: Remove conditional code.
9887         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9888         [__NR_ftruncate64]: Make code unconditional.
9889         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9890         * sysdeps/unix/sysv/linux/truncate64.c: Do not
9891         include <kernel-features.h>.
9892         [!__NR_ftruncate64]: Remove conditional code.
9893         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9894         [__NR_ftruncate64]: Make code unconditional.
9895         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
9897         include <kernel-features.h>.
9898         [!__NR_ftruncate64]: Remove conditional code.
9899         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9900         [__NR_ftruncate64]: Make code unconditional.
9901         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9903         include <kernel-features.h>.
9904         [!__NR_ftruncate64]: Remove conditional code.
9905         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9906         [__NR_ftruncate64]: Make code unconditional.
9907         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
9909         * configure.in (libc_cv_fpie): Weaken to a compile test using
9910         LIBC_TRY_CC_OPTION.
9911         * configure: Regenerated.
9913 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9915         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
9916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
9917         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
9918         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9919         Refreshed.
9920         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
9921         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
9922         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
9923         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
9924         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
9925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9926         Refreshed.
9928 2012-05-27  David S. Miller  <davem@davemloft.net>
9930         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
9931         (___Q_zero): New.
9932         (__Q_simulate_exceptions): Return void.  Change to simulate
9933         exceptions by writing into the %fsr.
9934         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
9935         (__Qp_handle_exceptions): Likewise.
9936         (numbers): Delete.
9937         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
9938         __Qp_handle_exceptions.
9939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
9940         __Qp_handle_exceptions.
9941         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
9942         as unused and give dummy FP_RND_NEAREST initializer.
9943         (FP_INHIBIT_RESULTS): Define.
9944         (___Q_simulate_exceptions): Update declaration.
9945         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
9946         formatting.
9947         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
9948         as unused and give dummy FP_RND_NEAREST initializer.
9949         (__Qp_handle_exceptions): Update declaration.
9950         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
9951         formatting.
9953 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
9955         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
9956         the temporary FPU control word.
9957         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9958         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
9959         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
9960         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
9961         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
9962         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
9963         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
9964         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
9965         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
9966         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
9967         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
9969 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9971         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
9972         fields.
9974 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
9976         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
9977         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
9978         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
9979         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
9980         Likewise.
9981         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
9982         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
9983         Likewise.
9985 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
9987         * po/h.po: Update from translation team.
9989 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
9991         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
9993         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
9994         handling of denormals.
9995         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9996         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
9997         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
9998         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
9999         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10000         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
10001         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
10002         Likewise.
10004 2012-05-26  Marek Polacek  <polacek@redhat.com>
10006         [BZ #14152]
10007         * math/libm-test.inc (fma_test): Don't always expect underflow
10008         exception.
10010 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10012         [BZ #12416]
10013         * elf/tst-execstack.c: Include stackinfo.h.
10014         (do_test): Adjust test case to ensure that pthread_getattr_np
10015         behaviour remains the same after marking stack executable.
10017 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10019         * sysdeps/unix/sysv/linux/kernel-features.h
10020         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
10021         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
10022         kernel-features.h.
10023         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10024         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10025         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
10026         kernel-features.h.
10027         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10028         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10030 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10032         * configure.in: Define the default includes to being none.
10033         * configure: Regenerated.
10035 2012-05-25  Roland McGrath  <roland@hack.frob.com>
10037         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
10038         * sysdeps/x86_64/setjmp.S: Likewise.
10039         * sysdeps/i386/bsd-setjmp.S: Likewise.
10040         * sysdeps/i386/bsd-_setjmp.S: Likewise.
10041         * sysdeps/i386/setjmp.S: Likewise.
10042         * sysdeps/i386/__longjmp.S: Likewise.
10043         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
10044         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
10046         * include/stap-probe.h: New file.
10047         * configure.in: Handle --enable-systemtap.
10048         * configure: Regenerated.
10049         * config.h.in (USE_STAP_PROBE): New #undef.
10050         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
10051         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
10052         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
10054 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10056         [BZ #13717]
10057         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
10058         to 2.4.0 where earlier.
10059         * sysdeps/unix/sysv/linux/configure: Regenerated.
10060         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
10061         <kernel-features.h>.
10062         [__ASSUME_32BITUIDS]: Make code unconditional.
10063         [!__ASSUME_32BITUIDS]: Remove conditional code.
10064         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
10065         <kernel-features.h>.
10066         [__ASSUME_32BITUIDS]: Make code unconditional.
10067         [!__ASSUME_32BITUIDS]: Remove conditional code.
10068         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
10069         [__ASSUME_32BITUIDS]: Make code unconditional.
10070         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
10071         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
10072         <kernel-features.h>.
10073         [__ASSUME_32BITUIDS]: Make code unconditional.
10074         [!__ASSUME_32BITUIDS]: Remove conditional code.
10075         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
10076         <kernel-features.h>.
10077         [__ASSUME_32BITUIDS]: Make code unconditional.
10078         [!__ASSUME_32BITUIDS]: Remove conditional code.
10079         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
10080         <kernel-features.h>.
10081         [__ASSUME_32BITUIDS]: Make code unconditional.
10082         [!__ASSUME_32BITUIDS]: Remove conditional code.
10083         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
10084         <kernel-features.h>.
10085         [__ASSUME_32BITUIDS]: Make code unconditional.
10086         [!__ASSUME_32BITUIDS]: Remove conditional code.
10087         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
10088         <kernel-features.h>.
10089         [__ASSUME_32BITUIDS]: Make code unconditional.
10090         [!__ASSUME_32BITUIDS]: Remove conditional code.
10091         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
10092         <kernel-features.h>.
10093         [__ASSUME_32BITUIDS]: Make code unconditional.
10094         [!__ASSUME_32BITUIDS]: Remove conditional code.
10095         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
10096         <kernel-features.h>.
10097         [__ASSUME_32BITUIDS]: Make code unconditional.
10098         [!__ASSUME_32BITUIDS]: Remove conditional code.
10099         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
10100         <kernel-features.h>.
10101         [__ASSUME_32BITUIDS]: Make code unconditional.
10102         [!__ASSUME_32BITUIDS]: Remove conditional code.
10103         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
10104         <kernel-features.h>.
10105         [__ASSUME_32BITUIDS]: Make code unconditional.
10106         [!__ASSUME_32BITUIDS]: Remove conditional code.
10107         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
10108         <kernel-features.h>.
10109         [__ASSUME_32BITUIDS]: Make code unconditional.
10110         [!__ASSUME_32BITUIDS]: Remove conditional code.
10111         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
10112         <kernel-features.h>.
10113         [__NR_setresgid] (__setresgid): Do not declare.
10114         [__ASSUME_32BITUIDS]: Make code unconditional.
10115         [!__ASSUME_32BITUIDS]: Remove conditional code.
10116         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
10117         <kernel-features.h>.
10118         [__NR_setresuid] (__setresuid): Do not declare.
10119         [__ASSUME_32BITUIDS]: Make code unconditional.
10120         [!__ASSUME_32BITUIDS]: Remove conditional code.
10121         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
10122         <kernel-features.h>.
10123         [__ASSUME_32BITUIDS]: Make code unconditional.
10124         [!__ASSUME_32BITUIDS]: Remove conditional code.
10125         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
10126         <kernel-features.h>.
10127         [__ASSUME_32BITUIDS]: Make code unconditional.
10128         [!__ASSUME_32BITUIDS]: Remove conditional code.
10129         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
10130         <kernel-features.h>.
10131         [__ASSUME_32BITUIDS]: Make code unconditional.
10132         [!__ASSUME_32BITUIDS]: Remove conditional code.
10133         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
10134         <kernel-features.h>.
10135         [__ASSUME_32BITUIDS]: Make code unconditional.
10136         [!__ASSUME_32BITUIDS]: Remove conditional code.
10137         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
10138         <kernel-features.h>.
10139         [__ASSUME_32BITUIDS]: Make code unconditional.
10140         [!__ASSUME_32BITUIDS]: Remove conditional code.
10141         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
10142         <kernel-features.h>.
10143         [__ASSUME_32BITUIDS]: Make code unconditional.
10144         [!__ASSUME_32BITUIDS]: Remove conditional code.
10145         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
10146         <kernel-features.h>.
10147         [__ASSUME_32BITUIDS]: Make code unconditional.
10148         [!__ASSUME_32BITUIDS]: Remove conditional code.
10149         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
10150         <kernel-features.h>.
10151         [__ASSUME_32BITUIDS]: Make code unconditional.
10152         [!__ASSUME_32BITUIDS]: Remove conditional code.
10153         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
10154         <kernel-features.h>.
10155         [__ASSUME_32BITUIDS]: Make code unconditional.
10156         [!__ASSUME_32BITUIDS]: Remove conditional code.
10157         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
10158         <kernel-features.h>.
10159         [__ASSUME_32BITUIDS]: Make code unconditional.
10160         [!__ASSUME_32BITUIDS]: Remove conditional code.
10161         * sysdeps/unix/sysv/linux/kernel-features.h
10162         (__ASSUME_SETRESUID_SYSCALL): Remove.
10163         (__ASSUME_SETRESGID_SYSCALL): Likewise.
10164         (__ASSUME_32BITUIDS): Likewise.
10165         (__ASSUME_LDT_WORKS): Likewise.
10166         (__ASSUME_O_DIRECTORY): Likewise.
10167         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
10168         architecture but not kernel version.
10169         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
10170         (__ASSUME_MMAP2_SYSCALL): Likewise.
10171         (__ASSUME_STAT64_SYSCALL): Likewise.
10172         (__ASSUME_IPC64): Likewise.
10173         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
10174         <kernel-features.h>.
10175         [__ASSUME_32BITUIDS]: Make code unconditional.
10176         [!__ASSUME_32BITUIDS]: Remove conditional code.
10177         * sysdeps/unix/sysv/linux/opendir.c: Do not include
10178         <kernel-features.h>.
10179         [__ASSUME_O_DIRECTORY]: Make code unconditional.
10180         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
10181         132096]: Remove conditional code.
10182         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
10183         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
10184         <kernel-features.h>.
10185         [__ASSUME_32BITUIDS]: Make code unconditional.
10186         [!__ASSUME_32BITUIDS]: Remove conditional code.
10187         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
10188         <kernel-features.h>.
10189         [__ASSUME_32BITUIDS]: Make code unconditional.
10190         [!__ASSUME_32BITUIDS]: Remove conditional code.
10191         * sysdeps/unix/sysv/linux/setegid.c: Do not include
10192         <kernel-features.h>.
10193         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
10194         unconditional.
10195         (__setresgid): Do not declare.
10196         [__ASSUME_32BITUIDS]: Make code unconditional.
10197         [!__ASSUME_32BITUIDS]: Remove conditional code.
10198         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
10199         <kernel-features.h>.
10200         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
10201         unconditional.
10202         (__setresuid): Do not declare.
10203         [__ASSUME_32BITUIDS]: Make code unconditional.
10204         [!__ASSUME_32BITUIDS]: Remove conditional code.
10205         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
10206         <kernel-features.h>.
10207         [__ASSUME_32BITUIDS]: Make code unconditional.
10208         [!__ASSUME_32BITUIDS]: Remove conditional code.
10209         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
10210         <kernel-features.h>.
10211         [__ASSUME_32BITUIDS]: Make code unconditional.
10212         [!__ASSUME_32BITUIDS]: Remove conditional code.
10214 2012-05-25  Richard Henderson  <rth@twiddle.net>
10216         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
10217         dl_hwcap to ifunc resolver.
10218         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
10219         elf_ifunc_invoke.
10220         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
10221         dl_hwcap to ifunc resolver.
10222         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
10224 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10226         [BZ #14153]
10227         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
10228         for |x| <= 2**-26, not 2**-57.
10229         * math/libm-test.inc (acos_test): Do not allow spurious underflow
10230         exception.
10232 2012-05-24  Jeff Law  <law@redhat.com>
10234         * stdio-common/Makefile (tests): Add bug25.
10235         * stdio-common/bug25.c: New test.
10237 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10239         [BZ #13576]
10240         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
10241         multiple of MALLOC_ALIGNMENT in size.
10242         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
10244 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10246         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
10247         Require >= 256.
10248         (FILENAME_MAX): Use macro-int-constant.
10249         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
10250         (_IOFBF): Use macro-int-constant.
10251         (_IOLBF): Likewise.
10252         (_IONBF): Likewise.
10253         (SEEK_CUR): Likewise.
10254         (SEEK_END): Likewise.
10255         (SEEK_SET): Likewise.
10256         (TMP_MAX): Likewise.
10257         (EOF): Use macro-int-constant.  Require < 0.
10258         (NULL): Use macro-constant.  Require == 0.
10259         (stdin): Require type to be FILE *.
10260         (stdout): Likewise.
10261         (stderr): Likewise.
10262         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
10263         macro-int-constant.
10264         (EXIT_SUCCESS): Likewise.
10265         (NULL): Use macro-constant.  Require == 0.
10266         (RAND_MAX): Use macro-int-constant.
10267         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
10268         [C99-based standards] (strtof): Require function.
10269         [C99-based standards] (strtold): Likewise.
10270         [C99-based standards] (strtoll): Likewise.
10271         [C99-based standards] (strtoull): Likewise.
10272         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
10273         [ISO || ISO99 || ISO11] (limits.h): Likewise.
10274         [ISO || ISO99 || ISO11] (math.h): Likewise.
10275         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
10276         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
10277         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10279 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
10281         [BZ #14132]
10282         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
10283         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
10284         * intl/dgettext.c (DCGETTEXT): Likewise.
10285         * intl/gettext.c (DCGETTEXT): Likewise.
10286         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
10287         * posix/regex_internal.h (gettext): Likewise.
10288         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
10289         Remove declaration.
10290         * include/argz.h (__argz_count_internal)
10291         (__argz_stringify_internal): Remove declaration.
10292         (__argz_count, __argz_stringify): Declare hidden proto.
10293         * intl/dcgettext.c: Remove use of INTDEF.
10294         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
10295         * string/argz-stringify.c: Likewise.
10296         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
10297         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
10298         Declare hidden proto.
10299         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
10300         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
10301         Declare hidden proto.
10302         * include/stdio.h (__asprintf_internal): Don't declare.
10303         (__asprintf): Don't define as macro.  Declare hidden proto.
10304         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
10305         (__fsetlocking): Declare hidden proto.
10306         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
10307         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
10308         hidden proto.
10309         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
10310         (_IO_setlinebuf): Remove use of INTUSE.
10311         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
10312         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
10313         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
10314         Remove declaration.
10315         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
10316         (_IO_do_flush): Remove use of INTUSE.
10317         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
10318         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
10319         (_IO_adjust_column, _IO_least_wmarker)
10320         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
10321         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
10322         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
10323         (_IO_default_doallocate, _IO_wdefault_doallocate)
10324         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
10325         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
10326         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
10327         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
10328         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
10329         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
10330         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
10331         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
10332         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
10333         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
10334         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
10335         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
10336         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
10337         proto.
10338         (_IO_flush_all_internal, _IO_adjust_column_internal)
10339         (_IO_default_uflow_internal, _IO_default_finish_internal)
10340         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
10341         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
10342         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
10343         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
10344         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
10345         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
10346         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
10347         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
10348         (_IO_file_close_internal, _IO_file_close_it_internal)
10349         (_IO_file_underflow_internal, _IO_file_overflow_internal)
10350         (_IO_file_init_internal, _IO_file_attach_internal)
10351         (_IO_file_fopen_internal, _IO_file_read_internal)
10352         (_IO_file_sync_internal, _IO_file_seek_internal)
10353         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
10354         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
10355         (_IO_str_underflow_internal, _IO_str_overflow_internal)
10356         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
10357         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
10358         (_IO_list_all_internal, _IO_link_in_internal)
10359         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
10360         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
10361         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
10362         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
10363         (_IO_do_write_internal, _IO_padn_internal)
10364         (_IO_getline_info_internal, _IO_getline_internal)
10365         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
10366         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
10367         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
10368         (_IO_vfscanf_internal, _IO_vfprintf_internal)
10369         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
10370         (_IO_init_internal, _IO_un_link_internal): Don't declare.
10371         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
10372         with libc_hidden_ver, remove use of INTUSE.
10373         * libio/genops.c: Likewise.
10374         * libio/freopen.c: Likewise.
10375         * libio/freopen64.c: Likewise.
10376         * libio/iofclose.c: Likewise.
10377         * libio/iofdopen.c: Likewise.
10378         * libio/iofflush.c: Likewise.
10379         * libio/iofflush_u.c: Likewise.
10380         * libio/iofgets.c: Likewise.
10381         * libio/iofgets_u.c: Likewise.
10382         * libio/iofopen.c: Likewise.
10383         * libio/iofopncook.c: Likewise.
10384         * libio/iofread.c: Likewise.
10385         * libio/iofread_u.c: Likewise.
10386         * libio/ioftell.c: Likewise.
10387         * libio/iofwrite.c: Likewise.
10388         * libio/iogetline.c: Likewise.
10389         * libio/iogets.c: Likewise.
10390         * libio/iogetwline.c: Likewise.
10391         * libio/iopadn.c: Likewise.
10392         * libio/iopopen.c: Likewise.
10393         * libio/ioseekoff.c: Likewise.
10394         * libio/ioseekpos.c: Likewise.
10395         * libio/iosetbuffer.c: Likewise.
10396         * libio/iosetvbuf.c: Likewise.
10397         * libio/ioungetc.c: Likewise.
10398         * libio/ioungetwc.c: Likewise.
10399         * libio/iovdprintf.c: Likewise.
10400         * libio/iovsprintf.c: Likewise.
10401         * libio/iovsscanf.c: Likewise.
10402         * libio/memstream.c: Likewise.
10403         * libio/obprintf.c: Likewise.
10404         * libio/oldfileops.c: Likewise.
10405         * libio/oldiofclose.c: Likewise.
10406         * libio/oldiofdopen.c: Likewise.
10407         * libio/oldiofopen.c: Likewise.
10408         * libio/oldiopopen.c: Likewise.
10409         * libio/oldstdfiles.c: Likewise.
10410         * libio/putc.c: Likewise.
10411         * libio/setbuf.c: Likewise.
10412         * libio/setlinebuf.c: Likewise.
10413         * libio/stdfiles.c: Likewise.
10414         * libio/strops.c: Likewise.
10415         * libio/vasprintf.c: Likewise.
10416         * libio/vscanf.c: Likewise.
10417         * libio/vsnprintf.c: Likewise.
10418         * libio/vswprintf.c: Likewise.
10419         * libio/wfiledoalloc.c: Likewise.
10420         * libio/wfileops.c: Likewise.
10421         * libio/wgenops.c: Likewise.
10422         * libio/wmemstream.c: Likewise.
10423         * libio/wstrops.c: Likewise.
10424         * libio/__fpurge.c: Likewise.
10425         * libio/__fsetlocking.c: Likewise.
10426         * assert/assert.c: Likewise.
10427         * debug/fgets_chk.c: Likewise.
10428         * debug/fgets_u_chk.c: Likewise.
10429         * debug/fread_chk.c: Likewise.
10430         * debug/fread_u_chk.c: Likewise.
10431         * debug/gets_chk.c: Likewise.
10432         * debug/obprintf_chk.c: Likewise.
10433         * debug/vasprintf_chk.c: Likewise.
10434         * debug/vdprintf_chk.c: Likewise.
10435         * debug/vsnprintf_chk.c: Likewise.
10436         * debug/vsprintf_chk.c: Likewise.
10437         * malloc/mtrace.c: Likewise.
10438         * misc/error.c: Likewise.
10439         * misc/syslog.c: Likewise.
10440         * stdio-common/asprintf.c: Likewise.
10441         * stdio-common/fxprintf.c: Likewise.
10442         * stdio-common/getw.c: Likewise.
10443         * stdio-common/isoc99_fscanf.c: Likewise.
10444         * stdio-common/isoc99_scanf.c: Likewise.
10445         * stdio-common/isoc99_vfscanf.c: Likewise.
10446         * stdio-common/isoc99_vscanf.c: Likewise.
10447         * stdio-common/isoc99_vsscanf.c: Likewise.
10448         * stdio-common/printf-prs.c: Likewise.
10449         * stdio-common/printf_fp.c: Likewise.
10450         * stdio-common/printf_fphex.c: Likewise.
10451         * stdio-common/printf_size.c: Likewise.
10452         * stdio-common/putw.c: Likewise.
10453         * stdio-common/scanf.c: Likewise.
10454         * stdio-common/sprintf.c: Likewise.
10455         * stdio-common/tmpfile.c: Likewise.
10456         * stdio-common/vfprintf.c: Likewise.
10457         * stdio-common/vfscanf.c: Likewise.
10458         * stdlib/strfmon_l.c: Likewise.
10459         * sunrpc/openchild.c: Likewise.
10460         * sunrpc/xdr_stdio.c: Likewise.
10461         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
10462         * sysdeps/mach/hurd/tmpfile.c: Likewise.
10464 2012-05-24  Roland McGrath  <roland@hack.frob.com>
10466         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
10468         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
10469         in the third column, to generate for the shared library an IFUNC
10470         that uses _dl_vdso_vsym.
10471         * Makerules (COMPILE.c, compile-stdin.c): New variables.
10472         * Makeconfig (object-suffixes-noshared): New variable.
10474         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
10475         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
10476         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
10477         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
10479         [BZ #14132]
10480         * include/sys/time.h (__gettimeofday): Remove macro.
10481         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
10482         * time/gettimeofday.c (__gettimeofday): Remove #undef.
10483         Remove INTDEF.
10484         (__gettimeofday): Add libc_hidden_def.
10485         (gettimeofday): Add libc_hidden_weak.
10486         * sysdeps/mach/gettimeofday.c: Likewise.
10487         * sysdeps/posix/gettimeofday.c: Likewise.
10488         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
10489         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
10490         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
10491         (__gettimeofday_internal): Remove strong_alias.
10492         (__gettimeofday): Add libc_hidden_def.
10493         (gettimeofday): Add libc_hidden_weak.
10494         * sysdeps/unix/syscalls.list (gettimeofday):
10495         Remove __gettimeofday_internal alias.
10497 2012-05-24  Daniel Jacobowitz  <drow@false.org>
10498             H.J. Lu  <hongjiu.lu@intel.com>
10500         [BZ #12495]
10501         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
10502         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
10503         (largebin_index_32_big): New.
10504         (largebin_index): Use it for 16-byte alignment.
10505         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
10506         correction with front_misalign.
10508 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10510         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
10511         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
10512         Likewise.
10513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
10514         Likewise.
10515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
10516         Likewise.
10517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
10518         Likewise.
10519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
10520         Likewise.
10521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
10522         Likewise.
10523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
10524         Likewise.
10525         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
10526         Likewise.
10527         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
10528         Likewise.
10529         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
10530         Likewise.
10531         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
10532         Likewise.
10533         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
10534         Likewise.
10536         * scripts/data/c++-types-x32-linux-gnu.data: New file.
10537         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
10539 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
10541         [BZ #10846]
10542         [BZ #14036]
10543         * math/libm-test.inc (exp_test): Add test from bug 14036.
10544         (pow_test): Add test from bug 10846.
10546         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
10547         and other flags.
10548         (special_function): Do not include flags in test name.
10549         (parse_args): Likewise.
10550         * sysdeps/i386/fpu/libm-test-ulps: Update.
10551         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10552         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
10553         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
10554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10556         * math/gen-libm-test.pl (%beautify): Add entries for underflow
10557         exceptions.
10558         * math/libm-test.inc ("Philosophy"): Update comment about
10559         exception testing.
10560         (UNDERFLOW_EXCEPTION): New macro.
10561         (UNDERFLOW_EXCEPTION_OK): Likewise.
10562         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
10563         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
10564         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
10565         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
10566         (INVALID_EXCEPTION_OK): Update value.
10567         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10568         (OVERFLOW_EXCEPTION_OK): Likewise.
10569         (IGNORE_ZERO_INF_SIGN): Likewise.
10570         (test_exceptions): Handle underflow exceptions.
10571         (acos_test): Update for underflow exception expectations.
10572         (cexp_test): Likewise.
10573         (clog_test): Likewise.
10574         (clog10_test): Likewise.
10575         (csqrt_test): Likewise.
10576         (ctan_test): Likewise.
10577         (ctanh_test): Likewise.
10578         (exp_test): Likewise.
10579         (exp10_test): Likewise.
10580         (exp2_test): Likewise.
10581         (expm1_test): Likewise.
10582         (fma_test): Likewise.
10583         (j0_test): Likewise.
10584         (jn_test): Likewise.
10585         (nexttoward_test): Likewise.
10586         (pow_test): Likewise.
10587         (scalbn_test): Likewise.
10588         (scalbln_test): Likewise.
10589         (tan_test): Likewise.
10590         (y1_test): Likewise.
10591         * sysdeps/i386/fpu/libm-test-ulps: Update.
10592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10594 2012-05-23  David S. Miller  <davem@davemloft.net>
10596         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
10597         (__libc_sigaction): Remove unused local variables.
10599 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10601         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
10603 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10605         mktime: avoid signed integer overflow
10606         * time/mktime.c (__mktime_internal): Do not mishandle the case
10607         where diff == INT_MIN.
10609         mktime: simplify computation of average
10610         * time/mktime.c (ranged_convert): Use new time_t_avg function
10611         instead of rolling our own (probably-slower) code.
10613         mktime: do not assume signed right shift propagates sign bit
10614         * time/mktime.c (isdst_differ): New static function.
10615         (__mktime_internal): No need to normalize tm_isdst now.
10616         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
10617         tm_isdst values.
10619         mktime: merge another wrapv change from gnulib
10620         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
10621         from some compilers.
10623         mktime: remove incorrect attempt at unusual arithmetics
10624         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
10625         The code didn't really work on such machines anyway.
10626         (TYPE_MINIMUM): Assume two's complement.
10627         (twos_complement_arithmetic): Verify that long_int and time_t
10628         are two's complement (or unsigned, in the latter case).
10630         mktime: check signed shifts on long_int and time_t, too
10631         * time/mktime.c (SHR): Check that shifts work as desired
10632         on the types long_int and time_t too, as SHR is used on
10633         such types.
10635         mktime: do not assume 'long' is wide enough
10636         * time/mktime.c (verify): Move decl up.
10637         (long_int): New type.
10638         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
10639         to remove assumption in the code that 'long' is wide enough to
10640         store year values.  This assumption is not true on x32 and on
10641         some non-glibc platforms.
10643         mktime: merge wrapv change from gnulib
10644         * time/mktime.c (WRAPV): New macro.
10645         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
10646         (guess_time_tm, __mktime_internal): Do not assume that signed
10647         integer overflow wraps around; modern compilers generate code
10648         where this assumption is no longer valid.
10650 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10652         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10653         Replace "jmp L(pseudo_end)" with "ret".
10654         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10655         Likewise.
10657 2012-05-23  Andreas Jaeger  <aj@suse.de>
10659         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
10660         * sysdeps/unix/sysv/linux/poll.c: Remove file.
10662 2012-05-23  Andreas Jaeger  <aj@suse.de>
10663             Maximilian Attems  <max@stro.at>
10665         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
10666         New macros.
10668 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10670         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
10671         code so that pseudo_end is just ret and the stack pointer is
10672         correct also for static library in error case.
10674 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
10676         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
10677         move to syscalls.list.
10678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
10679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
10680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
10681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
10683         * manual/install.texi (Running make install): Do not mention Linux
10684         kernel version for which pt_chown is not needed.
10685         (Linux): Do not mention problems with nscd with 2.0 kernels.
10686         * INSTALL: Regenerated.
10688 2012-05-23  Andreas Jaeger  <aj@suse.de>
10690         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
10691         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
10692         macro.
10693         * sysdeps/unix/sysv/linux/s390/bits/mman.h
10694         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10695         * sysdeps/unix/sysv/linux/sh/bits/mman.h
10696         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10697         * sysdeps/unix/sysv/linux/i386/bits/mman.h
10698         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10699         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
10700         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10701         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
10702         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
10703         * sysdeps/unix/sysv/linux/bits/in.h
10704         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
10706 2012-05-22  Roland McGrath  <roland@hack.frob.com>
10708         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
10709         (PREPARE_VERSION): Just use assert instead, it will be elided
10710         under [NDEBUG] anyway.
10712 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10714         * sysdeps/unix/sysv/linux/Makefile: Include
10715         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
10716         (sysdep_routines): Remove sysctl.
10717         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
10718         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
10719         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
10720         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
10721         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
10723 2012-05-22  Andreas Jaeger  <aj@suse.de>
10725         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
10726         that pseudo_end is just ret and the stack pointer is correct also
10727         for static library in error case.
10729 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
10731         [BZ #14122]
10732         * nss/nsswitch.c (defconfig_entries): New variable.
10733         (__nss_database_lookup): Don't leak defconfig entries.
10734         (nss_parse_service_list): Don't leak on error paths.
10735         (free_database_entries): New function.
10736         (free_defconfig): New function.
10737         (free_mem): Move common code to free_database_entries.
10739 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10741         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
10742         Add arch_prctl.
10743         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
10745         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
10746         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
10747         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
10748         New macro.
10749         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
10750         (INTERNAL_SYSCALL_TYPES): Likewise.
10751         (LOAD_ARGS_TYPES_[1-6]): Likewise.
10752         (LOAD_REGS_TYPES_[1-6]): Likewise.
10753         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
10754         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
10756 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10758         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
10759         copysignl for GLIBC_2_0.
10760         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
10761         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
10762         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
10763         logbl for GLIBC_2_0.
10764         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
10765         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
10767 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10769         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
10770         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
10772         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10773         Use "neg %eax".
10775         * time/mktime.c: Update copyright years.
10777 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10779         mktime: merge comment-quoting-style change from gnulib
10780         * time/mktime.c: Quote 'like this' in comments.
10781         The GNU coding standards suggest that we no longer quote `like this',
10782         as "`" and "'" are typically rendered asymmetrically nowadays.
10783         The typical gnulib style is to quote 'like this' when quoting
10784         code, and "like this" when quoting English.
10786         * time/mktime.c (compile-command): Add "-I.".
10788         mktime: merge mktime-internal.h change from gnulib
10789         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
10791         mktime: merge time_r change from gnulib
10792         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
10794         mktime: merge DEBUG change from gnulib
10795         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
10796         case system <time.h> has a #define.
10798         mktime: merge <sys/types.h> change from gnulib
10799         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
10800         since <time.t> is now guaranteed to define time_t.
10802         mktime: merge HAVE_CONFIG_H change from gnulib
10803         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
10805 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
10807         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
10808         Use "neg %eax".
10810         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
10811         __rlim_t cast.
10812         (struct rusage): Use anonymous union to pad each field to
10813         __syscall_slong_t.
10815 2012-05-21  David S. Miller  <davem@davemloft.net>
10817         * Makefules (o-iterator): Remove .s cases.
10818         (compile-command.s): Delete.
10819         (COMPILE.s): Delete.
10820         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
10822 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
10824         * configure.in (libc_cv_predef_stack_protector): Only consider
10825         "foobar" and "__stack_chk_fail" lines in libc_undefs.
10826         * configure: Regenerated.
10828 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10830         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
10831         New macro.  Use R*LP on int and pointer.
10832         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
10833         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
10834         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
10835         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
10837         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
10838         [__WORDSIZE_TIME64_COMPAT32] instead of
10839         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
10840         (struct utmp): Likewise.
10841         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
10842         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
10843         Renamed to ...
10844         (__WORDSIZE_TIME64_COMPAT32): This.
10845         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
10846         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
10847         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
10848         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
10849         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
10850         (__WORDSIZE_TIME64_COMPAT32): New macro.
10852 2012-05-21  Andreas Jaeger  <aj@suse.de>
10854         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
10855         only if [SHARED]. Add prototype for __wcschr_ia32.
10857 2012-05-21  Roland McGrath  <roland@hack.frob.com>
10859         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
10860         of %rbp unmolested in the jmp_buf while mangling the low bits.
10861         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
10862         unmolested high bits of %rbp while demangling the low bits.
10863         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
10865 2012-05-21  Andreas Jaeger  <aj@suse.de>
10867         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
10868         * sunrpc/svc_simple.c: Use it for registerrpc.
10869         * sunrpc/xcrypt.c: Use it for passwd2des.
10871         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
10873 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10875         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
10876         Don't define if [__SYSCALL_WORDSIZE != 32].
10877         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
10878         New macro.
10880 2012-05-21  Bruno Haible  <bruno@clisp.org>
10881             Andreas Jaeger  <aj@suse.de>
10883         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
10884         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
10885         inptr and inend for must_buffer_ch.
10886         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
10887         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
10888         * stdio-common/Makefile (tests): Remove bug15.
10889         (bug15-ENV): Remove macro.
10890         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
10891         anymore.
10893 2012-05-19  Andreas Jaeger  <aj@suse.de>
10894             Roland McGrath  <roland@hack.frob.com>
10896         * manual/contrib.texi: Completely rewritten. It contains now an
10897         alphabetical list of contributors and their contributions.
10899 2012-05-21  Richard Henderson  <rth@twiddle.net>
10901         * misc/getauxval.c (__getauxval): Use unsigned long int.
10902         * misc/sys/auxv.h: Include <sys/cdefs.h>.
10903         (getauxval): Use unsigned long int.
10905 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10907         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
10909 2012-05-21  Roland McGrath  <roland@hack.frob.com>
10911         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
10912         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
10913         __alignof__ (long double).
10915 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10917         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10919 2012-05-20  Richard Henderson  <rth@twiddle.net>
10921         * misc/getauxval.c: New file.
10922         * misc/sys/auxv.h: New file.
10923         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
10924         (routines): Add getauxval.
10925         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
10926         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
10927         * elf/dl-sysdep.c (_dl_auxv): Remove.
10928         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
10929         * elf/dl-support.c (_dl_auxv): New variable.
10930         (_dl_aux_init): Initialize it.
10931         * manual/startup.texi (Auxiliary Vector): New node.
10932         * sysdeps/generic/bits/hwcap.h: New file.
10933         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
10934         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
10935         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
10936         * sysdeps/sparc/sysdep.h: ... here.  Include it.
10937         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
10938         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
10939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10940         Update.
10941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
10942         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
10943         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
10944         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
10945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
10946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
10947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
10948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
10950 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10952         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10954 2012-05-19  David S. Miller  <davem@davemloft.net>
10956         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10958 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
10960         [BZ #14123]
10961         * math/s_ccosh.c: Include <float.h>
10962         (__ccosh): Avoid internal overflow calculating sinh and cosh
10963         values before multiplying by sin and cos values.
10964         * math/s_ccoshf.c: Likewise.
10965         * math/s_ccoshl.c: Likewise.
10966         * math/s_csin.c: Likewise.
10967         * math/s_csinf.c: Likewise.
10968         * math/s_csinl.c: Likewise.
10969         * math/s_csinh.c: Likewise.
10970         * math/s_csinhf.c: Likewise.
10971         * math/s_csinhl.c: Likewise.
10972         * math/libm-test.inc (ccos_test): Add more tests.
10973         (ccosh_test): Likewise.
10974         (csin_test): Likewise.
10975         (csinh_test): Likewise.
10976         * sysdeps/i386/fpu/libm-test-ulps: Update.
10977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10979 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
10981         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
10982         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
10984         * sysdeps/x86_64/x32/_itoa.h: Add comment.
10986 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
10988         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
10989         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
10990         * sysdeps/powerpc/soft-fp/Versions: Likewise.
10991         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
10992         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
10993         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
10994         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
10995         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
10996         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
10997         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
10998         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
10999         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
11000         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
11001         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
11002         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
11003         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
11004         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
11005         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
11006         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
11007         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
11008         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
11009         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
11010         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
11011         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
11012         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
11013         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
11014         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
11015         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
11016         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
11017         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
11018         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
11020 2012-05-18  Andreas Jaeger  <aj@suse.de>
11022         * csu/.gitignore: Delete.
11024 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11026         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
11027         (timex): Use __syscall_slong_t.
11029 2012-05-18  Andreas Jaeger  <aj@suse.de>
11030             Carlos O'Donell  <carlos_odonell@mentor.com>
11032         * manual/install.texi (Configuring and compiling): Update
11033         description about files modified in the source directory.
11034         * INSTALL: Regenerated.
11036 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11038         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
11039         value.  Use "or" to set return value to -1.
11040         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
11041         negate return value.
11043 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11045         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
11046         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
11047         failure if the compiler has Graphite support disabled.
11048         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
11049         Likewise.
11050         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
11051         CFLAGS-memmove.c): Likewise.
11052         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
11053         Likewise.
11055 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11057         * sysdeps/x86_64/x32/_itoa.h: New file.
11059         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
11060         getdents system call only if kernel and user dirents have the
11061         same d_ino and d_off.
11063         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11064         LLONG_MAX != LONG_MAX.
11065         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11066         (_fitoa_word): Likewise.
11068         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
11069         years.
11070         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
11071         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
11072         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
11074         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
11075         include <bits/wordsize.h>.  Check __x86_64__ instead of
11076         __WORDSIZE.
11077         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
11078         if __x86_64__ is defined.  Use anonymous union on fpstate.
11080         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
11081         anonymous union.
11083 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
11085         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
11086         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
11087         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
11088         Refer to _rtld_local_ro instead of _rtld_global_ro.
11089         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
11090         Likewise.
11091         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
11092         Likewise.
11093         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
11094         Likewise.
11095         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
11096         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
11097         of _rtld_global, and rtld_progname instead of _dl_argv[0].
11099         * sysdeps/powerpc/powerpc32/dl-machine.c
11100         (__elf_machine_runtime_setup) [PROF]: Don't reference
11101         _dl_prof_resolve.
11103 2012-05-18  Andreas Jaeger  <aj@suse.de>
11105         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
11106         function only available for GCCs before 3.4 since GCC 3.4
11107         introduced a builtin.
11108         (lrint): Likewise.
11109         (llrintf): Likewise.
11110         (llrint): Likewise.
11111         (fmaxf): Likewise.
11112         (fmax): Likewise.
11113         (fminf): Likewise.
11114         (fmin): Likewise.
11115         (rint): Likewise.
11116         (rintf): Likewise.
11117         (nearbyint): Likewise.
11118         (nearbyintf): Likewise.
11119         (ceil): Likewise.
11120         (ceilf): Likewise.
11121         (floor): Likewise.
11122         (floorf): Likewise.
11124 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11126         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
11127         on both fields and cast pointer to __syscall_ulong_t.
11129         * bits/types.h (__fsword_t): New type.
11130         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
11131         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
11132         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11133         (__FSWORD_T_TYPE): Likewise.
11134         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11135         (__FSWORD_T_TYPE): Likewise.
11136         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11137         (__FSWORD_T_TYPE): Likewise.
11138         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
11139         (__FSWORD_T_TYPE): Likewise.
11140         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
11141         __SWORD_TYPE with __fsword_t.
11142         (statfs64): Likewise.
11144 2012-05-17  David S. Miller  <davem@davemloft.net>
11146         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
11148 2012-05-17  Andreas Jaeger  <aj@suse.de>
11150         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
11151         warning.
11153 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11155         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
11157 2012-05-17  Andreas Jaeger  <aj@suse.de>
11159         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
11160         when it is used.
11162 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
11164         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
11166 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11168         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
11169         * sysdeps/x86_64/tst-mallocalign1.c: New file.
11171 2012-05-17  Andreas Jaeger  <aj@suse.de>
11172             Carlos O'Donell  <carlos_odonell@mentor.com>
11174         [BZ #14059]
11175         * sysdeps/x86_64/multiarch/init-arch.h
11176         (bit_YMM_Usable): Rename to...
11177         (bit_AVX_Usable): ... this.
11178         (bit_FMA4_Usable): New macro.
11179         (bit_XMM_state): New macro.
11180         (bit_YMM_state): New macro.
11181         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
11182         [__ASSEMBLER__] (index_AVX_Usable): ... this.
11183         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
11184         (CPUID_OSXSAVE): New macro.
11185         (CPUID_AVX): New macro.
11186         (CPUID_FMA4): New macro.
11187         (index_YMM_Usable): Rename to...
11188         (index_AVX_Usable): ... this.
11189         (HAS_AVX): Use HAS_ARCH_FEATURE.
11190         (HAS_FMA4): Likewise.
11191         (HAS_YMM_USABLE): Remove.
11192         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11193         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
11194         are present.
11195         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
11196         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
11197         * sysdeps/x86_64/multiarch/Makefile: Likewise.
11198         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
11199         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
11201 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
11203         * math/libm-test.c: Support platforms without multiple rounding modes.
11204         * math/bug-nextafter.c: Support platforms without FP exceptions.
11205         * math/bug-nexttoward.c: Likewise.
11206         * math/test-fenv.c: Likewise.
11207         * math/test-misc.c: Likewise.
11208         * stdlib/bug-getcontext.c: Likewise.
11210 2012-05-17  Andreas Jaeger  <aj@suse.de>
11212         * manual/examples/search.c (critter_cmp): Change signature to
11213         avoid warnings.
11214         * manual/string.texi (Collation Functions): Likewise.
11216 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11218         * bits/types.h: Fold copyright years.
11219         * bits/typesizes.h: Likewise.
11220         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
11221         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
11222         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
11223         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
11224         * time/time.h: Likewise.
11226 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
11228         [BZ #208]
11229         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
11230         in instead of returning them.  Return void.
11231         (__libc_mallinfo): Accumulate over all arenas.
11232         (__malloc_stats): Adjust for change in int_mallinfo interface.
11234 2012-05-16  Roland McGrath  <roland@hack.frob.com>
11236         [BZ #10375]
11237         * configure.in (NM): Add AC_CHECK_TOOL for it.
11238         (libc_extra_cflags): New substituted variable.
11239         Check for -fstack-protector being used implicitly.
11240         * configure: Regenerated.
11241         * config.make.in (config-extra-cflags): New variable,
11242         gets @libc_extra_cflags@.
11243         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
11245         [BZ #10375]
11246         * configure.in: Check for _FORTIFY_SOURCE being predefined.
11247         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
11248         * configure: Regenerated.
11249         * config.make.in (CPPUNDEFS): New substituted variable.
11250         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
11251         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
11252         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
11254 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11256         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
11257         (mq_attr): Use __syscall_slong_t.
11259 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11261         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
11262         Check __x86_64__ instead of __WORDSIZE.
11263         (_STAT_VER_LINUX): Likewise.
11264         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
11265         __syscall_ulong_t and __syscall_slong_t.
11266         (stat64): Likewise.
11268 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11270         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
11272 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11274         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
11276 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11278         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
11279         __syscall_ulong_t.
11281         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
11282         include <bits/wordsize.h>.  Check __x86_64__ instead of
11283         __WORDSIZE.
11284         (greg_t): Use "__extension__ long long int" if __x86_64__ is
11285         defined.
11286         (mcontext_t): Replace "unsigned long" with "unsigned long long".
11288         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
11289         include <bits/wordsize.h>.  Check __x86_64__ instead of
11290         __WORDSIZE.
11291         (user_regs_struct): Use "__extension__ unsigned long long"
11292         instead of "unsigned long" if __x86_64__ is defined.
11293         (user): Likewise.  Pad after pointer field if __ILP32__ is
11294         defined.
11296 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
11298         * configure.in (makeinfo): Require version 4.5 or later.  Allow
11299         versions 5 to 9.
11300         * configure: Regenerated.
11301         * manual/install.texi (texinfo): Increase version requirement to
11302         4.5 or later.
11303         * INSTALL: Regenerated.
11305         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
11307 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11309         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
11311         * sysdeps/x86_64/x32/ffs.c: New file.
11313         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
11314         __syscall_ulong_t.
11315         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
11316         defined.  Use __syscall_ulong_t.
11317         (shminfo): Use __syscall_ulong_t.
11318         (shm_info): Likewise.
11320         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
11321         __syscall_ulong_t.
11323         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
11324         <bits/wordsize.h>.
11325         (msgqnum_t): Use __syscall_ulong_t.
11326         (msglen_t): Likewise.
11327         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
11328         __syscall_ulong_t.
11330         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
11331         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11333         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
11335         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
11336         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
11338         * sysvipc/sys/msg.h (msgbuf): Replace long int with
11339         __syscall_slong_t.
11341         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
11342         include <bits/wordsize.h>.  Check __x86_64__ instead of
11343         __WORDSIZE.
11345         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
11346         "unsigned long long int" if __x86_64__ is defined.
11347         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
11349         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
11350         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11351         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
11353         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
11354         <stdint.h>.
11355         (GET_PC): Cast to uintptr_t first.
11356         (GET_FRAME): Likewise.
11357         (GET_STACK): Likewise.
11359         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
11360         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
11361         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
11362         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
11363         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
11364         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
11365         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
11366         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
11367         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
11368         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
11369         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
11370         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
11371         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11372         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
11373         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
11374         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
11375         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
11376         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
11377         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
11378         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
11379         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
11380         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
11381         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
11382         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
11383         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
11384         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
11385         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
11386         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
11387         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
11389 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
11391         * Makerules (+depfiles): Also collect depfiles from .oS in
11392         $(extra-objs).
11393         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
11394         .oS, $(libnldbl-routines)).
11396         * Makerules (native-compile-mkdep-flags): Define.
11397         * sunrpc/Makefile (extra-objs): Add $(addprefix
11398         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
11399         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
11400         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
11401         calling $(make-target-directory).
11403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11405         * bits/types.h (__snseconds_t): Removed.
11406         * time/time.h (struct timespec): Replace __snseconds_t with
11407         __syscall_slong_t.
11408         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
11409         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
11410         Likewise.
11411         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11412         (__SNSECONDS_T_TYPE): Likewise.
11413         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11414         (__SNSECONDS_T_TYPE): Likewise.
11415         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11416         (__SNSECONDS_T_TYPE): Likewise.
11418 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11420         * sysdeps/mach/hurd/bits/typesizes.h
11421         (__SYSCALL_SLONG_TYPE): New macro.
11422         (__SYSCALL_ULONG_TYPE): Likewise.
11424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11426         * bits/types.h (__syscall_slong_t): New type.
11427         (__syscall_ulong_t): Likewise.
11429         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
11430         (__SYSCALL_ULONG_TYPE): Likewise.
11431         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11432         (__SYSCALL_SLONG_TYPE): Likewise.
11433         (__SYSCALL_ULONG_TYPE): Likewise.
11434         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11435         (__SYSCALL_SLONG_TYPE): Likewise.
11436         (__SYSCALL_ULONG_TYPE): Likewise.
11437         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11438         (__SYSCALL_SLONG_TYPE): Likewise.
11439         (__SYSCALL_ULONG_TYPE): Likewise.
11441 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11443         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
11444         Add sigaltstack-offsets.sym.
11445         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11446         <sigaltstack-offsets.h>.
11447         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
11448         longjmp_msg pointer.
11449         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
11450         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
11451         signal stack.
11452         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
11454 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
11456         * elf/stackguard-macros.h: Remove file.
11457         * sysdeps/generic/stackguard-macros.h: New file.
11458         * sysdeps/i386/stackguard-macros.h: Likewise.
11459         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
11460         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
11461         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
11462         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
11463         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
11464         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
11465         * sysdeps/x86_64/stackguard-macros.h: Likewise.
11466         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
11467         <elf/stackguard-macros.h>.
11469         [BZ #14109]
11470         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
11471         __aligned__ in attribute.
11472         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
11473         (gregset_t): Likewise.
11475 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11477         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
11478         * sysdeps/x86_64/64/Implies-after: Here.  New file.
11479         * sysdeps/x86_64/x32/Implies-after: New file.
11481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11483         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
11484         and access return value for _dl_profile_fixup.  Use R10_LP to
11485         load frame size.
11487 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11489         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
11491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11493         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
11494         * sysdeps/x86_64/x32/sysdep.h: New file.
11496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11498         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
11499         * sysdeps/x86_64/setjmp.S: Likewise.
11501 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11503         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
11504         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
11505         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
11506         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
11507         remove unused global constant.
11509 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
11511         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
11512         include of <not-cancel.h>.
11514 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11516         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
11518 2012-05-15  Jeff Law  <law@redhat.com>
11519             Andreas Jaeger  <aj@suse.de>
11521         [BZ #13594]
11522         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
11523         out from...
11524         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
11525         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
11526         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
11527         code changing __hst_map_handle.map.
11529 2012-05-15  Roland McGrath  <roland@hack.frob.com>
11531         * configure.in (sysnames): Look for Implies-before and Implies-after
11532         files.
11533         * configure: Regenerated.
11535 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11537         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
11538         8-byte data alignment with LP_SIZE alignment.
11540 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11542         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
11543         into R10_LP.
11545 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11547         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
11549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11551         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
11552         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
11553         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
11554         Likewise.
11555         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11557 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11559         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
11560         (stackinfo_sub_sp): Likewise.
11562 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11564         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
11565         RAX_LP.
11567 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11569         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
11570         into R*_LP.
11572 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11574         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
11575         sizes into R*_LP.
11577 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11579         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
11581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11583         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
11584         into R11_LP and load __x86_64_shared_cache_size_half into
11585         R8_LP.
11587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11589         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
11590         R8_LP.
11592 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11594         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
11595         logb for POWER7.
11596         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
11597         logbf for POWER7.
11598         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
11599         logbl for POWER7.
11600         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
11601         powerpc32/power7/fpu/s_logb.c via #include.
11602         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
11603         powerpc32/power7/fpu/s_logbf.c via #include.
11604         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
11605         powerpc32/power7/fpu/s_logbl.c via #include.
11607 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
11609         * README.libm: Remove file.
11611 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11613         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
11614         count for x32.  Use R*_LP and omit operand-size suffix.
11616 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11618         * shlib-versions: Move x86_64-.*-linux.* entries to ...
11619         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
11620         * sysdeps/x86_64/x32/shlib-versions: New file.
11622 2012-05-14  Roland McGrath  <roland@hack.frob.com>
11624         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
11625         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
11626         Use _dl_fatal_printf instead.
11628 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
11630         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
11631         set if not set by the user.  Do not allow for being unset.
11632         * sysdeps/unix/sysv/linux/configure: Regenerated.
11634 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11636         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
11637         the `q' suffix from lea and replace .quad with ASM_ADDR.
11639 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11641         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
11642         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
11643         instead of $17.
11644         (PTR_DEMANGLE): Likewise.
11646 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11648         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
11649         (LP_OP): Likewise.
11650         (ASM_ADDR): Likewise.
11651         (RAX_LP): Likewise.
11652         (RBP_LP): Likewise.
11653         (RBX_LP): Likewise.
11654         (RCX_LP): Likewise.
11655         (RDI_LP): Likewise.
11656         (RSI_LP): Likewise.
11657         (RSP_LP): Likewise.
11658         (R8_LP): Likewise.
11659         (R9_LP): Likewise.
11660         (R10_LP): Likewise.
11661         (R10_LP): Likewise.
11662         (R11_LP): Likewise.
11663         (R12_LP): Likewise.
11664         (R13_LP): Likewise.
11665         (R14_LP): Likewise.
11666         (R15_LP): Likewise.
11668 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11670         * sysdeps/x86_64/x32/dl-machine.h: New file.
11672 2012-05-14  Andreas Jaeger  <aj@suse.de>
11674         * manual/Makefile (subdir): Remove export of subdir.
11675         (all): Remove target.
11676         (.PHONY): Remove all from list.
11677         (mkinstalldirs): Remove.
11678         (.PHONY): Remove installdirs from list.
11679         ($(inst_infodir)/libc.info): Use make-target-directory.
11680         (installdirs): Remove.
11681         (subdir_%): Remove.
11682         (glibc-targets): Remove.
11683         (lib): Remove.
11684         (stubs): Remove.
11685         ($(objpfx)stubs ../po/manual.pot): Remove.
11686         ($(objpfx)stamp%): Remove.
11687         (make-target-directory): Remove.
11688         (subdir_install): Remove.
11689         (routines): Remove.
11690         (aux): Remove.
11691         (sources): Remove.
11692         (objects): Remove.
11693         (headers): Remove.
11695         [BZ #13750]
11696         * manual/.gitignore: Remove, it's not needed anymore.
11697         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
11698         all files in it.
11699         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
11700         directory.
11701         (texis): Renamed to $(objpfx)texis.
11702         (texis-path): New, contains path to generated files.
11703         (chapters.%): Use texis-path for complete path, add extra argument
11704         libc-texinfo.sh.
11705         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
11706         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
11707         (summary,texi, stamp-summary): Use complete path of
11708         files. Generate files in build dir.
11709         (dir-add.texi): Build in build dir.
11710         (libm-err.texi,stamp-libm-err): Likewise.
11711         (version.texi, stamp-version): Likewise.
11712         (.%c.texi): Likewise.
11713         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
11714         (mostlyclean): Remove target.
11715         (realclean): Remove target.
11716         (generated): Add new variable with contents from mostlyclean and
11717         realclean, remove entries duplicated in common-mostlyclean, add
11718         stamp-libm-err and stamp-version.
11719         (generated-dirs): Add libc directory.
11720         ($(inst_infodir)/libc.info): Install files from build dir.
11722         * manual/install.texi (Configuring and compiling): Adjust since
11723         the info files are not part of the tar ball anymore.
11725 2012-05-14  Andreas Jaeger  <aj@suse.de>
11727         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
11728         variable.
11730 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
11732         [BZ #13717]
11733         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
11734         to 2.2.0 where earlier.
11735         * sysdeps/unix/sysv/linux/configure: Regenerated.
11736         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
11737         Remove conditional code.
11738         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
11739         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
11740         Remove conditional code.
11741         [!__NR_lchown]: Likewise.
11742         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
11743         [__NR_lchown]: Likewise.
11744         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
11745         comment referencing __ASSUME_LCHOWN_SYSCALL.
11746         * sysdeps/unix/sysv/linux/i386/sigaction.c
11747         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11748         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11749         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
11750         Remove conditional code.
11751         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
11752         (__protocol_available): Remove #if 0 code.
11753         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
11754         conditional code.
11755         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
11756         * sysdeps/unix/sysv/linux/kernel-features.h
11757         (__ASSUME_GETCWD_SYSCALL): Don't define.
11758         (__ASSUME_REALTIME_SIGNALS): Likewise.
11759         (__ASSUME_PREAD_SYSCALL): Likewise.
11760         (__ASSUME_PWRITE_SYSCALL): Likewise.
11761         (__ASSUME_POLL_SYSCALL): Likewise.
11762         (__ASSUME_LCHOWN_SYSCALL): Likewise.
11763         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
11764         non-SPARC.
11765         (__ASSUME_SIOCGIFNAME): Don't define.
11766         (__ASSUME_MSG_NOSIGNAL): Likewise.
11767         (__ASSUME_SENDFILE): Define unconditionally.
11768         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
11769         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
11770         conditional code.
11771         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
11772         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
11773         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
11774         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
11775         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
11776         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
11777         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
11778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
11779         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11780         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
11782         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11783         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
11785         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11786         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
11788         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11789         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
11791         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11792         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
11794         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
11795         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
11797         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11798         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
11800         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11801         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11802         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
11803         Remove conditional code.
11804         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11805         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
11806         Remove conditional code.
11807         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11808         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
11809         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
11810         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
11811         Remove conditional code.
11812         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11813         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
11814         Remove conditional code.
11815         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11816         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
11817         Remove conditional code.
11818         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11819         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
11820         Remove conditional code.
11821         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
11822         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
11823         Remove conditional code.
11824         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11825         * sysdeps/unix/sysv/linux/sh/pwrite64.c
11826         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
11827         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
11828         * sysdeps/unix/sysv/linux/sigaction.c
11829         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11830         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11831         * sysdeps/unix/sysv/linux/sigpending.c
11832         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11833         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11834         * sysdeps/unix/sysv/linux/sigprocmask.c
11835         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11836         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11837         * sysdeps/unix/sysv/linux/sigsuspend.c
11838         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
11839         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
11840         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
11841         (__libc_missing_rt_sigs): Remove.
11842         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
11843         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
11844         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
11845         Remove conditional code.
11846         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
11847         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
11848         return 1.
11849         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
11850         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
11851         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
11852         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
11854 2012-05-14  Andreas Jaeger  <aj@suse.de>
11856         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
11857         it's not used in glibc.
11858         (__coshm1): Likewise.
11859         (__acosh1p): Likewise.
11860         (__sgn): Likewise.
11862         * manual/string.texi (Copying and Concatenation): Add missing
11863         variable in concat example.
11864         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
11866 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11868         [BZ #14103]
11869         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
11870         __builtin_clzl with __builtin_clzll.
11872 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11874         [BZ #14104]
11875         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
11876         libc_freeres_ptr.
11878 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11880         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
11881         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
11882         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
11883         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
11885 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
11887         * NEWS: Update ia64 info.
11889 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
11891         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
11892         used as bcopy.
11894 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
11896         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
11897         * sysdeps/unix/syscalls.list (dup3): Likewise.
11898         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
11899         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
11901 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
11903         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
11904         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
11906 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
11908         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
11909         thread pointer.
11910         (TLS_IE): Use mov/add instead of movq/addq to load thread
11911         pointer.
11912         (TLS_GD_PREFIX): New.
11913         (TLS_GD): Use it.
11915 2012-05-11  David S. Miller  <davem@davemloft.net>
11917         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
11918         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
11919         (_FPU_SETCW): Likewise.
11921 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11923         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
11924         is 32-byte aligned.
11926 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
11928         [BZ #11837]
11929         * iconvdata/gb18030.c: Update tables.
11930         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
11931         characters specially.
11932         (BODY for TO_LOOP): Add encoding of missing ranges.
11934 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
11936         [BZ #13673]
11937         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
11938         * sysdeps/mach/hurd/dup3.c: Likewise.
11939         * sysdeps/mach/hurd/readlinkat.c: Likewise.
11940         * sysdeps/powerpc/memmove.c:: Likewise.
11942 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11944         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
11945         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
11947 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11949         * elf/elf.h (R_X86_64_RELATIVE64): New.
11950         (R_X86_64_NUM): Updated.
11951         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
11952         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
11953         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
11954         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
11955         tst-quad1pie tst-quad2pie
11956         (modules-names): Add tst-quadmod1 tst-quadmod2.
11957         ($(objpfx)tst-quad1): New dependency.
11958         ($(objpfx)tst-quad2): Likewise.
11959         ($(objpfx)tst-quad1pie): Likewise.
11960         ($(objpfx)tst-quad2pie): Likewise.
11961         * sysdeps/x86_64/tst-quad1.c: New file.
11962         * sysdeps/x86_64/tst-quad1pie.c: New file.
11963         * sysdeps/x86_64/tst-quad2.c: Likewise.
11964         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
11965         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
11966         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
11967         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
11968         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
11970 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11972         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
11973         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
11974         * streams/stropts.h (t_scalar_t): Define type.
11976         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
11977         (_PATH_PRESERVE): Set to "/var/lib".
11978         (_PATH_RWHODIR): Set to "/var/spool/rwho".
11980         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
11981         instead of int.
11983         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
11984         if __dir_mkfile succeeded.
11986         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
11987         checking for _hurd_dtablesize.  Unlock it right after having
11988         finished _hurd_dtable allocation.
11990 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
11992         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
11993         * sysdeps/mach/hurd/configure: Regenerated.
11994         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
11995         special-casing to...
11996         * sysdeps/gnu/configure.in: ... this new file.
11997         * sysdeps/unix/sysv/linux/configure: Regenerated.
11998         * sysdeps/gnu/configure: New generated file.
12000         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
12001         for Linux: use nsec instead of usec, as well as:
12002         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
12003         members of type struct timespec.
12004         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
12005         New macros.
12006         (struct stat64): Likewise.
12007         (_STATBUF_ST_NSEC): New macro.
12008         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
12010         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
12011         __strtoul_internal rather than strtoul.
12013 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12015         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
12016         and reject them.
12018 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12020         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
12021         which preserves existing values.
12022         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
12024 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12026         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
12027         TIMEOUT values.  Return EINVAL for NFDS values either negative or
12028         greater than FD_SETSIZE.
12030 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12032         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
12033         allocated, call __vm_protect to finish enabling the existing space, and
12034         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
12035         allocate the remainder.
12037 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12039         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
12040         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
12042 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12044         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
12045         sysdeps/mach/hurd/readlink.c.
12047         * posix/tst-sysconf.c (posix_options): Only use
12048         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
12049         _POSIX_SYNCHRONIZED_IO when they are defined
12050         * sysdeps/mach/hurd/bits/posix_opt.h:
12051         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
12052         (_XOPEN_REALTIME): Undefine macro.
12053         (_XOPEN_REALTIME_THREADS): Undefine macro.
12054         (_XOPEN_SHM): Undefine macro.
12055         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
12056         macro to -1.
12057         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
12058         macro to -1.
12059         (_POSIX_ASYNC_IO): Undefine macro.
12060         (_POSIX_PRIORITIZED_IO): Undefine macro.
12061         (_POSIX_SPIN_LOCKS): Define macro to -1.
12063         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
12064         SA_NODEFER, SA_RESETHAND.
12065         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
12066         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
12067         F_DUPFD_CLOEXEC.
12069 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12071         * elf/Makefile (pldd-modules): Define unconditionally.
12073 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12075         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
12077 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12079         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
12080         Return ENOENT when name is empty.
12081         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
12083 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12085         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
12087         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
12089 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12091         Fix mlock in all cases except non-readable pages.
12092         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
12093         instead of VM_PROT_ALL as parameter to __vm_wire function.
12095         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
12096         (__mkdir): When path is `/', just fail with EEXIST.
12097         * sysdeps/mach/hurd/mkdirat.c: Likewise.
12099 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12101         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
12102         <sys/uio.h> (for writev).
12103         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
12104         and <sys/param.h> (for MIN).
12106 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12108         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
12109         REQUESTED_TIME.  Properly set the remaining time and return EINTR
12110         if interrupted.
12112 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12114         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
12115         Depend on against $(link-rpcuserlibs).
12117 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12119         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
12120         (__libc_stack_end): Do not use attribute_relro.
12121         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
12122         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
12123         to libthread-provided value.
12124         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
12125         attribute_relro.
12127 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12129         [BZ #3748]
12130         * bits/libc-lock.h (__libc_once_get): New macro.
12131         * sysdeps/mach/bits/libc-lock.h: Likewise.
12132         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
12133         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
12134         instead of using implementation details.
12136         * libio/fileops.c: Unconditionally include <kernel-features.h>.
12137         * libio/freopen.c: Likewise.
12138         * libio/freopen64.c: Likewise.
12139         * misc/syslog.c: Likewise.
12140         * nscd/connections.c: Likewise.
12141         * nscd/netgroupcache.c: Likewise.
12142         * sysdeps/posix/getcwd.c: Likewise.
12144 2012-05-10  Roland McGrath  <roland@hack.frob.com>
12146         * math/w_ilogbf.c: Add #include <limits.h>.
12148 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12150         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
12151         path instead of returning without unlocking.
12153         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
12154         immediate-write ioctls.
12155         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
12157 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12159         * sysdeps/mach/hurd/i386/init-first.c (init): Use
12160         __builtin_frame_address instead of making assumptions about the
12161         location of the return address relative to DATA.  Force early load of
12162         the return address.
12163         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
12164         __builtin_frame_address.
12166         dup3 for GNU Hurd.
12167         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
12168         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
12169         implement dup3 and do some further code clean-ups.
12170         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
12171         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
12173 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12175         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
12177         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
12178         HURD_CRITICAL_END around holding _hurd_dtable_lock.
12179         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
12180         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
12181         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
12182         d->port.lock.
12184         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
12185         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
12186         when handler == SIG_ERR, not when handler != SIG_ERR.
12188 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12190         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
12191         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
12192         definitions.
12194         accept4 for GNU Hurd.
12195         * include/sys/socket.h (__libc_accept4): New prototype.
12196         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
12197         to implement __libc_accept4.
12198         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
12199         __libc_accept4.
12200         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
12202         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
12203         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
12204         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
12205         signal-defines.sym.
12207 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12209         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
12211 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12213         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
12214         assertion on O_CLOEXEC flag.
12215         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
12216         * hurd/intern-fd.c: Likewise.
12217         * hurd/port2fd.c: Likewise.
12219 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12221         [BZ #3906]
12222         * bits/in.h (IPV6_PKTINFO): Define new macro.
12223         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
12225 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12227         [BZ #13954]
12228         [BZ #13955]
12229         [BZ #13956]
12230         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
12231         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12232         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
12233         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12234         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12235         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12236         * math/libm-test.inc (logb_test) : Additional logb tests.
12238 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
12239             Andreas Jaeger  <aj@suse.de>
12241         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
12242         * configure: Regenerated.
12243         * config.h.in (LINK_OBSOLETE_RPC): New macro.
12244         * config.make.in (link-obsolete-rpc): New substituted variable.
12245         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
12246         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
12247         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
12248         (shared-only-routines): Don't set it under [link-obsolete-rpc],
12249         so that libc.a contains the symbols.
12250         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
12251         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
12252         * sunrpc/auth_none.c: Likewise.
12253         * sunrpc/auth_unix.c: Likewise.
12254         * sunrpc/authdes_prot.c: Likewise.
12255         * sunrpc/authuxprot.c: Likewise.
12256         * sunrpc/clnt_gen.c: Likewise.
12257         * sunrpc/clnt_perr.c: Likewise.
12258         * sunrpc/clnt_raw.c: Likewise.
12259         * sunrpc/clnt_simp.c: Likewise.
12260         * sunrpc/clnt_tcp.c: Likewise.
12261         * sunrpc/clnt_udp.c: Likewise.
12262         * sunrpc/clnt_unix.c: Likewise.
12263         * sunrpc/des_crypt.c: Likewise.
12264         * sunrpc/des_soft.c: Likewise.
12265         * sunrpc/get_myaddr.c: Likewise.
12266         * sunrpc/key_call.c: Likewise.
12267         * sunrpc/key_prot.c: Likewise.
12268         * sunrpc/netname.c: Likewise.
12269         * sunrpc/pm_getmaps.c: Likewise.
12270         * sunrpc/pm_getport.c: Likewise.
12271         * sunrpc/pmap_clnt.c: Likewise.
12272         * sunrpc/pmap_prot.c: Likewise.
12273         * sunrpc/pmap_prot2.c: Likewise.
12274         * sunrpc/pmap_rmt.c: Likewise.
12275         * sunrpc/publickey.c: Likewise.
12276         * sunrpc/rpc_cmsg.c: Likewise.
12277         * sunrpc/rpc_common.c: Likewise.
12278         * sunrpc/rpc_dtable.c: Likewise.
12279         * sunrpc/rpc_prot.c: Likewise.
12280         * sunrpc/rpc_thread.c: Likewise.
12281         * sunrpc/rtime.c: Likewise.
12282         * sunrpc/svc.c: Likewise.
12283         * sunrpc/svc_auth.c: Likewise.
12284         * sunrpc/svc_raw.c: Likewise.
12285         * sunrpc/svc_run.c: Likewise.
12286         * sunrpc/svc_tcp.c: Likewise.
12287         * sunrpc/svc_udp.c: Likewise.
12288         * sunrpc/svc_unix.c: Likewise.
12289         * sunrpc/svcauth_des.c: Likewise.
12290         * sunrpc/xcrypt.c: Likewise.
12291         * sunrpc/xdr.c: Likewise.
12292         * sunrpc/xdr_array.c: Likewise.
12293         * sunrpc/xdr_float.c: Likewise.
12294         * sunrpc/xdr_intXX_t.c: Likewise.
12295         * sunrpc/xdr_mem.c: Likewise.
12296         * sunrpc/xdr_rec.c: Likewise.
12297         * sunrpc/xdr_ref.c: Likewise.
12298         * sunrpc/xdr_sizeof.c: Likewise.
12299         * sunrpc/xdr_stdio.c: Likewise.
12301 2012-05-10  Roland McGrath  <roland@hack.frob.com>
12303         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
12304         change.  Update copyright years.
12306 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
12308         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
12310 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
12311             Joseph Myers  <joseph@codesourcery.com>
12312             Paul Pluzhnikov  <ppluzhnikov@google.com>
12314         [BZ #14012]
12315         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
12316         requiring rpcgen.
12317         [cross-compiling] (extra-libs): Likewise.
12318         [cross-compiling] (extra-libs-others): Likewise.
12319         [cross-compiling] (librpcsvc-routines): Likewise.
12320         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
12321         [cross-compiling] (omit-deps): Likewise.
12322         (sunrpc-CPPFLAGS): New variable.
12323         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
12324         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
12325         (cross-rpcgen-objs): New variable.
12326         (extra-objs): Append $(cross-rpcgen-objs).
12327         ($(cross-rpcgen-objs)): New rule.
12328         ($(objpfx)cross-rpcgen): Likewise.
12329         (rpcgen-cmd): Define to use $(built-program-file).  Expand
12330         comment.
12331         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
12332         ($(objpfx)x%.stmp): Likewise.
12333         * sunrpc/proto.h [IS_IN_build] (_): Define.
12334         [IS_IN_build] (_libc_intl_domainname): Likewise.
12336 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12338         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
12339         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
12340         and R_X86_64_TPOFF64.
12342 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
12344         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
12345         sysdeps/unix/sysv/syscalls.list.
12346         (stime): Likewise.
12347         (utime): Likewise.
12348         * sysdeps/unix/sysv/syscalls.list: Remove file.
12350 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
12352         [BZ #3440]
12353         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
12354         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
12355         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
12356         (__LC_IDENTIFICATION): Make these macros useful in #if
12357         expressions, as required by C99.
12359 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
12361         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
12362         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
12363         after this.
12365 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12367         * stdlib/longlong.h: Updated from GCC.
12369 2012-05-09  Andreas Jaeger  <aj@suse.de>
12371         * nscd/nscd.c (run_modes): Make named enum, reorder so that
12372         default is first entry.
12373         (run_mode): Set type.
12374         (main): Remove informal message about syslog.
12375         (options): Fix typo.
12377         [BZ #14053]
12378         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
12379         to asm.
12380         (lrint): Likewise.
12381         (llrintf): Likewise.
12382         (llrint): Likewise.
12383         (rint): Likewise.
12384         (rintf): Likewise.
12385         (nearbyint): Likewise.
12386         (nearbyintf): Likewise.
12388 2012-05-09  Andreas Jaeger  <aj@suse.de>
12389             Pedro Alves  <palves@redhat.com>
12391         * nscd/nscd.c (run_mode): Use enum.
12392         (main): Cleanup coding style issue.
12394 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
12395             Andreas Jaeger  <aj@suse.de>
12397         * nscd/nscd.c (go_background): Replaced with...
12398         (run_mode): ... this.
12399         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
12400         (options): Add -F --foreground.
12401         (main): Implement it.
12402         (parse_opt): Parse it.
12404 2012-05-09  Andreas Jaeger  <aj@suse.de>
12406         [BZ #14083]
12407         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
12408         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
12409         -Wconversion warning.
12410         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
12411         Likewise.
12413 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
12415         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
12416         == 0.
12417         (LC_ALL): Use macro-int-constant.
12418         (LC_COLLATE): Likewise.
12419         (LC_CTYPE): Likewise.
12420         (LC_MESSAGES): Likewise.
12421         (LC_MONETARY): Likewise.
12422         (LC_NUMERIC): Likewise.
12423         (LC_TIME): Likewise.
12424         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
12425         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12426         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12427         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
12428         Specify type.
12429         [C99-based standards] (float_t): Expect type.
12430         [C99-based standards] (double_t): Expect type.
12431         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
12432         type.
12433         [C99-based standards] (HUGE_VALL): Likewise.
12434         [C99-based standards] (INFINITY): Likewise.
12435         [C99-based standards] (NAN): Likewise.
12436         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
12437         [C99-based standards] (FP_NAN): Likewise.
12438         [C99-based standards] (FP_NORMAL): Likewise.
12439         [C99-based standards] (FP_SUBNORMAL): Likewise.
12440         [C99-based standards] (FP_ZERO): Likewise.
12441         [C99-based standards] (FP_FAST_FMA): Use
12442         optional-macro-int-constant.  Specify type.  Require == 1.
12443         [C99-based standards] (FP_FAST_FMAF): Likewise.
12444         [C99-based standards] (FP_FAST_FMAL): Likewise.
12445         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
12446         [C99-based standards] (FP_ILOGBNAN): Likewise.
12447         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
12448         Specify type.
12449         [C99-based standards] (MATH_ERREXCEPT): Likewise.
12450         [C99-based standards] (math_errhandling): Specify type.
12451         [ISO99 || ISO11] (signgam): Do not allow.
12452         [non-C99-based standards] (copysignf): Do not allow.
12453         [non-C99-based standards] (exp2f): Likewise.
12454         [non-C99-based standards] (log2f): Likewise.
12455         [non-C99-based standards] (modff): Allow.
12456         [non-C99-based standards] (erff): Do not allow.
12457         [non-C99-based standards] (erfcf): Likewise.
12458         [non-C99-based standards] (gammaf): Likewise.
12459         [non-C99-based standards] (hypotf): Likewise.
12460         [non-C99-based standards] (j0f): Likewise.
12461         [non-C99-based standards] (j1f): Likewise.
12462         [non-C99-based standards] (jnf): Likewise.
12463         [non-C99-based standards] (lgammaf): Likewise.
12464         [non-C99-based standards] (tgammaf): Likewise.
12465         [non-C99-based standards] (y0f): Likewise.
12466         [non-C99-based standards] (y1f): Likewise.
12467         [non-C99-based standards] (ynf): Likewise.
12468         [non-C99-based standards] (isnanf): Likewise.
12469         [non-C99-based standards] (acoshf): Likewise.
12470         [non-C99-based standards] (asinhf): Likewise.
12471         [non-C99-based standards] (atanhf): Likewise.
12472         [non-C99-based standards] (cbrtf): Likewise.
12473         [non-C99-based standards] (expm1f): Likewise.
12474         [non-C99-based standards] (ilogbf): Likewise.
12475         [non-C99-based standards] (log1pf): Likewise.
12476         [non-C99-based standards] (logbf): Likewise.
12477         [non-C99-based standards] (nextafterf): Likewise.
12478         [non-C99-based standards] (remainderf): Likewise.
12479         [non-C99-based standards] (rintf): Likewise.
12480         [non-C99-based standards] (scalbf): Likewise.
12481         [non-C99-based standards] (copysignl): Likewise.
12482         [non-C99-based standards] (exp2l): Likewise.
12483         [non-C99-based standards] (log2l): Likewise.
12484         [non-C99-based standards] (modfl): Allow.
12485         [non-C99-based standards] (erfl): Do not allow.
12486         [non-C99-based standards] (erfcl): Likewise.
12487         [non-C99-based standards] (gammal): Likewise.
12488         [non-C99-based standards] (hypotl): Likewise.
12489         [non-C99-based standards] (j0l): Likewise.
12490         [non-C99-based standards] (j1l): Likewise.
12491         [non-C99-based standards] (jnl): Likewise.
12492         [non-C99-based standards] (lgammal): Likewise.
12493         [non-C99-based standards] (tgammal): Likewise.
12494         [non-C99-based standards] (y0l): Likewise.
12495         [non-C99-based standards] (y1l): Likewise.
12496         [non-C99-based standards] (ynl): Likewise.
12497         [non-C99-based standards] (isnanl): Likewise.
12498         [non-C99-based standards] (acoshl): Likewise.
12499         [non-C99-based standards] (asinhl): Likewise.
12500         [non-C99-based standards] (atanhl): Likewise.
12501         [non-C99-based standards] (cbrtl): Likewise.
12502         [non-C99-based standards] (expm1l): Likewise.
12503         [non-C99-based standards] (ilogbl): Likewise.
12504         [non-C99-based standards] (log1pl): Likewise.
12505         [non-C99-based standards] (logbl): Likewise.
12506         [non-C99-based standards] (nextafterl): Likewise.
12507         [non-C99-based standards] (remainderl): Likewise.
12508         [non-C99-based standards] (rintl): Likewise.
12509         [non-C99-based standards] (scalbl): Likewise.
12510         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12511         [non-C99-based standards] (FP_*): Do not allow.
12512         [C99-based standards] (FP_*): Change to
12513         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
12514         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12515         allow.
12516         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
12517         (SIG_ERR): Likewise.
12518         [X/Open-based standards] (SIG_HOLD): Likewise.
12519         (SIG_IGN): Likewise.
12520         (SIGABRT): Use macro-int-constant.  Specify type.  Require
12521         positive value.
12522         (SIGFPE): Likewise.
12523         (SIGILL): Likewise.
12524         (SIGINT): Likewise.
12525         (SIGSEGV): Likewise.
12526         (SIGTER): Likewise.
12527         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
12528         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
12529         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
12530         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
12531         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
12532         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
12533         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
12534         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
12535         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
12536         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
12537         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
12538         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
12539         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
12540         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
12541         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
12542         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
12543         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
12544         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
12545         [X/Open-based standards] (SIGTRAP): Likewise.
12546         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
12547         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
12548         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
12549         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
12550         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12551         allow.
12553 2012-05-08  Ian Wienand  <ianw@vmware.com>
12555         [BZ #14080]
12556         * time/tzset.c (__tzset_parse_tz): Update default rules for
12557         daylight time changes in the Energy Policy Act of 2005.
12559 2012-05-09  Andreas Jaeger  <aj@suse.de>
12561         [BZ #13983]
12562         * elf/ldconfig.c (parse_conf): Change string to make clear that
12563         ldconfig only issued a warning if ld.so.conf does not exist.
12565 2012-05-08  David S. Miller  <davem@davemloft.net>
12567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
12568         movxtod instead of popping the value on the stack.
12570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12572 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
12574         * config.h.in: Add HAVE_ARM_PCS_VFP.
12576 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
12578         [BZ #13979]
12579         * include/features.h: Warn if user requests __FORTIFY_SOURCE
12580         checking but the checks are disabled for any reason.
12582 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
12584         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
12585         and ELF64_R_TYPE with ELFW(R_TYPE).
12587 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
12589         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
12590         (ulimit): Likewise.
12592         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
12593         (settimeofday): Likewise.
12595 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
12597         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
12598         a struct th_u2 inside the union, and move tu_block/tu_code into
12599         a new th_u3 union of tu_block/tu_code inside of that.  Move
12600         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
12601         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
12602         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
12603         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
12604         (th_stuff): Change to th_u1.tu_stuff.
12605         (th_data): Define.
12606         (th_msg): Change to th_u1.th_u2.tu_data.
12608 2012-05-07  David S. Miller  <davem@davemloft.net>
12610         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12612         [BZ #14074]
12613         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
12614         (SETUP_PIC_REG): Use it.
12615         (SETUP_PIC_REG_LEAF): Use it.
12617 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
12619         [BZ #13885]
12620         [BZ #13923]
12621         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12622         USE_AS_EXPM1L.
12623         (EXPL_FINITE): Likewise.
12624         (FLDLOG): Likewise.
12625         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
12626         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
12627         e_expl.S.
12628         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12629         USE_AS_EXPM1L.
12630         (EXPL_FINITE): Likewise.
12631         (FLDLOG): Likewise.
12632         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
12633         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
12634         e_expl.S.
12635         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
12636         test of -max_value argument for long double.
12637         * sysdeps/i386/fpu/libm-test-ulps: Update.
12638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12640 2012-05-06  David S. Miller  <davem@davemloft.net>
12642         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
12643         quad soft-float symbols whose references which are compiler
12644         generated.
12645         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12647 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
12649         [BZ #13884]
12650         [BZ #13914]
12651         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12652         USE_AS_EXP10L.
12653         (EXPL_FINITE): Likewise.
12654         (FLDLOG): Likewise.
12655         (c0): Likewise.
12656         (c1): Likewise.
12657         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
12658         Adjust comments for base varying.
12659         (__expl_finite): Change alias to EXPL_FINITE.
12660         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
12661         e_expl.S.
12662         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
12663         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
12664         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
12665         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
12666         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
12667         USE_AS_EXP10L.
12668         (EXPL_FINITE): Likewise.
12669         (FLDLOG): Likewise.
12670         (c0): Likewise.
12671         (c1): Likewise.
12672         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
12673         Adjust comments for base varying.
12674         (__expl_finite): Change alias to EXPL_FINITE.
12675         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
12676         tests for bugs.
12677         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12679         [BZ #14064]
12680         * math/libm-test.inc (check_float_internal): Correct ulp
12681         calculation for subnormal expected results.
12683 2012-05-06  Andreas Jaeger  <aj@suse.de>
12685         * Makeconfig (+math-flags): New, set to -frounding-math.
12686         (+cflags): Add +math-flags so that all of glibc gets compiled with
12687         it.
12689         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
12691 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
12693         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
12694         Disable one test.
12696         [BZ #13787]
12697         [BZ #13922]
12698         [BZ #14036]
12699         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
12700         (__ieee754_expl): Allow for and saturate large arguments.
12701         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
12702         (u_threshold): Likewise.
12703         (__exp): Call __ieee754_exp before checking for overflow and
12704         underflow.
12705         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
12706         (u_threshold): Likewise.
12707         (__expf): Call __ieee754_expf before checking for overflow and
12708         underflow.
12709         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
12710         (u_threshold): Likewise.
12711         (__expl): Call __ieee754_expl before checking for overflow and
12712         underflow.
12713         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
12714         (__ieee754_expl): Allow for and saturate large arguments.
12715         * math/libm-test.inc (exp_test): Add another test.  Do not allow
12716         missing overflow exception on overflow.
12717         (expm1_test): Do not allow missing overflow exception on overflow.
12719         * sysdeps/i386/fpu/e_expl.c: Move to ...
12720         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
12721         rather than using inline asm.
12722         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
12723         * sysdeps/x86_64/fpu/e_expl.S: Copy from
12724         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
12726         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
12727         (nice): Likewise.
12728         (poll): Likewise.
12729         (signal): Likewise.
12730         (time): Likewise.
12731         (times): Likewise.
12733 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
12735         * sysdeps/unix/syscalls.list (adjtime): Add entry from
12736         sysdeps/unix/common/syscalls.list.
12737         (fchmod): Likewise.
12738         (fchown): Likewise.
12739         (ftruncate): Likewise.
12740         (getrusage): Likewise.
12741         (gettimeofday): Likewise.
12742         (setpgid): Likewise.
12743         (setregid): Likewise.
12744         (setreuid): Likewise.
12745         (sigaction): Likewise.
12746         (truncate): Likewise.
12747         (vhangup): Likewise.
12748         * sysdeps/unix/common/syscalls.list: Remove file.
12749         * sysdeps/unix/bsd/Implies: Don't include unix/common.
12750         * sysdeps/unix/sysv/linux/Implies: Likewise.
12752 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12754         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
12755         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
12756         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
12757         Moved to ...
12758         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
12759         Here.
12760         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
12761         to ...
12762         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
12763         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
12764         to ...
12765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
12766         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
12767         to ...
12768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
12769         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
12770         to ...
12771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
12772         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
12773         to ...
12774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
12775         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
12776         to ...
12777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
12778         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
12779         to ...
12780         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
12781         Here.
12782         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
12783         to ...
12784         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
12785         Here.
12786         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
12787         to ...
12788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
12789         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
12790         Moved to ...
12791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
12792         Here.
12793         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
12794         to ...
12795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
12797 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
12799         * sysdeps/unix/common/bits/dirent.h: Remove file.
12800         * sysdeps/unix/common/bits/fcntl.h: Likewise.
12802         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
12803         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
12804         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
12805         * sysdeps/unix/bsd/isatty.c: Likewise.
12806         * sysdeps/unix/bsd/tcdrain.c: Likewise.
12807         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
12808         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
12810 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12812         [BZ #13563]
12813         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
12814         long double comparison inaccuracies.
12815         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
12816         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12818 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
12820         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
12821         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
12823 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
12825         [BZ #14049]
12826         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
12827         nonzero digits before rounding a hex value.
12828         * stdlib/tst-strtod.c (tests): Add another test.
12830 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12832         * sysdeps/s390/fpu/libm-test-ulps: Update.
12834 2012-05-03  Andreas Jaeger  <aj@suse.de>
12836         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
12837         does not get optimized out.
12838         (malloc_opt_barrier): New.
12840 2012-05-03  Andreas Jaeger  <aj@suse.de>
12841             Roland McGrath  <roland@hack.frob.com>
12843         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
12844         intermediate file deletion.
12845         (generated): Add .symlist files.
12847 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
12849         [BZ #13775]
12850         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
12851         Redirect under this condition.
12852         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
12853         [__USE_GNU] (__dprintf_chk): Not under this condition.
12854         [__USE_GNU] (__vdprintf_chk): Likewise.
12855         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
12856         under this condition.
12857         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
12858         [__USE_XOPEN2K8] (dprintf): Define under this condition.
12859         [__USE_XOPEN2K8] (vdprintf): Likewise.
12860         [__USE_GNU] (__dprintf_chk): Not under this condition.
12861         [__USE_GNU] (__vdprintf_chk): Likewise.
12862         [__USE_GNU] (dprintf): Likewise.
12863         [__USE_GNU] (vdprintf): Likewise.
12865 2012-05-03  Roland McGrath  <roland@hack.frob.com>
12867         * elf/Makefile (common-generated): Set this instead of generated for
12868         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
12869         $(all-built-dso)-derived lists.
12871 2012-05-03  Andreas Jaeger  <aj@suse.de>
12873         * sysdeps/i386/fpu/libm-test-ulps: Update.
12875         * FAQ: Removed.
12876         * FAQ.in: Likewise.
12877         * scripts/gen-FAQ.pl: Likewise.
12878         * manual/install.texi (Installation): Point to online location of
12879         FAQ.
12880         * Makefile (files-for-dist): Remove FAQ.
12881         (FAQ): Remove.
12883 2012-05-02  Allan McRae  <allan@archlinux.org>
12885         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
12886         (LDFLAGS-reldepmod5.so): Likewise.
12887         (LDFLAGS-reldep6mod1.so): Likewise.
12888         (LDFLAGS-reldep6mod4.so): Likewise.
12889         (LDFLAGS-reldep8mod3.so): Likewise.
12890         (LDFLAGS-unload4mod1.so): Likewise.
12891         (LDFLAGS-unload4mod2.so): Likewise.
12892         (LDFLAGS-tst-initorder): Likewise.
12893         (LDFLAGS-tst-initordera2.so): Likewise.
12894         (LDFLAGS-tst-initordera3.so): Likewise.
12895         (LDFLAGS-tst-initordera4.so): Likewise.
12896         (LDFLAGS-tst-initorderb2.so): Likewise.
12897         (LDFLAGS-noload): Likewise.
12898         (LDFLAGS-next): Likewise.
12899         (LDFLAGS-order2mod1.so): Likewise.
12900         (LDFLAGS-order2mod2.so): Likewise.
12901         (LDFLAGS-tst-initorder2): Likewise.
12902         (LDFLAGS-tst-initorder2a.so): Likewise.
12903         (LDFLAGS-tst-initorder2b.so): Likewise.
12904         (LDFLAGS-tst-initorder2c.so): Likewise.
12905         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
12907 2012-05-02  David S. Miller  <davem@davemloft.net>
12909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12911 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
12913         [BZ #14055]
12914         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
12916 2012-05-02  Andreas Jaeger  <aj@suse.de>
12918         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
12919         since we manipulate rounding mode.
12920         (CPPFLAGS-test-idouble.c): Likewise.
12921         (CPPFLAGS-test-ifloat.c): Likewise.
12922         (CFLAGS-test-ldouble.c): Likewise.
12923         (CFLAGS-test-double.c): Likewise.
12924         (CFLAGS-test-float.c): Likewise.
12925         (CFLAGS-test-misc.c): Likewise.
12926         (CFLAGS-test-test-fenv.c): Likewise.
12928 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12930         [BZ #2550]
12931         [BZ #2570]
12932         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
12933         comparisons to determine direction to adjust input.
12935 2012-05-01  Roland McGrath  <roland@hack.frob.com>
12937         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
12938         output to the target.
12940         * scripts/localplt.awk: New file.
12941         * elf/Makefile ($(objpfx)check-localplt): Target removed.
12942         (check-localplt-CFLAGS): Variable removed.
12943         ($(all-built-dso:=.jmprel)): New static pattern rule.
12944         (generated): Add those targets.
12945         (localplt-built-dso): New variable.
12946         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
12948         * elf/check-localplt.c: File removed.
12950         * scripts/check-execstack.awk: New file.
12951         * elf/Makefile ($(objpfx)check-execstack): Target removed.
12952         (check-execstack-CFLAGS): Variable removed.
12953         ($(objpfx)check-execstack.h): Target removed.
12954         ($(objpfx)execstack-default): New target.
12955         (generated): Add that instead of check-execstack.h.
12956         ($(all-built-dso:=.phdr)): New static pattern rule.
12957         (generated): Add those targets.
12958         * elf/check-execstack.c: File removed.
12960         * scripts/check-textrel.awk: New file.
12961         * elf/Makefile ($(objpfx)check-textrel): Target removed.
12962         (check-textrel-CFLAGS): Variable removed.
12963         (all-built-dso): Use := to define.o
12964         ($(all-built-dso:=.dyn)): New static pattern rule.
12965         (generated): Add those targets.
12966         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
12967         * config.make.in (READELF): New substituted variable.
12968         * elf/check-textrel.c: File removed.
12970 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
12972         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
12973         allow.
12974         * conform/data/ctype.h-data [C99-based standards] (isblank):
12975         Expect function.
12976         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
12977         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
12978         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12979         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
12980         Specify type.  Require positive value.
12981         (EILSEQ): Likewise.
12982         (ERANGE): Likewise.
12983         [ISO || POSIX] (EILSEQ): Do not expect.
12984         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
12985         Specify type.  Require positive value.
12986         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
12987         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
12988         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
12989         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
12990         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
12991         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
12992         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
12993         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
12994         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
12995         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
12996         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
12997         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
12998         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
12999         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
13000         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
13001         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
13002         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
13003         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
13004         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
13005         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
13006         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
13007         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
13008         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
13009         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
13010         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
13011         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
13012         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
13013         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
13014         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
13015         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
13016         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
13017         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
13018         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
13019         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
13020         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
13021         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
13022         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
13023         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
13024         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
13025         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
13026         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
13027         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
13028         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
13029         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
13030         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
13031         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
13032         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
13033         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
13034         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
13035         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
13036         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
13037         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
13038         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
13039         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
13040         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
13041         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
13042         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
13043         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
13044         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
13045         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
13046         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
13047         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
13048         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
13049         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
13050         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
13051         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
13052         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
13053         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
13054         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
13055         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
13056         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
13057         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
13058         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
13059         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
13060         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
13061         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
13062         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
13063         Require >= 2.
13064         (FLT_ROUNDS): Expect as macro, not constant.
13065         (FLT_MANT_DIG): Use macro-int-constant.
13066         (DBL_MANT_DIG): Likewise.
13067         (LDBL_MANT_DIG): Likewise.
13068         (FLT_DIG): Likewise.
13069         (DBL_DIG): Likewise.
13070         (LDBL_DIG): Likewise.
13071         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
13072         (DBL_MIN_EXP): Likewise.
13073         (LDBL_MIN_EXP): Likewise.
13074         (FLT_MAX_EXP): Use macro-int-constant.
13075         (DBL_MAX_EXP): Likewise.
13076         (LDBL_MAX_EXP): Likewise.
13077         (FLT_MAX_10_EXP): Likewise.
13078         (DBL_MAX_10_EXP): Likewise.
13079         (LDBL_MAX_10_EXP): Likewise.
13080         (FLT_MAX): Use macro-constant.
13081         (DBL_MAX): Likewise.
13082         (LDBL_MAX): Likewise.
13083         (FLT_EPSILON): Use macro-constant.  Give upper bound.
13084         (DBL_EPSILON): Likewise.
13085         (LDBL_EPSILON): Likewise.
13086         (FLT_MIN): Likewise.
13087         (DBL_MIN): Likewise.
13088         (LDBL_MIN): Likewise.
13089         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
13090         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
13091         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
13092         [ISO11] (FLT_HAS_SUBNORM): Likewise.
13093         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
13094         [ISO11] (DBL_DECIMAL_DIG): Likewise.
13095         [ISO11] (FLT_DECIMAL_DIG): Likewise.
13096         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
13097         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
13098         [ISO11] (FLT_TRUE_MIN): Likewise.
13099         [ISO11] (LDBL_TRUE_MIN): Likewise.
13100         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13101         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
13102         (SCHAR_MIN): Use macro-int-constant.  Specify type.
13103         (SCHAR_MAX): Likewise.
13104         (UCHAR_MAX): Likewise.
13105         (CHAR_MIN): Likewise.
13106         (CHAR_MAX): Likewise.
13107         (MB_LEN_MAX): Use macro-int-constant.
13108         (SHRT_MIN): Use macro-int-constant.  Specify type.
13109         (SHRT_MAX): Likewise.
13110         (USHRT_MAX): Likewise.
13111         (INT_MAX): Likewise.
13112         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
13113         bound negative.
13114         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13115         bound with "U".
13116         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13117         bound with "L".
13118         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
13119         bound negative.  Suffix upper bound with "L".
13120         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
13121         bound with "UL".
13122         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
13123         Specify type.
13124         [C99-based standards] (LLONG_MAX): Likewise.
13125         [C99-based standards] (ULLONG_MAX): Likewise.
13126         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
13127         == 0.
13128         [ISO11] (max_align_t): Require type.
13129         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13131         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
13132         from $CFLAGS, without defining away __attribute__ calls.
13133         (checknamespace): Use $CFLAGS_namespace.
13135         * conform/conformtest.pl (@keywords): Only include C99 keywords
13136         for standards based on C99 or C11.
13138         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
13139         Disable tests.
13140         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
13141         UNIX98]: Likewise.
13143         * conform/conformtest.pl: Handle "macro-int-constant" and test for
13144         usability of symbols in #if.
13146         * conform/conformtest.pl: If macro or constant types start
13147         "promoted:", expect the symbol to be of the following type
13148         promoted by the integer promotions.
13150         * conform/conformtest.pl: Parse all "constant" and "macro" lines
13151         in one place.  Also handle "macro-constant".
13153         * conform/conformtest.pl: Only accept expected macro values with
13154         "==".  Parse all "macro" lines in one place.
13155         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
13157         * conform/conformtest.pl: Handle braced types on "constant" lines
13158         instead of handling "typed-constant".
13159         * conform/data/signal.h-data: Use "constant" instead of
13160         "typed-constant".
13162         * conform/conformtest.pl: Handle "optional-" at start of lines in
13163         one place rather than duplicating several cases.  Handle each
13164         format of "macro" line with initial "optional-".
13166         * conform/conformtest.pl: Only accept expected constant or
13167         optional-constant values with "==".  Parse all "constant" lines in
13168         one place.  Parse all "optional-constant" lines in one place.
13169         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
13170         * conform/data/fmtmsg.h-data: Likewise.
13171         * conform/data/netinet/in.h-data: Likewise.
13172         * conform/data/tar.h-data: Likewise.
13173         * conform/data/limits.h-data: Use "==" form on "constant" and
13174         "optional-constant" lines.
13176         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
13177         Use -std=c99 for XOPEN2K.
13178         (@knownproblems): Remove.
13179         (newtoken): Don't check %isknown.
13181         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
13182         Do not expect macro.
13183         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
13184         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
13185         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
13186         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
13187         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
13188         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
13189         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
13190         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
13191         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
13192         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
13193         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
13194         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
13195         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
13196         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
13197         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
13198         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
13199         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
13200         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
13201         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
13202         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
13203         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
13204         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
13205         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
13206         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
13207         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
13208         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
13209         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
13210         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
13211         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
13212         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
13213         [XPG3] (acosh): Likewise.
13214         [XPG3] (asinh): Likewise.
13215         [XPG3] (atanh): Likewise.
13216         [XPG3] (cbrt): Likewise.
13217         [XPG3] (expm1): Likewise.
13218         [XPG3] (ilogb): Likewise.
13219         [XPG3] (log1p): Likewise.
13220         [XPG3] (logb): Likewise.
13221         [XPG3] (nextafter): Likewise.
13222         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
13223         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
13224         [XPG3] (remainder): Likewise.
13225         [XPG3] (rint): Likewise.
13226         [XPG3 || XPG4 || UNIX98] (round): Likewise.
13227         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
13228         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
13229         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
13230         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
13231         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
13232         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
13233         [UNIX98 || XOPEN2K] (scalb): Expect.
13234         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
13235         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
13236         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
13237         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
13238         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
13239         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
13240         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
13241         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
13242         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
13243         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
13244         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
13245         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
13246         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
13247         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
13248         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
13249         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
13250         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
13251         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
13252         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
13253         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
13254         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
13255         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
13256         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
13257         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
13258         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
13259         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
13260         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
13261         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
13262         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
13263         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
13264         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
13265         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
13266         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
13267         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
13268         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
13269         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
13270         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
13271         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
13272         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
13273         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
13274         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
13275         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
13276         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
13277         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
13278         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
13279         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
13280         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
13281         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
13282         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
13283         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
13284         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
13285         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
13286         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
13287         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
13288         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
13289         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
13290         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
13291         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
13292         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
13293         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
13294         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
13295         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
13296         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
13297         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
13298         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
13299         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
13300         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
13301         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
13302         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
13303         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
13304         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
13305         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
13306         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
13307         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
13308         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
13309         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
13310         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
13311         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
13312         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
13313         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
13314         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
13315         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
13316         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
13317         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
13318         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
13319         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
13320         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
13321         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
13322         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
13323         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
13324         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
13325         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
13326         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
13327         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
13328         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
13329         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
13330         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
13331         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
13332         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
13333         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
13334         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
13335         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
13336         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
13337         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
13338         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
13339         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
13340         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
13341         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
13342         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
13343         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
13344         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
13345         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
13346         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
13347         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
13348         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
13349         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
13350         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
13351         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
13352         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
13353         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
13354         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
13355         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
13356         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
13357         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
13358         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
13359         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
13360         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
13361         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
13362         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
13363         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
13364         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
13365         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
13366         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
13367         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
13368         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
13369         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
13370         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
13372         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
13373         _XOPEN_SOURCE_EXTENDED for XPG4.
13375         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
13377         * Makeconfig (localtime): Remove variable.
13378         (inst_localtime-file): Likewise.
13380 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
13383         Update.
13384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13385         Update.
13386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
13387         Update.
13388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
13389         Update.
13390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
13391         Update.
13392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
13393         Update.
13394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13395         Update.
13396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
13397         Update.
13398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13399         Update.
13401 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13403         [BZ #2550]
13404         [BZ #2570]
13405         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
13406         comparisons to determine direction to adjust input.
13407         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
13408         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
13409         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
13410         Likewise.
13411         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
13412         Likewise.
13413         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13414         Likewise.
13415         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
13416         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
13417         Likewise.
13418         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
13419         Likewise.
13420         * math/libm-test.inc (nexttoward_test): Add more tests.
13422 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13424         [BZ #14040]
13425         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
13426         in version GLIBC_2.1, not GLIBC_2.0.
13427         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
13428         Likewise.
13430 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
13432         [BZ #13942]
13433         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
13434         (1 - x) * (1 + x).
13435         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13436         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
13437         * math/libm-test.inc (acos_test): Add more tests.
13438         (asin_test): Likewise.
13439         * sysdeps/i386/fpu/libm-test-ulps: Update.
13440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13442         [BZ #14034]
13443         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
13444         of square root.
13445         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
13446         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
13447         * math/libm-test.inc (acos_test_tonearest): New function.
13448         (acos_test_towardzero): Likewise.
13449         (acos_test_downward): Likewise.
13450         (acos_test_upward): Likewise.
13451         (asin_test_tonearest): Likewise.
13452         (asin_test_towardzero): Likewise.
13453         (asin_test_downward): Likewise.
13454         (asin_test_upward): Likewise.
13455         (main): Call the new functions.
13456         * sysdeps/i386/fpu/libm-test-ulps: Update.
13457         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13459         [BZ #13884]
13460         [BZ #13924]
13461         * math/e_exp10.c: Include <float.h>.
13462         (__ieee754_exp10): Handle underflow here rather than multiplying
13463         large negative argument by M_LN10.
13464         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
13465         of __ieee754_expf.
13466         * math/e_exp10l.c: Include <float.h>.
13467         (__ieee754_exp10l): Handle underflow here rather than multiplying
13468         large negative argument by M_LN10l.
13469         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
13470         spurious overflow exception on underflow.
13472 2012-04-29  Marek Polacek  <polacek@redhat.com>
13474         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
13475         (__fortify_function): New macro.
13476         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
13477         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
13478         __extern_always_inline.
13479         * libio/bits/stdio2.h: Likewise.
13480         * libio/bits/stdio.h: Likewise.
13481         * string/string.h: Likewise.
13482         * string/bits/string3.h: Likewise.
13483         * include/stdio.h: Likewise.
13484         * stdlib/bits/stdlib.h: Likewise.
13485         * stdlib/stdlib.h: Likewise.
13486         * rt/bits/mqueue2.h: Likewise.
13487         * rt/mqueue.h: Likewise.
13488         * posix/bits/unistd.h: Likewise.
13489         * posix/unistd.h: Likewise.
13490         * io/bits/poll2.h: Likewise.
13491         * io/bits/fcntl2.h: Likewise.
13492         * io/fcntl.h: Likewise.
13493         * io/sys/poll.h: Likewise.
13494         * misc/bits/syslog.h: Likewise.
13495         * misc/bits/syslog-ldbl.h: Likewise.
13496         * misc/sys/syslog.h: Likewise.
13497         * socket/bits/socket2.h: Likewise.
13498         * socket/sys/socket.h: Likewise.
13499         * debug/tst-chk1.c: Likewise.
13500         * wcsmbs/bits/wchar2.h: Likewise.
13501         * wcsmbs/bits/wchar-ldbl.h: Likewise.
13502         * wcsmbs/wchar.h: Likewise.
13504 2012-04-29  Andreas Jaeger  <aj@suse.de>
13506         * Makerules (tests): Remove enable-check-abi protection.
13507         (check-abi-warn): Remove.
13508         (check-abi-%): Remove check-abi-warn usage.
13510         * configure.in: Remove check-abi configure option.
13511         * configure: Regenerated.
13512         * config.make.in (enable-check-abi): Remove.
13514 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
13516         [BZ #14033]
13517         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
13518         double functions to double *_finite functions.
13520         [BZ #13941]
13521         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
13522         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
13523         LDBL_MIN_EXP.
13524         * stdio-common/Makefile (tests): Add tst-sprintf3.
13525         * stdio-common/tst-sprintf3.c: New file.
13527         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
13528         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
13530 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
13532         * conform/conformtest.pl: Remove duplicate typed-constant
13533         handling.
13535 2012-04-28  David S. Miller  <davem@davemloft.net>
13537         * Makerules (%.abilist): Add vpath on sysdep_dirs.
13538         (check-abi-%): Remove AWK script prerequisite and explicit
13539         abilist directory.
13540         (check-abi): Rewrite to just diff the symlist with the abilist.
13541         (config-tls, config-abi-config): Delete, no longer used.
13542         (update-abi-%): Remove AWK script and explicit abilist directory.
13543         (update-abi): Rewrite to simply compare and conditionally copy the
13544         symlist and the sysdep abilist file.  Remove update-abi-config
13545         checks.
13546         * abilist/ld.abilist: Remove.
13547         * abilist/libBrokenLocale.abilist: Remove.
13548         * abilist/libanl.abilist: Remove.
13549         * abilist/libcrypt.abilist: Remove.
13550         * abilist/libdl.abilist: Remove.
13551         * abilist/librt.abilist: Remove.
13552         * abilist/libthread_db.abilist: Remove.
13553         * abilist/libutil.abilist: Remove.
13554         * scripts/extract-abilist.awk: Remove.
13555         * scripts/merge-abilist.awk: Remove.
13556         * sysdeps/generic/libcidn.abilist: New file.
13557         * sysdeps/generic/libnss_compat.abilist: New file.
13558         * sysdeps/generic/libnss_db.abilist: New file.
13559         * sysdeps/generic/libnss_dns.abilist: New file.
13560         * sysdeps/generic/libnss_files.abilist: New file.
13561         * sysdeps/generic/libnss_hesiod.abilist: New file.
13562         * sysdeps/generic/libnss_nis.abilist: New file.
13563         * sysdeps/generic/libnss_nisplus.abilist: New file.
13564         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
13565         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
13566         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
13567         file.
13568         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
13569         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
13570         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
13571         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
13572         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
13573         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
13574         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
13575         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
13576         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
13577         file.
13578         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
13579         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
13580         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
13581         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
13582         file.
13583         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
13584         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
13585         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
13586         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
13587         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
13588         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
13589         file.
13590         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
13591         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
13592         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
13593         file.
13594         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
13595         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
13596         New file.
13597         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
13598         New file.
13599         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
13600         New file.
13601         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
13602         New file.
13603         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
13604         New file.
13605         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
13606         New file.
13607         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
13608         New file.
13609         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
13610         New file.
13611         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
13612         New file.
13613         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
13614         New file.
13615         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
13616         New file.
13617         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
13618         New file.
13619         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
13620         New file.
13621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
13622         file.
13623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
13624         New file.
13625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
13626         New file.
13627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
13628         file.
13629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
13630         New file.
13631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
13632         New file.
13633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
13634         file.
13635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
13636         New file.
13637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13638         New file.
13639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
13640         New file.
13641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
13642         New file.
13643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
13644         New file.
13645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
13646         New file.
13647         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
13648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
13649         file.
13650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
13651         New file.
13652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
13653         file.
13654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
13655         file.
13656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
13657         file.
13658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
13659         file.
13660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
13661         file.
13662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13663         New file.
13664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
13665         file.
13666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
13667         file.
13668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
13669         New file.
13670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
13671         file.
13672         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
13673         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
13674         file.
13675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
13676         New file.
13677         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
13678         file.
13679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
13680         file.
13681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
13682         file.
13683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
13684         file.
13685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
13686         file.
13687         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13688         New file.
13689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
13690         file.
13691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
13692         file.
13693         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
13694         New file.
13695         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
13696         file.
13697         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
13698         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
13699         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
13700         file.
13701         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
13702         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
13703         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
13704         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
13705         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
13706         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
13707         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
13708         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
13709         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
13710         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
13711         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
13712         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
13713         file.
13714         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
13715         New file.
13716         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
13717         file.
13718         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
13719         file.
13720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
13721         file.
13722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
13723         file.
13724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
13725         file.
13726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
13727         New file.
13728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
13729         New file.
13730         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
13731         file.
13732         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
13733         New file.
13734         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
13735         file.
13736         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
13737         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
13738         file.
13739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
13740         New file.
13741         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
13742         file.
13743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
13744         file.
13745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
13746         file.
13747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
13748         file.
13749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
13750         file.
13751         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
13752         New file.
13753         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
13754         New file.
13755         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
13756         file.
13757         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
13758         New file.
13759         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
13760         file.
13762 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
13764         * conform/conformtest.pl: Fix typo in handling typed-constant from
13765         allow-header.
13767 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
13769         * README: Cut down references to pre-2.6 Linux kernels and
13770         Linuxthreads.  Update lists of configurations in libc and ports
13771         and sort alphabetically.  Say "or newer" with Linux kernel version
13772         requirements.
13774         * config.h.in [IS_IN_build]: Allow compiling without optimization.
13776 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13778         [BZ #887]
13779         * math/libm-test.inc (logb_test_downward): New test to expose
13780         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
13781         rounding mode.
13783 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
13785         [BZ #14027]
13786         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
13787         to be done.
13788         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
13789         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
13791 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
13793         * sysdeps/unix/i386/brk.S: Remove file.
13794         * sysdeps/unix/i386/dl-brk.S: Likewise.
13795         * sysdeps/unix/i386/pipe.S: Likewise.
13796         * sysdeps/unix/i386/sigreturn.S: Likewise.
13797         * sysdeps/unix/i386/syscall.S: Likewise.
13798         * sysdeps/unix/i386/vfork.S: Likewise.
13799         * sysdeps/unix/i386/wait.S: Likewise.
13801         * sysdeps/unix/common/tcsendbrk.c: Move to ...
13802         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
13804         * configure.in (arm*-none*): Do not allow without
13805         --enable-hacker-mode.
13806         (netbsd*): Remove case setting base_os.
13807         (386bsd*): Likewise.
13808         (freebsd*): Likewise.
13809         (bsdi*): Likewise.
13810         (osf*): Likewise.
13811         (sunos*): Likewise.
13812         (ultrix*): Likewise.
13813         (newsos*): Likewise.
13814         (dynix*): Likewise.
13815         (*bsd*): Likewise.
13816         (sysv*): Likewise.
13817         (isc*): Likewise.
13818         (esix*): Likewise.
13819         (sco*): Likewise.
13820         (minix*): Likewise.
13821         (irix4*): Likewise.
13822         (irix6*): Likewise.
13823         (solaris[2-9]*): Likewise.
13824         (none): Likewise.
13825         * configure: Regenerated.
13827 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13829         [BZ #11521]
13830         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
13831         overflow or cancellation in calculating denominator.
13832         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
13833         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
13834         down expression to avoid unexpected rounding in newer GCCs.
13835         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
13837 2012-04-26  David S. Miller  <davem@davemloft.net>
13839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
13840         long-double compat symbols.
13841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
13843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
13844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
13845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
13846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
13849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
13850         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
13851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
13852         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
13853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13855 2012-04-25  David S. Miller  <davem@davemloft.net>
13857         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
13858         HWCAP_* values only after the memory barriers have been defined.
13859         (atomic_full_barrier): Define.
13860         (atomic_read_barrier): Define.
13861         (atomic_write_barrier): Define.
13863 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13865         * shlib-versions: Add libgcc_s version information.
13866         * sysdeps/generic/libgcc_s.h: Remove.
13867         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
13868         libgcc_s.h.
13869         * sysdeps/gnu/unwind-resume.c: Likewise.
13870         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
13872 2012-04-25  David S. Miller  <davem@davemloft.net>
13874         * sysdeps/unix/sparc/brk.S: Delete.
13875         * sysdeps/unix/sparc/dl-brk.S: Delete.
13876         * sysdeps/unix/sparc/pipe.S: Delete.
13877         * sysdeps/unix/sparc/sysdep.S: Delete.
13878         * sysdeps/unix/sparc/sysdep.h: Delete.
13879         * sysdeps/unix/sparc/vfork.S: Delete.
13880         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
13881         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
13882         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
13883         ret_ERRVAL, r0, r1, MOVE): Define.
13884         (JUMPTARGET): Remove.
13885         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
13886         sysdeps/unix/sparc/sysdep.h
13887         (ENTRY, END): Remove.
13888         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13890 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
13892         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
13893         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
13894         -DIS_IN_build.
13896         * timezone/README: Update upstream location and email address for
13897         tzcode and tzdata.
13898         * timezone/zdump.c: Update from tzcode 2012b.
13899         * timezone/zic.c: Likewise.
13901         * configure.in (libc_cv_as_needed): Remove test.
13902         * configure: Regenerated.
13903         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
13904         conditional definition.
13905         [$(have-as-needed) != yes] (no-as-needed): Likewise.
13906         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
13907         * config.make.in (have-as-needed): Remove variable.
13909 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13910             Paul Pluzhnikov  <ppluzhnikov@google.com>
13912         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
13913         strings correctly.
13915 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
13917         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
13918         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
13919         * sysdeps/sh/strlen.S: Likewise.
13921 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
13923         * sysdeps/unix/fork.S: Remove file.
13924         * sysdeps/unix/i386/fork.S: Likewise.
13925         * sysdeps/unix/sparc/fork.S: Likewise.
13927         * sysdeps/unix/system.c: Remove file.
13928         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
13930         * sysdeps/unix/getegid.S: Remove file.
13931         * sysdeps/unix/geteuid.S: Likewise.
13933 2012-04-24  Roland McGrath  <roland@hack.frob.com>
13935         * scripts/check-localplt.awk: New file.
13936         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
13937         of diff.
13938         * scripts/data/localplt-generic.data: Add a comment.
13940         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
13941         NODE when __dir_mkfile failed.
13942         * sysdeps/mach/hurd/symlinkat.c: Likewise.
13943         Reported by Ludovic Courtès <ludo@gnu.org>.
13945 2012-04-24  Andreas Jaeger  <aj@suse.de>
13947         * Makerules (common-clean): Also remove gen-as-const-headers
13948         files.
13950 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
13952         * Makerules (native-compile): Do not change working directory for
13953         build.  Use $(OUTPUT_OPTION) in command.
13954         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
13956 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13958         [BZ #13886]
13959         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
13960         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
13961         * math/libm-test.inc (floor_test): Add more tests.
13962         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
13964 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
13966         * sysdeps/unix/getdents.c: Remove file.
13967         * sysdeps/unix/sysv/getdents.c: Likewise.
13968         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
13970         * sysdeps/unix/syscalls.list (madvise): Add syscall from
13971         sysdeps/unix/mman/syscalls.list.
13972         (mmap): Likewise.
13973         (mprotect): Likewise.
13974         (msync): Likewise.
13975         (munmap): Likewise.
13976         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
13977         * sysdeps/unix/mman/syscalls.list: Remove.
13978         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
13980         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
13981         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
13982         * configure: Regenerated.
13983         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
13984         $(libgcc_s_suffix).
13985         * config.make.in (libgcc_s_suffix): Remove variable.
13987 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
13989         * sysdeps/unix/sysv/gethostname.c: Move to ...
13990         * sysdeps/posix/gethostname.c: ... here.
13992         * sysdeps/unix/execve.S: Remove file.
13994         * sysdeps/unix/_exit.S: Remove file.
13996 2012-04-23  Andreas Jaeger  <aj@suse.de>
13998         [BZ #13739]
13999         * manual/Makefile: Remove make dist support, there's no
14000         need for a stand-alone documentation tar ball.
14001         (TEXI2DVI): Define always, it's not in Makeconfig.
14002         (dist): Removed.
14003         (tar-it): Removed.
14004         (edition): Removed.
14005         (glibc-doc-$(edition).tar): Removed
14006         (%.Z): Removed.
14007         (%.gz): Removed.
14008         (%.uu): Removed.
14009         (ETAGS): Remove, it's in Makeconfig.
14010         (move-if-change): Remove, it's in Makeconfig.
14012 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
14014         [BZ #13970]
14015         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
14016         (strtod, strtof, strtold, strtol, strtoul, strtoq)
14017         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
14018         (strtod_l, strtof_l, strtold_l): Remove __wur.
14019         It is not necessarily an error to ignore strtol's return value.
14020         One can reliably look at the stored endptr to decide whether
14021         the number had valid syntax.
14023 2012-04-21  Andreas Jaeger  <aj@suse.de>
14025         [BZ #13739]
14026         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
14028 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
14030         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
14031         * sysdeps/unix/sysv/Versions: Remove file.
14033 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14035         [BZ #13927]
14036         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14038 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
14040         [BZ #7064]
14041         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
14042         version from __vm86.
14044 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
14046         * sysdeps/unix/common/lxstat.c: Remove file.
14047         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
14049         * sysdeps/unix/sysv/Makefile: Remove file.
14051         * sysdeps/unix/sysv/direct.h: Remove file.
14053         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
14054         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
14055         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
14056         * sysdeps/unix/sysv/bits/signum.h: Likewise.
14057         * sysdeps/unix/sysv/bits/stat.h: Likewise.
14058         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
14059         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
14061         * sysdeps/unix/sysv/setrlimit.c: Remove file.
14063         * sysdeps/unix/xmknod.c: Remove file.
14064         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
14066         * sysdeps/unix/sysv/settimeofday.c: Remove file.
14068         * sysdeps/unix/sysv/i386/time.S: Remove file.
14070         * sysdeps/unix/fxstat.c: Remove file.
14071         * sysdeps/unix/xstat.c: Likewise.
14072         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
14074         * sysdeps/unix/sysv/sigaction.c: Remove file.
14076         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
14077         (sysdep_headers): Remove variable.
14078         [termio.h not in sysdep_headers] (generated): Likewise.
14079         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
14080         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
14081         * sysdeps/unix/sysv/tcdrain.c: Likewise.
14082         * sysdeps/unix/sysv/tcflow.c: Likewise.
14083         * sysdeps/unix/sysv/tcflush.c: Likewise.
14084         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
14085         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
14086         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
14087         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
14088         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
14090         * sysdeps/unix/siglist.c: Remove file.
14092         * sysdeps/unix/getppid.S: Remove file.
14094         * sysdeps/unix/mkdir.c: Remove file.
14095         * sysdeps/unix/rmdir.c: Likewise.
14097 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
14099         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
14100         ERR_MAX value.
14101         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
14102         errlist-compat value.
14104 2012-04-18  David S. Miller  <davem@davemloft.net>
14106         * sysdeps/generic/memcopy.h (reg_char): Delete.
14107         * debug/strcat_chk.c: Use char, not reg_char.
14108         * debug/strcpy_chk.c: Likewise.
14109         * debug/strncat_chk.c: Likewise.
14110         * debug/strncpy_chk.c: Likewise.
14111         * string/memchr.c: Likewise.
14112         * string/memrchr.c: Likewise.
14113         * string/rawmemchr.c: Likewise.
14114         * string/strcat.c: Likewise.
14115         * string/strchr.c: Likewise.
14116         * string/strchrnul.c: Likewise.
14117         * string/strcmp.c: Likewise.
14118         * string/strcpy.c: Likewise.
14119         * string/strncat.c: Likewise.
14120         * string/strncmp.c: Likewise.
14121         * string/strncpy.c: Likewise.
14123 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14125         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
14126         __builtin_memcopy is called when src and dest ranges are known to not
14127         overlap.
14129 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14131         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
14132         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
14133         fwd_align_merge macro call.
14134         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
14135         bwd_align_merge macro call.
14136         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14138 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
14140         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
14141         bwd_align_merge macros.
14142         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
14143         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
14144         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14146 2012-04-18  David S. Miller  <davem@davemloft.net>
14148         * sysdeps/sparc/sparc64/memcopy.h: Delete.
14150 2012-04-18  Andreas Jaeger  <aj@suse.de>
14152         [BZ# 6794]
14153         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
14154         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
14155         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14157         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
14158         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
14159         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14161         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
14162         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
14163         Adjust for changed ldbl-128 files.
14165         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
14166         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
14167         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
14169 2012-04-17  David S. Miller  <davem@davemloft.net>
14171         * sysdeps/sparc/sparc32/memcopy.h: Delete.
14173 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
14175         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
14176         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
14177         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
14178         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
14179         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
14180         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
14182 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14184         [BZ #6794]
14185         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
14186         * math/libm-test.inc: Add ilogb errno and exception tests.
14187         * math/w_ilogb.c: New file: ilogb wrapper.
14188         * math/w_ilogbf.c: New file: ilogbf wrapper.
14189         * math/w_ilogbl.c: New file: ilogbl wrapper.
14190         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
14191         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
14192         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
14193         exception being thrown with 0.0 as argument.
14194         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
14195         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
14196         exception being thrown with 0.0 as argument.
14197         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
14198         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
14199         exception being thrown with 0.0 as argument.
14200         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
14201         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
14202         exception being thrown with 0.0 as argument.
14203         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
14204         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
14205         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
14206         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
14207         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
14208         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
14209         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
14210         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
14211         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
14213 2012-04-17  Petr Baudis  <pasky@ucw.cz>
14215         * include/sys/uio.h: Change __vector to __iovec to avoid clash
14216         with altivec.
14218 2012-04-16  Marek Polacek  <polacek@redhat.com>
14220         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
14222 2012-04-16  Marek Polacek  <polacek@redhat.com>
14224         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
14225         operands of fdivp instruction.
14227 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
14229         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
14230         * elf/tst-auditmod3b.c: Likewise.
14231         * elf/tst-auditmod4b.c: Likewise.
14232         * elf/tst-auditmod5b.c: Likewise.
14233         * elf/tst-auditmod6b.c: Likewise.
14234         * elf/tst-auditmod6c.c: Likewise.
14235         * elf/tst-auditmod7b.c: Likewise.
14236         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
14237         * sysdeps/x86_64/preconfigure.in: Likewise.
14238         * sysdeps/x86_64/preconfigure: Regenerated.
14240 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
14242         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
14243         __ILP32__.
14245 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
14247         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14248         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
14250 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
14252         [BZ #13973]
14253         * locale/iso-639.def: Fix gl language name. Spotted by
14254         Yaron Shahrabani.
14256 2012-04-12  Roland McGrath  <roland@hack.frob.com>
14258         [BZ #2074]
14259         * libio/libio.h (__io_write_fn): Update comment.
14261 2012-04-12  Petr Baudis  <pasky@ucw.cz>
14263         [BZ #2074]
14264         * stdio.texi (Hook Functions): The user provided writer function
14265         is not allowed to return -1.
14267 2012-04-11  David S. Miller  <davem@davemloft.net>
14269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14271 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
14273         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
14274         Add a leading slash to rtkaio.
14276 2012-04-11  Jim Meyering  <meyering@redhat.com>
14278         [BZ #11959]
14279         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
14280         It is not necessarily an error to ignore fwrite's return
14281         value.  One can reliably use ferror to test for errors after
14282         the fact.
14284 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
14286         * bits/types.h (__snseconds_t): New type.
14287         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
14289         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
14290         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14291         (__SNSECONDS_T_TYPE): Likewise.
14292         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14293         (__SNSECONDS_T_TYPE): Likewise.
14294         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14295         (__SNSECONDS_T_TYPE): Likewise.
14297 2012-04-10  Andreas Jaeger  <aj@suse.de>
14299         [BZ #2636]
14300         * manual/time.texi (Processor Time): Return type of times is
14301         elapsed real time since an arbitrary point in the past.
14302         (CPU Time): Move CLK_TCK from here...
14303         (Processor Time): ...to here.  Correct description.
14304         * manual/conf.texi (Constants for Sysconf): Correct description of
14305         _SC_CLK_TCK.
14307 2012-04-10  David S. Miller  <davem@davemloft.net>
14309         [BZ #13967]
14310         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
14311         where the is a gap between DT_REL(A) and DT_JMPREL.
14313 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
14315         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
14316         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14317         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14319 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14321         * elf/dl-support.c (_dl_inhibit_cache): New variable.
14322         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
14323         (dl_main): Handle --inhibit-cache.
14324         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
14325         _dl_inhibit_cache.
14326         * elf/dl-load.c (_dl_map_object): Use it.
14327         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
14329 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
14331         [BZ #13872]
14332         * sysdeps/i386/fpu/e_powl.S (p78): New object.
14333         (__ieee754_powl): Saturate large exponents rather than testing for
14334         overflow of y*log2(x).
14335         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14336         * math/libm-test.inc (pow_test): Do not permit spurious overflow
14337         exceptions.
14339         [BZ #11521]
14340         * math/s_ctan.c: Include <float.h>.
14341         (__ctan): Avoid internal overflow or cancellation in calculating
14342         denominator.
14343         * math/s_ctanf.c: Likewise.
14344         * math/s_ctanl.c: Likewise.
14345         * math/s_ctanh.c: Likewise.
14346         * math/s_ctanhf.c: Likewise.
14347         * math/s_ctanhl.c: Likewise.
14348         * math/libm-test.inc (ctan_test): Add more tests.
14349         (ctanh_test): Likewise.
14350         * sysdeps/i386/fpu/libm-test-ulps: Update.
14351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14353 2012-04-09  Andreas Jaeger  <aj@suse.de>
14355         [BZ #6894]
14356         * manual/filesys.texi (Directory Entries): Mention that d_namlen
14357         is an optional BSD extension.
14359         [BZ #10254]
14360         * manual/stdio.texi (Opening Streams): Document additional fopen
14361         parameters.
14363 2012-04-09  Roland McGrath  <roland@hack.frob.com>
14365         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
14366         %eax without telling the compiler.
14368 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
14370         [BZ # 13963]
14371         * manual/install.texi: Use sourceware.org.
14373 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
14375         [BZ #13873]
14376         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
14377         (__ieee754_pow): Generate overflow and underflow using huge*huge
14378         and tiny*tiny rather than just returning constant infinity or zero
14379         for large exponents.
14380         * math/libm-test.inc (pow_test): Require overflow exceptions for
14381         applicable cases of large exponents.
14383         [BZ #706]
14384         * sysdeps/i386/fpu/e_pow.S (p10): New object.
14385         (__ieee754_pow): Use iterative multiplication algorithm only for
14386         integer exponents with absolute value below 1024.  Check for odd
14387         integer exponents when using algorithm for real exponents.
14388         * math/libm-test.inc (pow_test): Add more tests.
14389         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14391 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
14393         [BZ #13705]
14394         * math/libm-test.inc (exp_test): Do not allow overflow exception
14395         on underflow test.
14397 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
14399         [BZ #13705]
14400         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
14401         instead of __kernel_standard_f.
14403 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
14405         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
14406         * sysdeps/x86_64/memset_chk.S: Likewise.
14408 2012-04-08  Andreas Jaeger  <aj@suse.de>
14410         [BZ #10153]
14411         * manual/startup.texi (Environment Access): Describe return value
14412         for putenv and setenv.
14414         [BZ #6895]
14415         * manual/filesys.texi (Directory Entries): Add description for
14416         DT_LNK.
14418         [BZ #6890]
14419         * manual/filesys.texi (Directory Entries): Clarify that it's file
14420         system not operating system in the description of DT_UNKNOWN.
14422         [BZ #6578]
14423         * manual/syslog.texi (closelog): Fix reference, it's openlog.
14425 2012-04-08  Stephen Compall  <s11@member.fsf.org>
14427         [BZ #6649]
14428         * manual/llio.texi (Opening and Closing Files): Add cross
14429         reference to explain mode argument.
14431 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
14433         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
14434         * sysdeps/x86_64/memset_chk.S: Likewise.
14436 2012-04-07  David S. Miller  <davem@davemloft.net>
14438         * elf/elf.h (R_SPARC_WDISP10): Define.
14439         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
14440         R_SPARC_SIZE32.
14441         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
14442         R_SPARC_SIZE64 and R_SPARC_H34.
14444 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
14446         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
14447         conditions and remove no longer applicable assertion.
14449 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14451         * bits/byteswap.h: Include <features.h>.
14452         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
14453         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
14455 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14457         * bits/byteswap.h (__bswap_16): Removed.
14458         Include <bits/byteswap-16.h> to get __bswap_16.
14459         * sysdeps/i386/bits/byteswap.h: Likewise.
14460         * sysdeps/s390/bits/byteswap.h: Likewise.
14461         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14462         * bits/byteswap-16.h: New file.
14463         * sysdeps/i386/bits/byteswap-16.h: Likewise.
14464         * sysdeps/s390/bits/byteswap-16.h: Likewise.
14465         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
14466         * string/Makefile (headers): Add bits/byteswap-16.h.
14468 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14470         [BZ #13895]
14471         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
14472         extra indirection.
14473         * nss/Makefile (tests-static, tests): Add tst-nss-static.
14474         * nss/tst-nss-static.c: New.
14476 2012-04-06  Robert Millan  <rmh@gnu.org>
14478         [BZ #6486]
14479         * manual/llio.texi (File Position Primitive): lseek
14480         refers to WHENCE when it really means OFFSET.
14482 2012-04-06  Andreas Jaeger  <aj@suse.de>
14484         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
14485         strncmp declarations.
14487         * abilist/libc.abilist: Add __poll and __ppoll.
14489 2012-04-05  David S. Miller  <davem@davemloft.net>
14491         * scripts/check-local-headers.sh: Accept a host triplet in the
14492         path matched by the exclude regexp.
14494         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
14495         definition.
14496         * sysdeps/powerpc/powerpc32/dl-machine.h
14497         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
14498         * sysdeps/s390/s390-32/dl-machine.h
14499         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14500         * sysdeps/sparc/sparc32/dl-machine.h
14501         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14502         * sysdeps/sparc/sparc64/dl-machine.h
14503         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
14505         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
14506         lazy binding.
14507         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
14508         undefined symbol errors.
14510         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
14511         DT_NEEDED entries.
14513 2012-04-05  Michael Matz  <matz@suse.de>
14515         [BZ #13592]
14516         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
14518 2012-04-05  Andreas Jaeger  <aj@suse.de>
14520         [BZ #13908]
14521         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
14522         comment.
14524 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14526         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
14527         which ROUND is no valid rounding mode.
14529 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14531         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
14532         read again.
14533         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
14535 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14537         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
14538         an exception using FPU order intentionally.
14540 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14542         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
14543         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
14544         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
14545         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
14547 2012-04-05  Simon Josefsson  <simon@josefsson.org>
14549         [BZ #12340]
14550         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
14551         EINVAL when BUFLEN is too smal.
14553 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
14555         [BZ #13553]
14556         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
14557         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
14559 2012-04-03  Andreas Jaeger  <aj@suse.de>
14561         [BZ #13938]
14562         * manual/setjmp.texi (System V contexts): Fix sentence.
14564         [BZ #13926]
14565         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
14566         New macro for this case.
14567         [!__GNUC__] (__bswap_64): New inline function for this case.
14568         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14569         * bits/byteswap.h: Likewise.
14570         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
14571         ull, guard with __GLIBC_HAVE_LONG_LONG.
14573         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
14574         __GLIBC_HAVE_LONG_LONG.
14576         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
14577         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
14579 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14581         [BZ #13691]
14582         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
14583         inptr and inend, rather than using last_ch.
14585 2012-04-02  David S. Miller  <davem@davemloft.net>
14587         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
14588         * stdio-common/printf-parse.h (read_int): Change return type to
14589         'int', return -1 on INT_MAX overflow.
14590         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
14591         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
14592         overflows INT_MAX.  Check for overflow of in-format-string precision
14593         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
14594         SIZE_MAX not INT_MAX for integer overflow test.
14595         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
14596         skip the construct in the format string but do not record anything.
14597         * stdio-common/bug22.c: Adjust to test both width/prevision
14598         INT_MAX overflow as well as total length INT_MAX overflow.  Check
14599         explicitly for proper errno values.
14601 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
14603         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
14604         CHAR_MAX.
14605         * string/test-strcmp.c [! WIDE]: Likewise.
14606         * time/tst-mktime2.c: Likewise for INT_MAX.
14607         * string/test-string.h: #include <sys/param.h> for MIN.
14609         * csu/init-first.c (__libc_init_first): Call __ctype_init.
14610         * sysdeps/i386/init-first.c (init): Likewise.
14611         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
14612         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
14613         * sysdeps/sh/init-first.c (init): Likewise.
14615 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
14617         * po/ru.po: Update from translation team.
14618         * po/vi.po: Likewise.
14620 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
14622         * resolv/nss_dns/dns-host.c: Merge copyright years.
14624 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14626         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14627         Optimize memcpy with prefetch if
14628         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
14629         src, dst pointers have unequal 16 byte alignments.
14631 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
14633         [BZ #13928]
14634         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
14635         from a CNAME entry and return the minimum ttl for the query.
14636         (gaih_getanswer_slice): Likewise.
14638 2012-03-30  Jeff Law  <law@redhat.com>
14640         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
14641         due to long keys.
14642         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14643         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14645         * resolv/nss_dns/dns-host.c: Update copyright year.
14647 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
14649         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
14650         requests to save a system call.  Fix check that all bytes are sent.
14652         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
14653         comments for sendmmsg.
14655 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14657         [BZ #13691]
14658         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
14659         with only 1 character between 0x0041 and 0x01b0.
14660         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
14661         * wcsmbs/tst-mbsnrtowcs.c: New file.
14663 2012-03-29  David S. Miller  <davem@davemloft.net>
14665         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
14666         small copies by hand.
14668 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14670         [BZ #13761]
14671         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
14672         _nss_compat_initgroups_dyn): Fall back to malloc/free
14673         for large group memberships.
14675 2012-03-28  David S. Miller  <davem@davemloft.net>
14677         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
14678         that branches into memcpy.
14679         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
14680         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
14681         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
14682         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
14683         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
14684         bits.
14685         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
14686         implementation too.
14687         * sysdeps/sparc/mempcpy.S: New file.
14689         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
14690         the IFUNC routine in the libc case.
14691         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14693         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
14694         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
14695         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
14696         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
14697         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
14698         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
14699         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
14700         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
14702         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
14703         loop to 256 bytes instead of 64 bytes and fix test signedness.
14705         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
14706         * sysdeps/sparc/sparc32/Makefile: rather than here...
14707         * sysdeps/sparc/sparc64/Makefile: and here.
14709 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
14711         * malloc/mallocbug.c: Avoid warnings about unused variables.
14713 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
14715         [BZ #13760]
14716         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
14717         in the right place. Discard and retry query if response is
14718         larger than input buffer size.
14720 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
14722         [BZ #369]
14723         [BZ #2678]
14724         [BZ #3866]
14725         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
14726         x for large integer exponent.
14727         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
14728         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
14729         sign of result as needed afterwards.
14730         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
14731         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
14732         result for underflowing pow the same as for overflow.
14733         (__kernel_standard_l): Handle powl overflow and underflow here
14734         rather than calling __kernel_standard.
14735         * math/libm-test.inc (pow_test): Add more tests.
14737         [BZ #3868]
14738         [BZ #13879]
14739         [BZ #13910]
14740         [BZ #13911]
14741         [BZ #13912]
14742         [BZ #13913]
14743         [BZ #13915]
14744         [BZ #13916]
14745         [BZ #13917]
14746         [BZ #13918]
14747         [BZ #13919]
14748         [BZ #13920]
14749         [BZ #13921]
14750         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
14751         * sysdeps/ieee754/k_standard.c: Include <float.h>.
14752         (__kernel_standard_l): New function.
14753         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
14754         __kernel_standard.
14755         * math/w_acosl.c (__acosl): Likewise.
14756         * math/w_asinl.c (__asinl): Likewise.
14757         * math/w_atan2l.c (__atan2l): Likewise.
14758         * math/w_atanhl.c (__atanhl): Likewise.
14759         * math/w_coshl.c (__coshl): Likewise.
14760         * math/w_exp10l.c (__exp10l): Likewise.
14761         * math/w_exp2l.c (__exp2l): Likewise.
14762         * math/w_fmodl.c (__fmodl): Likewise.
14763         * math/w_hypotl.c (__hypotl): Likewise.
14764         * math/w_j0l.c (__j0l, __y0l): Likewise.
14765         * math/w_j1l.c (__j1l, __y1l): Likewise.
14766         * math/w_jnl.c (__jnl, __ynl): Likewise.
14767         * math/w_lgammal.c (__lgammal): Likewise.
14768         * math/w_log10l.c (__log10l): Likewise.
14769         * math/w_log2l.c (__log2l): Likewise.
14770         * math/w_logl.c (__logl): Likewise.
14771         * math/w_powl.c (__powl): Likewise.
14772         * math/w_remainderl.c (__remainderl): Likewise.
14773         * math/w_scalbl.c (sysv_scalbl): Likewise.
14774         * math/w_sinhl.c (__sinhl): Likewise.
14775         * math/w_sqrtl.c (__sqrtl): Likewise.
14776         * math/w_tgammal.c (__tgammal): Likewise.
14777         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
14778         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
14779         * math/libm-test.inc (acos_test): Add more tests.
14780         (acosh_test): Likewise.
14781         (asin_test): Likewise.
14782         (atanh_test): Likewise.
14783         (exp_test): Likewise.
14784         (exp10_test): Likewise.
14785         (exp2_test): Likewise.
14786         (expm1_test): Likewise.
14787         (lgamma_test): Likewise.
14788         (log_test): Likewise.
14789         (log10_test): Likewise.
14790         (log1p_test): Likewise.
14791         (log2_test): Likewise.
14792         (pow_test): Do not allow some spurious overflow exceptions.
14793         (sqrt_test): Add more tests.
14794         (tgamma_test): Likewise.
14795         (y0_test): Likewise.
14796         (y1_test): Likewise.
14797         (yn_test): Likewise.
14799 2012-03-27  Anton Blanchard  <anton@samba.org>
14801         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
14802         MAP_HUGETLB.
14803         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
14804         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
14805         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
14807 2012-03-27  David S. Miller  <davem@davemloft.net>
14809         * conform/Makefile: Run run-conformtest.sh using $(BASH).
14811         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
14812         have-as-vis3 check.
14814 2012-03-27  Andreas Jaeger  <aj@suse.de>
14816         * sysdeps/x86_64/elf/configure.in: Moved to ...
14817         * sysdeps/x86_64/configure.in: ... here.
14818         * sysdeps/x86_64/elf/start.S: Moved to ...
14819         * sysdeps/x86_64/start.S: ... here.
14820         * sysdeps/x86_64/elf/configure: Delete.
14822         * sysdeps/x86_64/configure.in: Merge contents from
14823         sysdeps/i386/configure.in (without i686 check).
14825         * sysdeps/i386/elf/Versions: Merge into ...
14826         * sysdeps/i386/Versions: ... this.
14827         * sysdeps/i386/elf/Versions: Delete file.
14828         * sysdeps/i386/elf/start.S: Moved to ...
14829         * sysdeps/i386/start.S: ...here.
14830         * sysdeps/i386/elf/configure.in: Merge into...
14831         * sysdeps/i386/configure.in: ...here.
14832         * sysdeps/i386/elf/configure.in: Delete file.
14833         * sysdeps/i386/elf/configure: Delete file.
14835         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
14836         * debug/backtracesyms.c: ... here.
14837         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
14838         * debug/backtracesymsfd.c: ... here.
14839         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
14840         * sysdeps/generic/ifunc-sel.h: ... here.
14842         * sysdeps/unix/i386/start.c: Delete file.
14843         * sysdeps/unix/sparc/start.c: Delete file.
14844         * sysdeps/unix/start.c: Delete file.
14846         * sysdeps/sh/elf/configure.in: Moved to ...
14847         * sysdeps/sh/configure.in: ... here.
14848         * sysdeps/sh/elf/start.S: Moved to ...
14849         * sysdeps/sh/start.S: ... here.
14850         * sysdeps/sh/elf/configure: Delete file.
14852         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
14853         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
14854         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
14855         * sysdeps/powerpc/powerpc64/entry.h: ... here.
14856         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
14857         * sysdeps/powerpc/powerpc64/start.S: here.
14858         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
14859         * sysdeps/powerpc/powerpc64/Makefile: ... this.
14860         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
14861         * sysdeps/powerpc/powerpc64/configure.in: ... this.
14862         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
14864         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
14865         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
14866         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
14867         * sysdeps/powerpc/powerpc32/start.S: ... here.
14868         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
14869         * sysdeps/powerpc/powerpc32/configure.in: ... this.
14870         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
14872         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
14873         * sysdeps/powerpc/ifunc-sel.h: ... here.
14874         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
14875         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
14877         * sysdeps/sparc/elf/configure.in: Moved to ...
14878         * sysdeps/sparc/configure.in: ... here.
14879         * sysdeps/sparc/elf/configure: Delete file.
14880         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
14881         * sysdeps/sparc/sparc32/start.S: ... here.
14882         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
14883         * sysdeps/sparc/sparc64/start.S: ... here.
14884         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
14885         * sysdeps/sparc/sparc32/Makefile: ... this.
14886         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
14887         * sysdeps/sparc/sparc64/Makefile: ... this.
14889         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
14890         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
14891         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
14892         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
14893         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
14894         * sysdeps/s390/s390-32/setjmp.S: ... here.
14895         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
14896         * sysdeps/s390/s390-32/configure.in: ... here.
14897         * sysdeps/s390/s390-32/elf/configure: Delete file.
14898         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
14899         * sysdeps/s390/s390-32/start.S: ... here.
14901         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
14902         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
14903         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
14904         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
14905         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
14906         * sysdeps/s390/s390-64/setjmp.S: ... here.
14907         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
14908         * sysdeps/s390/s390-64/configure.in: ... here
14909         * sysdeps/s390/s390-64/elf/configure: Delete file.
14910         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
14911         * sysdeps/s390/s390-64/start.S: ... here.
14912         * sysdeps/s390/s390-64/elf/configure: Delete.
14914         * configure.in: Remove support for elf directories in sysdeps.
14916         * configure: Regenerated.
14917         * sysdeps/i386/configure: Regenerated.
14918         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14919         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14920         * sysdeps/s390/s390-32/configure: Regenerated.
14921         * sysdeps/s390/s390-64/configure: Regenerated.
14922         * sysdeps/sh/configure: Regenerated.
14923         * sysdeps/sparc/configure: Regenerated.
14924         * sysdeps/x86_64/configure: Regenerated.
14926 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
14928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14930         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
14931         denormal result into account.
14933 2012-03-25  Roland McGrath  <roland@hack.frob.com>
14935         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
14936         Reported by Allan McRae <allan@archlinux.org>.
14938 2012-03-23  Jeff Law  <law@redhat.com>
14940         * nss/getnssent.c (__nss_getent): Fix typo.
14942 2012-03-23  David S. Miller  <davem@davemloft.net>
14944         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14946 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
14948         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
14949         to pad to uint64_t for each field.
14950         (dl_tls_index): Replace unsigned long with uint64_t.
14952 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
14953         Paul Pluzhnikov  <ppluzhnikov@google.com>
14955         [BZ #6528]
14956         * grp/Makefile (otherlibs): Don't set it.
14957         * inet/Makefile (otherlibs): Likewise.
14958         * login/Makefile (otherlibs): Likewise.
14959         * nscd/Makefile (otherlibs): Likewise.
14960         * posix/Makefile (otherlibs): Likewise.
14961         * pwd/Makefile (otherlibs): Likewise.
14962         * rt/Makefile (otherlibs): Likewise.
14963         * sunrpc/Makefile (otherlibs): Likewise.
14964         * nss/Makefile (otherlibs): Likewise.
14965         Add libnss_files to routines and static-only-routines.
14966         ($(objpfx)getent): Remove rule.
14967         * resolv/Makefile: Add libnss_dns and libresolv to routines and
14968         static-only-routines.
14970 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
14972         [BZ #13892]
14973         * math/s_cexp.c: Include <float.h>.
14974         (__cexp): Handle exp result overflowing not necessarily
14975         overflowing both real and imaginary parts of result.
14976         * math/s_cexpf.c: Likewise.
14977         * math/s_cexpl.c: Likewise.
14978         * math/libm-test.inc (cexp_test): Add more tests.
14979         * sysdeps/i386/fpu/libm-test-ulps: Update.
14980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14982 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14984         * include/link.h (ELFW): New macro.
14985         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
14986         Replace ELF64_R_TYPE with ELFW(R_TYPE).
14988 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14990         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
14991         with uint64_t.
14993 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14995         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
14996         declaration.
14997         (struct La_x32_retval): Likewise.
14999 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15001         * sysdeps/x86_64/preconfigure.in: New file.
15002         * sysdeps/x86_64/preconfigure: New generated file.
15004 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15006         [BZ #13824]
15007         * math/e_exp2l.c: Include <float.h>.
15008         (__ieee754_exp2l): Handle overflow and underflow cases
15009         separately.  Only pass fractional part of argument to
15010         __ieee754_expl.
15011         * math/libm-test.inc (exp2_test): Add more tests.
15013         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
15014         negating x to take absolute value.
15015         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
15016         Likewise.
15017         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
15018         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
15019         Likewise.
15020         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
15021         computing low part if x was negated.
15022         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
15024 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15026         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
15027         la_x32_gnu_pltexit.
15028         (pltexit): Cast int_retval to ptrdiff_t.
15029         * elf/tst-auditmod3b.c: Likewise.
15030         * elf/tst-auditmod4b.c: Likewise.
15031         * elf/tst-auditmod5b.c: Likewise.
15032         * elf/tst-auditmod6b.c: Likewise.
15033         * elf/tst-auditmod6c.c: Likewise.
15034         * elf/tst-auditmod7b.c: Likewise.
15036         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
15037         and x32_gnu_pltexit.
15039         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
15040         __ELF_NATIVE_CLASS.
15041         (La_x32_regs): New macro.
15042         (La_x32_retval): Likewise.
15043         (la_x32_gnu_pltenter): New function prototype.
15044         (la_x32_gnu_pltexit): Likewise.
15046 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
15048         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
15049         exponent.
15051         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15053         * configure.in (libc_cv_cc_nofma): Check for option to disable
15054         generation of FMA instructions.
15055         * configure: Regenerate.
15056         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
15057         * sysdeps/ieee754/dbl-64/Makefile: New file.
15058         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15059         Remove brandred-fma4.
15060         (CFLAGS-brandred-fma4.c): Remove.
15061         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
15062         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
15063         define.
15064         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
15065         define.
15067 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15069         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
15070         LLONG_MAX != LONG_MAX.
15071         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15072         (_fitoa_word): Likewise.
15073         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
15074         LLONG_MAX != LONG_MAX.
15075         * stdio-common/_itowa.h: Include <_itoa.h>.
15076         (_itowa_word): Use _ITOA_WORD_TYPE on value.
15077         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
15078         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
15079         only if not defined.
15080         (_ITOA_WORD_TYPE): Likewise.
15081         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15082         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
15084 2012-03-21  David S. Miller  <davem@davemloft.net>
15086         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15088 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15090         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
15091         of x86_64 when setting libc_cv_slibdir, libdir and
15092         libc_cv_localedir.
15093         * sysdeps/unix/sysv/linux/configure: Regenerated.
15095 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15097         * manual/lang.texi (Old Varargs): Remove section.
15098         (How Variadic): Update menu.
15099         (va_start): Do not mention varargs.h.
15101 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15102             Joseph Myers  <joseph@codesourcery.com>
15104         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
15105         link test.
15106         * configure: Regenerated.
15108 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15110         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
15111         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
15112         conformtest.pl
15114 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15116         * NOTES: Remove.
15117         * Makefile (files-for-dist): Remove NOTES.
15118         (NOTES): Remove rule.
15119         * README: Don't refer to NOTES.
15120         * manual/creature.texi: Don't include macros.texi.
15121         * manual/intro.texi (creature.texi): Remove comment referring to
15122         NOTES.
15124         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
15125         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
15126         * configure: Regenerated.
15127         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
15128         LIBC_TRY_CC_OPTION.
15129         (libc_cv_as_i686): Likewise.
15130         (libc_cv_cc_avx): Likewise.
15131         (libc_cv_cc_sse2avx): Likewise.
15132         (libc_cv_cc_fma4): Likewise.
15133         (libc_cv_cc_novzeroupper): Likewise.
15134         * sysdeps/i386/configure: Regenerated.
15136         [BZ #13883]
15137         * sysdeps/i386/fpu/s_cexp.S: Remove.
15138         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
15139         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
15140         * math/libm-test.inc (cexp_test): Add more tests.
15141         * sysdeps/i386/fpu/libm-test-ulps: Update.
15142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15144 2012-03-21  Allan McRae  <allan@archlinux.org>
15146         * timezone/Makefile: Do not install iso3166.tab and zone.tab
15148 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
15150         [BZ #13871]
15151         * math/w_exp2.c: Do not include <float.h>.
15152         (o_threshold, u_threshold): Remove.
15153         (__exp2): Calculate result before checking finiteness and calling
15154         __kernel_standard.
15155         * math/w_exp2f.c: Likewise.
15156         * math/w_exp2l.c: Likewise.
15157         * math/libm-test.inc (exp2_test): Require overflow exception for
15158         1e6 input.
15160         [BZ #3866]
15161         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
15162         range of signed 64-bit integers before using fistpll.  Remove
15163         checks for whether integers fit in mantissa bits.
15164         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
15165         the range of signed 32-bit integers before using fistpl.  Remove
15166         checks for whether integers fit in mantissa bits.
15167         * sysdeps/i386/fpu/e_powl.S (p64): New object.
15168         (__ieee754_powl): Test for y outside the range of signed 64-bit
15169         integers before using fistpll.  Reduce 64-bit values to 63-bit
15170         ones as needed.
15171         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
15172         divide-by-zero is raised for zero to large negative powers.
15173         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
15174         (__ieee754_powl): Test for y outside the range of signed 64-bit
15175         integers before using fistpll.  Reduce 64-bit values to 63-bit
15176         ones as needed.
15177         * math/libm-test.inc (pow_test): Add more tests.
15179 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15181         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
15182         <stdio-common/_itoa.h>.
15183         * debug/segfault.c: Likewise.
15184         * elf/dl-cache.c: Likewise.
15185         * elf/dl-minimal.c: Likewise.
15186         * elf/dl-misc.c: Likewise.
15187         * elf/dl-sysdep.c: Likewise.
15188         * elf/dl-version.c: Likewise.
15189         * elf/rtld.c: Likewise.
15190         * hurd/hurdsock.c: Likewise.
15191         * hurd/lookup-retry.c: Likewise.
15192         * malloc/malloc.c: Likewise.
15193         * malloc/mtrace.c: Likewise.
15194         * nscd/nscd_getgr_r.c: Likewise.
15195         * nscd/nscd_getpw_r.c: Likewise.
15196         * nscd/nscd_getserv_r.c: Likewise.
15197         * posix/getopt_init.c: Likewise.
15198         * posix/wordexp.c: Likewise.
15199         * stdio-common/_itoa.c: Likewise.
15200         * stdio-common/printf_fphex.c: Likewise.
15201         * stdio-common/vfprintf.c: Likewise.
15202         * string/_strerror.c: Likewise.
15203         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
15204         * sysdeps/i386/i686/hp-timing.h: Likewise.
15205         * sysdeps/mach/_strerror.c: Likewise.
15206         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
15207         * sysdeps/mach/hurd/sethostid.c: Likewise.
15208         * sysdeps/mach/hurd/xmknodat.c: Likewise.
15209         * sysdeps/mach/xpg-strerror.c: Likewise.
15210         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15211         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15212         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
15213         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
15214         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15215         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
15216         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
15217         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
15218         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
15219         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
15220         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
15221         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
15222         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
15223         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
15224         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
15225         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
15226         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
15227         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
15228         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
15229         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
15230         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
15232         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
15234         * stdio-common/_itoa.h: Moved to ...
15235         * sysdeps/generic/_itoa.h: Here.
15237         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
15239         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
15240         instead of "_itoa.h" and "_itowa.h".
15241         * stdio-common/vfprintf.: Likewise.
15243 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15245         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
15246         <bits/wordsize.h>.
15247         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
15248         (__signbit): Likwise.
15249         (llrintf): Likwise.
15250         (llrint): Likwise.
15252 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15254         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
15255         __WORDSIZE != 64.
15257 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
15259         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
15260         OVERFLOW_EXCEPTION_OK.
15261         * math/libm-test.inc ("Philosophy"): Update comment about
15262         exception testing.
15263         (OVERFLOW_EXCEPTION): Define.
15264         (OVERFLOW_EXCEPTION_OK): Likewise.
15265         (INVALID_EXCEPTION_OK): Renumber.
15266         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
15267         (IGNORE_ZERO_INF_SIGN): Likewise.
15268         (test_exceptions): Handle FE_OVERFLOW.
15269         (exp10_test): Expect overflow exceptions.
15270         (exp2_test): Likewise.
15271         (expm1_test): Likewise.
15272         (nextafter_test): Likewise.
15273         (pow_test): Likewise.
15274         (scalbn_test): Likewise.
15275         (scalbln_test): Likewise.
15277 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15279         * sysdeps/x86_64/bits/atomic.h
15280         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
15281         64bit integer.
15282         (atomic_exchange_acq): Likewise.
15283         (__arch_exchange_and_add_body): Likewise.
15284         (__arch_add_body): Likewise.
15285         (atomic_add_negative): Likewise.
15286         (atomic_add_zero): Likewise.
15288 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15290         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
15291         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
15293 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15295         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
15296         Check __x86_64__ instead of __WORDSIZE.
15298 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15300         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
15302 2012-03-19  David S. Miller  <davem@davemloft.net>
15304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15306         * sysdeps/sparc/fpu/fenv_private.h: New file.
15307         * sysdeps/sparc/fpu/math_private.h: Use it.
15308         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
15309         Remove.
15310         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
15311         (libc_feholdexcept_setroundl): Remove.
15312         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
15313         Remove.
15314         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
15315         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
15317 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15319         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
15320         int64_t instead of long int.
15321         (INSERT_WORDS64): Likwise.
15323 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
15325         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
15326         _Unwind_GetCFA return to _Unwind_Ptr first.
15328 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
15330         [BZ #13629]
15331         * math/s_clog.c: Include <float.h>.
15332         (__clog): Scale large or subnormal inputs.
15333         * math/s_clogf.c: Likewise.
15334         * math/s_clogl.c: Likewise.
15335         * math/s_clog10.c: Include <float.h>.
15336         (M_LOG10_2): Define.
15337         (__clog10): Scale large or subnormal inputs.
15338         * math/s_clog10f.c: Likewise.
15339         * math/s_clog10l.c: Likewise.
15340         * math/libm-test.inc (clog_test): Add more tests.
15341         (clog10_test): Likewise.
15342         * sysdeps/i386/fpu/libm-test-ulps: Update.
15343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15345         [BZ #11451]
15346         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
15347         x and y.
15348         * math/libm-test.inc (atan2_test): Add another test.
15350         * Makerules (common-objdir-compile): Remove.
15351         * sysdeps/unix/Makefile (config-generated): Do not add
15352         $(unix-generated) to variable.
15353         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
15354         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
15355         Remove rule.
15356         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
15357         Likewise.
15358         [generic bits/local_lim.h] (before-compile): Do not append to
15359         variable.
15360         [generic bits/local_lim.h] (common-generated): Likewise.
15361         [generic sys/param.h] (before-compile): Do not append to variable.
15362         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
15363         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
15364         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
15365         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
15366         include.
15367         [generic sys/param.h] (sys/param.h-includes): Remove variable.
15368         [generic sys/param.h] (sys/param.h-includes): Remove rule.
15369         [generic sys/param.h] ($(addprefix
15370         $(common-objpfx),$(sys/param.h-includes))): Likewise.
15371         [generic sys/param.h] (common-generated): Do not append to
15372         variable.
15373         [generic sys/param.h] (sysdep_headers): Likewise.
15374         [generic bits/errno.h] (before-compile): Do not append to
15375         variable.
15376         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
15377         rule.
15378         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
15379         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
15380         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
15381         [generic bits/errno.h] (common-generated): Do not append to
15382         variable.
15383         [generic bits/ioctls.h] (before-compile): Do not append to
15384         variable.
15385         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
15386         rule.
15387         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
15388         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
15389         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
15390         rule.
15391         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
15392         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
15393         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
15394         [generic bits/ioctls.h] (common-generated): Do not append to
15395         variable.
15396         [generic sys/syscall.h] (syscall.h): Remove variable.
15397         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
15398         rule.
15399         [generic sys/syscall.h] (before-compile): Do not append to
15400         variable.
15401         [generic sys/syscall.h] (common-generated): Likewise.
15402         * sysdeps/unix/errnos-tmpl.c: Remove file.
15403         * sysdeps/unix/errnos.awk: Likewise.
15404         * sysdeps/unix/ioctls-tmpl.c: Likewise.
15405         * sysdeps/unix/ioctls.awk: Likewise.
15406         * sysdeps/unix/mk-local_lim.c: Likewise.
15407         * sysdeps/unix/snarf-ioctls: Likewise.
15409 2012-03-19  Richard Henderson  <rth@twiddle.net>
15411         * sysdeps/i386/fpu/fenv_private.h: New file.
15412         * sysdeps/i386/fpu/math_private.h: Use it.
15413         (math_opt_barrier, math_force_eval): Remove.
15414         (libc_feholdexcept_setround_53bit): Remove.
15415         (libc_feupdateenv_53bit): Remove.
15416         * sysdeps/x86_64/fpu/math_private.h: Likewise.
15417         (math_opt_barrier, math_force_eval): Remove.
15418         (libc_feholdexcept): Remove.
15419         (libc_feholdexcept_setround): Remove.
15420         (libc_fetestexcept, libc_fesetenv): Remove.
15421         (libc_feupdateenv_test): Remove.
15422         (libc_feupdateenv, libc_feholdsetround): Remove.
15423         (libc_feresetround): Remove.
15425         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
15426         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
15428         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
15429         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
15430         (libc_feupdateenv_testl): New.
15431         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
15432         (libc_feupdateenv_testf): New.
15433         (libc_feupdateenv): Use libc_feupdateenv_test.
15434         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
15435         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
15437         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
15438         (libc_feholdsetroundf, libc_feholdsetroundl): New.
15439         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
15440         (libc_feresetround_noex): New.
15441         (libc_feresetround_noexf): New.
15442         (libc_feresetround_noexl): New.
15443         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
15444         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
15445         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
15446         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
15447         SET_RESTORE_ROUND.
15448         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
15449         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
15450         (__cos): Likewise.
15451         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
15452         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
15453         SET_RESTORE_ROUND_NOEX.
15454         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
15455         SET_RESTORE_ROUND_NOEXF.
15456         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
15457         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
15458         (libc_feholdsetroundf): New.
15459         (libc_feresetround, libc_feresetroundf): New.
15461         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
15462         (libc_feholdexcept_setround_53bit): Convert from macro to function.
15463         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
15465         * sysdeps/generic/math_private.h: Include <fenv.h>.
15466         (default_libc_feholdexcept): New.
15467         (default_libc_feholdexcept_setround): New.
15468         (default_libc_fesetenv, default_libc_feupdateenv): New.
15469         (libc_feholdexcept): Only define if undefined.
15470         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
15471         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
15472         (libc_feholdexcept_setroundl): Likewise.
15473         (libc_feholdexcept_setround_53bit): Likewise.
15474         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
15475         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
15476         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
15477         (libc_feupdateenv_53bit): Likewise.
15478         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
15479         (libc_feholdexcept): Convert from macro to inline function.
15480         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
15481         (libc_fesetenv, libc_feupdateenv): Likewise.
15483         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
15484         not previously defined.
15485         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
15486         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
15487         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
15488         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
15489         * sysdeps/ieee754/flt-32/math_private.h: New file.
15490         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
15491         math_private.h below SET_FLOAT_WORD.
15492         (__isnan, __isinf_ns, __finite): Remove.
15493         (__isnanf, __isinf_nsf, __finitef): Remove.
15495 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
15497         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15499 2012-03-17  David S. Miller  <davem@davemloft.net>
15501         [BZ #6471]
15502         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
15503         for 2.16.
15505 2012-03-16  David S. Miller  <davem@davemloft.net>
15507         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
15508         warnings.
15510         [BZ #6471]
15511         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
15512         properly.
15513         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
15514         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
15515         sysdep_routines when subdir is sysvipc.
15516         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
15517         __getshmlba helper.
15519         * sysdeps/sparc/fpu/libm-test/ulps: Update.
15521 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15523         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
15524         [__LP64__].
15526 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15528         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
15529         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
15530         (__lround): Renamed to ...
15531         (__llround): This.  Replace long int with long long int.
15532         Define lround functions as aliases of llround functions.
15533         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
15535 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15537         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
15538         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
15539         adresses to uintptr_t.  Replace "long int" and "unsigned long
15540         int" with "greg_t" on va_arg.
15542 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15544         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
15545         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
15547         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
15548         Move e_machine check before EI_CLASS check.  Handle x32
15549         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
15550         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
15551         SKIP_EM_IA_64 and include
15552         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
15554         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
15555         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
15556         (add_system_dir): New macro.
15558         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
15559         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
15561 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
15563         [BZ #2551]
15564         [BZ #2552]
15565         [BZ #2553]
15566         [BZ #2554]
15567         [BZ #2562]
15568         [BZ #2563]
15569         [BZ #2565]
15570         [BZ #2566]
15571         [BZ #2576]
15572         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
15573         (y0): Likewise.
15574         * math/w_j0f.c (j0f): Likewise.
15575         (y0f): Likewise.
15576         * math/w_j0l.c (__j0l): Likewise.
15577         (__y0l): Likewise.
15578         * math/w_j1.c (j1): Likewise.
15579         (y1): Likewise.
15580         * math/w_j1f.c (j1f): Likewise.
15581         (y1f): Likewise.
15582         * math/w_j1l.c (__j1l): Likewise.
15583         (__y1l): Likewise.
15584         * math/w_jn.c (jn): Likewise.
15585         (yn): Likewise.
15586         * math/w_jnf.c (jnf): Likewise.
15587         (ynf): Likewise.
15588         * math/w_jnl.c (__jnl): Likewise.
15589         (__ynl): Likewise.
15590         * math/libm-test.inc (j0_test): Add more tests.
15591         (j1_test): Likewise.
15592         (jn_test): Likewise.  Add trailing semicolon to existing test.
15593         (y0_test): Likewise.
15594         (y1_test): Likewise.
15595         * sysdeps/i386/fpu/libm-test-ulps: Update.
15596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15598         [BZ #13851]
15599         [BZ #13854]
15600         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
15601         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
15602         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
15603         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
15604         (__tanl): Set errno for infinite argument.
15605         * sysdeps/i386/fpu/mptan.c: Remove.
15606         * sysdeps/i386/fpu/s_tan.S: Likewise.
15607         * sysdeps/i386/fpu/s_tanl.S: Likewise.
15608         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
15609         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
15610         * math/libm-test.inc (tan_test): Add more tests and enable more
15611         tests for double and long double.
15612         * sysdeps/i386/fpu/libm-test-ulps: Update.
15613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15615 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15617         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
15618         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
15620 2012-03-16  Roland McGrath  <roland@hack.frob.com>
15622         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
15623         * configure.in: Use it for both main tree and add-ons.
15624         * configure: Regenerated.
15626 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15628         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
15630 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
15632         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
15633         in comment.
15635         [BZ #13851]
15636         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
15637         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
15638         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
15639         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
15640         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
15641         infinite argument.
15642         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
15643         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
15644         != 0 for prec == 2.
15645         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
15646         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
15647         * sysdeps/i386/fpu/s_cosl.S: Likewise.
15648         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
15649         * sysdeps/i386/fpu/s_sinl.S: Likewise.
15650         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
15651         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
15652         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
15653         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
15654         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
15655         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
15656         * math/libm-test.inc (cos_test): Add more tests and enable more
15657         tests for long double.
15658         (sin_test): Likewise.
15659         (sincos_test): Likewise.
15660         * sysdeps/i386/fpu/libm-test-ulps: Update.
15661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15663 2012-03-16  David S. Miller  <davem@davemloft.net>
15665         * sysdeps/sparc/fpu/math_private.h: New file.
15667 2012-03-15  David S. Miller  <davem@davemloft.net>
15669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
15670         file.
15671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
15672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
15673         file.
15674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
15675         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
15676         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
15677         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
15678         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
15679         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
15680         sysdep routines.
15681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
15683         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
15684         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
15686         * sysdeps/sparc/sparc-ifunc.h: New file.
15687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
15688         sparc-ifunc.h
15689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
15690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
15691         Likewise.
15692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
15693         Likewise.
15694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
15695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
15696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
15697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
15698         Likewise.
15699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
15700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
15701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
15702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
15703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
15704         Likewise.
15705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
15706         Likewise.
15707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
15708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
15709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
15710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
15711         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
15712         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
15713         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
15714         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
15715         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
15716         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
15717         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
15718         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
15719         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
15720         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
15721         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
15722         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
15723         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
15724         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
15725         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
15726         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
15727         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
15728         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
15729         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
15730         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
15732 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
15734         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
15735         scaling.
15736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15738 2012-03-15  Andreas Jaeger  <aj@suse.de>
15740         [BZ #13852]
15741         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
15742         ieee754/flt-32 implementation for sin, cos and sincos.
15743         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
15744         * sysdeps/i386/fpu/s_cosf.S: Likewise.
15745         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
15746         * sysdeps/i386/fpu/s_sinf.S: Likewise.
15747         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
15748         ieee754/flt-32 implementation for tan.
15750         * math/libm-test.inc (cos_test): Enable some large input tests for
15751         float as well
15752         (sin_test): Likewise.
15753         (sincos_test): Likewise.
15754         (tan_test): Add tests for large input.
15756         * sysdeps/i386/fpu/libm-test-ulps: Update.
15758 2012-03-15  Andreas Jaeger  <aj@suse.de>
15760         [BZ #13658]
15761         * math/libm-test.inc (cos_test): Add more test cases.
15762         (sin_test): Likewise.
15763         (sincos_test): Likewise.
15765 2012-03-15  Andreas Jaeger  <aj@suse.de>
15767         [BZ #13837]
15768         * math/libm-test.inc (cos_test): Add a test case for large input
15769         value.
15770         (sin_test): Likewise.
15771         (sincos_test): Likewise.
15773 2012-03-15  Andreas Jaeger  <aj@suse.de>,
15774         Joseph Myers  <joseph@codesourcery.com>
15776         [BZ #13658]
15777         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
15778         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
15779         * sysdeps/i386/fpu/branred.c: Likewise.
15780         * sysdeps/i386/fpu/dosincos.c: Likewise.
15781         * sysdeps/i386/fpu/mpa.c: Likewise.
15782         * sysdeps/i386/fpu/s_cos.S: Likewise.
15783         * sysdeps/i386/fpu/s_sin.S: Likewise.
15784         * sysdeps/i386/fpu/s_sincos.S: Likewise.
15785         * sysdeps/i386/fpu/sincos32.c: Likewise.
15787         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
15788         Define.
15789         (libc_feupdateenv_53bit): Define.
15790         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
15791         Define.
15792         (libc_feupdateenv_53bit): Define.
15794         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
15795         53 bit (without extend i386 double precision).
15797         * math/libm-test.inc (sincos_test): Add tests for large input.
15798         (sin): Likewise.
15799         (cos): Likewise.
15801         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
15803 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
15805         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15807 2012-03-15  David S. Miller  <davem@davemloft.net>
15809         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
15810         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
15811         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
15812         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
15813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
15814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
15815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
15816         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
15817         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
15818         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
15819         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
15820         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
15821         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
15822         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
15823         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
15824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
15825         file.
15826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
15827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
15828         file.
15829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
15830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
15831         file.
15832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
15833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
15834         file.
15835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
15836         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
15837         fmin/fmax sysdep routines.
15838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
15840 2012-03-14  David S. Miller  <davem@davemloft.net>
15842         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
15843         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
15844         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
15845         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
15846         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
15847         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
15848         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
15849         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
15850         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
15851         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
15852         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
15853         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
15854         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
15855         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
15856         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
15857         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
15858         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
15859         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
15860         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
15861         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
15862         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
15863         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
15864         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
15865         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
15866         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
15867         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
15868         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
15869         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
15870         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
15871         routines.
15872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
15873         file.
15874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
15875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
15876         file.
15877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
15878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
15879         file.
15880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
15881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
15882         file.
15883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
15884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
15885         file.
15886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
15887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
15888         file.
15889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
15890         file.
15891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
15892         file.
15893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
15894         file.
15895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
15896         New file.
15897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
15898         file.
15899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
15900         file.
15901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
15902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
15903         file.
15904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
15905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
15906         file.
15907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
15908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
15909         file.
15910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
15911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
15912         VIS3 routines.
15914         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
15915         New file.
15917         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15919         * sysdeps/sparc/configure.in: New file.
15920         * sysdeps/sparc/configure: Generate.
15921         * configure.in (libc_cv_sparc_as_vis3): Substitute.
15922         * configure: Regenerate.
15923         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
15924         * config.make.in (have-as-vis3): New.
15925         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
15926         available use -Av9d instead of -Av9a.
15927         * sysdeps/sparc/sparc64/Makefile: Likewise.
15928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
15929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
15930         New file.
15931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
15932         file.
15933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
15934         New file.
15935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
15936         file.
15937         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
15938         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
15939         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
15940         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
15941         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
15943         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
15944         fzeros/fnegs to load 0x80000000 into a float register instead of
15945         using the stack.
15946         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
15948 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
15950         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15951         bits/syscall.h.
15952         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
15953         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
15954         ($(inst_includedir)/bits/syscall.h): Remove rule.
15955         ($(objpfx)bits/syscall.d): Include instead of
15956         $(objpfx)syscall-list.d.
15957         (generated): Change syscall-list.h and syscall-list.d to
15958         bits/syscall.h and bits/syscall.d.
15960 2012-03-14  Roland McGrath  <roland@hack.frob.com>
15962         [BZ #13846]
15963         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
15965 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
15967         [BZ #13841]
15968         * math/s_csqrt.c: Include <float.h>.
15969         (__csqrt): Scale large or subnormal inputs.
15970         * math/s_csqrtf.c: Likewise.
15971         * math/s_csqrtl.c: Likewise.
15972         * math/libm-test.inc (csqrt_test): Add more tests.
15973         * sysdeps/i386/fpu/libm-test-ulps: Update.
15974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15976         [BZ #13840]
15977         * math/libm-test.inc (hypot_test): Add more tests.
15979 2012-03-13  David S. Miller  <davem@davemloft.net>
15981         [BZ #13840]
15982         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
15983         double-precision for the calculation instead of scaling.
15985 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
15987         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
15988         manipulate bits before adding and subtracting TWO52[sx].
15989         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
15990         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
15991         Likewise.
15992         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
15994 2012-03-13  David S. Miller  <davem@davemloft.net>
15996         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
15997         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
15998         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
15999         rtld-global-offsets.h
16000         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16002         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
16003         large parameters.
16005         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
16007         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
16008         'err' in the ifdef scope in which it is actually used.
16010         * nss/nss_db/db-init.c: Include string.h
16012 2012-03-12  David S. Miller  <davem@davemloft.net>
16014         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16015         masking out of the most significant byte of random value used.
16016         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16017         Fix coding style in previous change.
16019         * sysdeps/unix/sysv/linux/kernel-features.h
16020         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
16021         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
16022         expression.
16023         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
16024         later.
16026 2012-03-11  David S. Miller  <davem@davemloft.net>
16028         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16029         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
16030         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
16031         for 'resultvar' otherwise things get truncated on 64-bit.
16033         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16034         Fix masking out of the most significant byte of random value used.
16036         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16038 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
16040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16042 2012-03-09  David S. Miller  <davem@davemloft.net>
16044         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
16045         variables with appropriate CPP guards.
16046         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
16047         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
16048         on resulting framesize and the management of the outregs buffer for pltexit.
16049         Preserve floating point return values across _dl_call_pltexit call.
16050         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
16051         framesize and the management of the outregs buffer for pltexit.
16052         Preserve floating point return values across _dl_call_pltexit
16053         call.
16054         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
16055         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
16056         (print_exit): Fix format string for return register value.
16058 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
16060         * sunrpc/Makefile (others): Add rpcgen.
16061         ($(objpfx)rpcgen): Remove special build rule and dependency on
16062         libc.
16063         * sunrpc/rpcgen.c: New file.
16065 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
16067         [BZ #13673]
16068         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
16069         * stdio-common/bug-vfprintf-nargs.c: Likewise.
16070         * sysdeps/i386/crti.S: Likewise.
16071         * sysdeps/i386/crtn.S: Likewise.
16072         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
16073         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
16074         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
16075         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
16076         * sysdeps/sh/crti.S: Likewise.
16077         * sysdeps/sh/crtn.S: Likewise.
16078         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16080         [BZ #13673]
16081         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
16082         with URL.
16083         * locale/programs/locfile-kw.gperf: Likewise.
16084         * locale/programs/charmap-kw.h: Regenerated.
16085         * locale/programs/locfile-kw.h: Likewise.
16087         [BZ #13673]
16088         * intl/plural.y: Replace FSF snail mail address with URL.
16089         * intl/plural.c: Regenerated.
16091 2012-03-09  Richard Henderson  <rth@twiddle.net>
16093         * include/math_private.h: Remove file.
16094         * math/math_private.h: Move file ...
16095         * sysdeps/generic/math_private.h: ... here.
16097         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
16098         * sysdeps/powerpc/fpu/math_private.h: Likewise.
16099         * sysdeps/x86_64/fpu/math_private.h: Likewise.
16101         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
16102         and <math_private.h>.
16103         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
16104         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
16105         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
16106         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
16107         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
16108         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
16109         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16110         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16111         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16112         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16113         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16114         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16115         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16116         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16117         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16118         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16119         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16120         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16121         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16122         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16123         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16124         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16125         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16126         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16127         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
16128         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16129         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16130         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16131         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16132         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16133         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16134         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16135         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
16136         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16137         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
16138         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16139         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16140         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
16141         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
16142         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16143         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
16144         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
16145         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
16146         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
16147         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
16148         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
16149         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
16150         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
16151         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16152         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
16153         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
16154         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
16155         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
16156         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
16157         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
16158         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16159         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16160         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
16161         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
16162         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
16163         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16164         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
16165         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16166         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
16167         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
16168         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16169         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16170         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16171         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
16172         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
16173         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
16174         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16175         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
16176         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16177         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
16178         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
16179         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
16180         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
16181         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
16182         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
16183         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
16184         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
16185         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
16186         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16187         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16188         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
16189         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
16190         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
16191         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16192         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16193         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16194         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16195         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16196         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16197         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16198         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16199         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16200         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16201         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16202         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16203         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16204         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16205         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16206         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16207         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16208         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16209         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16210         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16211         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16212         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16213         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16214         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16215         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16216         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16217         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
16218         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16219         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16220         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
16221         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16222         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16223         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16224         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
16225         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16226         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
16227         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16228         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
16229         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16230         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
16231         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
16232         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
16233         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
16234         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16235         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16236         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
16237         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
16238         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
16239         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16240         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
16241         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
16242         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16243         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16244         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
16245         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
16246         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
16247         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
16248         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
16249         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
16250         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
16251         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
16252         * sysdeps/ieee754/k_standard.c: Likewise.
16253         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16254         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16255         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16256         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16257         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16258         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16259         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16260         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16261         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16262         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16263         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16264         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16265         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16266         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16267         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16268         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16269         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16270         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16271         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16272         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
16273         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
16274         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
16275         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16276         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
16277         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16278         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16279         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
16280         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
16281         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
16282         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16283         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16284         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
16285         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
16286         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
16287         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16288         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
16289         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
16290         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
16291         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
16292         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
16293         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16294         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16295         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16296         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
16297         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16298         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16299         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
16300         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
16301         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
16302         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16303         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16304         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16305         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
16306         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
16307         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16308         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16309         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
16310         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
16311         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
16312         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
16313         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16314         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16315         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16316         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16317         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16318         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16319         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16320         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16321         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16322         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16323         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16324         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16325         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16326         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16327         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16328         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16329         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
16330         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16331         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16332         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16333         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16334         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16335         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
16336         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
16337         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
16338         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
16339         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
16340         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16341         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16342         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
16343         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
16344         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
16345         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
16346         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16347         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
16348         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
16349         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
16350         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
16351         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
16352         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
16353         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
16354         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
16355         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16356         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
16357         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
16358         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16359         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16360         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
16361         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
16362         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
16363         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
16364         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
16365         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16366         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16367         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16368         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16369         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16370         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16371         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16372         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16373         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16374         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16375         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16376         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16377         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16378         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
16379         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
16380         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
16381         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
16382         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16383         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
16384         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
16385         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
16386         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
16387         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
16388         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
16389         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
16390         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
16391         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
16392         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
16393         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
16394         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
16395         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
16396         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
16397         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
16398         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
16399         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
16400         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
16401         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
16402         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
16403         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
16404         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16405         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
16406         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
16407         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
16408         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
16409         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
16410         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16411         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
16412         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
16413         * sysdeps/ieee754/s_lib_version.c: Likewise.
16414         * sysdeps/ieee754/s_matherr.c: Likewise.
16415         * sysdeps/ieee754/s_signgam.c: Likewise.
16416         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16417         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16418         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
16419         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
16420         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
16421         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
16422         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
16423         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
16424         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
16425         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
16426         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16427         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
16428         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
16429         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
16430         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
16431         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
16432         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
16433         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
16434         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
16435         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16436         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16438 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16440         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
16441         * sunrpc/rpc_main.c: Likewise.
16442         * sunrpc/rpc_svcout.c: Likewise.
16444 2012-03-09  David S. Miller  <davem@davemloft.net>
16446         * include/math_private.h: New file.
16448 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
16450         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
16451         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
16452         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
16453         from <bits/socket_type.h>.
16454         (enum __socket_type): Don't define here.
16455         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
16456         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16457         bits/socket_type.h.
16459         [BZ #13566]
16460         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
16461         checking __USE_GNU.
16463         * Makerules ($(inst_includedir)/%.h): New rule.
16464         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
16465         (install-others): Remove variable setting.
16466         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
16468 2012-03-08  Richard Henderson  <rth@twiddle.net>
16470         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
16471         from macro to inline function; merge with the
16472         !__LIBC_INTERNAL_MATH_INLINES version.
16473         (__ieee754_sqrtf): Likewise.
16475         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
16476         to inline function.
16477         (__rintf, __floor, __floorf): Likewise.
16479         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
16480         macro to inline function.
16481         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
16483         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
16484         not <math/math_private.h>.
16486 2012-03-08  David S. Miller  <davem@davemloft.net>
16488         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
16489         copyright year.
16490         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16492 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
16494         * resolv/gai_misc.c (handle_requests): Fix struct timespec
16495         normalization.
16496         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
16497         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
16499 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
16501         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
16502         be defined individually, they must be defined as a block.  Define
16503         S for printing a string instead of hidint the different by using a
16504         macro for adding the 'l'.
16505         * stdio-common/tst-fphex-wide.c: Adjust.
16507 2012-03-07  Marek Polacek  <polacek@redhat.com>
16509         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
16511 2012-03-08  Marek Polacek  <polacek@redhat.com>
16513         [BZ #13806]
16514         * stdio-common/Makefile (tests): Add tst-fphex-wide.
16515         * stdio-common/tst-fphex.c: Define a few macros to make the
16516         test reusable.  Use them.
16517         * stdio-common/tst-fphex-wide.c: New file.
16519 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
16521         [BZ #6911]
16522         * manual/macros.texi (gnusystems): New macro.
16523         (nongnusystems): Likewise.
16524         (gnulinuxhurdsystems): Likewise.
16525         (gnuhurdsystems): Likewise..
16526         (gnulinuxsystems): Likewise.
16527         * manual/charset.texi: Use new macros or @theglibc{} to refer to
16528         variants of the GNU system, not "GNU system".
16529         * manual/conf.texi: Likewise.
16530         * manual/errno.texi: Likewise.  Update example of errno macro
16531         expansion.
16532         * manual/filesys.texi: Likewise.
16533         (getumask): Document as specific to GNU/Hurd.
16534         * manual/install.texi: Likewise.  Reword some references to
16535         GNU/Linux.
16536         * manual/intro.texi: Likewise.
16537         * manual/io.texi: Likewise.
16538         (File Name Portability): Detail which constraints are inapplicable
16539         to all GNU systems and which are only inapplicable to GNU/Hurd.
16540         * manual/job.texi: Likewise.
16541         * manual/llio.texi: Likewise.
16542         (O_NOCTTY): Document as present on GNU/Linux.
16543         * manual/maint.texi: Likewise.
16544         * manual/memory.texi: Likewise.
16545         * manual/pattern.texi: Likewise.
16546         * manual/pipe.texi: Likewise.
16547         * manual/process.texi: Likewise.
16548         * manual/resource.texi: Likewise.
16549         (RUSAGE_CHILDREN): Remove statement about specifying a particular
16550         child on GNU/Hurd.
16551         * manual/setjmp.texi: Likewise.
16552         * manual/signal.texi: Likewise.
16553         * manual/startup.texi: Likewise.
16554         * manual/stdio.texi: Likewise.
16555         * manual/terminal.texi: Likewise.
16556         (ONLCR): Document as POSIX.
16557         (OXTABS): Document availability on GNU/Linux as XTABS.
16558         (ONOEOT): Document availability separately from other bits.
16559         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
16560         * manual/time.texi: Likewise.
16561         * manual/users.texi: Likewise.
16562         * INSTALL: Regenerated.
16563         * sysdeps/gnu/errlist.c: Regenerated.
16565         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
16566         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
16567         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
16568         puts.
16569         * configure: Regenerated.
16571 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
16573         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
16574         default includes instead of AC_HEADER_CHECK.
16575         * sysdeps/i386/configure: Regenerated.
16577         [BZ #10716]
16578         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
16579         * math/s_cacoshf.c (__cacoshf): Likewise.
16580         * math/s_cacoshl.c (__cacoshl): Likewise.
16581         * math/s_casinh.c (__casinh): Set signs of result from argument.
16582         * math/s_casinhf.c (__casinhf): Likewise.
16583         * math/s_casinhl.c (__casinhl): Likewise.
16584         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
16585         (casinh_test): Add more tests.
16586         * sysdeps/i386/fpu/libm-test-ulps: Update.
16587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16589 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
16591         * po/zh_TW.po: Update from translation team.
16593         * login/Makefile (distribute): Remove variable.
16594         * catgets/Makefile: Likewise.
16595         * mach/Makefile: Likewise.
16596         * malloc/Makefile: Likewise.
16597         * misc/Makefile: Likewise.
16598         * iconv/Makefile: Likewise.
16599         * nscd/Makefile: Likewise.
16600         * hurd/Makefile: Likewise.
16601         * manual/Makefile: Likewise.
16602         * locale/Makefile: Likewise.
16603         * intl/Makefile: Likewise.
16604         * conform/Makefile: Likewise.
16605         * nss/Makefile: Likewise.
16606         * time/Makefile: Likewise.
16607         * soft-fp/Makefile: Likewise.
16608         * dirent/Makefile: Likewise.
16609         * gmon/Makefile: Likewise.
16610         * po/Makefile: Likewise.
16611         * rt/Makefile: Likewise.
16612         * socket/Makefile: Likewise.
16613         * math/Makefile: Likewise.
16614         * signal/Makefile: Likewise.
16615         * debug/Makefile: Likewise.
16616         * elf/Makefile: Likewise.
16617         * timezone/Makefile: Likewise.
16618         * stdlib/Makefile: Likewise.
16619         * iconvdata/Makefile: Likewise.
16620         * sunrpc/Makefile: Likewise.
16621         * io/Makefile: Likewise.
16622         * argp/Makefile: Likewise.
16623         * inet/Makefile: Likewise.
16624         * hesiod/Makefile: Likewise.
16625         * grp/Makefile: Likewise.
16626         * csu/Makefile: Likewise.
16627         * wctype/Makefile: Likewise.
16628         * crypt/Makefile: Likewise.
16629         * libio/Makefile: Likewise.
16630         * string/Makefile: Likewise.
16631         * nis/Makefile: Likewise.
16632         * resolv/Makefile: Likewise.
16633         * stdio-common/Makefile: Likewise.
16634         * wcsmbs/Makefile: Likewise.
16635         * dlfcn/Makefile: Likewise.
16636         * posix/Makefile: Likewise.
16638         [BZ #6959]
16639         * timezone/Makefile: Don't install timezone files, just the programs
16640         and scripts.
16642 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
16644         * nss/databases.def: Add missing gshadow entry.
16646         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
16648 2012-03-06  Marek Polacek  <polacek@redhat.com>
16650         [BZ #13726]
16651         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
16652         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
16653         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
16654         * stdio-common/tst-long-dbl-fphex.c: New file.
16656 2012-03-06  David S. Miller  <davem@davemloft.net>
16658         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16659         (set_obp_int): New function.
16660         (get_obp_int): New function.
16661         (__get_clockfreq_via_dev_openprom): Likewise.
16662         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
16663         Avoid unused variable warnings on 'val' and use builtin_expect.
16664         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
16665         __builtin_expect.
16666         (INLINE_CLONE_SYSCALL): Likewise.
16668 2012-03-05  David S. Miller  <davem@davemloft.net>
16670         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16672 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
16674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16676         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
16677         only for |x| >= 40.
16678         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16680 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
16682         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
16683         Replace gettimeofday with __vdso_gettimeofday.
16685         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16686         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
16687         __vdso_clock_gettime and __vdso_getcpu.
16689         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
16690         time with __vdso_time.
16692 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
16694         * manual/lang.texi (size_t): Note types to which size_t may be
16695         equivalent with the GNU C Library, but do not describe when
16696         differences between them are significant.
16698 2012-03-05  Andreas Jaeger  <aj@suse.de>
16700         * sysdeps/i386/fpu/libm-test-ulps: Update.
16702 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
16704         [BZ #3976]
16705         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
16706         (__ieee754_pow): Save and restore rounding mode and use
16707         round-to-nearest for main computations.
16708         * math/libm-test.inc (pow_test_tonearest): New function.
16709         (pow_test_towardzero): Likewise.
16710         (pow_test_downward): Likewise.
16711         (pow_test_upward): Likewise.
16712         (main): Call the new functions.
16713         * sysdeps/i386/fpu/libm-test-ulps: Update.
16714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16716         [BZ #3976]
16717         * math/libm-test.inc (cosh_test_tonearest): New function.
16718         (cosh_test_towardzero): Likewise.
16719         (cosh_test_downward): Likewise.
16720         (cosh_test_upward): Likewise.
16721         (sinh_test_tonearest): Likewise.
16722         (sinh_test_towardzero): Likewise.
16723         (sinh_test_downward): Likewise.
16724         (sinh_test_upward): Likewise.
16725         (main): Call the new functions.
16726         * sysdeps/i386/fpu/libm-test-ulps: Update.
16727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16729 2012-03-05  Tom de Vries  <tom@codesourcery.com>
16731         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
16732         default stack guard is set in last bytes.
16733         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
16735 2012-03-05  Kees Cook  <keescook@chromium.org>
16737         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
16739         [BZ #13656]
16740         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
16741         possibly allocate from heap instead of stack.
16742         * stdio-common/bug-vfprintf-nargs.c: New file.
16743         * stdio-common/Makefile (tests): Add nargs overflow test.
16745 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
16747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16749 2012-03-03  Marek Polacek  <polacek@redhat.com>
16751         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
16752         * math/math_private.h: Likewise.
16753         * stdlib/tst-strtod.c: Likewise.
16754         * sysdeps/i386/i486/bits/atomic.h: Likewise.
16755         * sysdeps/x86_64/bits/atomic.h: Likewise.
16757 2012-03-02  David S. Miller  <davem@davemloft.net>
16759         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
16760         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
16761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
16762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
16763         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
16764         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
16765         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
16766         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
16768 2012-03-02  Roland McGrath  <roland@hack.frob.com>
16770         [BZ #13792]
16771         * manual/examples/README: New file, says the example source files
16772         can be used under GPL>=2.
16773         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
16774         line containing just "*/".
16775         * manual/examples/add.c: Add copyright header (GPL>=2).
16776         * manual/examples/argp-ex1.c: Likewise.
16777         * manual/examples/argp-ex2.c: Likewise.
16778         * manual/examples/argp-ex3.c: Likewise.
16779         * manual/examples/argp-ex4.c: Likewise.
16780         * manual/examples/atexit.c: Likewise.
16781         * manual/examples/db.c: Likewise.
16782         * manual/examples/dir.c: Likewise.
16783         * manual/examples/dir2.c: Likewise.
16784         * manual/examples/execinfo.c: Likewise.
16785         * manual/examples/filecli.c: Likewise.
16786         * manual/examples/filesrv.c: Likewise.
16787         * manual/examples/fmtmsgexpl.c: Likewise.
16788         * manual/examples/genpass.c: Likewise.
16789         * manual/examples/inetcli.c: Likewise.
16790         * manual/examples/inetsrv.c: Likewise.
16791         * manual/examples/isockad.c: Likewise.
16792         * manual/examples/longopt.c: Likewise.
16793         * manual/examples/memopen.c: Likewise.
16794         * manual/examples/memstrm.c: Likewise.
16795         * manual/examples/mkfsock.c: Likewise.
16796         * manual/examples/mkisock.c: Likewise.
16797         * manual/examples/mygetpass.c: Likewise.
16798         * manual/examples/pipe.c: Likewise.
16799         * manual/examples/popen.c: Likewise.
16800         * manual/examples/rprintf.c: Likewise.
16801         * manual/examples/search.c: Likewise.
16802         * manual/examples/select.c: Likewise.
16803         * manual/examples/setjmp.c: Likewise.
16804         * manual/examples/sigh1.c: Likewise.
16805         * manual/examples/sigusr.c: Likewise.
16806         * manual/examples/stpcpy.c: Likewise.
16807         * manual/examples/strdupa.c: Likewise.
16808         * manual/examples/strftim.c: Likewise.
16809         * manual/examples/strncat.c: Likewise.
16810         * manual/examples/subopt.c: Likewise.
16811         * manual/examples/swapcontext.c: Likewise.
16812         * manual/examples/termios.c: Likewise.
16813         * manual/examples/testopt.c: Likewise.
16814         * manual/examples/testpass.c: Likewise.
16815         * manual/examples/timeval_subtract.c: Likewise.
16817         [BZ #13792]
16818         * manual/time.texi (Elapsed Time): Move timeval_subtract example
16819         function to ...
16820         * manual/timeval_subtract.c.texi: ... here, new file.
16822 2012-03-02  David S. Miller  <davem@davemloft.net>
16824         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
16826 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
16828         [BZ #3976]
16829         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
16830         (__sin): Save and restore rounding mode and use round-to-nearest
16831         for all computations.
16832         (__cos): Save and restore rounding mode and use round-to-nearest
16833         for all computations.
16834         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
16835         <fenv.h>.
16836         (tan): Save and restore rounding mode and use round-to-nearest for
16837         all computations.
16838         * math/libm-test.inc (cos_test_tonearest): New function.
16839         (cos_test_towardzero): Likewise.
16840         (cos_test_downward): Likewise.
16841         (cos_test_upward): Likewise.
16842         (sin_test_tonearest): Likewise.
16843         (sin_test_towardzero): Likewise.
16844         (sin_test_downward): Likewise.
16845         (sin_test_upward): Likewise.
16846         (tan_test_tonearest): Likewise.
16847         (tan_test_towardzero): Likewise.
16848         (tan_test_downward): Likewise.
16849         (tan_test_upward): Likewise.
16850         (main): Call the new functions.
16851         * sysdeps/i386/fpu/libm-test-ulps: Update.
16852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16854         [BZ #10135]
16855         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
16856         small n, then large n, before computing and testing k+n.
16857         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
16858         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
16859         Likewise.
16860         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
16861         Likewise.
16862         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
16863         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
16864         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
16865         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
16866         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
16867         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
16868         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
16869         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
16870         * math/libm-test.inc (scalbn_test): Add more tests.
16871         (scalbln_test): Likewise.
16873         * manual/filesys.texi (mode_t): Describe constraints on size and
16874         signedness, not exact equivalence to a particular type.
16875         (ino_t): Likewise.
16876         (ino64_t): Likewise.
16877         (dev_t): Likewise.
16878         (nlink_t): Likewise.
16879         (blkcnt_t): Likewise.
16880         (blkcnt64_t): Likewise.
16881         * manual/llio.texi (off_t): Likewise.
16883         [BZ #3976]
16884         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
16885         (__ieee754_exp): Save and restore rounding mode and use
16886         round-to-nearest for all computations.
16887         * math/libm-test.inc (exp_test_tonearest): New function.
16888         (exp_test_towardzero): Likewise.
16889         (exp_test_downward): Likewise.
16890         (exp_test_upward): Likewise.
16891         (main): Call the new functions.
16892         * sysdeps/i386/fpu/libm-test-ulps: Update.
16893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16895 2012-03-01  Chris Demetriou  <cgd@google.com>
16897         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
16898         have predictable order.
16900 2012-03-01  David S. Miller  <davem@davemloft.net>
16902         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
16904         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
16905         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
16906         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
16907         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
16909         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
16910         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
16911         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
16912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
16913         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
16914         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
16915         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
16916         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
16917         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
16919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16921         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
16922         * sysdeps/sparc/fpu/libm-test-ulps: to here.
16923         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
16925         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
16926         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16927         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
16928         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
16929         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
16930         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
16931         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
16932         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16933         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
16934         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
16935         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
16936         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
16937         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16938         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
16939         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16940         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16941         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
16942         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
16943         * sysdeps/sparc/elf/configure: Regenerated.
16945 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
16947         * configure.in (AS, LD): Require binutils 2.20 or later.
16948         * configure: Regenerated.
16949         * manual/install.texi (Tools for Compilation): Give binutils 2.20
16950         as required minimum version.
16951         * INSTALL: Regenerated.
16953         [BZ #2541]
16954         [BZ #4108]
16955         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
16956         before squaring exponent.
16957         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
16958         bottom long double and 27 bits of top long double before squaring
16959         exponent.
16960         * math/libm-test.inc (erfc_test): Add more tests.
16961         * sysdeps/i386/fpu/libm-test-ulps: Update.
16962         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16965 2012-03-01  Kai Tietz  <ktietz@redhat.com>
16967         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
16968         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
16969         containing bit-fields.
16970         * soft-fp/extended.h (_FP_UNION_E): Likewise.
16971         * soft-fp/single.h (_FP_UNION_S): Likewise.
16972         * soft-fp/double.h (_FP_UNION_D): Likewise.
16974 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
16976         [BZ #13786]
16977         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
16978         not include ../strcmp.S.
16979         [USE_AS_STRNCASECMP_L]: Likewise.
16980         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
16981         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
16982         * sysdeps/i386/i686/multiarch/strncase_l-c.c
16983         (__strncasecmp_l_ia32): Define as alias to
16984         __strncasecmp_l_nonascii.
16986         [BZ #5794]
16987         * math/libm-test.inc (expm1_test): Add test for bug 5794.
16988         * sysdeps/i386/fpu/libm-test-ulps: Update.
16989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16991         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
16992         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16994 2012-02-29  Jeff Law  <law@redhat.com>
16996         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
16997         out of bounds read.
16999 2012-02-29  Marek Polacek  <polacek@redhat.com>
17001         [BZ #13706]
17002         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
17003         * elf/Makefile: Add rules to run tst-unused-dep.out.
17005 2012-02-28  David S. Miller  <davem@davemloft.net>
17007         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
17008         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
17009         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
17010         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
17011         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
17012         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
17014 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17016         * math/libm-test.inc (llround_test): Move one test from
17017         lround_test.  Use TEST_f_L in moved test.
17018         (lround_test): Move misplaced test to llround_test.  Add testcase
17019         from bug 2561.
17021 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
17023         * sysdeps/x86_64/fpu/e_expf.S: New file.
17024         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
17026 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
17028         [BZ #13637]
17029         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
17030         of remain_len that may cause incomplete multi-byte character and
17031         false match.
17032         * posix/bug-regex33.c: New file.
17033         * posix/Makefile (tests): Add bug-regex33.
17035 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
17037         * manual/macros.texi: New file.
17038         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
17039         * manual/libc.texinfo: Include macros.texi.
17040         * manual/creatute.texi: Likewise.
17041         * manual/install.texi: Likewise.
17042         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
17043         @glibcadj{} in references to the GNU C Library.
17044         * manual/charset.texi: Likewise.
17045         * manual/conf.texi: Likewise.
17046         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
17047         when not using those macros.
17048         * manual/creature.texi: Likewise.
17049         * manual/crypt.texi: Likewise.
17050         * manual/errno.texi: Likewise.
17051         * manual/filesys.texi: Likewise.
17052         * manual/header.texi: Likewise.
17053         * manual/install.texi: Likewise.
17054         * manual/intro.texi: Likewise.
17055         * manual/io.texi: Likewise.
17056         * manual/job.texi: Likewise.
17057         * manual/lang.texi: Likewise.
17058         * manual/libc.texiinfo: Likewise.
17059         * manual/llio.texi: Likewise.
17060         * manual/locale.texi: Likewise.
17061         * manual/maint.texi: Likewise.
17062         * manual/math.texi: Likewise.
17063         * manual/memory.texi: Likewise.
17064         * manual/message.texi: Likewise.
17065         * manual/nss.texi: Likewise.
17066         * manual/pattern.texi: Likewise.
17067         * manual/process.texi: Likewise.
17068         * manual/resource.texi: Likewise.
17069         * manual/search.texi: Likewise.
17070         * manual/setjmp.texi: Likewise.
17071         * manual/signal.texi: Likewise.
17072         * manual/socket.texi: Likewise.
17073         * manual/startup.texi: Likewise.
17074         * manual/stdio.texi: Likewise.
17075         * manual/string.texi: Likewise.
17076         * manual/sysinfo.texi: Likewise.
17077         * manual/syslog.texi: Likewise.
17078         * manual/terminal.texi: Likewise.
17079         * manual/time.texi: Likewise.
17080         * manual/users.texi: Likewise.
17081         * INSTALL: Regenerated.
17082         * NOTES: Regenerated.
17083         * sysdeps/gnu/errlist.c: Regenerated.
17085 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
17087         * include/dirent.h: Include <dirstream.h> before
17088         <dirent/dirent.h>.
17090 2012-02-28  David S. Miller  <davem@davemloft.net>
17092         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
17093         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
17094         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
17095         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
17097 2012-02-27  David S. Miller  <davem@davemloft.net>
17099         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
17100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
17101         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
17102         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
17104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
17105         frame pointer instead of stack pointer relative arg slot.
17106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
17107         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
17108         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
17110 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
17112         [BZ #3992]
17113         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
17115 2012-02-27  David S. Miller  <davem@davemloft.net>
17117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
17118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
17119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
17121         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
17122         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
17123         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
17124         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
17126 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
17128         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
17129         later.  Allow versions 5-9.
17130         * configure: Regenerated.
17131         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
17132         required minimum version and 4.6 as recommended version.  Do not
17133         mention bugs in GCC 2.7 and 2.8.
17134         * INSTALL: Regenerated.
17136 2012-02-27  David S. Miller  <davem@davemloft.net>
17138         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
17139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
17140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
17141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
17142         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
17143         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
17144         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
17145         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
17147         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
17148         manipulate bits before adding and subtracting TWO112[sx].
17149         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
17151 2012-02-27  Roland McGrath  <roland@hack.frob.com>
17153         [BZ #13775]
17154         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
17155         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
17156         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
17157         being in POSIX, because they are in 1003.1-2008.
17159         * rt/tst-aio.c: Include <fcntl.h>.
17160         * rt/tst-aio7.c: Likewise.
17161         * rt/tst-aio64.c: Likewise.
17163         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
17165 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
17167         * manual/install.texi (--with-headers): Describe headers as
17168         interface headers, not private headers.
17169         (Specific advice for GNU/Linux systems): Describe use of headers
17170         from "make headers_install", not private headers from older
17171         kernels.
17172         * INSTALL: Regenerated.
17173         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
17174         Change to 2.6.19.
17175         * sysdeps/unix/sysv/linux/configure: Regenerated.
17177         * manual/llio.texi (fclean): Remove documentation.
17179         * manual/Makefile (libc-texi-generated): New variable.  Include
17180         version.texi.
17181         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
17182         $(libc-texi-generated), not duplicated list of files.
17183         (version.texi, stamp-version): New rules.
17184         (realclean): Remove $(libc-texi-generated), not individual files
17185         from that list.  Do not remove dir-add.texinfo.
17186         * manual/libc.texinfo: Comment out uses of edition numbers and
17187         references to printed manual.  Remove last-updated dates.
17188         (EDITION): Comment out.
17189         (ISBN): Likewise.
17190         (VERSION, UPDATED): Remove.
17191         (version.texi): Include.
17193 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
17195         * sysdeps/posix/spawni.c: Include <signal.h>.
17196         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
17197         * sysdeps/pthread/aio_fsync.c: Likewise.
17199 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
17201         * conform/Makefile (tests): Run only when not cross-compiling and
17202         when fast-check is not defined.
17204         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
17205         * conform/data/limits.h-data: Fixes for POSIX2008.
17206         * conform/run-conformtest.sh: Run all tests.
17207         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
17208         headers.
17209         * include/bits/dlfcn.h: Likewise.
17210         * include/langinfo.h: Likewise.
17211         * include/monetary.h: Likewise.
17212         * include/sys/poll.h: Likewise.
17214         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
17215         for __USE_GNU.
17216         * posix/spawn.h: Define __need_sigset_t.
17217         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
17218         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
17219         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
17220         to get sigevent_t only.
17221         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
17222         only for __USE_GNU.
17223         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17224         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
17225         process_vm_writev only for __USE_GNU.
17226         * termios/termios.h: Declare tcgetsid also for POSIX2008.
17228         * conform/Makefile: For now ignore errors from run-conformtest.
17229         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
17230         POSIX to avoid namespace pollution.  Don't prepend headers.
17231         * conform/data/aio.h-data: Fixes for POSIX testing.
17232         * conform/data/fcntl.h-data: Likewise.
17233         * conform/data/glob.h-data: Likewise.
17234         * conform/data/grp.h-data: Likewise.
17235         * conform/data/pthread.h-data: Likewise.
17236         * conform/data/pwd.h-data: Likewise.
17237         * conform/data/signal.h-data: Likewise.
17238         * conform/data/spawn.h-data: Likewise.
17239         * conform/data/stdio.h-data: Likewise.
17240         * conform/data/stdlib.h-data: Likewise.
17241         * conform/data/stropts.h-data: Likewise.
17242         * conform/data/sys/mman.h-data: Likewise.
17243         * conform/data/sys/stat.h-data: Likewise.
17244         * conform/data/sys/types.h-data: Likewise.
17245         * conform/data/sys/wait.h-data: Likewise.
17246         * conform/data/time.h-data: Likewise.
17247         * conform/data/unistd.h-data: Likewise.
17248         * conform/data/utime.h-data: Likewise.
17250         * io/sys/stat.h: fchmod was always in POSIX.
17251         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
17252         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
17253         * rt/aio.h: Define __need_timespec before including <time.h>.
17254         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
17255         struct.  Add forward declaration of pthread_attr_t and use it in
17256         sigevent.
17257         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17258         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17259         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
17260         always remove CLK_TCK definition.
17262 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
17264         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
17266 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
17268         * conform/run-conformtest.sh: New file.
17269         * conform/Makefile: Run run-conformtest for tests.
17270         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
17271         support.
17273         * conform/data/uchar.h-data: New file.
17274         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
17275         * conform/data/arpa/inet.h-data: Likewise.
17276         * conform/data/assert.h-data: Likewise.
17277         * conform/data/complex.h-data: Likewise.
17278         * conform/data/cpio.h-data: Likewise.
17279         * conform/data/ctype.h-data: Likewise.
17280         * conform/data/dirent.h-data: Likewise.
17281         * conform/data/dlfcn.h-data: Likewise.
17282         * conform/data/errno.h-data: Likewise.
17283         * conform/data/fcntl.h-data: Likewise.
17284         * conform/data/float.h-data: Likewise.
17285         * conform/data/fmtmsg.h-data: Likewise.
17286         * conform/data/fnmatch.h-data: Likewise.
17287         * conform/data/ftw.h-data: Likewise.
17288         * conform/data/glob.h-data: Likewise.
17289         * conform/data/grp.h-data: Likewise.
17290         * conform/data/iconv.h-data: Likewise.
17291         * conform/data/inttypes.h-data: Likewise.
17292         * conform/data/langinfo.h-data: Likewise.
17293         * conform/data/libgen.h-data: Likewise.
17294         * conform/data/limits.h-data: Likewise.
17295         * conform/data/locale.h-data: Likewise.
17296         * conform/data/math.h-data: Likewise.
17297         * conform/data/monetary.h-data: Likewise.
17298         * conform/data/mqueue.h-data: Likewise.
17299         * conform/data/ndbm.h-data: Likewise.
17300         * conform/data/net/if.h-data: Likewise.
17301         * conform/data/netdb.h-data: Likewise.
17302         * conform/data/netinet/in.h-data: Likewise.
17303         * conform/data/nl_types.h-data: Likewise.
17304         * conform/data/poll.h-data: Likewise.
17305         * conform/data/pthread.h-data: Likewise.
17306         * conform/data/pwd.h-data: Likewise.
17307         * conform/data/regex.h-data: Likewise.
17308         * conform/data/sched.h-data: Likewise.
17309         * conform/data/search.h-data: Likewise.
17310         * conform/data/semaphore.h-data: Likewise.
17311         * conform/data/setjmp.h-data: Likewise.
17312         * conform/data/signal.h-data: Likewise.
17313         * conform/data/spawn.h-data: Likewise.
17314         * conform/data/stdarg.h-data: Likewise.
17315         * conform/data/stdio.h-data: Likewise.
17316         * conform/data/stdlib.h-data: Likewise.
17317         * conform/data/string.h-data: Likewise.
17318         * conform/data/strings.h-data: Likewise.
17319         * conform/data/stropts.h-data: Likewise.
17320         * conform/data/sys/ipc.h-data: Likewise.
17321         * conform/data/sys/mman.h-data: Likewise.
17322         * conform/data/sys/msg.h-data: Likewise.
17323         * conform/data/sys/resource.h-data: Likewise.
17324         * conform/data/sys/select.h-data: Likewise.
17325         * conform/data/sys/sem.h-data: Likewise.
17326         * conform/data/sys/shm.h-data: Likewise.
17327         * conform/data/sys/socket.h-data: Likewise.
17328         * conform/data/sys/stat.h-data: Likewise.
17329         * conform/data/sys/statvfs.h-data: Likewise.
17330         * conform/data/sys/time.h-data: Likewise.
17331         * conform/data/sys/timeb.h-data: Likewise.
17332         * conform/data/sys/times.h-data: Likewise.
17333         * conform/data/sys/types.h-data: Likewise.
17334         * conform/data/sys/uio.h-data: Likewise.
17335         * conform/data/sys/un.h-data: Likewise.
17336         * conform/data/sys/utsname.h-data: Likewise.
17337         * conform/data/sys/wait.h-data: Likewise.
17338         * conform/data/syslog.h-data: Likewise.
17339         * conform/data/tar.h-data: Likewise.
17340         * conform/data/termios.h-data: Likewise.
17341         * conform/data/utime.h-data: Likewise.
17342         * conform/data/utmpx.h-data: Likewise.
17343         * conform/data/varargs.h-data: Likewise.
17344         * conform/data/wchar.h-data: Likewise.
17345         * conform/data/wctype.h-data: Likewise.
17346         * conform/data/wordexp.h-data: Likewise.
17348         * include/stropts.h: New file.
17349         * include/uchar.h: New file.
17350         * include/aio.h: Changes to allow conformtest.pl to use the headers.
17351         * include/assert.h: Likewise.
17352         * include/ctype.h: Likewise.
17353         * include/dirent.h: Likewise.
17354         * include/dlfcn.h: Likewise.
17355         * include/fcntl.h: Likewise.
17356         * include/fnmatch.h: Likewise.
17357         * include/glob.h: Likewise.
17358         * include/grp.h: Likewise.
17359         * include/libio.h: Likewise.
17360         * include/locale.h: Likewise.
17361         * include/math.h: Likewise.
17362         * include/net/if.h: Likewise.
17363         * include/netdb.h: Likewise.
17364         * include/netinet/in.h: Likewise.
17365         * include/pthread.h: Likewise.
17366         * include/pwd.h: Likewise.
17367         * include/regex.h: Likewise.
17368         * include/sched.h: Likewise.
17369         * include/search.h: Likewise.
17370         * include/setjmp.h: Likewise.
17371         * include/signal.h: Likewise.
17372         * include/stdio.h: Likewise.
17373         * include/stdlib.h: Likewise.
17374         * include/string.h: Likewise.
17375         * include/sys/cdefs.h: Likewise.
17376         * include/sys/mman.h: Likewise.
17377         * include/sys/msg.h: Likewise.
17378         * include/sys/resource.h: Likewise.
17379         * include/sys/select.h: Likewise.
17380         * include/sys/socket.h: Likewise.
17381         * include/sys/stat.h: Likewise.
17382         * include/sys/statvfs.h: Likewise.
17383         * include/sys/time.h: Likewise.
17384         * include/sys/times.h: Likewise.
17385         * include/sys/uio.h: Likewise.
17386         * include/sys/utsname.h: Likewise.
17387         * include/sys/wait.h: Likewise.
17388         * include/termios.h: Likewise.
17389         * include/time.h: Likewise.
17390         * include/ulimit.h: Likewise.
17391         * include/unistd.h: Likewise.
17392         * include/utime.h: Likewise.
17393         * include/wchar.h: Likewise.
17394         * include/wctype.h: Likewise.
17395         * include/wordexp.h: Likewise.
17397         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
17399         * time/time.h: TIME_UTC must be a macro.
17400         Make timespec_get available for ISO C11 only as well.
17402 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
17404         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
17405         Reported by Peng Haitao <penght@cn.fujitsu.com>.
17407 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17409         * configure.in: Use -o not -a in test for unsupported multi-arch.
17411 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17413         * manual/texinfo.tex: Update to version 2012-01-19.16.
17415 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
17417         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
17419 2012-02-24  Roland McGrath  <roland@hack.frob.com>
17421         [BZ #13738]
17422         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
17423         * manual/fdl-1.3.texi: New file.
17424         * manual/fdl-1.1.texi: File removed.
17426         [BZ #13738]
17427         * manual/libc.texinfo (FDL_VERSION): New @set.
17428         Use it for mention of FDL in cover text.
17429         (Documentation License): Use it in @include file name.
17431 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17432             Roland McGrath  <roland@hack.frob.com>
17434         [BZ #5461]
17435         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
17436         not LONG_LONG_MAX and LONG_LONG_MIN.
17437         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
17438         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
17439         name.
17440         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
17442 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17444         [BZ #2547]
17445         [BZ #11365]
17446         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
17447         manipulate bits before adding and subtracting TWO23[sx].
17448         * math/libm-test.inc (nearbyint_test): Add more tests.
17450 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17452         [BZ #2548]
17453         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
17454         bits before adding and subtracting TWO23[sx].
17455         * math/libm-test.inc (rint_test): Add more tests.
17456         (rint_test_tonearest): Likewise.
17457         (rint_test_towardzero): Likewise.
17458         (rint_test_downward): Likewise.
17459         (rint_test_upward: Likewise.
17461 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17463         [BZ #10110]
17464         * include/stdc-predef.h: New file.  Extracted from features.h.
17465         * include/features.h: Include stdc-predef.h.
17466         * Makefile (headers): Add stdc-predef.h.
17467         * CONFORMANCE (Compiler limitations): Update.
17469 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
17471         * manual/libc.texinfo (VERSION, UPDATED): Revert.
17473 2012-02-21  David S. Miller  <davem@davemloft.net>
17475         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
17476         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
17478 2012-02-20  David S. Miller  <davem@davemloft.net>
17480         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
17481         using a normal save/restore sequence, rather than allocating a
17482         dummy stack frame just to store a frame pointer and restore.
17483         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17485 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17487         * manual/install.texi: Fix stray word in line-wrapped comment.
17489 2012-02-20  David S. Miller  <davem@davemloft.net>
17491         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
17492         both binutils and gcc support GOTDATA.
17494         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
17495         "rd %pc" in the PIC register setup sequences.
17497         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
17498         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
17499         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17500         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
17501         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17502         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17503         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17504         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17505         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
17506         (SYSCALL_ERROR_HANDLER): Likewise.
17507         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17508         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17509         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
17510         (SYSCALL_ERROR_HANDLER): Likewise.
17512         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
17513         (HAVE_GCC_GOTDATA): New.
17514         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
17515         relocation support in both binutils and gcc.
17516         * sysdeps/sparc/elf/configure: Regenerate.
17518         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
17519         * sysdeps/sparc/sparc32/elf/configure: Delete.
17520         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
17521         * sysdeps/sparc/sparc64/elf/configure: Delete.
17522         * sysdeps/sparc/elf/configure.in: New file.
17523         * sysdeps/sparc/elf/configure: Generate.
17525         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
17526         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
17527         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17528         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
17529         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
17531 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17533         * manual/install.texi: Do not mention specific glibc version
17534         numbers.
17535         * manual/libc.texinfo (VERSION, UPDATED): Update.
17536         (@copying): Use @copyright{} and range of years.
17538 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
17540         [BZ #13695]
17541         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
17542         [crti.S not in sysdirs] (generated): Do not append.
17543         [crti.S not in sysdirs] (omit-deps): Likewise.
17544         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
17545         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
17546         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
17547         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
17548         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
17549         Likewise.
17550         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
17551         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
17552         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
17553         * csu/defs.awk: Remove file.
17554         * sysdeps/generic/initfini.c: Likewise.
17555         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
17556         variable.
17557         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
17558         Likewise.
17560 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17562         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
17563         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
17564         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
17565         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
17566         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17567         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
17568         <bits/epoll.h>.
17569         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
17570         (__EPOLL_PACKED): Define to empty if not defined by
17571         <bits/epoll.h>.
17572         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
17573         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17574         bits/epoll.h.
17576 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17578         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
17579         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
17580         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
17581         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
17582         <bits/timerfd.h>.
17583         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
17584         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17585         bits/timerfd.h.
17587 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
17589         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
17590         in C locale.
17591         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17592         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17593         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
17594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17596 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
17598         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17599         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
17601 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
17603         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
17604         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
17605         defined.
17606         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
17607         Likewise.
17608         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
17609         entry for 2.16.
17611 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
17613         * math/w_acos.c: Use non-signaling floating-point comparisons.
17614         * math/w_acosf.c: Likewise.
17615         * math/w_acosh.c: Likewise.
17616         * math/w_acoshf.c: Likewise.
17617         * math/w_acoshl.c: Likewise.
17618         * math/w_acosl.c: Likewise.
17619         * math/w_asin.c: Likewise.
17620         * math/w_asinf.c: Likewise.
17621         * math/w_asinl.c: Likewise.
17622         * math/w_atanh.c: Likewise.
17623         * math/w_atanhf.c: Likewise.
17624         * math/w_atanhl.c: Likewise.
17625         * math/w_exp2.c: Likewise.
17626         * math/w_exp2f.c: Likewise.
17627         * math/w_exp2l.c: Likewise.
17628         * math/w_j0.c: Likewise.
17629         * math/w_j0f.c: Likewise.
17630         * math/w_j0l.c: Likewise.
17631         * math/w_j1.c: Likewise.
17632         * math/w_j1f.c: Likewise.
17633         * math/w_j1l.c: Likewise.
17634         * math/w_jn.c: Likewise.
17635         * math/w_jnf.c: Likewise.
17636         * math/w_log.c: Likewise.
17637         * math/w_log10.c: Likewise.
17638         * math/w_log10f.c: Likewise.
17639         * math/w_log10l.c: Likewise.
17640         * math/w_log2.c: Likewise.
17641         * math/w_log2f.c: Likewise.
17642         * math/w_log2l.c: Likewise.
17643         * math/w_logf.c: Likewise.
17644         * math/w_logl.c: Likewise.
17645         * math/w_sqrt.c: Likewise.
17646         * math/w_sqrtf.c: Likewise.
17647         * math/w_sqrtl.c: Likewise.
17648         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17649         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17650         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17651         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17652         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17654 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
17656         [BZ #9739]
17657         * manual/string.texi (strnlen): Use correct parameter name in
17658         equivalent expression.
17660 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
17662         [BZ #11174]
17663         * manual/users.texi (seteuid): Consistently use neweuid for
17664         argument name.
17666 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
17668         [BZ #13704]
17669         * manual/nss.texi (Services in the NSS configuration): Correct
17670         list of services in example configuration file.
17672 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
17674         [BZ #11322]
17675         * manual/arith.texi: Remove statements about negative zero
17676         behaving identically to zero.
17678 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
17680         [BZ #5993]
17681         * manual/install.texi: Do not document upgrading from libc5.
17683 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
17685         [BZ #4596]
17686         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
17688 2012-02-18  David S. Miller  <davem@davemloft.net>
17690         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
17691         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
17692         %o7 across the call.
17693         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
17694         instead.
17695         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
17696         SETUP_PIC_REG_LEAF.
17697         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17698         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
17699         * sysdeps/sparc/crtn.S: Likewise.
17701 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
17703         * aout/Makefile: Remove.
17705 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
17707         [BZ #13058]
17708         * manual/examples/argp-ex1.c (main): Format definition in GNU
17709         style.
17710         * manual/examples/argp-ex2.c (main): Likewise.
17711         * manual/examples/argp-ex3.c (main): Likewise.
17712         * manual/examples/argp-ex4.c (main): Likewise.
17713         * manual/examples/longopt.c (main): Use new-style prototype
17714         definition.
17715         * manual/examples/strncat.c (main): Specify return type and use
17716         (void) for arguments.
17717         * manual/examples/subopt.c (main): Use char **argv argument.
17719 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17721         [BZ #5077]
17722         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
17723         rounding modes.
17725 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
17727         [BZ #6907]
17728         * manual/string.texi (strchr): Change when strchrnul is
17729         recommended.
17731 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
17733         [BZ #174]
17734         * manual/locale.texi (setlocale): Document LOCPATH.
17736 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17738         [BZ #10210]
17739         * manual/process.texi (execle): Move @dots{} before last argument.
17741 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
17743         [BZ #12047]
17744         * manual/charset.texi (Generic Charset Conversion): Fix typo
17745         (LC_TYPE -> LC_CTYPE).
17747 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
17749         [BZ #5805]
17750         * manual/arith.texi (scalbn): Use @var{} on parameter names.
17751         (scalbnf): Likewise.
17752         (scalbnl): Likewise.
17753         (scalbln): Likewise.
17754         (scalblnf): Likewise.
17755         (scalblnl): Likewise.
17756         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
17757         (vwarnx): Likewise.
17758         (verr): Likewise.
17759         (verrx): Likewise.
17760         * manual/filesys.texi (telldir): Use braces around return type.
17761         * manual/llio.texi (mmap): Add space after comma.
17762         (mmap64): Likewise.
17763         * manual/math.texi (jn): Use @var{} on parameter names.
17764         (jnf): Likewise.
17765         (jnl): Likewise.
17766         (yn): Likewise.
17767         (ynf): Likewise.
17768         (ynl): Likewise.
17769         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
17770         line.
17771         * manual/resource.texi (ulimit): Use @dots{} instead of literal
17772         "...".
17773         (sched_get_priority_min): Remove semicolon on @deftypefun line.
17774         (sched_get_priority_max): Likewise.
17775         * manual/signal.texi (sigvec): Add space after comma.
17776         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
17777         names.
17778         (if_indextoname): Likewise.
17779         (if_freenameindex): Likewise.
17780         (sendto): Use ',' instead of '.' in prototype.
17781         * manual/startup.texi (syscall): Use @dots{} instead of literal
17782         "...".
17783         * manual/stdio.texi (__fpending): Separate initial words of
17784         paragraph from @deftypefun line.
17785         * manual/syslog.texi (syslog): Use @dots{} instead of literal
17786         "...".
17787         (vsyslog): Use @var{} on parameter names.
17788         * manual/terminal.texi (stty): Use @var{} on parameter names.
17789         * manual/users.texi (getutmp): Use @var{} on parameter names.
17790         (getutmpx): Likewise.
17792 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17794         [BZ #6884]
17795         * manual/stdio.texi (fopen): Fix typos in description of
17796         ",ccs=STRING".
17798 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
17800         [BZ #4026]
17801         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
17802         get clock_id definition.
17804 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
17806         [BZ #4822]
17807         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
17808         (madvise): Cast every argument to void on its own.
17810 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17812         [BZ #9902]
17813         * manual/startup.texi (Exit Status): Fix typo.
17815 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
17817         [BZ #10140]
17818         * manual/examples/argp-ex1.c: Include <stdlib.h>.
17819         * manual/examples/argp-ex2.c: Likewise.
17820         * manual/examples/argp-ex3.c: Likewise.
17822 2012-02-16  Richard Henderson  <rth@redhat.com>
17824         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
17825         * sysdeps/s390/s390-32/initfini.c: Remove.
17826         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
17827         * sysdeps/s390/s390-64/initfini.c: Remove.
17829 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17831         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
17832         compiler output for sysdeps/generic/initfini.c.
17833         * sysdeps/sh/elf/initfini.c: Remove file.
17835 2012-02-16  David S. Miller  <davem@davemloft.net>
17837         [BZ #11494]
17838         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
17840         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
17841         * sysdeps/sparc/crti.S: New file.
17842         * sysdeps/sparc/crtn.S: New file.
17843         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
17844         * sysdeps/sparc/sparc64/Makefile: Likewise.
17846 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
17848         [BZ #3335]
17849         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
17851 2012-02-15  Roland McGrath  <roland@hack.frob.com>
17853         [BZ #4822]
17854         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
17856         * mach/devstream.c (cookie_io_functions_t): Macro removed.
17857         (write, read, close): Likewise.
17858         Patch by Aurelien Jarno <aurelien@aurel32.net>.
17860 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
17862         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
17863         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
17864         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
17865         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
17866         <bits/signalfd.h>.
17867         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
17868         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17869         bits/signalfd.h.
17871 2012-02-14  Marek Polacek  <polacek@redhat.com>
17873         * sysdeps/x86_64/crti.S: New file.
17874         * sysdeps/x86_64/crtn.S: New file.
17875         * sysdeps/x86_64/elf/initfini.c: Remove file.
17877 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
17879         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
17880         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
17881         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
17882         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
17883         <bits/inotify.h>.
17884         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
17885         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17886         bits/inotify.h.
17888 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
17890         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
17891         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
17892         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
17893         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
17894         <bits/eventfd.h>.
17895         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
17896         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17897         bits/eventfd.h.
17899 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
17901         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
17902         __feraiseexcept instead of feraiseexcept.
17904         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
17905         nanosleep invocations.
17906         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
17907         strings, and add error checking for a nanosleep invocations.
17909 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17911         Replace FSF snail mail address with URLs, as per GNU coding standards.
17912         Most of the snail mail addresses were wrong anyway, and omitting
17913         them makes the source code easier to maintain.  Almost all of the
17914         changes are to license notices and to locale LC_IDENTIFICATION
17915         addresses, except for this one:
17916         * manual/libc.texinfo: In "Published by", give the FSF's URL,
17917         not its snail mail address.
17919 2012-02-09  Richard Henderson  <rth@twiddle.net>
17921         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
17922         of kernel-features.h.
17924         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
17926 2012-02-08  Marek Polacek  <polacek@redhat.com>
17928         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
17929         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
17930         * sysdeps/gnu/_G_config.h: Likewise.
17931         * sysdeps/generic/_G_config.h: Likewise.
17933 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
17935         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
17936         tests.
17937         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17939         * sysdeps/powerpc/powerpc32/crti.S: New file.
17940         * sysdeps/powerpc/powerpc32/crtn.S: New file.
17941         * sysdeps/powerpc/powerpc64/crti.S: New file.
17942         * sysdeps/powerpc/powerpc64/crtn.S: New file.
17944         * Makeconfig (have-initfini): Don't set.
17945         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
17946         * configure.in (nopic_initfini): Don't substitute.
17947         * config.h.in (HAVE_INITFINI): Don't #undef.
17948         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
17949         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
17951 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
17953         Support crti.S and crtn.S provided directly by architectures.
17954         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
17955         [crti.S in sysdirs] (omit-deps): Likewise.
17956         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
17957         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
17958         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
17959         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
17960         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
17961         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
17962         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
17963         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
17964         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
17965         compiler output for sysdeps/generic/initfini.c.
17966         * sysdeps/i386/elf/Makefile: Remove file.
17967         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
17969 2012-02-07  Marek Polacek  <polacek@redhat.com>
17971         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
17972         * sysdeps/gnu/_G_config.h: Likewise.
17973         * sysdeps/mach/hurd/_G_config.h: Likewise.
17975 2012-02-07  Marek Polacek  <polacek@redhat.com>
17977         * math/Makefile (tests): Add tst-CMPLX2.
17978         * math/tst-CMPLX2.c: New file.
17980 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
17982         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17984         * math/libm-test.inc (jn_test): Add missing L suffix.
17986 2012-02-06  Marek Polacek  <polacek@redhat.com>
17988         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
17989         * sysdeps/i386/fpu/e_powf.S: Likewise.
17990         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17991         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
17992         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17993         * sysdeps/i386/fpu/e_pow.S: Likewise.
17994         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
17995         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17996         * sysdeps/i386/fpu/s_expm1.S: Likewise.
17997         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
17998         * sysdeps/i386/fpu/e_log2.S: Likewise.
17999         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18000         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18001         * sysdeps/i386/fpu/e_powl.S: Likewise.
18002         * sysdeps/i386/fpu/s_log1p.S: Likewise.
18003         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18004         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
18005         * sysdeps/i386/fpu/e_logl.S: Likewise.
18006         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
18007         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
18008         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
18009         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
18010         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18011         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18012         * sysdeps/i386/fpu/e_log.S: Likewise.
18013         * sysdeps/i386/fpu/s_cexp.S: Likewise.
18014         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18015         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
18016         * sysdeps/i386/fpu/e_logf.S: Likewise.
18017         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18018         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18019         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
18020         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
18021         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18022         * sysdeps/i386/fpu/e_log10.S: Likewise.
18023         * sysdeps/i386/fpu/s_frexp.S: Likewise.
18024         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18025         * sysdeps/i386/fpu/s_asinh.S: Likewise.
18026         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
18027         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18028         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
18029         * sysdeps/i386/asm-syntax.h: Likewise.
18030         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18031         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18032         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18033         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
18034         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
18035         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18036         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
18037         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
18038         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
18039         * sysdeps/powerpc/sysdep.h: Likewise.
18040         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18041         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
18043 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
18045         [BZ #411]
18046         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
18048 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
18050         * sysdeps/i386/sysdep.h: Include <features.h>.
18051         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
18052         version.
18054 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
18056         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
18057         Define.
18058         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
18059         LOAD_PIC_REG_STR.
18061 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18063         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
18064         (SETUP_PIC_REG): Use GET_PC_THUNK.
18065         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
18066         macro.
18068 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18070         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
18071         for non-PIC compilation.
18072         (SETUP_PIC_REG): Add .p2align directive.
18073         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
18074         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
18075         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18076         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18077         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
18078         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18079         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
18080         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18081         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18082         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18083         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18084         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18085         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18086         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18087         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18088         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
18089         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
18090         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18091         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18092         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18093         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18094         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
18095         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18096         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18097         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
18098         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
18099         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18100         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
18101         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18102         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18103         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18104         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18105         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18106         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18107         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18108         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18109         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18110         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18111         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18112         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18113         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18115 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
18117         * math/tst-CMPLX.c: Include <stdio.h>.
18119 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
18121         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
18122         float.
18123         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18124         * sysdeps/sparc/bits/mathdef.h: Likewise.
18126 2012-01-31  Marek Polacek  <polacek@redhat.com>
18128         * libio/libio.h: Don't define _PARAMS.
18129         * locale/programs/config.h: Don't define PARAMS.
18130         * stdlib/strtol_l.c: Likewise.
18131         (__strtol_l): Remove PARAMS from the prototype.
18133 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
18135         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
18136         names.  Just use the correct names.  Remove unnecessary wrapper
18137         functions.
18138         * malloc/arena.c: Likewise.
18139         * malloc/hooks.c: Likewise.
18141         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
18142         ARENA_TEST says not to.  Simplify test for creation of a new arena.
18143         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
18145 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
18147         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
18148         into tail calls.
18149         (update_get_addr): New function.
18150         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
18151         GET_ADDR_MODULE parameter.
18153 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
18155         * crypt/cert.c: Remove __STDC__ conditionals.
18156         * crypt/crypt-entry.c: Likewise.
18157         * crypt/crypt_util.c: Likewise.
18158         * libio/filedoalloc.c: Likewise.
18159         * libio/fileops.c: Likewise.
18160         * libio/genops.c: Likewise.
18161         * libio/iofclose.c: Likewise.
18162         * libio/iofdopen.c: Likewise.
18163         * libio/iofopen.c: Likewise.
18164         * libio/iofopen64.c: Likewise.
18165         * libio/iogetdelim.c: Likewise.
18166         * libio/iopopen.c: Likewise.
18167         * libio/obprintf.c: Likewise.
18168         * libio/oldfileops.c: Likewise.
18169         * libio/oldiofclose.c: Likewise.
18170         * libio/oldiofdopen.c: Likewise.
18171         * libio/oldiofopen.c: Likewise.
18172         * libio/oldiopopen.c: Likewise.
18173         * libio/wfiledoalloc.c: Likewise.
18174         * libio/wgenops.c: Likewise.
18175         * locale/programs/xmalloc.c: Likewise.
18176         * misc/syslog.c: Likewise.
18177         * stdio-common/xbug.c: Likewise.
18178         * string/memchr.c: Likewise.
18179         * string/memcmp.c: Likewise.
18180         * string/memrchr.c: Likewise.
18181         * string/rawmemchr.c: Likewise.
18182         * sysdeps/posix/getcwd.c: Likewise.
18183         * time/strftime_l.c: Likewise.
18185 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
18187         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
18188         * config.make.in (config-cflags-sse2avx): Define.
18189         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
18190         Fix typo.
18192 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
18194         * scripts/config.guess: Update from upstream config git repository.
18195         * scripts/config.sub: Likewise.
18197 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
18199         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
18200         (EM_NUM): Update.
18201         (R_TILEPRO_*, R_TILEGX_*): New macros.
18203         * scripts/firstversions.awk: Fix bug in version range handling.
18205         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
18207         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
18209         * include/sys/epoll.h: New file.
18210         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
18211         libc_hidden_def.
18213 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
18215         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
18216         Avoid unnecessary __WORDSIZE == 64 test.
18217         (fmaxf): Use VEX format if possible.
18218         (fmax): Likewise.
18219         (fminf): Likewise.
18220         (fmin): Likewise.
18222         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
18223         * math/math_private.h: Remove libc_fegetround* and
18224         libc_fesetround*.
18225         * sysdeps/i386/configure.in: Check for -msse2avx.
18226         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
18227         also if SSE2AVX is defined.
18228         Remove libc_fegetround* and libc_fesetround*.
18229         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
18230         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
18231         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
18232         of HAS_YMM_USABLE.
18233         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18234         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18235         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18236         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18237         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18239         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
18241 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18243         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
18244         size is not set.
18245         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18247 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
18249         [BZ #13618]
18250         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
18251         relocation.
18252         * Makeconfig (libm): Define.
18253         * elf/Makefile: Add rules to build and run tst-relsort1.
18254         * elf/tst-relsort1.c: New file.
18255         * elf/tst-relsort1mod1.c: New file.
18256         * elf/tst-relsort1mod2.c: New file.
18258 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
18260         * math/s_ldexp.c: Remove __STDC__ conditionals.
18261         * math/s_ldexpf.c: Likewise.
18262         * math/s_ldexpl.c: Likewise.
18263         * math/s_nextafter.c: Likewise.
18264         * math/s_nexttowardf.c: Likewise.
18265         * math/s_significand.c: Likewise.
18266         * math/s_significandf.c: Likewise.
18267         * math/s_significandl.c: Likewise.
18268         * math/w_jnl.c: Likewise.
18269         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18270         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18271         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18272         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18273         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18274         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18275         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
18276         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18277         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18278         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18279         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18280         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18281         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18282         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18283         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18284         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18285         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18286         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18287         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18288         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18289         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18290         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18291         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18292         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18293         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18294         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18295         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18296         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18297         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18298         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18299         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18300         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18301         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18302         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18303         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18304         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18305         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18306         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18307         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18308         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18309         * sysdeps/ieee754/k_standard.c: Likewise.
18310         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18311         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18312         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18313         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18314         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18315         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18316         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18317         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18318         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18319         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18320         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18321         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18322         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18323         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18324         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18325         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18326         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18327         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18328         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18329         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18330         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18331         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18332         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18333         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18334         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18335         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18336         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18337         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18338         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18339         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18340         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18341         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
18342         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18343         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18344         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18345         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18346         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
18347         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18348         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18349         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
18350         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
18351         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18352         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
18353         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
18354         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18355         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
18356         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
18357         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18358         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18359         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
18360         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
18361         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18362         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18363         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18364         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18365         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18366         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
18367         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18368         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18369         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18370         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18371         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18372         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18373         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18374         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18375         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18376         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18377         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18378         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18379         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18380         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18381         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18382         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18383         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18384         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18385         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18386         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
18387         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18388         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
18389         * sysdeps/ieee754/s_matherr.c: Likewise.
18390         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
18391         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
18392         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
18393         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
18395 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18397         * crypt/md5.h: Remove __STDC__ conditionals.
18398         * libio/libioP.h: Likewise.
18399         * locale/programs/config.h: Likewise.
18400         * sysdeps/generic/sysdep.h: Likewise.
18401         * sysdeps/i386/asm-syntax.h: Likewise.
18402         * sysdeps/s390/asm-syntax.h: Likewise.
18403         * sysdeps/unix/sysdep.h: Likewise.
18404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
18405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
18407 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
18409         * libio/libio.h: Remove __STDC__ conditionals.
18410         * malloc/obstack.h: Likewise.
18411         * math/complex.h: Likewise.
18412         * math/math.h: Likewise.
18413         * sysdeps/generic/_G_config.h: Likewise.
18414         * sysdeps/gnu/_G_config.h: Likewise.
18415         * sysdeps/mach/hurd/_G_config.h: Likewise.
18416         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18417         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
18418         * sysdeps/sparc/bits/mathdef.h: Likewise.
18420 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
18422         [BZ #13583]
18423         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
18424         Clean up HAS_* macros.
18425         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
18426         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
18427         possible.
18428         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
18429         HAS_AVX.
18430         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18431         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18432         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18433         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18434         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18436 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
18438         * elf/tst-unique3.cc (gets): Remove declaration.
18439         * elf/tst-unique3lib.cc (gets): Likewise.
18440         * elf/tst-unique3lib2.cc (gets): Likewise.
18441         * elf/tst-unique4.cc (gets): Likewise.
18443 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
18445         * include/stdio.h: Add C++ protection.  Add gets declarations and
18446         definitions.
18447         * debug/tst-chk1.c: Don't declare gets here.
18448         * stdio-common/tst-gets.c: Likewise.
18450 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18452         * posix/glob: Remove directory.
18454 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
18456         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
18458 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
18460         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
18461         of the non-standard EPFNOSUPPORT.
18463 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18465         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
18466         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
18467         ANYWHERE set to 1 only on KERN_NO_SPACE error.
18469 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
18471         * wcsmbs/uchar.h: Test __STDC_VERSION__.
18473 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
18475         * nscd/aicache.c (addhstaiX): Do not cache negative results of
18476         transient errors.
18477         * nscd/grpcache.c (cache_addgr): Likewise.
18478         * nscd/hstcache.c (cache_addhst): Likewise.
18479         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18480         * nscd/pwdcache.c (cache_addpw): Likewise.
18481         * nscd/servicescache.c (cache_addserv): Likewise.
18483 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
18485         * malloc/malloc.c: Various cleanups.
18486         * malloc/hooks.c: Likewise.
18488         * stdlib/Makefile (tests): Add bug-fmtmsg1.
18489         * stdlib/bug-fmtmsg1.c: New file.
18491         * stdlib/fmtmsg.c (init): Add missing unlock.
18492         Patch by Peng Haitao <penght@cn.fujitsu.com>.
18494 2012-01-12  Marek Polacek  <polacek@redhat.com>
18496         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
18497         and _GNU_SOURCE.
18499 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18501         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
18502         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
18503         macro to ensure uniqueness of label name.
18504         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
18505         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
18507 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
18509         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
18511         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
18512         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18513         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18514         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
18516 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
18518         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
18520         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
18521         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18522         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18524         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
18526         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
18527         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18528         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18529         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
18531         * math/bits/math-finite.h: Add ldexp support.
18533 2012-01-10  Marek Polacek  <polacek@redhat.com>
18535         * locale/programs/localedef.h (show_archive_content): Add noreturn
18536         attribute.
18538 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
18540         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
18542 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18544         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
18546         * io/Makefile (headers): Add bits/poll2.h.
18548 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
18550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
18551         typo #include statement.
18553 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18555         * include/sys/cdefs.h: Define __attribute_alloc_size.
18556         * catgets/gencat.c: Add alloc_size attribute and apply consistently
18557         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
18558         * elf/pldd.c: Likewise.
18559         * iconv/iconv_charmap.c: Likewise.
18560         * iconv/iconvconfig.c: Likewise.
18561         * iconv/strtab.c: Likewise.
18562         * locale/programs/locale.c: Likewise.
18563         * locale/programs/localedef.h: Likewise.
18564         * locale/programs/simple-hash.c: Likewise.
18565         * nscd/nscd.h: Likewise.
18566         * nss/makedb.c: Likewise.
18567         * sysdeps/generic/ldconfig.h: Likewise.
18568         * locale/programs/localedef.c: Remove xmalloc prototype.
18569         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
18571 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18573         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
18574         appropriate.
18576 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
18578         * math/Makefile (tests): Add tst-CMPLX.
18579         * math/tst-CMPLX.c: New file.
18581         * math/complex.h (CMPLXL): Fix typo.
18583         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
18584         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
18585         GLIBC_2.16.
18586         * debug/tst-chk1.c: Add poll and ppoll tests.
18587         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
18588         * include/sys/poll.h: Add hidden proto for ppoll.
18589         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
18590         * sysdeps/mach/hurd/ppoll.c: Likewise.
18591         * io/ppoll.c: Likewise.
18592         * debug/poll_chk.c: New file.
18593         * debug/ppoll_chk.c: New file.
18594         * include/bits/poll2.h: New file.
18595         * io/bits/poll2.h: New file.
18597         [BZ #1350]
18598         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
18600         * configure.in: static is always set to yes.  Remove.
18601         * config.make.in: Don't set build-static.
18602         * Makeconfig: Remove use of build-static.
18603         * dlfcn/Makefile: Likewise.
18604         * elf/Makefile: Likewise.
18605         * math/Makefile: Likewise.
18606         * misc/Makefile: Likewise.
18607         * nptl/Makefile: Likewise.
18608         * sysdeps/mach/hurd/Makefile: Likewise.
18610         * configure.in: PWD_P is not used anymore.
18611         * config.make.in: Remove PWD_P entry.
18613         * configure.in: Remove last remnants of RANLIB.
18614         No need to check for signed size_t anymore.
18615         Don't set libc_commonpagesize and libc_relro_required here for Alpha
18616         and IA-64.
18617         Remove __builtin_expect test because we require at least gcc 3.4.
18618         * aclocal.m4: Likewise.
18620         * wcsmbs/mbrtoc16.c: Implement using towc function.
18621         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
18622         * wcsmbs/wcsmbsload.c: Likewise.
18623         * iconv/gconv_simple.c: Likewise.
18624         * iconv/gconv_int.h: Likewise.
18625         * iconv/gconv_builtin.h: Likewise.
18626         * iconv/iconv_prog.c: Remove CHAR16 handling.
18628         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
18630         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
18632         * configure.in: Remove --with-elf and --enable-bounded options.
18633         Dont set base_machine for ia64.  More non-ELF conditions removed.
18634         Remove testing and setting of leading underscore information.
18635         * config.make.in (build-bounded): Set to no.
18636         * config.h.in: Remove NO_UNDERSCORES entry.
18637         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
18638         them.
18639         * csu/start.c: Remove !NO_UNDERSCORE code.
18640         * locale/localeinfo.h: Likewise.
18641         * sysdeps/generic/machine-gmon.h: Likewise.
18642         * sysdeps/generic/sysdep.h: Likewise.
18643         * sysdeps/i386/sysdep.h: Likewise.
18644         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
18645         * sysdeps/mach/sysdep.h: Likewise.
18646         * sysdeps/s390/s390-32/sysdep.h: Likewise.
18647         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18648         * sysdeps/sh/sysdep.h: Likewise.
18649         * sysdeps/sparc/sparc32/alloca.S: Likewise.
18650         * sysdeps/unix/i386/sysdep.S: Likewise.
18651         * sysdeps/unix/sparc/start.c: Likewise.
18652         * sysdeps/unix/sparc/sysdep.S: Likewise.
18653         * sysdeps/unix/sparc/sysdep.h: Likewise.
18654         * sysdeps/unix/start.c: Likewise.
18655         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18656         * sysdeps/x86_64/sysdep.h: Likewise.
18658 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
18660         [BZ #13553]
18661         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
18662         for non-gcc.
18663         * argp/argp-fmtstream.h: Use const instead __const.
18664         * argp/argp.h: Likewise.
18665         * assert/assert.h: Likewise.
18666         * bits/fenv.h: Likewise.
18667         * bits/sched.h: Likewise.
18668         * bits/sigset.h: Likewise.
18669         * bits/sigthread.h: Likewise.
18670         * catgets/nl_types.h: Likewise.
18671         * conform/data/pthread.h-data: Likewise.
18672         * crypt/crypt-private.h: Likewise.
18673         * crypt/crypt.h: Likewise.
18674         * crypt/crypt_util.c: Likewise.
18675         * ctype/ctype.h: Likewise.
18676         * debug/execinfo.h: Likewise.
18677         * debug/mbsnrtowcs_chk.c: Likewise.
18678         * debug/mbsrtowcs_chk.c: Likewise.
18679         * debug/wcsnrtombs_chk.c: Likewise.
18680         * debug/wcsrtombs_chk.c: Likewise.
18681         * debug/wcstombs_chk.c: Likewise.
18682         * dirent/dirent.h: Likewise.
18683         * dlfcn/dlfcn.h: Likewise.
18684         * elf/neededtest4.c: Likewise.
18685         * grp/grp.h: Likewise.
18686         * gshadow/gshadow.h: Likewise.
18687         * iconv/gconv.h: Likewise.
18688         * iconv/gconv_int.h: Likewise.
18689         * iconv/gconv_simple.c: Likewise.
18690         * iconv/iconv.h: Likewise.
18691         * iconv/loop.c: Likewise.
18692         * iconv/skeleton.c: Likewise.
18693         * include/aio.h: Likewise.
18694         * include/aliases.h: Likewise.
18695         * include/argz.h: Likewise.
18696         * include/arpa/inet.h: Likewise.
18697         * include/assert.h: Likewise.
18698         * include/dirent.h: Likewise.
18699         * include/dlfcn.h: Likewise.
18700         * include/execinfo.h: Likewise.
18701         * include/fcntl.h: Likewise.
18702         * include/fenv.h: Likewise.
18703         * include/glob.h: Likewise.
18704         * include/grp.h: Likewise.
18705         * include/libintl.h: Likewise.
18706         * include/mntent.h: Likewise.
18707         * include/netdb.h: Likewise.
18708         * include/pwd.h: Likewise.
18709         * include/rpc/netdb.h: Likewise.
18710         * include/sched.h: Likewise.
18711         * include/search.h: Likewise.
18712         * include/shadow.h: Likewise.
18713         * include/signal.h: Likewise.
18714         * include/stdio.h: Likewise.
18715         * include/stdlib.h: Likewise.
18716         * include/string.h: Likewise.
18717         * include/sys/socket.h: Likewise.
18718         * include/sys/stat.h: Likewise.
18719         * include/sys/statfs.h: Likewise.
18720         * include/sys/statvfs.h: Likewise.
18721         * include/sys/syslog.h: Likewise.
18722         * include/sys/time.h: Likewise.
18723         * include/sys/uio.h: Likewise.
18724         * include/time.h: Likewise.
18725         * include/unistd.h: Likewise.
18726         * include/utmp.h: Likewise.
18727         * include/wchar.h: Likewise.
18728         * include/wctype.h: Likewise.
18729         * inet/aliases.h: Likewise.
18730         * inet/arpa/inet.h: Likewise.
18731         * inet/netinet/ether.h: Likewise.
18732         * inet/netinet/in.h: Likewise.
18733         * intl/libintl.h: Likewise.
18734         * io/bits/fcntl2.h: Likewise.
18735         * io/fcntl.h: Likewise.
18736         * io/ftw.h: Likewise.
18737         * io/sys/poll.h: Likewise.
18738         * io/sys/stat.h: Likewise.
18739         * io/sys/statfs.h: Likewise.
18740         * io/sys/statvfs.h: Likewise.
18741         * io/utime.h: Likewise.
18742         * libio/bits/stdio.h: Likewise.
18743         * libio/bits/stdio2.h: Likewise.
18744         * libio/libio.h: Likewise.
18745         * libio/libioP.h: Likewise.
18746         * libio/stdio.h: Likewise.
18747         * locale/lc-ctype.c: Likewise.
18748         * locale/locale.h: Likewise.
18749         * login/utmp.h: Likewise.
18750         * malloc/arena.c: Likewise.
18751         * malloc/malloc.c: Likewise.
18752         * malloc/malloc.h: Likewise.
18753         * malloc/mcheck.c: Likewise.
18754         * malloc/mtrace.c: Likewise.
18755         * math/bits/mathcalls.h: Likewise.
18756         * math/fenv.h: Likewise.
18757         * math/math_private.h: Likewise.
18758         * misc/bits/error.h: Likewise.
18759         * misc/bits/syslog.h: Likewise.
18760         * misc/err.h: Likewise.
18761         * misc/error.h: Likewise.
18762         * misc/fstab.h: Likewise.
18763         * misc/mntent.h: Likewise.
18764         * misc/regexp.h: Likewise.
18765         * misc/search.h: Likewise.
18766         * misc/sgtty.h: Likewise.
18767         * misc/sys/mman.h: Likewise.
18768         * misc/sys/syslog.h: Likewise.
18769         * misc/sys/uio.h: Likewise.
18770         * misc/sys/xattr.h: Likewise.
18771         * misc/ttyent.h: Likewise.
18772         * nis/rpcsvc/ypclnt.h: Likewise.
18773         * nss/nss.h: Likewise.
18774         * posix/bits/unistd.h: Likewise.
18775         * posix/fnmatch.h: Likewise.
18776         * posix/glob.h: Likewise.
18777         * posix/sched.h: Likewise.
18778         * posix/spawn.h: Likewise.
18779         * posix/sys/wait.h: Likewise.
18780         * posix/unistd.h: Likewise.
18781         * posix/wordexp.h: Likewise.
18782         * pwd/pwd.h: Likewise.
18783         * resolv/netdb.h: Likewise.
18784         * resource/sys/resource.h: Likewise.
18785         * rt/aio.h: Likewise.
18786         * rt/bits/mqueue2.h: Likewise.
18787         * rt/mqueue.h: Likewise.
18788         * shadow/shadow.h: Likewise.
18789         * signal/signal.h: Likewise.
18790         * socket/send.c: Likewise.
18791         * socket/sendto.c: Likewise.
18792         * socket/sys/socket.h: Likewise.
18793         * stdio-common/printf.h: Likewise.
18794         * stdlib/bits/stdlib.h: Likewise.
18795         * stdlib/fmtmsg.h: Likewise.
18796         * stdlib/monetary.h: Likewise.
18797         * stdlib/stdlib.h: Likewise.
18798         * stdlib/ucontext.h: Likewise.
18799         * streams/stropts.h: Likewise.
18800         * string/argz.h: Likewise.
18801         * string/bits/string2.h: Likewise.
18802         * string/string.h: Likewise.
18803         * string/strings.h: Likewise.
18804         * sunrpc/rpc/auth.h: Likewise.
18805         * sunrpc/rpc/auth_des.h: Likewise.
18806         * sunrpc/rpc/clnt.h: Likewise.
18807         * sunrpc/rpc/netdb.h: Likewise.
18808         * sunrpc/rpc/pmap_clnt.h: Likewise.
18809         * sunrpc/rpc/xdr.h: Likewise.
18810         * sysdeps/generic/inttypes.h: Likewise.
18811         * sysdeps/generic/net/if.h: Likewise.
18812         * sysdeps/generic/sys/swap.h: Likewise.
18813         * sysdeps/gnu/net/if.h: Likewise.
18814         * sysdeps/gnu/utmpx.h: Likewise.
18815         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
18816         * sysdeps/i386/i486/bits/string.h: Likewise.
18817         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
18818         * sysdeps/s390/bits/string.h: Likewise.
18819         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
18820         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
18821         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
18822         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
18823         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18824         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
18825         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
18826         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
18827         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
18828         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
18829         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
18830         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
18831         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
18832         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
18833         * sysdeps/unix/sysv/linux/readv.c: Likewise.
18834         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
18835         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
18836         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18837         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18838         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18839         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
18840         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
18841         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
18842         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
18843         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
18844         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
18845         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
18846         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
18847         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
18848         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
18849         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
18850         * sysvipc/sys/ipc.h: Likewise.
18851         * sysvipc/sys/msg.h: Likewise.
18852         * sysvipc/sys/sem.h: Likewise.
18853         * sysvipc/sys/shm.h: Likewise.
18854         * termios/termios.h: Likewise.
18855         * time/sys/time.h: Likewise.
18856         * time/time.h: Likewise.
18857         * wcsmbs/bits/wchar2.h: Likewise.
18858         * wcsmbs/uchar.h: Likewise.
18859         * wcsmbs/wchar.h: Likewise.
18860         * wctype/wctype.h: Likewise.
18862         [BZ #13551]
18863         * Makeconfig: Remove all but ELF support including AIX support.
18864         * Makerules: Likewise.
18865         * config.h.in: Likewise.
18866         * config.make.in: Likewise.
18867         * configure: Likewise.
18868         * configure.in: Likewise.
18869         * csu/Makefile: Likewise.
18870         * csu/version.c: Likewise.
18871         * debug/Makefile: Likewise.
18872         * dlfcn/Makefile: Likewise.
18873         * elf/Makefile: Likewise.
18874         * extra-lib.mk: Likewise.
18875         * iconv/Makefile: Likewise.
18876         * include/libc-symbols.h: Likewise.
18877         * include/shlib-compat.h: Likewise.
18878         * resolv/Makefile: Likewise.
18879         * resolv/res_libc.c: Likewise.
18880         * rt/Makefile: Likewise.
18881         * sysdeps/i386/asm-syntax.h: Likewise.
18882         * sysdeps/i386/sysdep.h: Likewise.
18883         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
18884         * sysdeps/mach/sysdep.h: Likewise.
18885         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
18886         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
18887         * sysdeps/s390/asm-syntax.h: Likewise.
18888         * sysdeps/s390/s390-32/sysdep.h: Likewise.
18889         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18890         * sysdeps/sh/sysdep.h: Likewise.
18891         * sysdeps/unix/sparc/sysdep.h: Likewise.
18892         * sysdeps/wordsize-32/divdi3.c: Likewise.
18893         * sysdeps/x86_64/sysdep.h: Likewise.
18895         * argp/Versions: Remove _argp_unlock_xxx.
18897         [BZ #13559]
18898         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
18899         * abilist/libBrokenLocale.abilist: Likewise.
18900         * abilist/libanl.abilist: Likewise.
18901         * abilist/libc.abilist: Likewise.
18902         * abilist/libcrypt.abilist: Likewise.
18903         * abilist/libdl.abilist: Likewise.
18904         * abilist/libm.abilist: Likewise.
18905         * abilist/libnsl.abilist: Likewise.
18906         * abilist/libpthread.abilist: Likewise.
18907         * abilist/libresolv.abilist: Likewise.
18908         * abilist/librt.abilist: Likewise.
18909         * abilist/libthread_db.abilist: Likewise.
18910         * abilist/libutil.abilist: Likewise.
18911         * abilist/libnss_db.abilist: New file.
18913         * scripts/abilist.awk: Add support for indirect functions.
18915         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
18917         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
18919         * shlib-versions: Remove entries for ports architectures.
18921         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
18922         files in ports.
18923         * elf/stackguard-macros.h: Remove support for IA-64.
18924         * elf/tst-auditmod1.c: Likewise.
18925         * sysdeps/generic/ldsodefs.h: Likewise.
18927         * sysdeps/unix/sysv/linux/configure.in: Ports should define
18928         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
18929         configure files.
18931         [BZ #13552]
18932         * configure.in: Remove --enable-omitfp support.
18933         * FAQ.in: Adjust.
18934         * config.make.in: Likewise.
18935         * Makeconfig: Likewise.
18936         * manual/install.texi: Likewise.
18938         In case anyone cares, the IA-64 architecture could move to ports.
18939         * sysdeps/ia64/*: Removed.
18940         * sysdeps/unix/sysv/linux/ia64/*: Removed.
18941         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
18943         [BZ #13555]
18944         * configure.in: Remove entries for unsupported architectures.
18946         [BZ #13533]
18947         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
18948         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
18949         routines.
18950         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
18951         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
18952         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
18953         fall back to using wcrtomb.
18954         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
18955         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
18956         renaming.
18957         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
18958         * wcsmbs/tst-c16c32-1.c: New file.
18960         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
18961         local variable.
18963         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
18965         * elf/tst-unique3.cc: Add explicit declaration of gets.
18966         * elf/tst-unique3lib.cc: Likewise.
18967         * elf/tst-unique3lib2.cc: Likewise.
18968         * elf/tst-unique4.cc: Likewise.
18970         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
18972 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
18974         [BZ #13566]
18975         * assert/assert.h (static_assert): Don't define for C++.
18976         * libio/stdio.h (gets): Do declare for C++ <= C++11.
18977         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
18979 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
18981         * iconv/loop.c (single loop): Fix assertion in storing of
18982         remaining bytes.
18984         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
18986 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
18988         * posix/getconf.c: Update copyright year.
18989         * nss/getent.c: Likewise.
18990         * nss/makedb.c: Likewise.
18991         * iconv/iconvconfig.c: Likewise.
18992         * iconv/iconv_prog.c: Likewise.
18993         * elf/ldconfig.c: Likewise.
18994         * elf/pldd.c: Likewise.
18995         * elf/sotruss.ksh: Likewise.
18996         * catgets/gencat.c: Likewise.
18997         * csu/version.c: Likewise.
18998         * elf/ldd.bash.in: Likewise.
18999         * elf/sprof.c (print_version): Likewise.
19000         * locale/programs/locale.c: Likewise.
19001         * locale/programs/localedef.c: Likewise.
19002         * login/programs/pt_chown.c: Likewise.
19003         * nscd/nscd.c (print_version): Likewise.
19004         * debug/xtrace.sh: Likewise.
19005         * malloc/memusage.sh: Likewise.
19006         * malloc/mtrace.pl: Likewise.
19007         * debug/catchsegv.sh: Likewise.
19009 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
19011         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
19012         pure attribute.
19014 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
19016         [BZ #13533]
19017         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
19018         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
19019         transformations.
19020         * iconv/gconv_int.h: Likewise.
19021         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
19022         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
19023         from libc for GLIBC_2.16.
19024         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
19025         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
19026         * wcsmbs/uchar.h: Really define mbstate_t.
19027         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
19028         * wcsmbs/c16rtomb.c: New file.
19029         * wcsmbs/mbrtoc16.c: New file.
19030         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
19031         for C/POSIX locale.
19032         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
19033         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
19035         * wcsmbs/wchar.h: Add missing __restrict.
19037 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
19039         [BZ #13532]
19040         * time/Makefile (routines): Add timespec_get.
19041         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
19042         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
19043         timespec for ISO C11.
19044         * time/timespec_get.c: New file.
19045         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
19046         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
19048         [BZ #13531]
19049         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
19050         * stdlib/stdlib.h: Declare aligned_alloc.
19051         * Versions.def: Add GLIBC_2.16 for libc.
19052         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
19054         [BZ 13527]
19055         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
19056         ISO C11.
19058         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
19059         code.
19061         [BZ #13528]
19062         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
19064         [BZ #13529]
19065         * assert/assert.h (static_assert): Define.
19067         * version.h: Update for 2.16 development version.
19069         [BZ #13526]
19070         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
19071         _ISOC11_SOURCE.
19073         * version.h (RELEASE): Bump for 2.15 release.
19074         * include/features.h (__GLIBC_MINOR__): Bump to 15.
19076         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
19077         Patch by Marek Polacek <mpolacek@redhat.com>.
19079         * bits/byteswap.h: Protect long long constants with __extension__.
19080         * sysdeps/i386/bits/byteswap.h: Likewise.
19081         * sysdeps/ia64/bits/byteswap.h: Likewise.
19082         * sysdeps/s390/bits/byteswap.h: Likewise.
19083         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19085 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19087         [BZ #13540]
19088         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
19089         destination buffer.
19090         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
19092 2011-12-23  Marek Polacek  <polacek@redhat.com>
19094         * elf/dl-addr.c (determine_info): Add inline keyword.
19095         * elf/tst-auditmod4b.c (check_avx): Likewise.
19096         * elf/tst-auditmod6b.c (check_avx): Likewise.
19097         * elf/tst-auditmod6c.c (check_avx): Likewise.
19098         * elf/tst-auditmod7b.c (check_avx): Likewise.
19100 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
19102         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
19103         !__SSE_MATH__.
19105 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19107         [BZ #13540]
19108         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
19109         processing for last bytes.
19111 2011-08-06  Bruno Haible  <bruno@clisp.org>
19113         [BZ #13061]
19114         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
19115         U+0385, not to U+1FEE.
19117         [BZ #13062]
19118         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
19119         entry for U+00A5 U+0301.
19121 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
19123         [BZ #13166]
19124         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
19125         buffer for the output is too small.
19127         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
19128         optimization.
19130         [BZ #13185]
19131         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
19132         SSE flags if possible.
19134 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19136         [BZ #13540]
19137         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
19138         processing for last bytes.
19140 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
19142         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
19143         (syscall-list-default-options, syscall-list-default-condition)
19144         (syscall-list-includes): Define.
19145         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
19146         list of ABIs and options and #if conditions for each ABI.  Do not
19147         handle common syscalls between ABIs specially.
19148         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
19149         Remove.
19150         (syscall-list-variants, syscall-list-32bit-options)
19151         (syscall-list-32bit-condition, syscall-list-64bit-options)
19152         (syscall-list-64bit-condition): Define.
19153         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
19154         (syscall-list-variants, syscall-list-32bit-options)
19155         (syscall-list-32bit-condition, syscall-list-64bit-options)
19156         (syscall-list-64bit-condition): Define.
19157         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
19158         Remove.
19159         (syscall-list-variants, syscall-list-32bit-options)
19160         (syscall-list-32bit-condition, syscall-list-64bit-options)
19161         (syscall-list-64bit-condition): Define.
19162         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
19163         Remove.
19164         (syscall-list-variants, syscall-list-32bit-options)
19165         (syscall-list-32bit-condition, syscall-list-64bit-options)
19166         (syscall-list-64bit-condition): Define.
19168 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
19170         * locale/iso-639.def: Add brx entry.
19172         [BZ #13328]
19173         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
19174         Proposed by Mariusz_Cukr <marcukr@op.pl>.
19176         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
19177         __feraiseexcept_renamed.
19179 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
19181         [BZ #13538]
19182         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
19183         EPOLLET with unsigned values.
19184         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19185         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19187         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
19188         to large cancellation.
19189         * math/s_cacoshf.c: Likewise.
19190         * math/s_cacoshl.c: Likewise.
19192 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
19194         [BZ #13305]
19195         [BZ #12786]
19196         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
19197         * math/s_cacoshf.c: Likewise.
19198         * math/s_cacoshl.c: Likewise.
19200 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
19202         [BZ #13439]
19203         * iconv/gconv.h: Define __GCONV_SWAP.
19204         * iconvdata/unicode.c: The swap bit must be stored in __flags.
19205         * iconvdata/utf-16.c: Likewise.
19206         * iconvdata/utf-32.c: Likewise.
19208 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
19210         [BZ #13524]
19211         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
19212         numerator after shifting it by one limb.
19214 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19216         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
19217         under [__USE_EXTERN_INLINES].
19219 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
19221         [BZ #13446]
19222         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
19224 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19226         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
19227         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
19228         optimized code.
19229         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
19230         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
19231         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
19232         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
19233         for strncasecmp/strncasecmp_l compilation.
19234         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
19235         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
19237 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
19239         [BZ #13484]
19240         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
19241         of __asm__.
19243 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
19245         [BZ #13506]
19246         * time/tzfile.c (__tzfile_read): Check values from file header.
19248 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19250         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
19251         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
19252         * powerpc/powerpc32/dl-start.S: Likewise.
19253         * powerpc/powerpc32/elf/start.S: Likewise.
19254         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
19255         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
19256         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
19257         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
19258         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
19259         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
19260         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
19261         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19262         * powerpc/powerpc32/fpu/s_round.S: Likewise.
19263         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
19264         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
19265         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
19266         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
19267         * powerpc/powerpc32/memset.S: Likewise.
19268         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
19269         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
19270         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
19271         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
19272         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
19273         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
19274         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
19275         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
19276         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
19277         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
19278         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
19279         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
19280         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
19282 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19284         * math/libm-test.inc: Added more nearbyint tests.
19285         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
19286         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
19287         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
19288         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
19290 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
19292         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
19293         FD_CLOEXEC.
19295 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19297         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
19298         Add wcscpy-ssse3 wcscpy-c.
19299         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
19300         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
19301         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
19302         * sysdeps/x86_64/wcschr.S: New file.
19303         * sysdeps/x86_64/wcsrchr.S: New file.
19304         * string/test-strcmp.c: Remove checking of wcscmp function for
19305         wrong alignments.
19306         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
19307         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
19308         wcsrchr-sse2 wcsrchr-c.
19309         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
19310         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
19311         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
19312         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
19313         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
19314         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
19315         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
19316         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
19317         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
19318         * wcsmbc/wcschr.c (WCSCHR): New macro.
19320 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19322         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
19323         * wcsmbs/test-wcsrchr.c: New file.
19324         * string/test-strrchr.c: Add wcsrchr support.
19325         (WIDE): New macro.
19326         * wcsmbs/test-wcscpy.c: New file.
19327         * string/test-strcpy.c: Add wcscpy support.
19328         (WIDE): New macro.
19330 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
19332         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
19333         the inner loop.
19335 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
19337         [BZ #13472]
19338         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
19340 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
19342         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
19343         Minor optimizations.
19345         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
19346         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
19347         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
19349 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
19351         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
19352         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
19353         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
19354         for gcc to avoid warnings.
19355         * inet/Makefile (tests): Add tst-checks.
19356         * inet/tst-checks.c: New file.
19358         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
19359         warning.
19361         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
19362         __wmemcmp_sse2.
19364         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
19365         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
19367         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
19369 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
19371         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
19372         problem.
19374         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
19376 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
19378         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
19379         conditional on GCC version.
19380         (__arch_compare_and_exchange_val_8_acq)
19381         (__arch_compare_and_exchange_val_16_acq)
19382         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
19383         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
19384         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
19386 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
19388         * sysdeps/sh/backtrace.c: New file.
19390 2011-12-02  Andreas Schwab  <schwab@redhat.com>
19392         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
19393         parenthesis.
19395 2011-12-01  Andreas Schwab  <schwab@redhat.com>
19397         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
19398         falling back to utime.
19400 2011-11-30  Andreas Schwab  <schwab@redhat.com>
19402         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
19403         expectations for float.
19405 2011-11-29  Andreas Schwab  <schwab@redhat.com>
19407         * locale/weight.h (findidx): Add parameter len.
19408         * locale/weightwc.h (findidx): Likewise.
19409         * posix/fnmatch_loop.c (FCT): Adjust caller.
19410         * posix/regcomp.c (build_equiv_class): Likewise.
19411         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
19412         * posix/regexec.c (check_node_accept_bytes): Likewise.
19413         * string/strcoll_l.c (STRCOLL): Likewise.
19414         * string/strxfrm_l.c (STRXFRM): Likewise.
19416 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
19418         * Makefile.in: Remove CVSOPT handling.
19419         * configure.in: Remove use of AC_REVISION.
19420         * iconvdata/Makefile (distribute): No need to filter out CVS.
19421         * scripts/list-sources.sh: Remove CVS, subversion and monotone
19422         handling.
19424 2011-11-16  Andreas Schwab  <schwab@redhat.com>
19426         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
19427         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
19428         [USE_AS_STRNCASECMP_L]: Likewise.
19429         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
19430         NO_TLS_DIRECT_SEG_REFS.
19431         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
19432         Fix argument offsets for non-PIC.
19433         [USE_AS_STRNCASECMP_L]: Likewise.
19434         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
19435         NO_TLS_DIRECT_SEG_REFS.
19437 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19439         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
19440         O_CLOEXEC.
19441         * locale/loadlocale.c (_nl_load_locale): Likewise.
19443 2011-11-15  Andreas Schwab  <schwab@redhat.com>
19445         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
19446         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
19447         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
19448         (SYSCALL_GETTIME): Set errno on error.
19450         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
19451         count references to noai6ai_cached.
19453 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
19455         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
19457         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
19458         FD_CLOEXEC for /proc/self/maps.
19460         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
19461         FD_CLOEXEC for /proc/meminfo.
19463         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
19464         gai.conf.
19466         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
19467         FD_CLOEXEC for given file.
19469         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
19471         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
19472         FD_CLOEXEC for /etc/hosts.
19473         (_gethtent): Likewise.
19475         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
19477         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
19478         cancellation and set FD_CLOEXEC for /etc/netgroup.
19480         * nss/nss_files/files-key.c (search): Don't allow cancellation when
19481         reading /etc/publickey.
19483         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
19484         allow cancellation when reading /etc/group.
19486         * nss/nss_files/files-alias.c (internal_setent): Don't allow
19487         cancellation.
19488         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
19490         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
19491         when using data file.
19493         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
19495         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
19496         (write_nis_obj): Use "c" and "e" in fopen.
19498         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
19500         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
19502         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
19504         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
19506         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
19507         locale.alias.
19509         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
19511         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
19513         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
19515         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
19516         file parsing and set FD_CLOEXEC.
19518 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19520         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
19522 2011-11-14  Andreas Schwab  <schwab@redhat.com>
19524         * malloc/arena.c (arena_get2): Don't call reused_arena when
19525         _int_new_arena failed.
19527 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
19529         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
19530         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
19531         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
19532         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19533         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19534         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
19535         to compile strcasecmp and strncasecmp.
19536         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
19537         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
19539         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
19541 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
19543         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
19544         locale-defines.sym to gen-as-const-headers.
19545         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
19546         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
19547         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
19548         to compile strcasecmp and strncasecmp.
19549         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
19550         strcasecmp_l and strncasecmp_l.
19551         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
19552         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
19553         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
19554         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
19555         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
19556         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
19557         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
19558         * sysdeps/i386/i686/multiarch/strncase.S: New file.
19559         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
19560         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
19561         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
19563 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
19565         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
19566         result of SYSDEP_GETTIME_CPU to retval.
19567         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
19568         parameter list to macro.  Remove trailing semicolon.  Adjust users.
19570         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
19571         variable.
19573         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
19574         mantissa words.
19575         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19577         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
19578         from unused variable.
19580         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
19581         DWARF definitions.
19582         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
19583         for assembling.
19585         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
19586         over namespaces.
19588         * sunrpc/rpc_prot.c (rejected): Fix case value.
19590         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
19591         unsigned long long int to avoid warnings in shift.
19593         * posix/regex_internal.c (re_string_reconstruct): Actually use result
19594         of use of trans.
19595         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
19596         variable tmp.
19598         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
19599         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
19600         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
19602         * nis/nis_table.c (nis_list): Use variable of correct type for
19603         result of __follow_path call.
19605 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19607         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
19608         of math functions ceil, trunc, floor, round, and sqrt, when
19609         avaliable on the platform.
19610         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
19611         name clash.
19612         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
19613         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
19614         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
19616 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
19618         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
19619         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
19621 2011-11-11  Roland McGrath  <roland@hack.frob.com>
19623         * include/unistd.h: Fix __readlink return type.
19624         Reported by Chris Metcalf <cmetcalf@tilera.com>.
19626 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
19628         * stdlib/ucontext.h: Undo last change for makecontext.
19630 2011-11-11  Andreas Schwab  <schwab@redhat.com>
19632         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
19634         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
19635         * setjmp/setjmp.h: Mark functions as non-leaf.
19636         * setjmp/bits/setjmp2.h: Likewise.
19637         * stdlib/ucontext.h: Likewise.
19639 2011-11-10  Andreas Schwab  <schwab@redhat.com>
19641         * malloc/arena.c (_int_new_arena): Don't increment narenas.
19642         (reused_arena): Don't check arena limit.
19643         (arena_get2): Atomically check arena limit.
19645 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
19647         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
19648         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
19650         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
19651         instructions.
19653 2011-11-07  Andreas Schwab  <schwab@redhat.com>
19655         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
19656         handler when locking.
19658         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
19659         Fix size of allocated buffer.
19661 2011-11-04  Andreas Schwab  <schwab@redhat.com>
19663         [BZ #10103]
19664         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
19665         declarations for long double functions.
19666         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
19668         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
19670 2011-11-03  Andreas Schwab  <schwab@redhat.com>
19672         * nscd/nscd.c (main): Don't start AVC thread until credentials are
19673         installed.
19675         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
19676         is disabled.
19678 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19680         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
19682 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
19684         * include/alloca.h (stackinfo_alloca_round): Define.
19685         (extend_alloca): Use it.
19686         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
19687         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
19688         here.
19690         * scripts/check-local-headers.sh: Ignore libaudit.h.
19692         * nscd/Makefile (extra-objs): Make recursively expanded.
19694 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
19696         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
19697         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
19699         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
19700         * posix/tst-rfc3484-2.c: Likewise.
19701         * posix/tst-rfc3484-3.c: Likewise.
19703         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19704         process_vm_writev.
19705         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
19706         process_vm_writev.
19707         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
19708         process_vm_writev from libc using GLIBC_2.15 version.
19710         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
19712 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
19714         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
19715         stack usage.
19717 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
19719         [BZ #13367]
19720         * nss/getent.c (initgroups_keys): Show error message in case no group
19721         names are given.
19723         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
19724         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
19725         __bump_nl_timestamp.
19726         * nscd/connections (nscd_init): When host database is served open
19727         netlink socket and request notification about configuration changes.
19728         (main_loop_poll): Track netlink file descriptor and bump timestamp
19729         in case data becomes available.
19730         (main_loop_epoll): Likewise.
19731         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
19732         (database_pers_head): Add extra_data fileds.
19733         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
19734         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
19735         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
19736         Adjust caller.
19737         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
19738         in6ai data, call __free_in6ai.
19739         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
19740         Add -DHAVE_NETLINK.
19741         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
19742         interface information.  Reuse previous data if netlink timestamp
19743         is not changed.
19744         (__bump_nl_timestamp): New function.
19745         (__free_in6ai): New function.
19747 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
19749         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
19750         close_not_cancel_no_status here.
19751         (__check_pf): Reorganize code a bit to not call close twice if OOM.
19753 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
19755         [BZ #13276]
19756         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
19757         return value.
19759         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
19760         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
19761         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
19763 2011-07-03  Andreas Jaeger  <aj@suse.de>
19765         [BZ #10709]
19766         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
19767         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
19768         * math/libm-test.inc (sin_test): Add test case.
19770 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
19772         [BZ #13337]
19773         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
19774         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
19776         * elf/chroot_canon.c (chroot_canon): Cleanups.
19778         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
19780         [BZ #13335]
19781         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
19782         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
19784         * string/test-strchr.c: Make usable for strchrnul testing.
19785         * string/test-strchrnul.c: New file.
19786         * string/Makefile (strop-tests): Add strchrnul.
19788         * po/it.po: Update from translation team.
19789         * po/es.po: Likewise.
19791 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
19793         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
19794         the three constants needed as parameters.  Drop the others.
19795         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
19796         __m128i_strloadu_tolower.
19797         Create and initialize variable zero and use it in all the places
19798         where _mm_setzero_si128 was used.
19800         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
19801         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
19802         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
19803         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
19804         anymore.
19805         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
19806         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
19807         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
19808         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
19809         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
19810         __mpranred, __mptan.
19811         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
19812         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
19813         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
19814         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
19815         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
19816         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
19817         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
19818         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
19819         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
19821 2011-10-28  Andreas Schwab  <schwab@redhat.com>
19823         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
19824         redefine if SHARED.
19825         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
19827         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
19828         wide char related routines to wcsmbs subdir.
19830 2011-10-27  Andreas Schwab  <schwab@redhat.com>
19832         [BZ #13344]
19833         * misc/sys/cdefs.h (__THROWNL): Define.
19834         * posix/unistd.h: Use __THREADNL instead of __THREAD
19835         for memory synchronization functions.
19837 2011-10-26  Roland McGrath  <roland@hack.frob.com>
19839         [BZ #13349]
19840         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
19841         doesn't exist.
19842         * manual/stdio.texi (Obstack Streams): Node removed.
19844 2011-10-26  Andreas Schwab  <schwab@redhat.com>
19846         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
19847         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19848         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19850         * math/math_private.h (math_force_eval): Allow non-addressable
19851         arguments.
19852         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
19854 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
19856         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
19857         file is not needed.
19859         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
19860         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
19861         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19862         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19863         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19864         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19865         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19866         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
19867         Add AVX variants.
19868         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
19869         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
19870         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
19871         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
19872         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
19873         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
19874         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
19875         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
19876         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
19877         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
19878         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
19879         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
19880         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
19881         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
19882         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
19883         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
19884         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
19885         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
19886         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
19888         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
19889         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
19891         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
19892         place.  Use VEX encoding when compiling for AVX.
19894 2011-10-25  Andreas Schwab  <schwab@redhat.com>
19896         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
19897         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
19899         * string/test-strchr.c (do_test): Don't generate NUL bytes.
19901 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
19903         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
19904         useless if() expression.
19905         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19906         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19907         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19908         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19909         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19910         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19911         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19912         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19913         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19914         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19915         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19916         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19917         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19918         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19919         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19920         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19921         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19922         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19923         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19925         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
19927 2011-10-25  Andreas Schwab  <schwab@redhat.com>
19929         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
19930         condition.
19931         * elf/dl-fini.c (_dl_sort_fini): Likewise.
19933 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
19935         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
19936         .text section.  Avoid duplicate constants.
19937         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19938         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19939         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19940         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19941         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19942         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19943         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19944         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19945         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
19946         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
19947         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
19948         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
19949         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
19950         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
19951         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
19952         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
19953         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
19954         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
19955         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19956         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19957         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19958         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19959         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19960         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
19961         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
19962         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
19963         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
19964         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
19965         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
19966         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
19967         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
19968         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
19969         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
19970         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
19971         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
19972         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
19973         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
19974         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
19975         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
19976         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
19977         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
19978         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
19979         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
19980         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19981         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
19983 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
19985         * sysdeps/x86_64/dla.h: Move to ...
19986         * sysdeps/x86_64/fpu/dla.h: ...here.
19987         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
19988         situations.  Use __builtin_fma only for gcc 4.6 and up.
19990         * config.make.in: Add have-mfma4 entry.
19991         * configure.in: Substitute libc_cv_cc_fma4.
19992         * math/Makefile (dbl-only-routines): Add sincostab.
19993         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
19994         Use __sincostab not sincos.
19995         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
19996         name is a macro.
19997         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19998         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19999         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20000         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
20001         using __copysign.
20002         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
20003         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
20004         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
20005         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
20006         and __inv.
20007         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
20008         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
20009         __copysign.
20010         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
20011         define aliases when function name is a macro.
20012         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
20013         sysdeps/ieee754/dbl-64/sincos.tbl.
20014         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
20015         fma4-enabled routines.
20016         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
20017         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
20018         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
20019         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
20020         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
20021         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
20022         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
20023         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
20024         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
20025         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
20026         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
20027         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
20028         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
20029         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
20030         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
20031         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
20032         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
20033         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
20034         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
20035         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
20036         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
20037         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
20038         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
20039         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
20040         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
20041         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
20042         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
20043         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
20044         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
20045         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
20047         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
20048         rename.
20049         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20050         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20051         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20052         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20053         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20054         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20055         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20056         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20058 2011-10-24  Andreas Schwab  <schwab@redhat.com>
20060         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
20062 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20064         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
20066         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
20067         prediction.
20068         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
20070         * string/strnlen.c: Don't define STRNLEN, reverse logic.
20071         Remove unused variable magic_bits.
20072         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
20074         * string/strnlen.c: Define and use STRNLEN macro.
20075         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
20076         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
20077         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
20078         * wcsmbs/wcslen.c: Define and use WCSLEN.
20079         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
20080         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
20081         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
20082         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
20083         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
20084         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
20085         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
20087 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20089         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20090         strnlen-sse2-no-bsf.
20091         Rename strlen-no-bsf to strlen-sse2-no-bsf.
20092         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
20093         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
20094         Add strnlen support.
20095         (USE_AS_STRNLEN): New macro.
20096         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
20097         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
20098         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
20099         * sysdeps/x86_64/wcslen.S: New file.
20101 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
20103         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
20104         XMM-moves are used for copying on small sizes.
20106 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20108         * wcsmbs/Makefile (strop-tests): Add wcschr.
20109         * wcsmbs/test-wcschr.c: New file.
20110         * string/test-strchr.c: Update.
20111         Add wcschr support.
20112         (WIDE): New macro.
20114 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20116         * wcsmbs/Makefile (strop-tests): Add wcslen.
20117         * wcsmbs/test-wcslen.c: New file.
20118         * string/test-strlen.c: Update.
20119         Add wcslen support.
20120         (WIDE): New macro.
20122 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20124         * po/it.po: Update from translation team.
20126 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20128         * sysdeps/x86_64/wcscmp.S: Update.
20129         Fix wrong comparison semantics.
20130         wcscmp shall use signed comparison not unsigned.
20131         Don't use substraction to avoid overflow bug.
20132         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
20133         * wcsmbc/wcscmp.c: Likewise.
20134         * string/test-strcmp.c: Likewise.
20135         Add new tests to check cases with negative values.
20137 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
20139         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
20140         * sysdeps/x86_64/dla.h: ...here.  New file.
20141         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
20142         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20143         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20144         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20145         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20146         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20147         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20148         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20149         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20151 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
20153         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
20154         __ynl_finite aliases.
20156 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
20158         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20160         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
20161         define DLA_FMA.
20162         [DLA_FMA] (EMULV): Use DLA_FMA.
20163         [DLA_FMA] (MUL12): Use EMULV.
20164         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
20165         that are not needed.
20166         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20167         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20168         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20169         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20170         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20171         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20172         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20174 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
20176         * math/s_nan.c: Undef __nan.
20177         * math/s_nanf.c: Undef __nanf.
20178         * math/s_nanl.c: Undef __nanl.
20179         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
20180         "math_private.h".
20182 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
20184         * math/s_catan.c: Add branch predictions.
20185         * math/s_catanf.c: Likewise.
20186         * math/s_catanh.c: Likewise.
20187         * math/s_catanhf.c: Likewise.
20188         * math/s_catanhl.c: Likewise.
20189         * math/s_catanl.c: Likewise.
20190         * math/s_cexp.c: Likewise.
20191         * math/s_cexpf.c: Likewise.
20192         * math/s_cexpl.c: Likewise.
20193         * math/s_clog.c: Likewise.
20194         * math/s_clog10.c: Likewise.
20195         * math/s_clog10f.c: Likewise.
20196         * math/s_clog10l.c: Likewise.
20197         * math/s_clogf.c: Likewise.
20198         * math/s_clogl.c: Likewise.
20199         * math/s_csqrt.c: Likewise.
20200         * math/s_csqrtf.c: Likewise.
20201         * math/s_csqrtl.c: Likewise.
20202         * math/s_ctanf.c: Likewise.
20203         * math/s_ctanh.c: Likewise.
20204         * math/s_ctanhf.c: Likewise.
20205         * math/s_ctanhl.c: Likewise.
20206         * math/s_ctanl.c: Likewise.
20208         * math/math_private.h: Define __nan, __nanf, __nanl.
20209         * math/s_cacosh.c: Include <math_private.h>.
20210         * math/s_cacoshl.c: Likewise.
20211         * math/s_casinh.c: Likewise.
20212         * math/s_casinhf.c: Likewise.
20213         * math/s_casinhl.c: Likewise.
20214         * math/s_ccos.c: Rely entire on ccosh.
20215         * math/s_ccosf.c: Rely entire on ccoshf.
20216         * math/s_ccosl.c: Rely entirely on ccoshl.
20217         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
20218         Remove tests for FE_INVALID.
20219         * math/s_ccoshf.c: Likewise.
20220         * math/s_ccoshl.c: Likewise.
20221         * math/s_csin.c: Likewise.
20222         * math/s_csinf.c: Likewise.
20223         * math/s_csinh.c Likewise.
20224         * math/s_csinhf.c: Likewise.
20225         * math/s_csinhl.c: Likewise.
20226         * math/s_csinl.c: Likewise.
20227         * math/s_ctan.c: Likewise.
20228         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
20229         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
20230         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
20232 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
20234         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
20235         compilation problems.
20237         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
20238         __builtin_expect.
20240 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
20242         * sysdeps/i386/configure.in: Test for -mfma4 option.
20243         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
20244         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
20245         COMMON_CPUID_INDEX_80000001.
20246         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
20247         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
20248         use it if FMA3 is not supported.
20249         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20251         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
20252         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20254 2011-10-20  Andreas Schwab  <schwab@redhat.com>
20256         [BZ #12892]
20257         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
20258         it would create a cycle with a link time dependency.
20260 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
20262         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
20263         instruction.
20264         * string/Makefile (strop-tests): Add rawmemchr.
20265         * string/test-rawmemchr.c: New file.
20267         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
20268         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
20269         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
20270         when compiling str{,n}casecmp and when AVX is available.  Hook up
20271         new optimized code in initializers.
20273 2011-10-19  Andreas Schwab  <schwab@redhat.com>
20275         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
20276         __feraiseexcept instead of feraiseexcept.
20278 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
20280         * math/math_private.h: Define defaults for libc_fetestexcept and
20281         libc_feupdateenv.
20282         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
20283         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
20284         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
20285         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20286         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20287         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
20288         libc_fetestexcept and libc_feupdateenv.
20290         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
20291         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
20292         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
20293         * sysdeps/x86_64/fpu/math_private.h: Define special version of
20294         libc_feholdexcept_setround.
20296         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
20297         Add s_nearbyint-c and s_nearbyintf-c.
20298         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
20299         nearbyintf inlines.
20300         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
20301         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
20302         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
20303         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
20305         * math/math_private.h: Define defaults for libc_fegetround,
20306         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
20307         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
20308         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
20309         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
20310         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
20311         standard functions.
20312         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20313         Remove comments and hacks for old compiler versions.
20314         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
20315         libc_fegetround, libc_fesetround, libc_feholdexcept, and
20316         libc_feholdexceptl.
20318 2011-10-18  Andreas Schwab  <schwab@redhat.com>
20320         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
20321         (__feraiseexcept_renamed): Add __NTH.
20322         (feraiseexcept): Add __NTH.  Rename local variables to fix
20323         namespace violations.
20325 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
20327         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
20329         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
20331         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
20332         recently added interfaces.
20333         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
20335         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
20336         about macro parameter expansion.
20338         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
20339         __NO_MATH_INLINES is defined.  Cleanups.
20341         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
20342         and __floorf is target has SSE4.1.
20343         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
20344         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
20345         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
20346         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
20348         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
20349         name.
20350         (floorf): Likewise.
20352         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
20354 2011-10-17  Andreas Schwab  <schwab@redhat.com>
20356         * misc/sys/cdefs.h: Fix last change.
20358         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
20359         database lookup.
20361 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
20363         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
20365         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
20366         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20367         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20368         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20369         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20370         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20371         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20372         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20373         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20374         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
20375         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
20376         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
20377         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
20378         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
20379         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
20380         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
20381         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
20382         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
20383         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
20384         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
20385         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
20386         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
20388         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
20389         ceil, ceilf, floor, floorf.
20391         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
20392         Perform IRELATIVE relocations last.
20394         * elf/do-rel.h: Add another parameter nrelative, replacing the
20395         local variable with the same name.  Change name of the function
20396         to end in Rel or Rela (uppercase).
20397         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
20398         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
20399         elf_dynamic_do_##reloc function.
20401 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20403         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
20404         is sufficient, at least on modern CPUs.
20406         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
20408         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
20409         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
20411         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
20412         __expl_finite.
20413         * math/bits/math-finite.h: Add entries for exp.
20414         * math/e_expl.c: Add __*_finite alias.
20415         * sysdeps/i386/fpu/e_exp.S: Likewise.
20416         * sysdeps/i386/fpu/e_expf.S: Likewise.
20417         * sysdeps/i386/fpu/e_expl.c: Likewise.
20418         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20419         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20420         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
20421         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20422         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
20423         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20424         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20426         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
20427         is sufficient, at least on modern CPUs.
20429         * ctype/ctype-info.c (__ctype_init): Define.
20430         * include/ctype.h (__ctype_init): Declare.
20431         (__ctype_b_loc): The variable is always initialized.
20432         (__ctype_toupper_loc): Likewise.
20433         (__ctype_tolower_loc): Likewise.
20434         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
20435         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
20437 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
20439         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
20441         * configure.in: Also look in $cxxmachine/include for C++ system
20442         headers.
20444 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20446         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
20447         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
20448         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
20449         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
20450         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
20451         (USE_AS_WMEMCMP): New macro.
20452         Fixing indents.
20453         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
20454         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
20455         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
20456         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
20457         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20458         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
20459         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
20460         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
20461         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
20462         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
20463         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
20464         (USE_AS_WMEMCMP): New macro.
20465         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
20466         * sysdeps/string/test-memcmp.c: Update.
20467         Fix simple_wmemcmp.
20468         Add new tests.
20469         * wcsmbs/wmemcmp.c: Update.
20470         (WMEMCMP): New macro.
20471         Fix overflow bug.
20473 2011-10-12  Andreas Jaeger  <aj@suse.de>
20475         [BZ #13268]
20476         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
20478 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
20480         * libio/iofwide.c (do_length): Avoid warning.
20482         * ctype/ctype.h (__isctype_f): Add missing __THROW.
20484 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
20486         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
20488         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
20489         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
20490         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
20491         * sysdeps/i386/i686/fpu/e_log.S: New file.
20492         * sysdeps/i386/i686/fpu/e_logf.S: New file.
20493         * sysdeps/i386/i686/fpu/e_logl.S: New file.
20495         * ctype/ctype.h: Add support for inlined isXXX functions when
20496         compiling C++ code.
20498 2011-10-14  Andreas Schwab  <schwab@redhat.com>
20500         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20502         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
20504 2011-10-13  Roland McGrath  <roland@hack.frob.com>
20506         [BZ #13291]
20507         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
20509 2011-10-13  Andreas Schwab  <schwab@redhat.com>
20511         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
20512         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
20513         feraiseexcept.
20515         * sysdeps/x86_64/memrchr.S: Check for zero size.
20517         * string/stratcliff.c: Add memrchr tests.
20519 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20521         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20522         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
20523         rawmemchr-sse2 rawmemchr-sse2-bsf.
20524         * sysdeps/i386/i686/multiarch/memchr.S: New file.
20525         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
20526         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
20527         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
20528         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
20529         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
20530         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
20531         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
20532         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
20533         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
20534         * string/memrchr.c (MEMRCHR): New macro.
20536 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
20538         Add integration with gcc's -ffinite-math-only and optimize wrapper
20539         functions in libm.
20540         * Versions.def: Define GLIBC_2.15 version for libm.
20541         * math/Makefile (headers): Add bits/math-finite.h.
20542         * math/bits/math-finite.h: New file.
20543         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
20544         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
20545         * math/e_acoshl.c: Add __*_finite alias.
20546         * math/e_acosl.c: Likewise.
20547         * math/e_asinl.c: Likewise.
20548         * math/e_atan2l.c: Likewise.
20549         * math/e_atanhl.c: Likewise.
20550         * math/e_coshl.c: Likewise.
20551         * math/e_exp10.c: Likewise.
20552         * math/e_exp10f.c: Likewise.
20553         * math/e_exp10l.c: Likewise.
20554         * math/e_exp2l.c: Likewise.
20555         * math/e_fmodl.c: Likewise.
20556         * math/e_gammal_r.c: Likewise.
20557         * math/e_hypotl.c: Likewise.
20558         * math/e_j0l.c: Likewise.
20559         * math/e_j1l.c: Likewise.
20560         * math/e_jnl.c: Likewise.
20561         * math/e_lgammal_r.c: Likewise.
20562         * math/e_log10l.c: Likewise.
20563         * math/e_log2l.c: Likewise.
20564         * math/e_logl.c: Likewise.
20565         * math/e_powl.c: Likewise.
20566         * math/e_sinhl.c: Likewise.
20567         * math/e_sqrtl.c: Likewise.
20568         * math/e_scalb.c: Completely rewritten and optimized.
20569         * math/e_scalbf.c: Likewise.
20570         * math/e_scalbl.c: Likewise.
20571         * math/w_acos.c: Likewise.
20572         * math/w_acosf.c: Likewise.
20573         * math/w_acosl.c: Likewise.
20574         * math/w_acosh.c: Likewise.
20575         * math/w_acoshf.c: Likewise.
20576         * math/w_acoshl.c: Likewise.
20577         * math/w_asin.c: Likewise.
20578         * math/w_asinf.c: Likewise.
20579         * math/w_asinl.c: Likewise.
20580         * math/w_atan2.c: Likewise.
20581         * math/w_atan2f.c: Likewise.
20582         * math/w_atan2l.c: Likewise.
20583         * math/w_atanh.c: Likewise.
20584         * math/w_atanhf.c: Likewise.
20585         * math/w_atanhl.c: Likewise.
20586         * math/w_exp10.c: Likewise.
20587         * math/w_exp10f.c: Likewise.
20588         * math/w_exp10l.c: Likewise.
20589         * math/w_fmod.c: Likewise.
20590         * math/w_fmodf.c: Likewise.
20591         * math/w_fmodl.c: Likewise.
20592         * math/w_j0.c: Likewise.
20593         * math/w_j0f.c: Likewise.
20594         * math/w_j0l.c: Likewise.
20595         * math/w_j1.c: Likewise.
20596         * math/w_j1f.c: Likewise.
20597         * math/w_j1l.c: Likewise.
20598         * math/w_jn.c: Likewise.
20599         * math/w_jnf.c: Likewise.
20600         * math/w_log.c: Likewise.
20601         * math/w_logf.c: Likewise.
20602         * math/w_logl.c: Likewise.
20603         * math/w_log10.c: Likewise.
20604         * math/w_log10f.c: Likewise.
20605         * math/w_log10l.c: Likewise.
20606         * math/w_log2.c: Likewise.
20607         * math/w_log2f.c: Likewise.
20608         * math/w_log2l.c: Likewise.
20609         * math/w_pow.c: Likewise.
20610         * math/w_powf.c: Likewise.
20611         * math/w_powl.c: Likewise.
20612         * math/w_remainder.c: Likewise.
20613         * math/w_remainderf.c: Likewise.
20614         * math/w_remainderl.c: Likewise.
20615         * math/w_scalb.c: Likewise.
20616         * math/w_scalbf.c: Likewise.
20617         * math/w_scalbl.c: Likewise.
20618         * math/w_sqrt.c: Likewise.
20619         * math/w_sqrtf.c: Likewise.
20620         * math/w_sqrtl.c: Likewise.
20621         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
20622         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
20623         used.
20624         * math/math_private.h: Declare __kernel_standard_f.
20625         * math/w_cosh.c: Remove cruft and optimize a bit.
20626         * math/w_coshf.c: Likewise.
20627         * math/w_coshl.c: Likewise.
20628         * math/w_exp2.c: Likewise.
20629         * math/w_exp2f.c: Likewise.
20630         * math/w_exp2l.c: Likewise.
20631         * math/w_hypot.c: Likewise.
20632         * math/w_hypotf.c: Likewise.
20633         * math/w_hypotl.c: Likewise.
20634         * math/w_lgamma.c: Likewise.
20635         * math/w_lgamma_r.c: Likewise.
20636         * math/w_lgammaf.c: Likewise.
20637         * math/w_lgammaf_r.c: Likewise.
20638         * math/w_lgammal.c: Likewise.
20639         * math/w_lgammal_r.c: Likewise.
20640         * math/w_sinh.c: Likewise.
20641         * math/w_sinhf.c: Likewise.
20642         * math/w_sinhl.c: Likewise.
20643         * math/w_tgamma.c: Likewise.
20644         * math/w_tgammaf.c: Likewise.
20645         * math/w_tgammal.c: Likewise.
20646         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20647         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20648         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
20649         Minor optimizations.  Pretty printing.  Remove cruft.
20650         * sysdeps/i386/fpu/e_acosf.S: Likewise.
20651         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20652         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20653         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20654         * sysdeps/i386/fpu/e_acosl.c: Likewise.
20655         * sysdeps/i386/fpu/e_asin.S: Likewise.
20656         * sysdeps/i386/fpu/e_asinf.S: Likewise.
20657         * sysdeps/i386/fpu/e_atan2.S: Likewise.
20658         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
20659         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
20660         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20661         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20662         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20663         * sysdeps/i386/fpu/e_exp10.S: Likewise.
20664         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
20665         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
20666         * sysdeps/i386/fpu/e_exp2.S: Likewise.
20667         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
20668         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
20669         * sysdeps/i386/fpu/e_fmod.S: Likewise.
20670         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
20671         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
20672         * sysdeps/i386/fpu/e_hypot.S: Likewise.
20673         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
20674         * sysdeps/i386/fpu/e_log.S: Likewise.
20675         * sysdeps/i386/fpu/e_log10.S: Likewise.
20676         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20677         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20678         * sysdeps/i386/fpu/e_log2.S: Likewise.
20679         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20680         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20681         * sysdeps/i386/fpu/e_logf.S: Likewise.
20682         * sysdeps/i386/fpu/e_logl.S: Likewise.
20683         * sysdeps/i386/fpu/e_pow.S: Likewise.
20684         * sysdeps/i386/fpu/e_powf.S: Likewise.
20685         * sysdeps/i386/fpu/e_powl.S: Likewise.
20686         * sysdeps/i386/fpu/e_remainder.S: Likewise.
20687         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
20688         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
20689         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20690         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20691         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20692         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
20693         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
20694         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
20695         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
20696         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20697         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20698         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
20699         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20700         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
20701         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
20702         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
20703         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20704         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20705         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20706         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
20707         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20708         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
20709         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
20710         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20711         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
20712         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
20713         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20714         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20715         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
20716         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
20717         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20718         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20719         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
20720         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
20721         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
20722         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
20723         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
20724         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
20725         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20726         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20727         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20728         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
20729         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
20730         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
20731         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
20732         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
20733         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
20734         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
20735         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
20736         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
20737         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
20738         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
20739         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20740         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
20741         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
20742         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
20743         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
20744         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
20745         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
20746         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20747         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20748         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20749         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20750         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
20751         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
20752         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
20753         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
20754         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
20755         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
20756         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
20757         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20758         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20759         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
20760         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
20761         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
20762         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
20763         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
20764         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
20765         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
20766         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
20767         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
20768         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
20769         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
20770         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20771         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
20772         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
20773         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20774         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
20775         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20776         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
20777         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
20778         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20779         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20780         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20781         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20782         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
20783         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
20784         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
20785         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20786         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
20787         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20788         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
20789         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
20790         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
20791         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
20792         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20793         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20794         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20795         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
20796         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
20797         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
20798         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
20799         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20800         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20801         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20802         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20803         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
20804         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20805         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
20806         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
20807         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
20808         (__isnanf): Likewise.
20809         (__isinf_ns): Likewise.
20810         (__isinf_nsf): Likewise.
20811         (__finite): Likewise.
20812         (__finitef): Likewise.
20813         (__ieee754_sqrt): Define as macro.
20814         (__ieee754_sqrtf): Define as macro.
20815         (__ieee754_sqrtl): Define as macro.
20816         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
20817         inlined copy.
20818         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
20819         __FINITE_MATH_ONLY__ consistent.
20820         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
20822 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
20824         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
20825         of rawmemchr.
20827         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
20829 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
20831         * po/ja.po: Update from translation team.
20833 2011-10-08  Roland McGrath  <roland@hack.frob.com>
20835         * locale/programs/locarchive.c (prepare_address_space): New function.
20836         (create_archive, enlarge_archive, open_archive): Use it.
20838         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
20839         inside [SHARED], where it is used.
20841         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
20843         * nss/getent.c (netgroup_keys): Remove unused variable.
20844         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
20846 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
20848         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
20849         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
20850         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
20851         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
20852         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
20853         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
20854         * math/Makefile (libm-calls): Add s_isinf_ns.
20855         * math/divtc3.c: Use __isinf_nsl instead of isinf.
20856         * math/multc3.c: Likewise.
20857         * math/s_casin.c: Likewise.
20858         * math/s_casinf.c: Likewise.
20859         * math/s_casinl.c: Likewise.
20860         * math/s_ccos.c: Likewise.
20861         * math/s_ccosf.c: Likewise.
20862         * math/s_ccosl.c: Likewise.
20863         * math/s_ctan.c: Likewise.
20864         * math/s_ctanf.c: Likewise.
20865         * math/s_ctanh.c: Likewise.
20866         * math/s_ctanhf.c: Likewise.
20867         * math/s_ctanhl.c: Likewise.
20868         * math/s_ctanl.c: Likewise.
20869         * math/w_fmod.c: Likewise.
20870         * math/w_fmodf.c: Likewise.
20871         * math/w_fmodl.c: Likewise.
20872         * math/w_remainder.c: Likewise.
20873         * math/w_remainderf.c: Likewise.
20874         * math/w_remainderl.c: Likewise.
20875         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
20876         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
20877         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
20878         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
20879         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
20880         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
20881         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
20882         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
20884         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
20885         of the number.
20886         * stdio-common/printf_fphex.c: Likewise.
20887         * stdio-common/printf_size.c: Likewise.
20889         * math/e_exp10.c: Include math_private.h using <...> not "...".
20890         * math/e_exp10f.c: Likewise.
20891         * math/e_exp10l.c: Likewise.
20892         * math/e_exp2l.c: Likewise.
20893         * math/e_j0l.c: Likewise.
20894         * math/e_j1l.c: Likewise.
20895         * math/e_jnl.c: Likewise.
20896         * math/e_lgammal_r.c: Likewise.
20897         * math/e_rem_pio2l.c: Likewise.
20898         * math/e_scalb.c: Likewise.
20899         * math/e_scalbf.c: Likewise.
20900         * math/e_scalbl.c: Likewise.
20901         * math/k_cosl.c: Likewise.
20902         * math/k_sinl.c: Likewise.
20903         * math/k_tanl.c: Likewise.
20904         * math/s_cacoshf.c: Likewise.
20905         * math/s_catan.c: Likewise.
20906         * math/s_catanf.c: Likewise.
20907         * math/s_catanh.c: Likewise.
20908         * math/s_catanhf.c: Likewise.
20909         * math/s_catanhl.c: Likewise.
20910         * math/s_catanl.c: Likewise.
20911         * math/s_ccosh.c: Likewise.
20912         * math/s_ccoshf.c: Likewise.
20913         * math/s_ccoshl.c: Likewise.
20914         * math/s_cexp.c: Likewise.
20915         * math/s_cexpf.c: Likewise.
20916         * math/s_cexpl.c: Likewise.
20917         * math/s_clog.c: Likewise.
20918         * math/s_clog10.c: Likewise.
20919         * math/s_clog10f.c: Likewise.
20920         * math/s_clog10l.c: Likewise.
20921         * math/s_clogf.c: Likewise.
20922         * math/s_clogl.c: Likewise.
20923         * math/s_csin.c: Likewise.
20924         * math/s_csinf.c: Likewise.
20925         * math/s_csinh.c: Likewise.
20926         * math/s_csinhf.c: Likewise.
20927         * math/s_csinhl.c: Likewise.
20928         * math/s_csinl.c: Likewise.
20929         * math/s_csqrt.c: Likewise.
20930         * math/s_csqrtf.c: Likewise.
20931         * math/s_csqrtl.c: Likewise.
20932         * math/s_ctan.c: Likewise.
20933         * math/s_ctanf.c: Likewise.
20934         * math/s_ctanh.c: Likewise.
20935         * math/s_ctanhf.c: Likewise.
20936         * math/s_ctanhl.c: Likewise.
20937         * math/s_ctanl.c: Likewise.
20938         * math/s_ldexp.c: Likewise.
20939         * math/s_ldexpf.c: Likewise.
20940         * math/s_ldexpl.c: Likewise.
20941         * math/s_significand.c: Likewise.
20942         * math/s_significandf.c: Likewise.
20943         * math/s_significandl.c: Likewise.
20944         * math/w_acos.c: Likewise.
20945         * math/w_acosf.c: Likewise.
20946         * math/w_acosh.c: Likewise.
20947         * math/w_acoshf.c: Likewise.
20948         * math/w_acoshl.c: Likewise.
20949         * math/w_acosl.c: Likewise.
20950         * math/w_asin.c: Likewise.
20951         * math/w_asinf.c: Likewise.
20952         * math/w_asinl.c: Likewise.
20953         * math/w_atan2.c: Likewise.
20954         * math/w_atan2f.c: Likewise.
20955         * math/w_atan2l.c: Likewise.
20956         * math/w_atanh.c: Likewise.
20957         * math/w_atanhf.c: Likewise.
20958         * math/w_atanhl.c: Likewise.
20959         * math/w_cosh.c: Likewise.
20960         * math/w_coshf.c: Likewise.
20961         * math/w_coshl.c: Likewise.
20962         * math/w_dremf.c: Likewise.
20963         * math/w_exp10.c: Likewise.
20964         * math/w_exp10f.c: Likewise.
20965         * math/w_exp10l.c: Likewise.
20966         * math/w_exp2.c: Likewise.
20967         * math/w_exp2f.c: Likewise.
20968         * math/w_fmod.c: Likewise.
20969         * math/w_fmodf.c: Likewise.
20970         * math/w_fmodl.c: Likewise.
20971         * math/w_hypot.c: Likewise.
20972         * math/w_hypotf.c: Likewise.
20973         * math/w_hypotl.c: Likewise.
20974         * math/w_j0.c: Likewise.
20975         * math/w_j0f.c: Likewise.
20976         * math/w_j0l.c: Likewise.
20977         * math/w_j1.c: Likewise.
20978         * math/w_j1f.c: Likewise.
20979         * math/w_j1l.c: Likewise.
20980         * math/w_jn.c: Likewise.
20981         * math/w_jnf.c: Likewise.
20982         * math/w_jnl.c: Likewise.
20983         * math/w_lgamma.c: Likewise.
20984         * math/w_lgamma_r.c: Likewise.
20985         * math/w_lgammaf.c: Likewise.
20986         * math/w_lgammaf_r.c: Likewise.
20987         * math/w_lgammal.c: Likewise.
20988         * math/w_lgammal_r.c: Likewise.
20989         * math/w_log.c: Likewise.
20990         * math/w_log10.c: Likewise.
20991         * math/w_log10f.c: Likewise.
20992         * math/w_log10l.c: Likewise.
20993         * math/w_log2.c: Likewise.
20994         * math/w_log2f.c: Likewise.
20995         * math/w_log2l.c: Likewise.
20996         * math/w_logf.c: Likewise.
20997         * math/w_logl.c: Likewise.
20998         * math/w_pow.c: Likewise.
20999         * math/w_powf.c: Likewise.
21000         * math/w_powl.c: Likewise.
21001         * math/w_remainder.c: Likewise.
21002         * math/w_remainderf.c: Likewise.
21003         * math/w_remainderl.c: Likewise.
21004         * math/w_scalb.c: Likewise.
21005         * math/w_scalbf.c: Likewise.
21006         * math/w_scalbl.c: Likewise.
21007         * math/w_sinh.c: Likewise.
21008         * math/w_sinhf.c: Likewise.
21009         * math/w_sinhl.c: Likewise.
21010         * math/w_sqrt.c: Likewise.
21011         * math/w_sqrtf.c: Likewise.
21012         * math/w_sqrtl.c: Likewise.
21013         * math/w_tgamma.c: Likewise.
21014         * math/w_tgammaf.c: Likewise.
21015         * math/w_tgammal.c: Likewise.
21017         * po/ja.po: Update from translation team.
21019 2011-09-29  Andreas Jaeger  <aj@suse.de>
21021         [BZ #13179]
21022         * sunrpc/netname.c (netname2host): Fix logic.
21024         [BZ #6779]
21025         [BZ #6783]
21026         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
21027         correctly.
21028         * math/w_remainder.c (__remainder): Likewise.
21029         * math/w_remainderf.c (__remainderf): Likewise.
21030         * math/libm-test.inc (remainder_test): Add test cases.
21032 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21034         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
21035         sdiv_qrnnd.
21037 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
21039         * string/test-memcmp.c: Avoid unncessary #defines.
21040         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
21042 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21044         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
21045         Use new sse2 version for core i3 - i7 as it's faster
21046         than sse42 version.
21047         (bit_Prefer_PMINUB_for_stringop): New.
21048         * sysdeps/x86_64/rawmemchr.S: Update.
21049         Replace with faster SSE2 version.
21050         * sysdeps/x86_64/memrchr.S: New file.
21051         * sysdeps/x86_64/memchr.S: Update.
21052         Replace with faster SSE2 version.
21054 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
21056         * elf/dl-load.c (lose): Add cast to avoid warning.
21058 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
21060         * po/ca.po: Update from translation team.
21062         * inet/getnetgrent_r.c: Hook up nscd.
21063         * nscd/Makefile (routines): Add nscd_netgroup.
21064         (nscd-modules): Add netgroupcache.
21065         (CFLAGS-netgroupcache.c): Define.
21066         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
21067         (cache_search): Add const to second parameter.
21068         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
21069         INNETGR.
21070         (dbs): Add netgrdb entry.
21071         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
21072         (verify_persistent_db): Handle netgrdb.
21073         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
21074         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
21075         GETFDNETGR.
21076         (netgroup_response_header): Define.
21077         (innetgroup_response_header): Define.
21078         (datahead): Add netgroup_response_header and innetgroup_response_header
21079         elements.
21080         * nscd/nscd.conf: Add entries for netgroup cache.
21081         * nscd/nscd.h (dbtype): Add netgrdb.
21082         (_PATH_NSCD_NETGROUP_DB): Define.
21083         (netgroup_iov_disabled): Declare.
21084         (xmalloc, xcalloc, xrealloc): Move declarations here.
21085         (cache_search): Adjust prototype.
21086         Add netgroup-related prototypes.
21087         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
21088         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
21089         (__nscd_innetgr): Declare.
21090         * nscd/selinux.c (perms): Use access_vector_t as element type and
21091         add netgroup-related initializers.
21092         * nscd/netgroupcache.c: New file.
21093         * nscd/nscd_netgroup.c: New file.
21094         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
21095         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
21096         For four parameters use innetgr.
21097         * nss/nss_files/files-init.c: Add definition and callback for netgr.
21098         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
21099         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
21100         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
21102         * nscd/connections.c (register_traced_file): Don't register file
21103         for disabled databases.
21105 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
21107         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
21109         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
21110         from tree and freeing node.
21112 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
21114         * nss/nsswitch.c (__nss_database_lookup): Handle
21115         nss_parse_service_list out of memory case.
21117 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
21119         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
21120         out of memory case.
21122 2011-10-04  Andreas Schwab  <schwab@redhat.com>
21124         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
21125         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
21126         pass it down.
21127         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
21128         elf_machine_rela, elf_machine_lazy_rel.
21129         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
21130         (ELF_DYNAMIC_DO_REL): Likewise.
21131         (ELF_DYNAMIC_DO_RELA): Likewise.
21132         (ELF_DYNAMIC_RELOCATE): Likewise.
21133         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
21134         to ELF_DYNAMIC_DO_REL.
21135         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
21136         (dl_main): In trace mode always set __RTLD_NOIFUNC.
21137         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
21138         elf_machine_rela.
21139         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
21140         skip_ifunc, don't call ifunc function if non-zero.
21141         (elf_machine_rela): Likewise.
21142         (elf_machine_lazy_rel): Likewise.
21143         (elf_machine_lazy_rela): Likewise.
21144         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
21145         (elf_machine_lazy_rel): Likewise.
21146         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
21147         Likewise.
21148         (elf_machine_lazy_rel): Likewise.
21149         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21150         Likewise.
21151         (elf_machine_lazy_rel): Likewise.
21152         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
21153         (elf_machine_lazy_rel): Likewise.
21154         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
21155         (elf_machine_lazy_rel): Likewise.
21156         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
21157         (elf_machine_lazy_rel): Likewise.
21158         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
21159         (elf_machine_lazy_rel): Likewise.
21160         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
21161         (elf_machine_lazy_rel): Likewise.
21162         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
21163         (elf_machine_lazy_rel): Likewise.
21165 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
21167         * nss/nss_files/files-init.c (_nss_files_init): Use static
21168         initialization for all the *_traced_file variables.
21170 2011-09-28  Andreas Schwab  <schwab@redhat.com>
21172         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21174 2011-09-27  Roland McGrath  <roland@hack.frob.com>
21176         [BZ #13226]
21177         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
21179 2011-09-27  Andreas Schwab  <schwab@redhat.com>
21181         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
21182         Reread the line before reparsing it.
21184 2011-09-26  Andreas Schwab  <schwab@redhat.com>
21186         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
21188 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
21189             Maxim Kuvyrkov  <maxim@codesourcery.com>
21190             Joseph Myers  <joseph@codesourcery.com>
21192         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
21193         if needed for __stack_chk_guard.
21195 2011-09-19  Roland McGrath  <roland@hack.frob.com>
21197         * sysdeps/posix/spawni.c (script_execute): Always define it.
21198         It will be optimized away if unused.
21199         (maybe_script_execute): New function.
21200         (__spawni): Call it.
21202         * Makerules: Don't include tls.make.
21203         (config-tls): Always set to thread.
21204         * tls.make.c: File removed.
21206 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
21208         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
21209         * config.make.in (CPPFLAGS-config): New substituted variable.
21211 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
21213         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
21215         [BZ #13192]
21216         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
21217         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
21219 2011-09-15  Roland McGrath  <roland@hack.frob.com>
21221         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
21222         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
21223         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21224         (CALL_FAIL): Likewise.
21225         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
21226         (CALL_FAIL): Macro removed.
21227         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
21229 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
21231         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
21232         for __FINITE_MATH_ONLY__ == 1.
21234 2011-09-15  Andreas Schwab  <schwab@redhat.com>
21236         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
21237         __ieee754_sqrt instead of sqrt.
21238         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
21239         __ieee754_sqrtf instead of sqrtf.
21240         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
21241         __floorf instead of floorf.
21242         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
21243         __floorf, __truncf instead of floorf, truncf.
21245 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
21247         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
21249         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
21250         __extern_always_inline.
21251         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
21252         32-bit.
21254 2011-09-14  Andreas Schwab  <schwab@redhat.com>
21256         * elf/rtld.c (dl_main): Also relocate in dependency order when
21257         doing symbol dependency testing.
21259 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
21261         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21262         Always define `refsym'.
21264 2011-09-13  Andreas Schwab  <schwab@redhat.com>
21266         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
21267         (__FD_ELT): Renamed from __FDELT.
21268         * misc/bits/select2.h (__FD_ELT): Likewise.
21269         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
21270         __FD_MASK instead of __FDELT, __FDMASK.
21271         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
21272         Likewise.
21273         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
21274         Likewise.
21276         * elf/Makefile (gen-ldd): Fix pattern.
21278         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
21279         (init_tls): Likewise.
21281 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
21283         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
21285 2011-09-12  Andreas Schwab  <schwab@redhat.com>
21287         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
21288         `struct cmsghdr *' instead of `void *'.
21289         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
21290         Likewise.
21292 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
21294         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
21295         if non-absolute.
21296         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
21297         ldd_rewrite_script.
21299 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
21301         * configure.in: Remove --with-tls option.
21302         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
21303         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
21304         out in case it is missing.
21305         * sysdeps/ia64/elf/configure.in: Likewise.
21306         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
21307         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
21308         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
21309         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
21310         * sysdeps/sh/elf/configure.in: Likewise.
21311         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
21312         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21313         * sysdeps/x86_64/elf/configure.in: Likewise.
21314         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
21315         * sysdeps/mach/hurd/tls.h: Likewise.
21317         [BZ #13067]
21318         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
21320         [BZ #13090]
21321         * configure.in: Fix use of AC_INIT.
21323         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
21325 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
21327         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
21328         __set_errno.
21329         * malloc/hooks.c: Likewise.
21331         [BZ #11929]
21332         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
21333         variables statically.
21334         (narenas): Initialize.
21335         (list_lock): Initialize.
21336         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
21337         initializtion of main_arena and list_lock.  Small cleanups.
21338         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
21339         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
21340         Add initializers to main_arena and mp_.
21341         (malloc_state): Remove pagesize member.  Change all users to use
21342         GLRO(dl_pagesize).
21344         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
21345         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
21346         is always initialized.
21348         * malloc/malloc.c: Removed unused configurations and dead code.
21349         * malloc/arena.c: Likewise.
21350         * malloc/hooks.c: Likewise.
21351         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
21353         * include/tls.h: Removed.  USE___THREAD must always be defined.
21354         * bits/libc-tsd.h: Don't handle !USE___THREAD.
21355         * elf/dl-libc.c: Likewise.
21356         * elf/dl-tsd.c: Likewise.
21357         * include/errno.h: Likewise.
21358         * include/netdb.h: Likewise.
21359         * include/resolv.h: Likewise.
21360         * inet/herrno-loc.c: Likewise.
21361         * inet/herrno.c: Likewise.
21362         * malloc/arena.c: Likewise.
21363         * malloc/hooks.c: Likewise.
21364         * malloc/malloc.c: Likewise.
21365         * resolv/res-state.c: Likewise.
21366         * resolv/res_libc.c: Likewise.
21367         * sysdeps/i386/dl-machine.h: Likewise.
21368         * sysdeps/ia64/dl-machine.h: Likewise.
21369         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
21370         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
21371         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
21372         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
21373         * sysdeps/sh/dl-machine.h: Likewise.
21374         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
21375         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
21376         * sysdeps/unix/i386/sysdep.S: Likewise.
21377         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
21378         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
21379         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
21380         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21381         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
21382         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
21383         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
21384         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
21385         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21386         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
21387         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21388         * sysdeps/x86_64/dl-machine.h: Likewise.
21389         * tls.make.c: Likewise.
21391         * configure.in: Remove --with-__thread option.  Make tests for
21392         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
21393         tls_model attribute fail if no support is available.  Remove
21394         USE_IN_LIBIO.
21395         * Makeconfig: Adjust for dropped configure option.  All features are
21396         now mandatory.
21397         * Makerules: Likewise.
21398         * Versions.def: Likewise.
21399         * argp/argp-fmtstream.c: Likewise.
21400         * argp/argp-fmtstream.h: Likewise.
21401         * argp/argp-help.c: Likewise.
21402         * assert/assert.c: Likewise.
21403         * config.h.in: Likewise.
21404         * config.make.in: Likewise.
21405         * configure: Likewise.
21406         * configure.in: Likewise.
21407         * csu/Versions: Likewise.
21408         * csu/init.c: Likewise.
21409         * elf/tst-audit2.c: Likewise.
21410         * elf/tst-tls10.c: Likewise.
21411         * elf/tst-tls10.h: Likewise.
21412         * elf/tst-tls11.c: Likewise.
21413         * elf/tst-tls12.c: Likewise.
21414         * elf/tst-tls14.c: Likewise.
21415         * elf/tst-tlsmod11.c: Likewise.
21416         * elf/tst-tlsmod12.c: Likewise.
21417         * elf/tst-tlsmod13.c: Likewise.
21418         * elf/tst-tlsmod13a.c: Likewise.
21419         * elf/tst-tlsmod14a.c: Likewise.
21420         * elf/tst-tlsmod15b.c: Likewise.
21421         * elf/tst-tlsmod16a.c: Likewise.
21422         * elf/tst-tlsmod16b.c: Likewise.
21423         * elf/tst-tlsmod7.c: Likewise.
21424         * elf/tst-tlsmod8.c: Likewise.
21425         * elf/tst-tlsmod9.c: Likewise.
21426         * gmon/gmon.c: Likewise.
21427         * grp/fgetgrent_r.c: Likewise.
21428         * grp/putgrent.c: Likewise.
21429         * hurd/fopenport.c: Likewise.
21430         * include/libc-symbols.h: Likewise.
21431         * include/tls.h: Likewise.
21432         * intl/gettextP.h: Likewise.
21433         * intl/loadinfo.h: Likewise.
21434         * locale/global-locale.c: Likewise.
21435         * locale/localeinfo.h: Likewise.
21436         * mach/devstream.c: Likewise.
21437         * malloc/arena.c: Likewise.
21438         * malloc/set-freeres.c: Likewise.
21439         * misc/err.c: Likewise.
21440         * misc/getttyent.c: Likewise.
21441         * misc/mntent_r.c: Likewise.
21442         * posix/getopt.c: Likewise.
21443         * posix/wordexp.c: Likewise.
21444         * pwd/fgetpwent_r.c: Likewise.
21445         * resolv/Versions: Likewise.
21446         * resolv/res_hconf.c: Likewise.
21447         * shadow/fgetspent_r.c: Likewise.
21448         * shadow/putspent.c: Likewise.
21449         * stdio-common/printf_fphex.c: Likewise.
21450         * stdio-common/tmpfile.c: Likewise.
21451         * stdlib/abort.c: Likewise.
21452         * stdlib/fmtmsg.c: Likewise.
21453         * sunrpc/auth_unix.c: Likewise.
21454         * sunrpc/clnt_perr.c: Likewise.
21455         * sunrpc/clnt_tcp.c: Likewise.
21456         * sunrpc/clnt_udp.c: Likewise.
21457         * sunrpc/clnt_unix.c: Likewise.
21458         * sunrpc/openchild.c: Likewise.
21459         * sunrpc/svc_simple.c: Likewise.
21460         * sunrpc/svc_tcp.c: Likewise.
21461         * sunrpc/svc_udp.c: Likewise.
21462         * sunrpc/svc_unix.c: Likewise.
21463         * sunrpc/xdr.c: Likewise.
21464         * sunrpc/xdr_array.c: Likewise.
21465         * sunrpc/xdr_rec.c: Likewise.
21466         * sunrpc/xdr_ref.c: Likewise.
21467         * sunrpc/xdr_stdio.c: Likewise.
21469 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21471         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21473 2011-07-03  Andreas Jaeger  <aj@suse.de>
21475         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
21476         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
21477         regenerate with gen-libm-tests.pl.
21479 2010-05-12  Petr Baudis  <pasky@suse.cz>
21481         [BZ #11589]
21482         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
21483         around j0() zero points by switching to j1().
21484         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21485         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21486         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21487         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21489 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21491         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
21492         instead of 0.
21493         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
21494         instead of 0.
21495         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21496         Patch in part by Pavel Roskin <proski@gnu.org>.
21498         [BZ #13138]
21499         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
21500         realloc.
21501         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
21502         Free memory block if necessary.
21504         [BZ #12847]
21505         * libio/genops.c (INTDEF): For string streams the _lock pointer can
21506         be NULL.  Don't lock in this case.
21508 2011-09-09  Roland McGrath  <roland@hack.frob.com>
21510         * elf/elf.h (ELFOSABI_GNU): New macro.
21511         (ELFOSABI_LINUX): Define to that.
21513 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
21515         * string/strncat.c (strncat): Undef the symbol in case it has been
21516         defined in bits/string.h.
21518 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
21520         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
21522         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
21523         link map.
21525 2011-08-17  Andreas Jaeger  <aj@suse.de>
21527         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
21529 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
21530             Ian Lance Taylor  <iant@google.com>
21532         * math/libm-test.inc (lround_test): New testcase.
21533         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
21535 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
21537         * Makefile: Remove support for automatic cvs check-ins.
21538         * Makerules: Likewise.
21539         * config.make.in: Likewise.
21540         * configure.in: Likewise.
21541         * intl/Makefile: Likewise.
21542         * locale/Makefile: Likewise.
21543         * po/Makefile: Likewise.
21544         * posix/Makefile: Likewise.
21545         * sysdeps/gnu/Makefile: Likewise.
21546         * sysdeps/mach/hurd/Makefile: Likewise.
21547         * sysdeps/sparc/sparc32/Makefile: Likewise.
21549         [BZ #13118]
21550         * posix/Makefile (bug-regex32-ENV): Define.
21551         Patch by John Stanley <jpsinthemix@verizon.net>.
21553         * misc/Makefile (headers): Add bits/select2.h.
21554         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
21555         * misc/bits/select2.h: New file.
21556         * include/bits/select2.h: New file.
21557         * debug/Makefile (routines): Add fdelt_chk.
21558         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
21559         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
21560         FD_ISSET.
21561         * debug/fdelt_chk.c: New file.
21563         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
21564         * wcsmbs/test-wmemcmp.c: Likewise.
21565         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
21566         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
21568 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21570         * string/Makefile (strop-tests): Add memcmp.
21571         * string/test-wmemcmp.c: New file.
21572         * string/test-memcmp.c: Add wmemcmp support.
21574 2011-09-08  Roland McGrath  <roland@hack.frob.com>
21576         [BZ #13153]
21577         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
21578         2011-07-19 change.
21580         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
21581         garbage value in a __mach_port_mod_refs call in the cases of the
21582         task-self and thread-self ports.
21584 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21586         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
21588 2011-09-08  Andreas Schwab  <schwab@redhat.com>
21590         * elf/dl-load.c (lose): Check for non-null L.
21592 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
21594         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
21596         * elf/dl-libc.c (dlerror_run): Pass back error code from
21597         dl_catch_error.
21599         [BZ #13123]
21600         * elf/dl-load.c (lose): Free l_origin if it is valid.
21602         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
21603         names.
21604         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
21605         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
21606         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
21607         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
21608         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
21609         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
21611 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21613         * sysdeps/powerpc/fpu/e_hypot.c: New file.
21614         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
21615         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
21616         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
21617         * sysdeps/powerpc/fpu/k_cosf.c: New file.
21618         * sysdeps/powerpc/fpu/k_sinf.c: New file.
21619         * sysdeps/powerpc/fpu/s_cosf.c: New file.
21620         * sysdeps/powerpc/fpu/s_sinf.c: New file.
21621         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
21622         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
21624 2011-08-15  Alan Modra  <amodra@gmail.com>
21626         [BZ #13092]
21627         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
21628         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
21629         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
21630         ppc_mcount to static-only-routines.
21631         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
21632         __mcount_internal.
21633         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
21634         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
21636 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
21638         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
21639         for finite and infinity parameters.
21641 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21643         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
21644         and add nop instructions for throughput optimization.
21645         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
21647 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
21649         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
21650         aligned copy for power7 with vector-scalar instructions.
21651         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
21653 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
21655         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
21656         AVX check.
21658 2011-09-07  Andreas Schwab  <schwab@redhat.com>
21660         [BZ #13144]
21661         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
21662         last change.
21664 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
21666         * sysdeps/unix/sysv/linux/x86_64/init-first.c
21667         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
21668         syscall wrapper around clock_gettime in __vdso_clock_gettime.
21669         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
21670         clock_gettime.
21672 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
21674         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
21675         Forgot to demangle the pointer.
21677         * sysdeps/i386/sysdep.h: Define atom_text_section.
21678         * sysdeps/x86_64/sysdep.h: Likewise.
21679         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
21680         section with atom_text_section.
21681         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
21682         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
21683         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
21684         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
21685         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
21687         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
21688         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
21689         already be defined.  Change to take two parameters and don't assign
21690         result to variable.  Adjust all users.
21691         Define INTERNAL_GETTIME if not already defined.
21692         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
21693         call.
21694         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
21695         HAVE_CLOCK_GETTIME_VSYSCALL.
21696         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
21698         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
21699         gettimeofday vsyscall, just use time.
21701 2011-09-06  Andreas Schwab  <schwab@redhat.com>
21703         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
21704         <errno.h>.
21706 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
21708         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
21709         syscall on x86-64.
21710         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
21711         syscall.
21712         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
21713         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
21714         syscall if possible.
21716 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
21718         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
21719         e_ident.  Don't pass to find_mapsXX.
21720         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
21722 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21724         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21725         strchr-sse2-no-bsf strrchr-sse2-no-bsf
21726         * sysdeps/x86_64/multiarch/strchr.S: Update.
21727         Check bit_slow_BSF bit.
21728         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
21729         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
21730         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
21732 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
21734         [BZ #13134]
21735         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
21736         before glibc 2.15.
21737         (tryshell): Define.
21738         (__spawni): Change last parameter to be flag.  Test
21739         SPAWN_XFLAGS_USE_PATH flag to use path or not.
21740         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
21741         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
21742         * posix/spawni.c: Likewise.
21743         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
21744         * posix/spawnp.c: Likewise.  Change normal version to use
21745         SPAWN_XFLAGS_USE_PATH.
21746         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
21747         SPAWN_XFLAGS_TRY_SHELL.
21749         [BZ #13150]
21750         * posix/glob.h: Remove gcc 1.x support.
21752         [BZ #13068]
21753         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
21755 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21757         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21758         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
21759         strrchr-sse2-bsf
21760         * sysdeps/i386/i686/multiarch/strchr.S: New file.
21761         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
21762         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
21763         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
21764         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
21765         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
21767 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21769         * sysdeps/x86_64/wcscmp.S: New file.
21771         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
21772         wcscmp-c wcscmp-sse2
21773         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
21774         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
21775         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
21776         * wcsmbs/wcscmp.c: Allow renaming.
21778 2011-09-05  David S. Miller  <davem@davemloft.net>
21780         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
21781         stack slot, rather than the struct return pointer slot.
21782         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
21783         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
21784         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
21785         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
21787 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
21789         * po/ja.po: Update from translation team.
21791         [BZ #13144]
21792         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
21793         kernel in 64-bit binaries.
21795 2011-09-01  David S. Miller  <davem@davemloft.net>
21797         * elf/elf.h (HWCAP_SPARC_*): Move to..
21798         * sysdeps/sparc/sysdep.h: this new file and add new values.
21799         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
21800         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
21801         _DL_HWCAP_COUNT to 24.
21802         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
21803         entries.
21804         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
21805         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
21806         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
21807         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
21808         instead of magic constants.
21809         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21811 2011-08-31  David S. Miller  <davem@davemloft.net>
21813         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
21814         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
21815         Reimplement to do errno handling inline.
21816         (SYSCALL_ERROR_HANDLER): New macro.
21817         (__SYSCALL_STRING): Do not do errno handling in asm.
21818         (__CLONE_SYSCALL_STRING): Delete.
21819         (__INTERNAL_SYSCALL_STRING): Delete.
21820         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
21821         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
21822         (PSEUDO): Reimplement to do errno handling inline.
21823         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
21824         (SYSCALL_ERROR_HANDLER): New macro.
21825         (__SYSCALL_STRING): Do not do errno handling in asm.
21826         (__CLONE_SYSCALL_STRING): Delete.
21827         (__INTERNAL_SYSCALL_STRING): Delete.
21828         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
21829         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
21830         i386.
21831         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
21832         (inline_syscall*): Add 'err' argument.
21833         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
21834         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
21835         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
21836         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
21838         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
21839         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21841 2011-08-30  Andreas Schwab  <schwab@redhat.com>
21843         * elf/rtld.c (dl_main): Relocate objects in dependency order.
21845 2011-08-29  Jiri Olsa <jolsa@redhat.com>
21847         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
21848         directive.
21850 2011-08-24  David S. Miller  <davem@davemloft.net>
21852         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
21854 2011-08-24  Andreas Schwab  <schwab@redhat.com>
21856         * elf/Makefile: Add rules to build and run unload8 test.
21857         * elf/unload8.c: New file.
21858         * elf/unload8mod1.c: New file.
21859         * elf/unload8mod1x.c: New file.
21860         * elf/unload8mod2.c: New file.
21861         * elf/unload8mod3.c: New file.
21863         * elf/dl-close.c (_dl_close_worker): Reset private search list if
21864         it wasn't used.
21866 2011-08-23  David S. Miller  <davem@davemloft.net>
21868         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
21869         subtract stack bias.
21870         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
21871         %sp not %fp in calculations.
21872         (_JMPBUF_UNWINDS_ADJ): Likewise.
21874         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
21875         (aio_suspend): Call it to force an exception region around the
21876         AIO_MISC_WAIT() invocation.
21878 2011-08-23  Andreas Schwab  <schwab@redhat.com>
21880         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
21881         backslash.
21883 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
21885         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
21886         protection macro.
21887         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
21888         and <dl-machine.h>.
21889         (Elf64_FuncDesc): Remove.
21891 2011-08-22  David S. Miller  <davem@davemloft.net>
21893         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
21894         sigaltstack check, add missing cfi directives.
21895         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
21896         missing cfi directives, and sigaltstack handling.
21898 2011-08-16  Andreas Schwab  <schwab@redhat.com>
21900         [BZ #11724]
21901         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
21902         object is seen twice.
21903         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21905         * elf/Makefile (distribute): Add tst-initorder2.c.
21906         (tests): Add tst-initorder2.
21907         (modules-names): Add tst-initorder2a tst-initorder2b
21908         tst-initorder2c tst-initorder2d.  Add rules to build them.
21909         ($(objpfx)tst-initorder2.out): New rule.
21910         * elf/tst-initorder2.c: New file.
21911         * elf/tst-initorder2.exp: New file.
21913 2011-08-22  Andreas Schwab  <schwab@redhat.com>
21915         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
21917         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
21918         dependencies back to end of function.
21920         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21921         $(elfobjdir)/ld.so.
21923 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
21925         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
21926         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
21927         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
21928         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
21929         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
21930         of __vdso_gettimeofday.
21931         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
21932         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
21933         attribute_hidden.
21934         (_libc_vdso_platform_setup): Remove initialization of
21935         __vdso_gettimeofday and __vdso_time.
21937 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
21939         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
21940         and fgetc_unlocked.
21941         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
21942         getc_unlocked.
21944         * elf/dl-open.c (add_to_global): Report additions to the global scope
21945         for LD_DEBUG=scopes.
21946         (dl_open_worker): Also print scope of newly loaded dependencies.
21947         (_dl_show_scope): Indicate if there is no scope.
21949         [BZ #13114]
21950         * stdio-common/Makefile (tests): Add bug24.
21951         * stdio-common/bug24.c: New file.
21953 2011-08-19  Andreas Jaeger  <aj@suse.de>
21955         [BZ #13114]
21956         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
21957         non-existant file when using close-on-exec mode.
21959 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
21961         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
21962         the very first instruction.
21964         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
21965         the CFI state in the end.
21966         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
21967         inclusion of dl-trampoline.h.
21968         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
21970 2011-08-19  Andreas Schwab  <schwab@redhat.com>
21972         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
21973         expectations for long double.
21975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
21976         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
21978 2011-08-14  David S. Miller  <davem@davemloft.net>
21980         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
21981         artificual limit depends upon the system page size.
21983 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
21985         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
21986         * resolv/Makefile: Define CFLAGS-libresolv.
21988 2011-08-17  Andreas Schwab  <schwab@redhat.com>
21990         * nss/makedb.c (compute_tables): Make variables used in nested
21991         function static.
21993 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
21995         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
21996         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
21997         if buffer was too small.
21999         * elf/pldd.c (main): Attach to all threads in the process.
22000         Rewrite /proc handling to use *at functions.
22002 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
22004         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
22005         specifies first scope to show.
22006         (dl_open_worker): Update callers.  Move printing scope of new
22007         object to before the relocation.
22008         * elf/rtld.c (dl_main): Update _dl_show_scope call.
22009         * sysdeps/generic/ldsodefs.h: Update declaration.
22011         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
22012         string for the scope number.
22014 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
22016         * nscd/servicescache.c (cache_addserv): Make sure written is always
22017         initialized.
22019 2011-08-14  Roland McGrath  <roland@hack.frob.com>
22021         * sysdeps/i386/i486/bits/atomic.h
22022         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
22023         statement expression, so as to suppress "set but not used" warning.
22024         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
22026         * string/strncat.c (STRNCAT): Use prototype definition.
22028         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
22029         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
22030         -Iprograms here.
22031         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
22032         (localedef-modules): Add localedef.
22033         (locale-modules): Add locale.
22035         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
22036         * elf/rtld.c (dl_main): Invert order of assignment in last change,
22037         to avoid a warning.
22039 2011-08-14  David S. Miller  <davem@davemloft.net>
22041         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
22042         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
22044 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
22046         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
22047         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
22048         * elf/rtld.c (dl_main): Set l_name of vDSO.
22049         Call _dl_show_scope when DL_DEBUG_SCOPES.
22050         (process_dl_debug): Recognize scopes flag and also set it for all.
22051         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
22052         Declare _dl_show_scope.
22054         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
22055         (do_dlopen): Pass caller_dlopen to dl_open.
22056         (__libc_dlopen_mode): Initialize caller_dlopen.
22058         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
22059         of libc.  Make tolower call locale-independent.  Optimize a bit by
22060         using isdigit instead of isalnum.
22061         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
22063 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
22065         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
22066         was a dependency or dynamically loaded.
22068 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
22070         * intl/l10nflist.c: Allow architecture-specific pop function.
22071         * sysdeps/x86_64/l10nflist.c: New file.
22073         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
22074         classification.
22076 2011-08-10  Andreas Schwab  <schwab@redhat.com>
22078         * include/dirent.h: Add libc_hidden_proto for scandirat and
22079         scandirat64.  Don't declare __scandirat64.
22080         * dirent/scandirat.c: Add libc_hidden_def.
22081         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
22082         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
22084 2011-08-10  David S. Miller  <davem@davemloft.net>
22086         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
22087         enum.
22088         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22089         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22090         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22092 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
22094         * Versions.def [libc]: Add GLIBC_2.15.
22095         * dirent/Makefile (routines): Add scandirat and scandirat64.
22096         * dirent/Versions [libc]: Export scandirat and scandirat64 for
22097         GLIBC_2.15.
22098         * dirent/dirent.h: Declare scandirat and scandirat64.
22099         * dirent/scandirat.c: New file.
22100         * dirent/scandirat64.c: New file.
22101         * sysdeps/wordsize-64/scandirat.c: New file.
22102         * sysdeps/wordsize-64/scandirat64.c: New file.
22103         * dirent/opendir.c: Define opendirat.
22104         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
22105         using scandirat.
22106         * dirent/scandir64.c: Adjust for scandir.c change.
22107         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
22108         __scandirat64, and __scandir_cancel_handler.
22109         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
22110         additional parameter and use openat instead of open (outside of ld.so).
22111         Add new __opendir as wrapper around __opendirat.
22112         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
22113         here without requiring old scandirat implementation.
22115 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
22117         * dirent/scandir.c (cancel_handler): Renamed to
22118         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
22119         defined.  Adjust users.
22120         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
22121         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
22123 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
22125         * string/test-string.h (IMPL): Use __STRING to expand name and then
22126         stringify it.
22128         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
22129         of cleanups.
22131 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22133         * string/Makefile: Update.
22134         (strop-tests): Append strncat.
22135         * string/test-wcscmp.c: New file.
22136         New comprehensive test for wcscmp.
22137         * string/test-strcmp.c: Update.
22138         (WIDE): New define.
22140 2011-07-22  Andreas Schwab  <schwab@redhat.com>
22142         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
22143         line.
22145 2011-07-26  Andreas Schwab  <schwab@redhat.com>
22147         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
22148         encoding to ACE if AI_IDN.
22150 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
22152         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
22153         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
22155 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22157         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
22158         Fix overflow bug in strncat.
22159         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
22161         * string/test-strncat.c: Update.
22162         Add new tests for checking overflow bugs.
22164 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22166         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22167         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
22168         * sysdeps/i386/i686/multiarch/strcat.S: New file.
22169         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
22170         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
22171         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
22172         * sysdeps/i386/i686/multiarch/strncat.S: New file.
22173         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
22174         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
22176         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
22177         (USE_AS_STRCAT): Define.
22178         Add strcat and strncat support.
22179         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22181 2011-07-25  Andreas Schwab  <schwab@redhat.com>
22183         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
22184         __n bigger than INT_MAX+1.
22185         (__strncmp_g): Likewise.
22187 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
22189         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
22190         * libio/stido.h: Likewise.
22192         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
22193         (AF_NFC): Define.
22194         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
22195         (AF_NFC): Define.
22197         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
22198         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22199         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22200         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22201         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22203         [BZ #13021]
22204         * scripts/test-installation.pl: Don't expect libnss_test1 to be
22205         installed.
22207         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
22208         typo.
22209         (_dl_x86_64_save_sse): Likewise.
22211 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
22213         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
22214         OSXSAVE.
22215         (_dl_x86_64_save_sse): Likewise.
22217         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
22219         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
22221 2011-07-21  Andreas Schwab  <schwab@redhat.com>
22223         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
22224         change.
22225         (_dl_x86_64_save_sse): Use correct AVX check.
22227 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22229         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
22230         bug in strncpy/strncat.
22231         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
22233 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
22235         * string/tester.c (test_strcat): Add tests for different alignments
22236         of source and destination.
22237         (test_strncat): Likewise.
22239 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
22241         [BZ #12852]
22242         * posix/glob.c (glob): Check passed in values before using them in
22243         expressions to avoid some overflows.
22244         (glob_in_dir): Likewise.
22246         [BZ #13007]
22247         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
22248         check for AVX enablement so that we don't crash with old kernels and
22249         new hardware.
22250         * elf/tst-audit4.c: Add same checks here.
22251         * elf/tst-audit6.c: Likewise.
22253         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
22255 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
22257         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
22259 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
22261         * po/cs.po: Update from translation team.
22262         * po/bg.po: Likewise.
22264 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
22266         * misc/sys/cdefs.h: Add support for const attribute.
22267         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
22268         to gnu_dev_{major,minor,makedev} functions.
22270 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
22272         * intl/dcigettext.c (get_output_charset): Add missing bracket.
22274 2011-07-20  Andreas Schwab  <schwab@redhat.com>
22276         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
22277         strlen results.
22279 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22281         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
22282         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
22283         register in order to avoid conflicts with the soft frame pointer
22284         being held in r11 when necessary.
22285         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22286         (INTERNAL_VSYSCALL_NCS): Likewise.
22288 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
22290         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
22291         * elf/dl-fini.c (_dl_fini): Adjust caller.
22292         * elf/dl-close.c (_dl_close_worker): Likewise.
22293         * sysdeps/generic/ldsodefs.h: Adjust declaration.
22295 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
22297         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
22298         "aux_cache->nlibs < 0".
22300         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
22301         in the reload-count case.
22303 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22305         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22306         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
22307         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
22308         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
22309         * sysdeps/x86_64/multiarch/strcat.S: New file.
22310         * sysdeps/x86_64/multiarch/strncat.S: New file.
22311         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
22312         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
22313         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
22314         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
22315         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
22316         (USE_AS_STRCAT): Define.
22317         Add strcat and strncat support.
22318         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22319         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
22320         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
22321         * string/strncat.c: Update.
22322         (USE_AS_STRNCAT): Define.
22323         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22324         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
22325         and i7.
22326         * sysdeps/x86_64/multiarch/init-arch.h
22327         (bit_Prefer_PMINUB_for_stringop): New.
22328         (index_Prefer_PMINUB_for_stringop): Likewise.
22329         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
22330         bit_Prefer_PMINUB_for_stringop.
22332 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
22334         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
22335         buffer64.
22336         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
22337         of casting of buffer.
22338         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
22339         buffer32 and buffer64.
22340         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
22341         writes instead of casting of buffer.
22342         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
22343         buffer32.
22344         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
22345         casting of buffer.
22347 2011-07-19  Andreas Schwab  <schwab@redhat.com>
22349         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
22351 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
22353         * nscd/nscd.c (termination_handler): Don't do anything for a database
22354         if it has not yet been initialized.
22356 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
22358         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
22360 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
22362         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
22364 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
22366         * po/nl.po: Update from translation team.
22367         * po/sv.po: Likewise.
22369 2011-07-16  Roland McGrath  <roland@hack.frob.com>
22371         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
22372         now disallowed by GCC.
22374         * configure.in (use-default-link): Default to yes if a test -shared
22375         link meets our qualifications.
22376         * configure: Regenerated.
22378         * config.make.in (output-format): New variable.
22379         * configure.in: Check for ld --print-output-format support.
22380         * configure: Regenerated.
22381         * Makerules ($(common-objpfx)format.lds)
22382         [$(output-format) != unknown]: Just use $(output-format),
22383         instead of the linker-script munging.
22385 2011-07-14  Roland McGrath  <roland@hack.frob.com>
22387         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
22388         of $(common-objpfx)shlib.lds.
22389         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
22391         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
22392         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
22394         * configure.in (-z relro check): Adjust test code to add a large
22395         writable data section after it.
22396         * configure: Regenerated.
22398 2011-07-11  Roland McGrath  <roland@hack.frob.com>
22400         * configure.in (-z relro check): Fix test code to make the variable
22401         truly const.
22402         * configure: Regenerated.
22404 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
22406         * nscd/nscd.h (struct traced_file): Define.
22407         (struct database_dyn): Remove inotify_descr, reset_res, and filename
22408         elements.  Add traced_files.
22409         (inotify_fd): Declare.
22410         (register_traced_file): Declare.
22411         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
22412         (inotify_fd): Export.
22413         (resolv_conf_descr): Remove.
22414         (nscd_init): Move inotify descriptor creation to main.
22415         Don't register files for notification here.
22416         (register_traced_file): New function.
22417         (invalidate_cache): Don't use reset_res to determine whether to call
22418         res_init, go through the list of registered files.
22419         (main_loop_poll): The inotify descriptors are now stored in the
22420         structures for the traced files.
22421         (main_loop_epoll): Likewise
22422         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
22423         to __nss_disable_nscd.
22424         * nscd/cache.c (prune_cache): There is no single inotify descriptor
22425         for a database anymore.  Check the records for all the registered
22426         files instead.
22427         * nss/Makefile (libnss_files-routines): Add files-init.
22428         (libnss_db-routines): Add db-init.
22429         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
22430         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
22431         * nss/nss_db/db-init.c: New file.
22432         * nss/nss_files/files-init.c: New file.
22433         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
22434         __nss_lookup_function.
22435         (__nss_lookup_function): Call nss_load_library.
22436         (nss_load_all_libraries): New function.
22437         (__nss_disable_nscd): Take parameter with callback function for files
22438         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
22439         used for the cached services.
22440         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
22441         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
22442         options for features to all the files in nscd.
22444         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
22446 2011-07-10  Roland McGrath  <roland@hack.frob.com>
22448         * csu/elf-init.c (__libc_csu_init): Comment typo.
22450 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
22452         * po/pl.po: Update from translation team.
22453         * po/ja.po: Likewise.
22454         * po/ru.po: Likewise.
22455         * po/ko.po: Likewise.
22456         * po/fr.po: Likewise.
22458 2011-07-09  Roland McGrath  <roland@hack.frob.com>
22460         * configure.in (.ctors/.dtors header and trailer check):
22461         Use an empirical test on a built program.
22462         * configure: Regenerated.
22464         * configure.in (-z relro check): Use an empirical test on a built DSO.
22465         Detect, but do not require, on ia64.
22466         * configure: Regenerated.
22468         * configure.in (READELF): Find it with AC_CHECK_TOOL.
22469         Update tests that use readelf to use $READELF instead.
22470         * configure: Regenerated.
22472 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
22474         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
22475         if the result is not used.
22477 2011-07-05  Andreas Jaeger  <aj@suse.de>
22479         [BZ#9696]
22480         * stdlib/tst-strtod.c: Add testcase.
22482 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
22484         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
22485         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
22486         The latter has a higher limit.  Take additional parameter to pass to
22487         the new function.
22488         (__pathconf): Pass file to __statfs_link_max.
22489         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
22490         __statfs_link_max.
22491         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
22492         __statfs_link_max.
22494         [BZ #12868]
22495         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
22496         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22497         Handle Lustre.
22498         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
22499         (__statfs_filesize_max): Likewise.
22500         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
22502 2011-07-05  Andreas Jaeger  <aj@suse.de>
22504         * resolv/res_comp.c (dn_skipname): Remove unused variable.
22506 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
22508         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
22509         `status' variable.
22510         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
22511         Likewise.
22513 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
22515         * Makefile (strop-tests): Add strncat.
22516         * string/test-strncat.c: New file.
22518 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
22520         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
22522 2011-06-21  Andreas Jaeger  <aj@suse.de>
22524         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
22525         Copy rule from iconvdata/Makefile.
22527 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22529         [BZ #12922]
22530         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
22531         but no long options are defined, just return 'W'.
22533 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
22535         [BZ #9696]
22536         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
22538 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
22540         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
22541         netgroups to read.
22542         (innetgr): Likewise.
22544 2011-07-05  Roland McGrath  <roland@hack.frob.com>
22546         * config.make.in (install_root): Default to $(DESTDIR).
22548 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
22550         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
22552 2011-07-02  Roland McGrath  <roland@hack.frob.com>
22554         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
22556         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
22557         containing directory rather than embedding absolute directory names.
22559         * scripts/check-local-headers.sh: Rewritten using awk.
22560         Match by word, not by line.  Print error messages for matches.
22561         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
22563         * Makerules [shlib-lds-flags empty]:
22564         ($(common-objpfx)libc_pic.opts): New target.
22565         ($(common-objpfx)libc_pic.os.clean): New target.
22566         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
22568         * config.make.in (OBJCOPY): New variable.
22569         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
22570         * configure: Regenerated.
22572         * config.make.in (use-default-link): New variable.
22573         * configure.in (use_default_link): Grok --with-default-link to set it.
22574         * configure: Regenerated.
22575         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
22576         (shlib-lds, shlib-lds-flags): Define to empty.
22578         * Makerules (shlib-lds): New variable.
22579         (shlib-lds-flags): New variable.
22580         (build-shlib, build-moduile, build-module-asneeded): Use it.
22581         ($(common-objpfx)libc.so): Use $(shlib-lds).
22582         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
22583         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
22585         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
22586         DT_FLAGS/DT_FLAGS_1 with zero flags.
22588         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
22589         linker script munging.
22591 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
22593         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
22594         as 128-bit value.
22595         * crypt/sha512.c (sha512_process_block): Perform total addition using
22596         128-bit if possible.
22597         (__sha512_finish_ctx): Likewise.
22598         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
22599         as 64-bit value.
22600         * crypt/sha256.c (SWAP64): Define.
22601         (sha256_process_block): Perform total addition using 64-bit if
22602         possible.
22603         (__sha256_finish_ctx): Likewise.
22605 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
22607         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
22608         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22609         * nscd/hstcache.c (cache_addhst): Likewise.
22610         * nscd/grpcache.c (cache_addgr): Likewise.
22611         * nscd/aicache.c (addhstaiX): Likewise
22612         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
22614 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
22616         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
22617         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22618         * nscd/hstcache.c (cache_addhst): Likewise.
22619         * nscd/grpcache.c (cache_addgr): Likewise.
22620         * nscd/aicache.c (addhstaiX): Likewise
22622 2011-07-01  Andreas Schwab  <schwab@redhat.com>
22624         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
22625         domain only when needed.
22627 2011-06-30  Andreas Schwab  <schwab@redhat.com>
22629         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
22630         is always restored.
22632 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
22634         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
22635         are re-adding the entry.
22636         * nscd/servicescache.c (cache_addserv): Likewise.
22638 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
22640         * sysdeps/generic/dl-irel.h: fix protection against multiple
22641         inclusions.
22642         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
22644 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
22646         [BZ #12935]
22647         * malloc/memusage.sh: Fix quoting in message.
22648         * debug/xtrace.sh: Likewise.
22650         * configure.in: Remove support for --experimental-malloc option, make
22651         it the default.
22652         * config.make.in: Likewise.
22653         * malloc/Makefile: Likewise.
22655 2011-06-27  Andreas Schwab  <schwab@redhat.com>
22657         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
22658         two-byte characters.
22660 2011-06-27  Roland McGrath  <roland@hack.frob.com>
22662         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
22663         AC_CACHE_CHECK invocation.
22664         * configure: Regenerated.
22666         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
22668 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
22670         [BZ #12350]
22671         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
22672         bit from old_res_options.
22674         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
22676         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
22677         value type for setfct.
22679 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
22681         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
22682         __gettimeofday instead of gettimeofday.
22684 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
22686         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
22688 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22690         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
22692         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
22693         info.
22695 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22697         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22698         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
22699         strcpy-sse2-unaligned strncpy-sse2-unaligned
22700         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
22701         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
22702         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
22703         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
22704         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
22705         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
22706         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
22707         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
22708         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
22709         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
22710         (STRCPY): Support SSE2 and SSSE3 versions.
22712 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
22714         [BZ #12874]
22715         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
22716         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
22717         kernels which artificially limit size of requests.
22719 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22721         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22722         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
22723         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
22724         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
22725         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
22726         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
22727         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
22728         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
22729         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
22730         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
22731         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
22732         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
22733         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
22734         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
22735         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
22736         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22737         Enable unaligned load optimization for Intel Core i3, i5 and i7
22738         processors.
22739         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
22740         Define.
22741         (index_Fast_Unaligned_Load): Define.
22742         (HAS_FAST_UNALIGNED_LOAD): Define.
22744 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
22746         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
22748 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
22750         [BZ #12907]
22751         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
22752         until it is clear that the information is realy needed.
22753         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
22755 2011-06-22  Andreas Schwab  <schwab@redhat.com>
22757         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
22759 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
22761         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
22762         /sys/devices/system/cpu/online if it is usable.
22764         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
22765         reading the information from the /proc filesystem to once a second.
22767 2011-06-21  Andreas Jaeger  <aj@suse.de>
22769         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
22770         NULL after inclusion of kernel headers.
22772 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
22774         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
22775         calls to internal_setent.
22777         [BZ #12885]
22778         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
22779         addresses using gethostbyname4_r ignore IPv4 addresses.
22781         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
22782         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
22784         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
22786 2011-06-20  David S. Miller  <davem@davemloft.net>
22788         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
22789         inclusions.
22790         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
22792         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
22793         (elf_irel): Use it.
22794         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
22795         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
22796         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
22797         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
22798         * sysdeps/x86_64/dl-irel.h: Likewise.
22800         * elf/dl-runtime.c: Use elf_ifunc_invoke.
22801         * elf/dl-sym.c: Likewise.
22803 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
22805         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
22806         need to dereference resplen2.
22808 2011-06-14  Andreas Schwab  <schwab@redhat.com>
22810         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
22812 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
22814         * Makeconfig: Define vardbdir and inst_vardbdir.
22815         * nss/Makefile: Add rules to install db-Makefile.
22817         * nss/nss_db/db-XXX.c: Cleanup.
22819         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
22820         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
22821         GLIBC_PRIVATE.
22822         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
22823         * nss/makedb.c: Implement -g option to specify that value strings
22824         are generated and should not be added to table iterated over for
22825         get*ent calls.
22826         * nss/nss_db/db-initgroups.c: New file.
22828         * nss/getent.c: Add support for initgroups lookups through getgrouplist
22829         interface.
22831         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
22832         (internal_getgrouplist): Adjust to name change.
22833         Update use_initgroups_entry if this is not the first call.
22834         * nss/databases.def: Add initgroups entry.
22836         * nss/makedb.c (compute_tables): Check result of multiple hash table
22837         sizes to minimize maximum chain length.
22839 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
22841         * Versions.def: Add entry for libnss_db.
22842         * shlib-versions: Likewise.
22843         * nss/Makefile: Add rules to build libnss_db.
22844         * nss/Versions: Add libnss_db information.  Organize libnss_files
22845         entries better.
22846         * nss/db-Makefile: Add gshadow support.  Change rules for the new
22847         makedb progra.  Some minor improvements to generate smaller files.
22848         * nss/nss_db/nss_db.h: Move NSS database header data structures to
22849         here from...
22850         * nss/makedb.c: ...here.
22851         Improve database format to be smaller and require less memory at
22852         runtime.
22853         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
22854         db anymore.
22855         * nss/nss_db/db-netgrp.c: Likewise.
22856         * nss/nss_db/db-open.c: Likewise.
22857         * nss/nss_files/flies-XXX.x: Adjust comments.
22858         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
22859         * nss/nss_files/files-grp.c: Likewise.
22860         * nss/nss_files/files-hosts.c: Likewise.
22861         * nss/nss_files/files-network.c: Likewise.
22862         * nss/nss_files/files-proto.c: Likewise.
22863         * nss/nss_files/files-pwd.c: Likewise.
22864         * nss/nss_files/files-rpc.c: Likewise.
22865         * nss/nss_files/files-service.c: Likewise.
22866         * nss/nss_files/files-sgrp.c: Likewise.
22867         * nss/nss_files/files-spwd.c: Likewise.
22868         * nss/nss_db/db-alias.c: Removed.
22869         * nss/nss_db/dummy-db.h: Removed.
22871 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
22873         * nss/makedb.c: Rewritten to not use database library.
22874         * nss/Makefile: Update to build new makedb program.
22876 2011-06-14  Andreas Jaeger  <aj@suse.de>
22878         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
22879         memset declaration.
22881 2011-06-10  Andreas Schwab  <schwab@redhat.com>
22883         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
22884         tmpbuf.
22886 2011-06-10  Roland McGrath  <roland@hack.frob.com>
22888         * Makerules (shlib.lds): Fail if the linker script comes out empty.
22889         * elf/Makefile ($(objpfx)ld.so): Likewise.
22891         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
22892         Don't list ld.so twice in dependencies.
22894         * posix/bug-regex31.c: Include <stdlib.h>.
22896         * nscd/hstcache.c (cache_addhst): Remove unused variable.
22898         * nis/nss_compat/compat-spwd.c
22899         (getspent_next_nss_netgr): Remove unused variable.
22900         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
22902         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
22903         nonmembers" output to use the right array.
22905         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
22907         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
22909         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
22910         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
22911         * catgets/gencat.c (read_input_file): Likewise.
22912         * locale/programs/locarchive.c (enlarge_archive): Likewise.
22914         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
22915         variable definition inside #if's controlling its use.
22917         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
22919         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
22921         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
22923         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
22924         unreachable code.
22926         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
22928         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
22929         * configure: Regenerated.
22931         * Makerules: Revert last change.
22932         * elf/Makefile: Likewise.
22934 2011-06-09  Roland McGrath  <roland@hack.frob.com>
22936         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
22937         * elf/Makefile ($(objpfx)librtld.os): Likewise.
22938         (reloc-link): Likewise.
22940 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
22942         * elf/Makefile: Add rules to build pldd.
22943         * elf/pldd.c: New file.
22944         * elf/pldd-xx.c: New file.
22946 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
22948         * version.h: Update for 2.15 development version.
22950 2011-06-07  David S. Miller  <davem@davemloft.net>
22952         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
22953         ifuncs.
22954         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
22955         elf_machine_lazy_rel): Likewise.
22956         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
22957         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
22958         elf_machine_lazy_rel): Likewise.
22959         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
22960         dl_hwcap via passed in argument.
22961         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
22962         Likewise.
22964 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22966         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
22968 2011-06-06  Roland McGrath  <roland@hack.frob.com>
22970         [BZ #12849]
22971         * manual/fdl-1.1.texi: New file, verbatim from:
22972         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
22973         * manual/lgpl-2.1.texi: New file, verbatim from:
22974         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
22975         * manual/Makefile (licenses): New variable, list those new file names.
22976         (texis): Use it.
22977         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
22979         * manual/fdl.texi: File removed.
22980         * manual/lesser.texi: File removed.
22981         * manual/libc.texinfo (Copying, Documentation License):
22982         Use new @include file names, put @appendix directive before @include.
22984 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
22986         [BZ #12841]
22987         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
22988         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
22989         (mq_open): Add __NTH.
22991 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
22993         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22994         Assume Intel Core i3/i5/i7 processor if AVX is available.
22996 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
22998         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
22999         typo.
23001 2011-05-31  Andreas Schwab  <schwab@redhat.com>
23003         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
23004         memory.  Use alloca_account.  Fix memory leak when retrying.
23006 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23008         * version.h (RELEASE): Bump for 2.14 release.
23009         * include/features.h (__GLIBC_MINOR__): Bump to 14.
23011         * config.make.in (RANLIB): Remove entry.
23013 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
23015         * po/Makefile (po-sed-cmd): Add ksh to extensions.
23016         (libc.pot): Work around missing support for .ksh extension in xgettext.
23018         [BZ #12684]
23019         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
23020         if both request failed.
23021         (send_dg): In case of server errors clear resplen or *resplen2.
23023         [BZ #12454]
23024         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
23025         when there are multiple maps.
23026         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
23027         (_dl_fini): Remove test here.
23029         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
23031 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
23033         [BZ #12350]
23034         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
23035         bit from old_res_options.
23036         (gaih_inet): Likewise.
23038         [BZ #11099]
23039         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
23040         as signed.
23042         * resolv/res_init.c (res_setoptions): Make the code more compact.
23044         [BZ #11558]
23045         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
23046         set RES_USEVC.
23048         [BZ #11634]
23049         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
23051         * malloc/malloc.h: Mark malloc hook variables as deprecated.
23053         [BZ #11781]
23054         * malloc/malloc.h: Declare malloc hook variables as volatile.
23056         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
23057         in last patch.
23059         [BZ #11799]
23060         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
23061         raise in the comment.
23062         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
23063         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
23064         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
23066 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
23068         [BZ #12811]
23069         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
23070         grow the buffers more if it already has to be sufficient.
23071         (build_wcs_upper_buffer): Likewise.
23072         * posix/regexec.c (check_matching): Likewise.
23073         (clean_state_log_if_needed): Likewise.
23074         (extend_buffers): Don't enlarge buffers beyond size of the input
23075         buffer.
23076         Patches mostly by Emil Wojak <emil@wojak.eu>.
23077         * posix/bug-regex32.c: New file.
23078         * posix/Makefile (tests): Add bug-regex32.
23080         * locale/findlocale.c (_nl_find_locale): Return right away if
23081         _nl_explode_name failed.
23082         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
23084         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
23086         * debug/xtrace.sh: Unify messages.
23087         * malloc/memusage.sh: Likewise.
23089         [BZ #12813]
23090         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
23091         time symbol from vDSO.  Substitute with vsyscall if not available.
23092         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
23093         __vdso_time.
23095         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
23096         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
23097         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
23098         Add sendmmsg and internal_sendmmsg.
23099         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
23100         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
23101         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
23103         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
23104         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
23105         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
23107 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
23109         [BZ #12813]
23110         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
23111         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
23112         available.
23113         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
23114         __vdso_getcpu.
23116         [BZ #12814]
23117         * iconvdata/Makefile (tests): Add bug-iconv9.
23118         * iconvdata/bug-iconv9.c: New file.
23120 2011-05-27  Andreas Schwab  <schwab@redhat.com>
23122         [BZ #12814]
23123         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
23125 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
23127         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
23128         (struct user_regs_struct): Change intcs field back to cs.
23130 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
23132         * po/ja.po: Update from translation team.
23134 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
23136         [BZ #12795]
23137         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
23138         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
23140 2011-05-20  Andreas Schwab  <schwab@redhat.com>
23142         * stdlib/longlong.h: Update from GCC.
23144 2011-05-23  Andreas Schwab  <schwab@redhat.com>
23146         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
23147         parameter name.
23148         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
23149         Add parameter name.
23150         (__sysconf): Pass it down.
23152 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
23154         [BZ #12671]
23155         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
23156         some situations.
23157         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
23158         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
23159         add in in __libc_use_alloca calls.  Adjust callers.
23160         (glob): Use malloc in some situations.
23162         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
23163         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
23164         pltexit.
23166 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
23168         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
23169         and CLOCK_BOOTTIME_ALARM.
23171         [BZ #12782]
23172         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
23173         is returned.
23175         * string/_strerror.c (__strerror_r): Print negative errors as signed
23176         numbers.
23178         [BZ #12777]
23179         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
23180         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
23181         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
23183         * configure.in: Fix typo in redirection and correct removal of test
23184         files in two cases.
23186         [BZ #12788]
23187         * locale/setlocale.c (new_composite_name): Fix test to check for
23188         identical name of all categories.
23190         [BZ #12792]
23191         * libio/filedoalloc.c (local_isatty): New function.
23192         (_IO_file_doallocate): Use local_isatty.
23193         * stdio-common/perror.c (perror): In case a new stream is used
23194         forward the stream error.
23195         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
23196         error flag.
23198 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
23200         [BZ #11869]
23201         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
23202         alloca.
23203         * include/alloca.h (extend_alloca_account): Define.
23205         [BZ #11857]
23206         * posix/regex.h: Fix comments with documentation of user-accessible
23207         fields after compilation and describe correct free'ing of pattern
23208         after re_compile_pattern.
23209         Patch by Reuben Thomas <rrt@sc3d.org>.
23211 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
23213         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
23214         and -mno-altivec to prevent the compiler from using Altivec and/or
23215         VSX instructions when the corresponding registers are not available.
23217 2011-05-19  Andreas Schwab  <schwab@redhat.com>
23219         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
23221 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
23223         * libio/freopen.c (freopen): Use __dup2, not dup2.
23224         * libio/freopen64.c (freopen64): Likewise.
23226 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
23228         [BZ #12775]
23229         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
23230         * math/Makefile (tests): Add test-powl.
23231         (CFLAGS-test-powl.c): Define.
23232         * math/test-powl.c: New file.
23234 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23236         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
23238 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
23240         [BZ #11837]
23241         * iconvdata/gb18030.c: Update to GB18020-2005.
23243 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
23245         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
23246         RE_SYNTAX_POSIX_AWK): Update to match recent development.
23247         Patch by Aharon Robbins <arnold@skeeve.com>.
23249         [BZ #11892]
23250         * stdlib/putenv.c (putenv): Don't always create copy of the variable
23251         on the stack.
23253         [BZ #11895]
23254         * misc/pselect.c (__pselect): Handle timeout value errors hidden
23255         through underflows.
23257         [BZ #12766]
23258         * misc/error.c (error_at_line): Ensure file_name and old_file_name
23259         point to strings before performing equality test for error_one_per_line
23260         mode.
23262         [BZ #11697]
23263         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
23265         [BZ #11820]
23266         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
23267         (struct user_fpregs_struct): Avoid __uint*_t types.
23269         [BZ #6420]
23270         * malloc/mtrace.c (tr_where): Add additional parameter to point to
23271         symbol info.  Use it instead of calling _dl_addr locally.
23272         (lock_and_info): New function.
23273         (tr_freehook): Call lock_and_info and pass symbol info as additional
23274         parameter to tr_where.
23275         (tr_mallochook): Likewise.
23276         (tr_reallochook): Likewise.
23277         (tr_memalignhook): Likewise.
23279         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
23280         used and couldn't be at all thread-safe.
23282 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
23284         * libio/freopen.c (freopen): Don't close old file descriptor
23285         before the new one is opened.  Instead dup the new file descriptor
23286         to the old one after the new stream is created.
23287         * libio/freopen64.c (freopen64): Likewise.
23288         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
23289         * libio/fileops.c (_IO_new_file_close_it): Handle new
23290         _IO_FLAGS2_NOCLOSE flag.
23291         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
23292         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
23293         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
23294         _IO_FLAGS2_NOCLOSE flag.
23295         * include/unistd.h: Add hidden_proto for dup3.
23296         Define __have_dup3.
23297         * io/dup3.c: Define hidden symbol.
23298         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
23300         [BZ #7101]
23301         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
23302         when an incomplete long option is used.
23303         * posix/tst-getopt_long1.c: New file.
23304         * posix/Makefile (tests): Add tst-getopt_long1.
23306         [BZ #10138]
23307         * scripts/config.guess: Update from autoconf-2.68.
23308         * scripts/config.sub: Likewise.
23310         [BZ #10157]
23311         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
23312         tests into ...
23313         (has_cpuclock): ...this.  New function.
23314         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
23315         macro here based on has_cpuclock code.
23317         [BZ #10149]
23318         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23319         First byte (not low byte) is now always NUL.
23320         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
23322         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23323         Use non-cancelable interfaces.
23325         [BZ #9809]
23326         * locale/iso-639.def: Add entry for Sorani.
23328         [BZ #11901]
23329         * include/stdlib.h: Move include protection to the right place.
23330         Define abort_msg_s.  Declare __abort_msg with it.
23331         * stdlib/abort.c (__abort_msg): Adjust type.
23332         * assert/assert.c (__assert_fail_base): New function.  Majority
23333         of code from __assert_fail.  Allocate memory for __abort_msg with
23334         mmap.
23335         (__assert_fail): Now call __assert_fail_base.
23336         * assert/assert-perr.c: Remove bulk of implementation.  Use
23337         __assert_fail_base.
23338         * include/assert.hL Declare __assert_fail_base.
23339         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
23340         mmap.
23341         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
23343 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
23345         [BZ #11952]
23346         [BZ #12453]
23347         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
23348         until all modules are registered in the DTV.
23349         * elf/Makefile: Add rules to build and run tst-tls19.
23350         * elf/tst-tls19.c: New file.
23351         * elf/tst-tls19mod1.c: New file.
23352         * elf/tst-tls19mod2.c: New file.
23353         * elf/tst-tls19mod3.c: New file.
23354         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
23356         [BZ #12083]
23357         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
23358         correctly.
23360         [BZ #12601]
23361         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
23362         two-byte sequence errors.
23363         * iconvdata/Makefile (tests): Add bug-iconv8.
23364         * iconvdata/bug-iconv8.c: New file.
23366         [BZ #12626]
23367         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
23368         buf2 definition.
23370         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
23372         [BZ #12432]
23373         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
23374         (dummy_getcfa): New function.
23375         (init): Get _Unwind_GetCFA address, use dummy if not found.
23376         (backtrace_helper): In recursion check, also check whether CFA changes.
23377         (__backtrace): Completely initialize arg.
23379         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
23380         storing incomplete byte sequence in state object.  Avoid testing for
23381         guaranteed too small input if we know there is enough data available.
23383 2011-05-11  Andreas Schwab  <schwab@redhat.com>
23385         * Makeconfig (+link-pie): Indent.
23386         * Rules (binaries-pie): Define if $(have-fpie) and
23387         $(build-shared).
23388         (binaries-shared): Also filter out $(binaries-pie).
23389         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
23390         * nscd/Makefile (others-pie): Add nscd.
23391         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
23392         ($(objpfx)nscd): Remove command override.
23393         * login/Makefile (others-pie): Add pt_chown.
23394         ($(objpfx)pt_chown): Remove command override.
23395         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
23396         remove command overrides.
23398 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
23400         * libio/tst_putwc.c: Fix error messages.
23402         [BZ #12724]
23403         * libio/fileops.c (_IO_new_file_close_it): Always flush when
23404         currently writing and seek to current position when not.
23405         * libio/Makefile (tests): Add bug-fclose1.
23406         * libio/bug-fclose1.c: New file.
23408 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
23410         [BZ #12511]
23411         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
23412         don't set DF_1_NODELETE here.
23413         (do_lookup_x): When entering new entry test for copy relocation
23414         and if necessary set DF_1_NODELETE flag.
23415         * elf/tst-unique4.cc: New file.
23416         * elf/tst-unique4.h: New file.
23417         * elf/tst-unique4lib.cc: New file.
23418         * elf/Makefile: Add rules to build and run tst-unique4.
23419         Patch by Piotr Bury <pbury@goahead.com>.
23421 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
23423         [BZ #12052]
23424         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
23426         [BZ #12625]
23427         * misc/mntent_r.c (addmntent): Flush the stream after the output
23429         [BZ #12393]
23430         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
23431         (is_trusted_path_normalize): Skip initial colon.  Append slash
23432         to empty buffer.  Duplicate is_trusted_path code but allow
23433         constructed patch to be prefix.
23434         (is_dst): Allow $ORIGIN followed by /.
23435         (_dl_dst_substitute): Correct clearing of check_for_trusted.
23436         Correct testing of result of is_trusted_path_normalize
23437         (decompose_rpath): Fix warning.
23439 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
23441         [BZ #11257]
23442         * grp/initgroups.c (internal_getgrouplist): When we found the service
23443         list through the initgroups entry in nsswitch.conf do not always
23444         continue on a successful lookup.  Don't always use the
23445         __nss_group_database value if it is set.
23446         * nss/nsswitch.conf (initgroups): Change action for successful db
23447         lookup to continue for compatibility.
23449 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
23451         [BZ #11532]
23452         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
23453         and CP774 modules.
23454         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
23455         and CP774 modules.
23456         * iconvdata/tst-tables.sh: Likewise.
23457         * iconvdata/cp770.c: New file.
23458         * iconvdata/cp771.c: New file.
23459         * iconvdata/cp772.c: New file.
23460         * iconvdata/cp773.c: New file.
23461         * iconvdata/cp774.c: New file.
23462         * iconvdata/testdata/CP770: New file.
23463         * iconvdata/testdata/CP770..UTF8: New file.
23464         * iconvdata/testdata/CP771: New file.
23465         * iconvdata/testdata/CP771..UTF8: New file.
23466         * iconvdata/testdata/CP772: New file.
23467         * iconvdata/testdata/CP772..UTF8: New file.
23468         * iconvdata/testdata/CP773: New file.
23469         * iconvdata/testdata/CP773..UTF8: New file.
23470         * iconvdata/testdata/CP774: New file.
23471         * iconvdata/testdata/CP774..UTF8: New file.
23473         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
23474         END CHARMAP line.
23475         * iconvdata/gen-8bit-gap.sh: Likewise.
23476         * iconvdata/gen-8bit.sh: Likewise.
23478         * locale/iso-639.def: Add ary entry.
23480         [BZ #11258]
23481         * locale/C-translit.h.in: Add U20A1 transliteration.
23483         [BZ #12178]
23484         * locale/iso-639.def: Add wae entry.
23485         Patch by Kevin Bortis <bortis@translate-wae.ch>.
23487         [BZ #12545]
23488         * locale/programs/localedef.c (construct_output_path): Use ssize_t
23489         for n.
23491         [BZ #12711]
23492         * locale/C-translit.h.in: Add entry for U20B9.
23493         Patch by pravin.d.s@gmail.com.
23495 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
23497         [BZ #12713]
23498         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
23499         ENAMETOOLONG use generic getcwd.
23500         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
23501         in rtld.  Use *stat64.
23502         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
23503         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
23504         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
23505         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
23506         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
23507         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
23508         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
23509         __fstatat64 macros.
23510         * include/dirent.h: Add libc_hidden_proto for rewinddir.
23511         * dirent/rewinddir.c: Add libc_hidden_def.
23512         * sysdeps/mach/hurd/rewinddir.c: Likewise.
23513         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
23515         * include/dirent.h (__alloc_dir): Add flags parameter.
23516         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
23517         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
23518         __alloc_dir.
23519         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
23520         from fdopendir if O_CLOEXEC is already set.
23522 2011-03-15  Alan Modra  <amodra@gmail.com>
23524         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
23525         l_tls_firstbyte_offset non-zero.  Save padding offset in
23526         l_tls_firstbyte_offset for later use.
23527         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
23528         freeing static tls block.
23530 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
23532         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
23533         where #ifdef was intended.  The intent is to prevent ARG_MAX from
23534         being defined by the kernel headers.
23536 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
23538         [BZ #12734]
23539         * resolv/resolv.h: Define RES_NOTLDQUERY.
23540         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
23541         no-tld-query and set RES_NOTLDQUERY.
23542         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
23543         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
23544         modern BIND to search name as TLD unless forbidden.
23546 2011-05-07  Petr Baudis  <pasky@suse.cz>
23547             Ulrich Drepper  <drepper@gmail.com>
23549         [BZ #12393]
23550         * elf/dl-load.c (fillin_rpath): Move trusted path check...
23551         (is_trusted_path): ...to here.
23552         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
23553         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
23554         using is_trusted_path_normalize() in setuid scripts.
23556 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23558         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
23559         __BEGIN/__END_DECLS.
23561 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
23563         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
23564         NSS_STATUS_NOTFOUND if no record was found.
23566 2011-05-05  Andreas Schwab  <schwab@redhat.com>
23568         * sunrpc/Makefile (headers): Add rpc/netdb.h.
23569         (headers-not-in-tirpc): Remove rpc/netdb.h
23570         * resolv/netdb.h: Revert last change.
23572 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
23574         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
23575         circular dependency between libgcc.a and libc.a.
23577 2011-05-05  Andreas Schwab  <schwab@redhat.com>
23579         * resolv/netdb.h: Don't include <rpc/netdb.h>.
23580         * nis/Makefile: Don't install rpcsvc/*.
23581         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
23582         instead of <rpc/types.h>.
23583         (MAXHOSTNAMELEN): Define.
23585 2011-05-03  Andreas Schwab  <schwab@redhat.com>
23587         * elf/ldconfig.c (add_dir): Don't crash on empty path.
23589 2011-04-28  Maciej Babinski  <mbabinski@google.com>
23591         [BZ #12714]
23592         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
23593         gethostbyname4_r when IPv6 results are possible.
23595 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
23597         [BZ #12723]
23598         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
23599         _PC_PIPE_BUF handling.
23601 2011-04-30  Bruno Haible  <bruno@clisp.org>
23603         [BZ #12717]
23604         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
23605         * resolv/netdb.h (getnameinfo): Change type of flags parameter
23606         to 'int'.
23607         * inet/getnameinfo.c (getnameinfo): Likewise.
23609 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
23611         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
23612         to groups setting in database lookup.
23613         * nss/nsswitch.conf: Add initgroups entry.
23615 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
23617         [BZ #12685]
23618         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
23619         mode string.
23620         Patch by Eric Blake <eblake@redhat.com>.
23622 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
23624         * sunrpc/Makefile (need-export-routines): Add svc_run.
23625         (routines): Remove svc_run.
23626         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
23627         * sunrpc/clnt_perr.c (clnt_perrno): Export.
23628         * sunrpc/svc_run.c (svc_run): Likewise.
23629         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23631 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
23633         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
23634         problem in reallocation in last patch.
23636 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
23638         * sunrpc/Makefile: Move inclusion of Rules.
23640 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
23642         * nss/nss_files/files-initgroups.c: New file.
23643         * nss/Makefile (libnss_files-routines): Add files-initgroups.
23644         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
23645         _nss_files_initgroups_dyn.
23647 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
23649         * elf/elf.h (R_ARM_IRELATIVE): Define.
23651 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
23653         * po/ru.po: Update from translation team.
23655 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
23657         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
23658         dependencies.
23660 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
23662         [BZ #12653]
23663         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
23664         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
23665         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23666         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23667         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23669 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
23671         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
23672         differing bytes.
23673         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23674         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23675         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23677 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
23679         [BZ #12420]
23680         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
23681         storing it.
23682         * stdlib/bug-getcontext.c: New file.
23683         * stdlib/Makefile: Add rules to build and run bug-getcontext.
23685 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23687         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
23688         instructions into .machine "z9-109".
23689         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
23690         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
23692 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23694         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
23695         between environment variables and auxiliary vector.
23697 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
23699         * Makefile: Add rules to build linkobj/libc.so.
23700         * include/libc-symbols.h: Define libc_hidden_nolink.
23701         * include/rpc/auth.h: Mark functions which are to be hidden.
23702         * include/rpc/auth_des.h: Likewise.
23703         * include/rpc/auth_unix.h: Likewise.
23704         * include/rpc/clnt.h: Likewise.
23705         * include/rpc/des_crypt.h: Likewise.
23706         * include/rpc/key_prot.h: Likewise.
23707         * include/rpc/pmap_clnt.h: Likewise.
23708         * include/rpc/pmap_prot.h: Likewise.
23709         * include/rpc/pmap_rmt.h: Likewise.
23710         * include/rpc/rpc_msg.h: Likewise.
23711         * include/rpc/svc.h: Likewise.
23712         * include/rpc/svc_auth.h: Likewise.
23713         * include/rpc/xdr.h: Likewise.
23714         * nis/Makefile: Link all DSOs against linkobj/libc.so.
23715         * nss/Makefile: Likewise.
23716         * sunrpc/Makefile: Don't install headers.  Build library with normal
23717         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
23718         * sunrpc/auth_des.c: Hide exported symbols by default, export some
23719         for the compat linking library.  Remove use of INTDEF/INTUSE.
23720         * sunrpc/auth_none.c: Likewise.
23721         * sunrpc/auth_unix.c: Likewise.
23722         * sunrpc/authdes_prot.c: Likewise.
23723         * sunrpc/authuxprot.c: Likewise.
23724         * sunrpc/clnt_gen.c: Likewise.
23725         * sunrpc/clnt_perr.c: Likewise.
23726         * sunrpc/clnt_raw.c: Likewise.
23727         * sunrpc/clnt_simp.c: Likewise.
23728         * sunrpc/clnt_tcp.c: Likewise.
23729         * sunrpc/clnt_udp.c: Likewise.
23730         * sunrpc/clnt_unix.c: Likewise.
23731         * sunrpc/des_crypt.c: Likewise.
23732         * sunrpc/des_soft.c: Likewise.
23733         * sunrpc/get_myaddr.c: Likewise.
23734         * sunrpc/key_call.c: Likewise.
23735         * sunrpc/key_prot.c: Likewise.
23736         * sunrpc/netname.c: Likewise.
23737         * sunrpc/pm_getmaps.c: Likewise.
23738         * sunrpc/pm_getport.c: Likewise.
23739         * sunrpc/pmap_clnt.c: Likewise.
23740         * sunrpc/pmap_prot.c: Likewise.
23741         * sunrpc/pmap_prot2.c: Likewise.
23742         * sunrpc/pmap_rmt.c: Likewise.
23743         * sunrpc/publickey.c: Likewise.
23744         * sunrpc/rpc_cmsg.c: Likewise.
23745         * sunrpc/rpc_common.c: Likewise.
23746         * sunrpc/rpc_dtable.c: Likewise.
23747         * sunrpc/rpc_prot.c: Likewise.
23748         * sunrpc/rpc_thread.c: Likewise.
23749         * sunrpc/rtime.c: Likewise.
23750         * sunrpc/svc.c: Likewise.
23751         * sunrpc/svc_auth.c: Likewise.
23752         * sunrpc/svc_authux.c: Likewise.
23753         * sunrpc/svc_raw.c: Likewise.
23754         * sunrpc/svc_run.c: Likewise.
23755         * sunrpc/svc_simple.c: Likewise.
23756         * sunrpc/svc_tcp.c: Likewise.
23757         * sunrpc/svc_udp.c: Likewise.
23758         * sunrpc/svc_unix.c: Likewise.
23759         * sunrpc/svcauth_des.c: Likewise.
23760         * sunrpc/xcrypt.c: Likewise.
23761         * sunrpc/xdr.c: Likewise.
23762         * sunrpc/xdr_array.c: Likewise.
23763         * sunrpc/xdr_float.c: Likewise.
23764         * sunrpc/xdr_intXX_t.c: Likewise.
23765         * sunrpc/xdr_mem.c: Likewise.
23766         * sunrpc/xdr_rec.c: Likewise.
23767         * sunrpc/xdr_ref.c: Likewise.
23768         * sunrpc/xdr_sizeof.c: Likewise.
23769         * sunrpc/xdr_stdio.c: Likewise.
23771 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
23773         [BZ #12650]
23774         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
23775         * sysdeps/ia64/dl-tls.h: Likewise.
23776         * sysdeps/powerpc/dl-tls.h: Likewise.
23777         * sysdeps/s390/dl-tls.h: Likewise.
23778         * sysdeps/sh/dl-tls.h: Likewise.
23779         * sysdeps/sparc/dl-tls.h: Likewise.
23780         * sysdeps/x86_64/dl-tls.h: Likewise.
23781         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
23783 2011-03-14  Andreas Schwab  <schwab@redhat.com>
23785         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
23786         rpath element also skip the following colon.
23787         (expand_dynamic_string_token): Add is_path parameter and pass
23788         down to DL_DST_REQUIRED and _dl_dst_substitute.
23789         (decompose_rpath): Call expand_dynamic_string_token with
23790         non-zero is_path.  Ignore empty rpaths.
23791         (_dl_map_object_from_fd): Call expand_dynamic_string_token
23792         with zero is_path.
23794 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
23796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
23797         Make cancelable.
23799 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
23801         [BZ #12655]
23802         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
23803         Patch by Filipe David Manana <fdmanana@apache.org>.
23805 2011-04-07  Andreas Schwab  <schwab@redhat.com>
23807         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
23808         Maintain aligned stack.
23809         (CHECK_RSP): Remove unused macro.
23811 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
23813         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
23814         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
23816 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
23818         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
23820         * include/features.h: Mention __USE_XOPEN2K8 in comment.
23822 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
23824         [BZ #12518]
23825         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
23826         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
23827         * sysdeps/x86_64/memmove.c: New file.
23828         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
23829         (memcpy): Renamed to ...
23830         (__new_memcpy): This.
23831         (memcpy): Provide GLIBC_2_14 memcpy.
23832         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
23833         (memcpy): Provide GLIBC_2_2_5 memcpy.
23835 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
23837         [BZ #12631]
23838         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
23840 2011-03-30  Andreas Schwab  <schwab@redhat.com>
23842         * misc/syncfs.c: New file.
23843         * misc/Makefile (routines): Add syncfs.
23844         * posix/unistd.h: Declare syncfs.
23845         * sysdeps/unix/syscalls.list: Add syncfs.
23847 2011-04-01  Andreas Schwab  <schwab@redhat.com>
23849         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
23850         open_by_handle_at.
23851         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
23852         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
23853         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23854         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23855         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23856         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
23857         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23859 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
23861         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
23862         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
23863         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
23864         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23865         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23866         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23867         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23869         * io/Makefile: Compile fallocate.c, fallocate64.c, and
23870         sync_file_range.c with -fexceptions.
23871         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
23872         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
23873         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
23874         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
23875         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
23876         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
23877         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
23878         sync_file_range as cancellation point
23879         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
23880         now a wrapper around __call_sync_file_range with cancellation handling.
23881         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
23882         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
23883         function name to __call_sync_file_range.
23884         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
23885         Add call_sync_file_range.
23887 2011-04-01  Andreas Schwab  <schwab@redhat.com>
23889         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23890         bits/timex.h.
23892 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
23894         * iconv/iconv.h: Fix typo in comment.
23895         * io/fcntl.h: Likewise.
23896         * libio/stdio.h: Likewise.
23897         * posix/spawn.h: Likewise.
23898         * posix/unistd.h: Likewise.
23899         * stdlib/stdlib.h: Likewise.
23900         * time/time.h: Likewise.
23901         * wcsmbs/wchar.h: Likewise.
23903         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
23904         open_by_handle): Add.
23905         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
23906         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
23907         Augment a few comments.
23908         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
23909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23910         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23911         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23912         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23913         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
23914         open_by_handle.
23916         * io/fcntl.h (AT_EMPTY_PATH): Define.
23918 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
23920         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
23921         * sysdeps/unix/sysv/linux/bits/time.h: New file.
23922         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
23923         to...
23924         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
23925         * Versions.def: Add GLIBC_2.14.
23926         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
23927         Export.
23929 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
23931         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
23932         round counter.
23933         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
23935 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23937         [BZ #12597]
23938         * string/test-strncmp.c (do_page_test): New function.
23939         (check2): Likewise.
23940         (test_main): Call check2.
23941         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
23943 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
23945         [BZ #12587]
23946         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
23947         Handle cache information in CPU leaf 4.
23948         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
23950 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
23952         [BZ #12583]
23953         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
23954         character representation.
23955         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
23957 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
23959         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
23960         END(__isnan) to END(__isnanf) to match function entry point/label
23961         EALIGN(__isnanf,...).
23963 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23965         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
23967 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
23969         [BZ #12510]
23970         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
23971         copy from the symbol referenced in the relocation to initialize the
23972         used variable.
23973         Patch by Piotr Bury <pbury@goahead.com>.
23974         * elf/Makefile: Add rules to build and tst-unique3.
23975         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
23976         * elf/tst-unique3.cc: New file.
23977         * elf/tst-unique3.h: New file.
23978         * elf/tst-unique3lib.cc: New file.
23979         * elf/tst-unique3lib2.cc: New file.
23981         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
23983 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
23985         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
23986         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
23987         to _start.
23989 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
23991         * elf/dl-load.c (_dl_map_object): If we are looking for the first
23992         to-be-loaded object along a path to loader is ld.so.
23994 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
23995             Ulrich Drepper  <drepper@gmail.com>
23997         * sysdeps/x86_64/memset.S: After aligning destination, code
23998         branches to different locations depending on the value of
23999         misalignment, when multiarch is enabled. Fix this.
24001 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24003         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
24004         Set _x86_64_preferred_memory_instruction for AMD processsors.
24005         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24006         Set bit_Prefer_SSE_for_memop for AMD processors.
24008 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
24010         * libio/fmemopen.c (fmemopen): Optimize a bit.
24012 2011-03-03  Andreas Schwab  <schwab@redhat.com>
24014         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
24016 2011-03-03  Roland McGrath  <roland@redhat.com>
24018         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
24020 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
24022         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
24023         __bzero_ultra1 instead of __memset_ultra1.
24025 2011-02-23  Andreas Schwab  <schwab@redhat.com>
24026             Ulrich Drepper  <drepper@gmail.com>
24028         [BZ #12509]
24029         * include/link.h (struct link_map): Add l_orig_initfini.
24030         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
24031         returning unsuccessfully.
24032         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
24033         close of a file loaded at startup, restore the original l_initfini
24034         list.
24035         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
24036         list, store the pointer.
24037         * elf/Makefile ($(objpfx)noload-mem): New rule.
24038         (noload-ENV): Define.
24039         (tests): Add $(objpfx)noload-mem.
24040         * elf/noload.c: Include <memcheck.h>.
24041         (main): Call mtrace.  Close all opened handles.
24043 2011-02-17  Andreas Schwab  <schwab@redhat.com>
24045         [BZ #12454]
24046         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
24047         dependencies are missing.
24049 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24051         Fix __if_freereq crash: Unlike the generic version which uses free,
24052         Hurd needs munmap.
24053         * sysdeps/mach/hurd/ifreq.h: New file.
24055 2011-01-27  Petr Baudis  <pasky@suse.cz>
24056             Ulrich Drepper  <drepper@gmail.com>
24058         [BZ 12445]#
24059         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
24060         to extend_alloca().
24061         * stdio-common/bug23.c: New file.
24062         * stdio-common/Makefile (tests): Add bug23.
24064 2010-09-28  Andreas Schwab  <schwab@redhat.com>
24065             Ulrich Drepper  <drepper@gmail.com>
24067         [BZ #12489]
24068         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
24069         before performing relro protection.  At old place add assertion
24070         to make sure nothing changed.
24072 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
24073             Glauber de Oliveira Costa  <glommer@gmail.com>
24075         * elf/elf.h: Add new ARM TLS relocs.
24077 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
24079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
24080         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
24081         cast from r3.
24082         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
24083         'tests' variable.
24084         * sysdeps/wordsize-64/tst-writev.c: New file.
24086 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
24088         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
24089         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
24090         insns in _dl_start to prevent a TOC reference before relocs are
24091         resolved.
24093 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
24095         [BZ #12469]
24096         * Makeconfig: Remove RANLIB definition.
24097         * Makerules: Don't use RANLIB.
24098         * aclocal.m4: Remove ranlib test.
24099         * configure.in: No need to check for ranlib.
24100         * elf/rtld-Rules: Don't use RANLIB.
24102 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24104         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
24105         protection macro.
24106         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
24107         inclusion protection macro.
24109         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
24110         SIGRTMIN and SIGRTMAX and print information in that case only when
24111         SIGRTMIN is defined.
24113 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24115         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
24116         arginfo fn returning -1.
24118         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
24119         and thousands string is zero terminated.
24121 2011-02-03  Andreas Schwab  <schwab@redhat.com>
24123         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
24124         sysdeps/unix/sysv/linux/bits/socket.h.
24126 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24128         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
24129         (__CPU_COUNT): Remove old macros.
24130         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
24131         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
24132         (__CPU_ALLOC, __CPU_FREE): Add macros.
24133         (__sched_cpualloc, __sched_cpufree): Add declarations.
24135 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
24137         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
24138         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
24139         * nscd/aicache.c (addhstaiX): Return timeout of added value.
24140         (readdhstai): Return value of addhstaiX call.
24141         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
24142         (addgrbyX): Return value returned by cache_addgr.
24143         (readdgrbyname): Return value returned by addgrbyX.
24144         (readdgrbygid): Likewise.
24145         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
24146         (addpwbyX): Return value returned by cache_addpw.
24147         (readdpwbyname): Return value returned by addhstbyX.
24148         (readdpwbyuid): Likewise.
24149         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
24150         (addservbyX): Return value returned by cache_addserv.
24151         (readdservbyname): Return value returned by addservbyX:
24152         (readdservbyport): Likewise.
24153         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
24154         (addhstbyX): Return value returned by cache_addhst.
24155         (readdhstbyname): Return value returned by addhstbyX.
24156         (readdhstbyaddr): Likewise.
24157         (readdhstbynamev6): Likewise.
24158         (readdhstbyaddrv6): Likewise.
24159         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
24160         (readdinitgroups): Return value returned by addinitgroupsX.
24161         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
24162         (prune_cache): Keep track of timeout value of re-added entries.
24163         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
24164         * nscd/nscd.h: Adjust prototypes of readd* functions.
24166 2011-02-04  Roland McGrath  <roland@redhat.com>
24168         * nis/nis_server.c (nis_servstate): Use the right name for 0.
24169         (nis_stats): Likewise.
24170         * nis/nis_modify.c (nis_modify): Likewise.
24171         * nis/nis_remove.c (nis_remove): Likewise.
24172         * nis/nis_add.c (nis_add): Likewise.
24174         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
24176         * posix/fnmatch_loop.c: Add some consts.
24178         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
24180 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
24182         [BZ #12460]
24183         * config.make.in (config-cflags-novzeroupper): Define.
24184         * configure.in: Substitute libc_cv_cc_novzeroupper.
24185         * elf/Makefile (AVX-CFLAGS): Define.
24186         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
24187         (CFLAGS-tst-auditmod4a.c): Likewise.
24188         (CFLAGS-tst-auditmod4b.c): Likewise.
24189         (CFLAGS-tst-auditmod6b.c): Likewise.
24190         (CFLAGS-tst-auditmod6c.c): Likewise.
24191         (CFLAGS-tst-auditmod7b.c): Likewise.
24192         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
24194 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
24196         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
24197         function to the callback.
24198         Patch partly by Jiri Olsa <jolsa@redhat.com>.
24200 2011-02-02  Andreas Schwab  <schwab@redhat.com>
24202         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
24203         of errno.
24205 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
24207         [BZ #11724]
24208         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
24209         of constructors.
24210         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
24211         of destructors.
24212         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
24214         [BZ #11724]
24215         * elf/Makefile: Add rules to build and run new test.
24216         * elf/tst-initorder.c: New file.
24217         * elf/tst-initorder.exp: New file.
24218         * elf/tst-initordera1.c: New file.
24219         * elf/tst-initordera2.c: New file.
24220         * elf/tst-initordera3.c: New file.
24221         * elf/tst-initordera4.c: New file.
24222         * elf/tst-initorderb1.c: New file.
24223         * elf/tst-initorderb2.c: New file.
24224         * elf/tst-order-a1.c: New file.
24225         * elf/tst-order-a2.c: New file.
24226         * elf/tst-order-a3.c: New file.
24227         * elf/tst-order-a4.c: New file.
24228         * elf/tst-order-b1.c: New file.
24229         * elf/tst-order-b2.c: New file.
24230         * elf/tst-order-main.c: New file.
24231         New test case by George Gensure <werkt0@gmail.com>.
24233 2010-10-01  Andreas Schwab  <schwab@redhat.com>
24235         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24236         decoding ACE if AI_CANONIDN.
24238 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
24240         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
24242 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
24244         * version.h (RELEASE): Bump for 2.13 release.
24245         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
24247         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
24249         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
24250         MADV_NOHUGEPAGE.
24251         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
24252         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
24253         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
24254         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
24255         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
24256         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24258         * posix/getconf.c: Update copyright year.
24259         * catgets/gencat.c: Likewise.
24260         * csu/version.c: Likewise.
24261         * debug/catchsegv.sh: Likewise.
24262         * debug/xtrace.sh: Likewise.
24263         * elf/ldconfig.c: Likewise.
24264         * elf/ldd.bash.in: Likewise.
24265         * elf/sprof.c (print_version): Likewise.
24266         * iconv/iconv_prog.c: Likewise.
24267         * iconv/iconvconfig.c: Likewise.
24268         * locale/programs/locale.c: Likewise.
24269         * locale/programs/localedef.c: Likewise.
24270         * malloc/memusage.sh: Likewise.
24271         * malloc/mtrace.pl: Likewise.
24272         * nscd/nscd.c (print_version): Likewise.
24273         * nss/getent.c: Likewise.
24275         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
24276         PF_CAIF, and PF_ALG.
24277         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24279 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
24281         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
24282         (modules-names): Use them.
24283         (ifunc-test-modules, ifunc-pie-tests): Define.
24284         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
24285         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
24286         (test-extras): Likewise.
24287         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
24288         $(compile-command.c).
24289         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
24290         (all-built-dso): Define.
24291         (check-textrel.out, check-execstack.out): Depend on it.
24293         * configure.in: Don't override --enable-multi-arch.
24295 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
24297         [BZ #6812]
24298         * nscd/hstcache.c (tryagain): Define.
24299         (cache_addhst): Return tryagain not notfound for temporary errors.
24300         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
24301         failed.
24303 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
24305         [BZ #10563]
24306         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
24307         to make the syscall.
24308         * sysdeps/unix/sysv/linux/setgroups.c: New file.
24310         [BZ #12378]
24311         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
24312         and fall back to matching as normal character if the string ends before
24313         the matching ']' is found.  This is what POSIX requires.
24314         * posix/testfnm.c: Adjust test result.
24315         * posix/globtest.sh: Adjust test result.  Add new test.
24316         * posix/tst-fnmatch.input: Likewise.
24317         * posix/tst-fnmatch2.c: Add new test.
24319 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
24321         * elf/Makefile (check-execstack): Revert last change.  Depend on
24322         check-execstack.h.
24323         (check-execstack.h): New target.
24324         (generated): Add check-execstack.h.
24325         * elf/check-execstack.c: Include "check-execstack.h".
24326         (main): Revert last change.
24327         (handle_file): Return zero if GNU_STACK is absent and
24328         DEFAULT_STACK_PERMS doesn't include PF_X.
24330 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
24332         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
24333         in child fails because the descriptor is already closed.
24334         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
24335         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
24336         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
24338         [BZ #12397]
24339         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
24340         syscall.
24342         [BZ #10484]
24343         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
24344         temporary buffer used to handle multi lookups locally.
24345         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
24347 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
24349         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
24350         loader is ld.so.
24352 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
24354         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
24355         alignment for SSE2.
24357 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
24359         [BZ #12394]
24360         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
24361         characters.  When rounding increased number of integer digits recompute
24362         number of groups.
24363         * stdio-common/tst-grouping.c: New file.
24364         * stdio-common/Makefile: Add rules to build and run tst-grouping.
24366 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
24368         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
24369         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
24371         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
24372         void.
24373         * bits/select.h: Likewise.
24375 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
24377         * po/ja.po: Update from translation team.
24379 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
24381         [BZ #11155]
24382         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
24383         implementation just like for lxstat, fxstatat, et al.
24385 2010-12-27  Jim Meyering  <meyering@redhat.com>
24387         [BZ #12348]
24388         * posix/regexec.c (build_trtable): Return failure indication upon
24389         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24391 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
24393         [BZ #12201]
24394         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
24395         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
24396         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
24397         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
24399         [BZ #12207]
24400         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
24402         [BZ #12204]
24403         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
24404         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
24406 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
24408         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
24409         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
24410         script has SORT_BY_INIT_PRIORITY.
24411         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
24412         NO_CTORS_DTORS_SECTIONS is defined.
24413         * elf/soinit.c: Likewise.
24414         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
24415         NO_CTORS_DTORS_SECTIONS is defined.
24416         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
24417         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
24418         * sysdeps/sh/init-first.c: Likewise.
24419         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
24421 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
24423         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
24424         always use the slow path.
24426 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
24428         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
24429         similar rule which adds the sysdep directories to the header search in
24430         order to pick up the correct platform stackinfo.h.
24431         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
24432         perform test if it is, otherwise return successfully without testing.
24433         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
24434         DEFAULT_STACK_PERMS define in stackinfo.h.
24435         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
24436         defined in stackinfo.h.
24437         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
24438         DEFAULT_STACK_PERMS defined in stackinfo.h.
24439         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
24440         * sysdeps/ia64/stackinfo.h: Likewise.
24441         * sysdeps/s390/stackinfo.h: Likewise.
24442         * sysdeps/sh/stackinfo.h: Likewise.
24443         * sysdeps/sparc/stackinfo.h: Likewise.
24444         * sysdeps/x86_64/stackinfo.h: Likewise.
24445         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
24446         PF_X for powerpc64.  Retain PF_X for powerpc32.
24448 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
24450         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
24451         accurately.
24452         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
24453         GETDENTS_64BIT_ALIGNED.
24455 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
24457         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
24459 2010-12-10  Andreas Schwab  <schwab@redhat.com>
24461         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
24462         _GNU_SOURCE.
24464         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
24465         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
24466         Remove __restrict.
24467         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
24468         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
24470 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
24472         [BZ #11655]
24473         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
24474         are initialized.
24476 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
24478         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
24480 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
24482         * po/it.po: Update from translation team.
24484 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
24486         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
24487         unused codes.
24489 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
24491         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
24493 2010-11-24  Andreas Schwab  <schwab@redhat.com>
24495         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
24496         specially.
24497         (gaih_getanswer_slice): Likewise.
24499 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
24501         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
24503 2010-05-31  Petr Baudis  <pasky@suse.cz>
24505         [BZ #11149]
24506         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
24507         silently even in the chroot mode.
24509 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
24511         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
24512         last patch a bit.  Pretty printing
24514 2010-05-31  Petr Baudis <pasky@suse.cz>
24516         [BZ #10085]
24517         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
24518         initialization of skip_initgroups_dyn.
24520 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
24522         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
24523         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
24525 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
24527         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
24529 2010-11-11  Andreas Schwab  <schwab@redhat.com>
24531         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
24532         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
24533         (tst-fnmatch-ENV): Set MALLOC_TRACE.
24534         ($(objpfx)tst-fnmatch-mem): New rule.
24535         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
24536         * posix/tst-fnmatch.c (main): Call mtrace.
24538 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
24540         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24541         Support Intel processor model 6 and model 0x2c.
24543 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
24545         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
24546           signed comparison.
24548 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
24550         [BZ #12205]
24551         * string/test-strncasecmp.c (check_result): New function.
24552         (do_one_test): Use it.
24553         (check1): New function.
24554         (test_main): Use it.
24555         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
24556         Support strcasecmp and strncasecmp.
24558 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
24560         [BZ #12194]
24561         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
24562         * sysdeps/x86_64/bits/byteswap.h: Likewise.
24564 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24566         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
24567         IFUNC support.
24568         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24569         memset-x86-64.
24570         * sysdeps/x86_64/multiarch/bzero.S: New file.
24571         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
24572         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
24573         * sysdeps/x86_64/multiarch/memset.S: New file.
24574         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
24575         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24576         Set bit_Prefer_SSE_for_memop for Intel processors.
24577         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
24578         Define.
24579         (index_Prefer_SSE_for_memop): Define.
24580         (HAS_PREFER_SSE_FOR_MEMOP): Define.
24582 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
24584         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
24585         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
24587 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
24589         [BZ #12191]
24590         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
24591         (__x86_64_raw_data_cache_size_half): Likewise.
24592         (__x86_64_raw_shared_cache_size): Likewise.
24593         (__x86_64_raw_shared_cache_size_half): Likewise.
24595         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
24596         (__x86_64_raw_data_cache_size_half): Likewise.
24597         (__x86_64_raw_shared_cache_size): Likewise.
24598         (__x86_64_raw_shared_cache_size_half): Likewise.
24599         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
24600         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
24601         and __x86_64_raw_shared_cache_size_half.  Round
24602         __x86_64_data_cache_size_half, __x86_64_data_cache_size
24603         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
24604         to multiple of 256 bytes.
24606 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
24608         [BZ #12167]
24609         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
24610         of inacessible symlinks.  Verify result of symlink before returning it.
24611         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24612         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
24614 2010-10-28  Erich Ritz  <erichritz@gmail.com>
24616         * math/math.h (isinf): Fix typo in comment.
24618 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
24620         * po/da.po: Update from translation team.
24622 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
24624         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
24625         is added to the list.
24627 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24628             Ulrich Drepper  <drepper@gmail.com>
24630         * elf/dl-object.c (_dl_new_object): Don't append the new object to
24631         the global list here.  Move code to...
24632         (_dl_add_to_namespace_list): ...here.  New function.
24633         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
24634         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
24635         * elf/dl-load.c (lose): Don't remove the element from the list.
24636         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
24637         (_dl_map_object): Likewise.
24639 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
24641         [BZ #12159]
24642         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
24643         into all bytes of SSE register.
24644         Patch by Richard Li <richardpku@gmail.com>.
24646 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
24648         [BZ #12140]
24649         * malloc/malloc.c (_int_free): Fill correct number of bytes when
24650         perturbing.
24652 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
24654         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
24655         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
24656         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
24657         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
24658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
24659         submachine.
24660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
24662 2010-10-22  Andreas Schwab  <schwab@redhat.com>
24664         * include/dlfcn.h (__RTLD_SECURE): Define.
24665         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
24666         mode & __RTLD_SECURE instead.
24667         (open_path): Rename preloaded parameter to secure.
24668         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
24669         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
24670         * elf/dl-deps.c (openaux): Likewise.
24671         * elf/rtld.c (struct map_args): Remove is_preloaded.
24672         (map_doit): Don't use it.
24673         (dl_main): Likewise.
24674         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
24675         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
24677 2010-09-09  Andreas Schwab  <schwab@redhat.com>
24679         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
24680         (sysd-rules-targets): Remove duplicates.
24681         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
24682         rtld-%.$o dependency.
24684 2010-10-18  Andreas Schwab  <schwab@redhat.com>
24686         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
24687         _dl_map_object do it.
24689 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
24691         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
24692         fast fma builtins, define the macros in the C99 standard.
24693         (FP_FAST_FMAF): Likewise.
24694         (FP_FAST_FMAL): Likewise.
24695         * sysdeps/x86_64/bits/mathdef.h: Likewise.
24697         * bits/mathdef.h: Update copyright year.
24698         * sysdeps/powerpc/bits/mathdef.h: Likewise.
24700 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
24702         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
24703         builtins, define the macros in the C99 standard.
24704         (FP_FAST_FMAF): Likewise.
24705         (FP_FAST_FMAL): Likewise.
24706         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
24707         multiply/add.
24708         (FP_FAST_FMAF): Likewise.
24710 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
24712         [BZ #3268]
24713         * math/libm-test.inc (fma_test): Some new testcases.
24714         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
24715         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
24716         y and infinite z.  Do multiplication by C already in long double.
24717         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
24718         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
24719         y and infinite z.  Do bitwise or of inexact bit into u.d.
24720         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
24721         * sysdeps/i386/fpu/s_fmaf.S: Removed.
24722         * sysdeps/i386/fpu/s_fma.S: Removed.
24723         * sysdeps/i386/fpu/s_fmal.S: Removed.
24725 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
24727         [BZ #3268]
24728         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
24729         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
24730         computation is not scheduled after fetestexcept.  Fix value
24731         of minimum denormal long double.
24733 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
24735         [BZ #3268]
24736         * math/libm-test.inc (fma_test): Add some more tests.
24737         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
24738         correctly.
24740 2010-10-15  Andreas Schwab  <schwab@redhat.com>
24742         * scripts/data/localplt-s390-linux-gnu.data: New file.
24743         * scripts/data/localplt-s390x-linux-gnu.data: New file.
24745 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
24747         [BZ #3268]
24748         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
24749         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
24750         instead of dbl-64.
24751         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
24752         inlines.
24753         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
24754         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
24755         if one of x and y is very large and the other is subnormal.
24756         * sysdeps/s390/fpu/s_fmaf.c: New file.
24757         * sysdeps/s390/fpu/s_fma.c: New file.
24758         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
24759         * sysdeps/powerpc/fpu/s_fma.S: New file.
24760         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
24761         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
24762         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
24764 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
24766         [BZ #3268]
24767         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
24768         fma tests.
24769         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
24770         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
24771         * sysdeps/i386/i686/multiarch/s_fma.c: Include
24772         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
24773         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
24774         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
24775         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
24777 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
24779         [BZ #12078]
24780         * posix/regcomp.c (parse_branch): One more memory leak plugged.
24781         * posix/bug-regex31.input: Add test case.
24783 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
24785         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
24786         * posix/bug-regex31.input: New file.
24788         [BZ #12078]
24789         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
24790         (parse_sub_exp): Fix last change, use postorder.
24792         * posix/bug-regex31.c: New file.
24793         * posix/Makefile: Add rules to build and run bug-regex31.
24795         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
24797         [BZ #12078]
24798         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
24800         [BZ #12108]
24801         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
24802         to have entries in sys_siglist.
24804         [BZ #12093]
24805         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
24806         be NULL.
24808 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
24810         [BZ #3268]
24811         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
24812         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
24813         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
24814         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
24815         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
24816         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
24817         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
24818         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
24819         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
24820         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
24821         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
24822         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
24823         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
24824         * math/ftestexcept.c (fetestexcept): Likewise.
24825         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
24826         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
24827         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
24828         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
24829         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
24830         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
24831         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
24833 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
24835         [BZ #12107]
24836         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
24837         newline.
24839 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
24841         * string/bug-strstr1.c: New file.
24842         * string/Makefile: Add rules to build and run bug-strstr1.
24844 2010-10-05  Eric Blake  <eblake@redhat.com>
24846         [BZ #12092]
24847         * string/str-two-way.h (two_way_long_needle): Always clear memory
24848         when skipping input due to the shift table.
24850 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
24852         [BZ #12005]
24853         * malloc/mcheck.c: Handle large requests.
24855         [BZ #12077]
24856         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
24857         for strncmp and strncasecmp.
24858         * string/stratcliff.c: Add tests for strcmp and strncmp.
24859         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
24861 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
24863         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
24864         __set_fpscr.
24866 2010-09-30  Andreas Jaeger  <aj@suse.de>
24868         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
24869         (CGROUP_SUPER_MAGIC): Define.
24870         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24871         Handle btrfs and cgroup file systems.
24872         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
24873         Likewise.
24875 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
24877         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
24878         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
24880 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24882         [BZ #12067]
24883         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
24884         trying to locate the ELF header.
24886 2010-09-27  Andreas Schwab  <schwab@redhat.com>
24888         [BZ #11611]
24889         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
24890         Mask out sign-bit copies when constructing f_fsid.
24892 2010-09-24  Petr Baudis <pasky@suse.cz>
24894         * debug/stack_chk_fail_local.c: Add missing licence exception.
24895         * debug/warning-nop.c: Likewise.
24897 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
24899         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
24900         implementing getdents64 using getdents syscall, set d_type if
24901         __ASSUME_GETDENTS32_D_TYPE.
24903 2010-09-16  Andreas Schwab  <schwab@redhat.com>
24905         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
24906         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
24908 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
24910         [BZ #12037]
24911         * posix/unistd.h: Undo change of feature selection for ftruncate from
24912         2010-01-11.
24914 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
24916         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
24917         detection.
24919 2010-09-20  Andreas Schwab  <schwab@redhat.com>
24921         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
24922         fanotify_mark.
24923         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
24925 2010-09-14  Andreas Schwab  <schwab@redhat.com>
24927         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
24928         variables after CHECK_SP call.
24929         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
24931 2010-09-13  Andreas Schwab  <schwab@redhat.com>
24932             Ulrich Drepper  <drepper@redhat.com>
24934         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
24935         re-relocationg ld.so.
24936         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
24937         _dl_init_paths call.
24938         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
24939         here anymore.
24941 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
24943         * resolv/res_init.c (__res_vinit): Count the default server we added.
24945 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
24946             Ulrich Drepper  <drepper@redhat.com>
24948         [BZ #11968]
24949         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24950         (____longjmp_chk): Use %ebx for saving value across system call.
24951         Add unwind info.
24953 2010-09-06  Andreas Schwab  <schwab@redhat.com>
24955         * manual/Makefile: Don't mix pattern rules with normal rules.
24957 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
24959         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
24960         operation.
24961         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
24962         * libio/iofopncook.c (_IO_cookie_init): Likewise.
24963         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
24964         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
24965         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24966         Likewise.
24968 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
24970         [BZ #11979]
24971         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
24972         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
24974 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
24976         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
24977         * sysdeps/x86_64/addmul_1.S: Likewise.
24978         * sysdeps/x86_64/lshift.S: Likewise.
24979         * sysdeps/x86_64/mul_1.S: Likewise.
24980         * sysdeps/x86_64/rshift.S: Likewise.
24981         * sysdeps/x86_64/sub_n.S: Likewise.
24982         * sysdeps/x86_64/submul_1.S: Likewise.
24984 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24986         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
24987         Define __sched_param instead of SCHED_* and sched_param when
24988         <bits/sched.h> is included with __need_schedparam defined.
24989         * bits/sched.h [__need_schedparam]
24990         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
24991         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
24992         (__defined_schedparam): Define to 1.
24993         (__sched_param): New structure, identical to sched_param.
24994         (__need_schedparam): Undefine.
24996 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
24998         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
24999         (epoll_create1): Declare.
25001         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
25003 2010-08-31  Andreas Schwab  <schwab@redhat.com>
25005         [BZ #7066]
25006         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
25007         shifting retval into place.
25009 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
25011         * nis/rpcsvc/nis.h: Update copyright notice.
25012         * nis/rpcsvc/nis.x: Likewise.
25013         * nis/rpcsvc/nis_callback.h: Likewise.
25014         * nis/rpcsvc/nis_callback.x: Likewise.
25015         * nis/rpcsvc/nis_object.x: Likewise.
25016         * nis/rpcsvc/nis_tags.h: Likewise.
25017         * nis/rpcsvc/yp.h: Likewise.
25018         * nis/rpcsvc/yp.x: Likewise.
25019         * nis/rpcsvc/ypupd.h: Likewise.
25020         * nis/yp_xdr.c: Likewise.
25021         * nis/ypupdate_xdr.c: Likewise.
25023         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
25024         mainly the body of pmap_getport.  Add parameters to specify timeouts.
25025         (pmap_getport): Use __libc_rpc_getport.
25026         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
25027         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
25028         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
25030 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
25032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
25033         fanotify_mark.
25035 2010-08-27  Roland McGrath  <roland@redhat.com>
25037         * sysdeps/i386/i686/multiarch/Makefile
25038         (CFLAGS-varshift.c): New variable.
25040 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
25042         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
25043         * sysdeps/i386/i686/multiarch/varshift.c: New file.
25045         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
25047         * sysdeps/x86_64/strlen.S: Minimal code improvement.
25049 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
25051         * sysdeps/x86_64/strlen.S: Unroll the loop.
25052         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25053         strlen-sse2 strlen-sse2-bsf.
25054         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
25055         __strlen_no_bsf if bit_Slow_BSF is set.
25056         (__strlen_sse42): Removed.
25057         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
25058         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
25060 2010-08-25  Roland McGrath  <roland@redhat.com>
25062         * sysdeps/x86_64/multiarch/varshift.S: File removed.
25063         * sysdeps/x86_64/multiarch/varshift.c: New file.
25064         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
25065         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
25066         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
25067         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
25069 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
25071         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25072         strlen-sse2 strlen-sse2-bsf.
25073         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
25074         __strlen_sse2_bsf if bit_Slow_BSF is unset.
25075         (__strlen_sse2): Removed.
25076         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
25077         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
25078         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
25079         bit_Slow_BSF for Atom.
25080         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
25081         (index_Slow_BSF): Define.
25082         (HAS_SLOW_BSF): Define.
25084 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
25086         [BZ #10851]
25087         * resolv/res_init.c (__res_vinit): When no server address at all
25088         is given default to loopback.
25090 2010-08-24  Roland McGrath  <roland@redhat.com>
25092         * configure.in: Remove config-name.h generation.
25093         * configure: Regenerated.
25094         * config-name.in: File removed.
25095         * scripts/config-uname.sh: New file.
25096         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
25097         ($(objdir)config-name.h): New target.
25099         * sunrpc/rpc_parse.h: Avoid nested comment.
25101 2010-08-24  Richard Henderson  <rth@redhat.com>
25102             Ulrich Drepper  <drepper@redhat.com>
25103             H.J. Lu  <hongjiu.lu@intel.com>
25105         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
25106         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
25107         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
25108         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
25109         _mm_alignr_epi8 with _mm_loadu_si128.
25110         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
25111         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
25112         (__m128i_shift_right): Removed.
25113         * sysdeps/i386/i686/multiarch/varshift.h: New file.
25114         * sysdeps/i386/i686/multiarch/varshift.S: New file.
25115         * sysdeps/x86_64/multiarch/varshift.h: New file.
25116         * sysdeps/x86_64/multiarch/varshift.S: New file.
25118 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
25120         * configure.in: Move assembler checks to before sysdep dir checking.
25122 2010-08-20  Petr Baudis  <pasky@suse.cz>
25124         * LICENSES: Sync the sunrpc license.
25126 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
25128         * sunrpc/auth_des.c: Update copyright notice once again.
25129         * sunrpc/auth_none.c: Likewise.
25130         * sunrpc/auth_unix.c: Likewise.
25131         * sunrpc/authdes_prot.c: Likewise.
25132         * sunrpc/authuxprot.c: Likewise.
25133         * sunrpc/bindrsvprt.c: Likewise.
25134         * sunrpc/clnt_gen.c: Likewise.
25135         * sunrpc/clnt_perr.c: Likewise.
25136         * sunrpc/clnt_raw.c: Likewise.
25137         * sunrpc/clnt_simp.c: Likewise.
25138         * sunrpc/clnt_tcp.c: Likewise.
25139         * sunrpc/clnt_udp.c: Likewise.
25140         * sunrpc/clnt_unix.c: Likewise.
25141         * sunrpc/des_crypt.c: Likewise.
25142         * sunrpc/des_soft.c: Likewise.
25143         * sunrpc/get_myaddr.c: Likewise.
25144         * sunrpc/getrpcport.c: Likewise.
25145         * sunrpc/key_call.c: Likewise.
25146         * sunrpc/key_prot.c: Likewise.
25147         * sunrpc/openchild.c: Likewise.
25148         * sunrpc/pm_getmaps.c: Likewise.
25149         * sunrpc/pm_getport.c: Likewise.
25150         * sunrpc/pmap_clnt.c: Likewise.
25151         * sunrpc/pmap_prot.c: Likewise.
25152         * sunrpc/pmap_prot2.c: Likewise.
25153         * sunrpc/pmap_rmt.c: Likewise.
25154         * sunrpc/rpc/auth.h: Likewise.
25155         * sunrpc/rpc/auth_unix.h: Likewise.
25156         * sunrpc/rpc/clnt.h: Likewise.
25157         * sunrpc/rpc/des_crypt.h: Likewise.
25158         * sunrpc/rpc/key_prot.h: Likewise.
25159         * sunrpc/rpc/netdb.h: Likewise.
25160         * sunrpc/rpc/pmap_clnt.h: Likewise.
25161         * sunrpc/rpc/pmap_prot.h: Likewise.
25162         * sunrpc/rpc/pmap_rmt.h: Likewise.
25163         * sunrpc/rpc/rpc.h: Likewise.
25164         * sunrpc/rpc/rpc_des.h: Likewise.
25165         * sunrpc/rpc/rpc_msg.h: Likewise.
25166         * sunrpc/rpc/svc.h: Likewise.
25167         * sunrpc/rpc/svc_auth.h: Likewise.
25168         * sunrpc/rpc/types.h: Likewise.
25169         * sunrpc/rpc/xdr.h: Likewise.
25170         * sunrpc/rpc_clntout.c: Likewise.
25171         * sunrpc/rpc_cmsg.c: Likewise.
25172         * sunrpc/rpc_common.c: Likewise.
25173         * sunrpc/rpc_cout.c: Likewise.
25174         * sunrpc/rpc_dtable.c: Likewise.
25175         * sunrpc/rpc_hout.c: Likewise.
25176         * sunrpc/rpc_main.c: Likewise.
25177         * sunrpc/rpc_parse.c: Likewise.
25178         * sunrpc/rpc_parse.h: Likewise.
25179         * sunrpc/rpc_prot.c: Likewise.
25180         * sunrpc/rpc_sample.c: Likewise.
25181         * sunrpc/rpc_scan.c: Likewise.
25182         * sunrpc/rpc_scan.h: Likewise.
25183         * sunrpc/rpc_svcout.c: Likewise.
25184         * sunrpc/rpc_tblout.c: Likewise.
25185         * sunrpc/rpc_util.c: Likewise.
25186         * sunrpc/rpc_util.h: Likewise.
25187         * sunrpc/rpcinfo.c: Likewise.
25188         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
25189         * sunrpc/rpcsvc/key_prot.x: Likewise.
25190         * sunrpc/rpcsvc/klm_prot.x: Likewise.
25191         * sunrpc/rpcsvc/mount.x: Likewise.
25192         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
25193         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
25194         * sunrpc/rpcsvc/rex.x: Likewise.
25195         * sunrpc/rpcsvc/rstat.x: Likewise.
25196         * sunrpc/rpcsvc/rusers.x: Likewise.
25197         * sunrpc/rpcsvc/sm_inter.x: Likewise.
25198         * sunrpc/rpcsvc/spray.x: Likewise.
25199         * sunrpc/rpcsvc/yppasswd.x: Likewise.
25200         * sunrpc/rtime.c: Likewise.
25201         * sunrpc/svc.c: Likewise.
25202         * sunrpc/svc_auth.c: Likewise.
25203         * sunrpc/svc_authux.c: Likewise.
25204         * sunrpc/svc_raw.c: Likewise.
25205         * sunrpc/svc_run.c: Likewise.
25206         * sunrpc/svc_simple.c: Likewise.
25207         * sunrpc/svc_tcp.c: Likewise.
25208         * sunrpc/svc_udp.c: Likewise.
25209         * sunrpc/svc_unix.c: Likewise.
25210         * sunrpc/svcauth_des.c: Likewise.
25211         * sunrpc/xcrypt.c: Likewise.
25212         * sunrpc/xdr.c: Likewise.
25213         * sunrpc/xdr_array.c: Likewise.
25214         * sunrpc/xdr_float.c: Likewise.
25215         * sunrpc/xdr_mem.c: Likewise.
25216         * sunrpc/xdr_rec.c: Likewise.
25217         * sunrpc/xdr_ref.c: Likewise.
25218         * sunrpc/xdr_sizeof.c: Likewise.
25219         * sunrpc/xdr_stdio.c: Likewise.
25221         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
25222         handling.
25224 2010-08-19  Andreas Schwab  <schwab@redhat.com>
25226         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
25228 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
25230         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
25231         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
25232         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
25233         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
25234         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
25235         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
25236         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
25237         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
25238         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
25239         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
25240         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
25241         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
25242         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
25243         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
25245 2010-07-26  Anton Blanchard  <anton@samba.org>
25247         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
25248         * malloc/arena.c (heap_trim): Likewise.
25250 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
25252         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
25253         here.  Not...
25254         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
25255         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
25257 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
25259         * sysdeps/i386/elf/Makefile: New file.
25261 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
25263         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
25264         from fanotify_init.
25265         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
25266         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
25268 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
25270         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
25271         of strncasecmp_l.
25272         * sysdeps/multiarch/strcmp.S: Likewise.
25274 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
25276         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25277         strncase_l-nonascii.
25278         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25279         Add strncase_l-ssse3.
25280         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
25281         * sysdeps/x86_64/strcmp.S: Likewise.
25282         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
25283         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
25284         * sysdeps/x86_64/strncase.S: New file.
25285         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
25286         * sysdeps/x86_64/strncase_l.S: New file.
25287         * string/Makefile (strop-tests): Add strncasecmp.
25288         * string/test-strncasecmp.c: New file.
25290         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
25291         warning.
25293         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
25294         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
25296 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
25298         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
25300 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
25302         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
25303         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
25304         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
25306 2010-05-01  Alan Modra  <amodra@gmail.com>
25308         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
25309         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
25310         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
25311         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
25312         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
25313         tidying.  Don't tail-call __sigjmp_save for static lib.
25314         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
25315         save location.
25316         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
25317         (CALL_MCOUNT): Add eh info, and nop after bl.
25318         (TAIL_CALL_SYSCALL_ERROR): New macro.
25319         (PSEUDO_RET): Use it.
25320         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
25321         Correct save location of integer regs and cr.
25322         (_dl_profile_resolve): Correct cr save location.  Delete nops
25323         after bl when SHARED.  Reduce cfi size a little by better
25324         placement of cfi directives.
25325         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
25326         make a stack frame.  Instead use parm save area as a temp.
25327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
25328         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
25329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
25330         Don't make a stack frame for parent, use parm save area.
25331         Increase child stack frame to 112 bytes.  Don't save unused reg,
25332         and adjust reg usage.  Set up cfi on error recovery and
25333         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
25334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
25335         (__makecontext): Add dummy nop after jump to exit.
25336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
25337         Use correct parm save area and cr save, reduce stack frame.
25338         Correct cfi for possible PSEUDO_RET frame setup.
25339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
25340         Branch to local label emitted by PSEUDO_RET rather than
25341         __syscall_error.
25343 2010-08-12  Andreas Schwab  <schwab@redhat.com>
25345         [BZ #11904]
25346         * locale/programs/locale.c (print_assignment): New function.
25347         (show_locale_vars): Use it.
25349 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
25351         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
25352         field.
25353         (struct statfs64): Likewise.
25354         (_STATFS_F_FLAGS): Define.
25355         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
25356         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25357         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
25358         (ST_VALID): Define locally.
25359         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
25360         __statvfs_getflags, use the provided value.
25361         * sysdeps/unix/sysv/linux/kernel-features.h: Define
25362         __ASSUME_STATFS_F_FLAGS.
25364         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
25366         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
25367         Add sys/fanotify.h.
25368         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
25369         fanotify_mask for GLIBC_2.13.
25370         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
25371         fanotify_init and fanotify_mark.
25372         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
25373         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
25375         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
25376         Add prlimit.
25377         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
25378         prlimit64 for GLIBC_2.13.
25379         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
25380         prlimit64.
25381         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
25382         syscall.
25383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
25384         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
25385         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
25386         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
25387         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
25388         add prlimit alias.
25389         * sysdeps/unix/sysv/linux/prlimit.c: New file.
25391         [BZ #11903]
25392         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
25393         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
25395         * nss/Makefile: Add rules to build and run tst-nss-test1.
25396         * shlib-versions: Add entry for libnss_test1.
25397         * nss/nss_test1.c: New file.
25398         * nss/tst-nss-test1.c: New file.
25400         * nss/nsswitch.c (__nss_database_custom): Define new variable.
25401         (__nss_configure_lookup): Set appropriate entry in
25402         __nss_configure_lookup to true.
25403         * nss/nsswitch.h: Define enum with indeces of databases in
25404         databases and __nss_database_custom arrays.  Declare
25405         __nss_database_custom.
25406         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
25407         to avoid using nscd when custom rules are installed.
25408         * nss/getXXbyYY_r.c: Likewise.
25409         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
25411         * nss/nss_files/files-parse.c: Whitespace fixes.
25413 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
25415         [BZ #11883]
25416         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
25417         * posix/fnmatch_loop.c: Likewise.
25419 2010-07-17  Andi Kleen  <ak@linux.intel.com>
25421         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
25422         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
25423         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
25424         * Versions.def [GLIBC_2.13]: Add.
25426 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
25428         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25429         Also fail if tpwd after pwuid call is NULL.
25431 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25433         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
25434         when converting to ms.
25436 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25438         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
25439         EOPNOTSUPP errors with ENOTTY.
25440         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
25441         EOPNOTSUPP errors with ENOTTY.
25443 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
25445         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
25446         Add strcasecmp_l-ssse3.
25447         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
25448         strcasecmp.
25449         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
25450         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
25451         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
25453 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
25455         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
25457         * string/Makefile (strop-tests): Add strcasecmp.
25458         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
25459         strcasecmp_l-nonascii.
25460         (gen-as-const-headers): Add locale-defines.sym.
25461         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
25462         * sysdeps/x86_64/strcasecmp.S: New file.
25463         * sysdeps/x86_64/strcasecmp_l.S: New file.
25464         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
25465         * sysdeps/x86_64/locale-defines.sym: New file.
25466         * string/test-strcasecmp.c: New file.
25468         * string/test-strcasestr.c: Test both ends of the range of characters.
25469         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
25471 2010-07-29  Roland McGrath  <roland@redhat.com>
25473         [BZ #11856]
25474         * manual/locale.texi (Yes-or-No Questions): Fix example code.
25476 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
25478         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
25479         for ld.so.
25481 2010-07-27  Andreas Schwab  <schwab@redhat.com>
25483         * manual/memory.texi (Malloc Tunable Parameters): Document
25484         M_PERTURB.
25486 2010-07-26  Roland McGrath  <roland@redhat.com>
25488         [BZ #11840]
25489         * configure.in (-fgnu89-inline check): Set and substitute
25490         gnu89_inline, not libc_cv_gnu89_inline.
25491         * configure: Regenerated.
25492         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
25494 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
25496         * string/test-strnlen.c: New file.
25497         * string/Makefile (strop-tests): Add strnlen.
25498         * string/tester.c (test_strnlen): Add a few more test cases.
25499         * string/tst-strlen.c: Better error reporting.
25501         * sysdeps/x86_64/strnlen.S: New file.
25503 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
25505         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
25506         lower-latency instructions.
25508 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
25510         * string/test-strcasestr.c: New file.
25511         * string/test-strstr.c: New file.
25512         * string/Makefile (strop-tests): Add strstr and strcasestr.
25513         * string/str-two-way.h: Don't undefine MAX.
25514         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
25516 2010-07-21  Andreas Schwab  <schwab@redhat.com>
25518         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25519         strcasestr-nonascii.
25520         (CFLAGS-strcasestr-nonascii.c): Define.
25521         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
25522         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
25523         Remove unused attribute.
25525 2010-07-20  Roland McGrath  <roland@redhat.com>
25527         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
25528         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
25529         ld.so.cache was broken.  With it, there is no way to disable dsocaps
25530         like LD_HWCAP_MASK can disable hwcaps.
25532 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
25534         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
25536 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
25538         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
25539         call in strcasestr.
25540         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
25541         __strcasestr_sse42_nonascii.
25542         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
25543         strcasestr-nonascii.c.
25544         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
25546 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
25548         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
25549         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
25550         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
25551         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
25553 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
25555         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
25556         fcntl.
25558 2010-07-06  Andreas Schwab  <schwab@redhat.com>
25560         [BZ #11577]
25561         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
25562         dl_signal_cerror.
25564 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
25566         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
25567         _PC_PIPE_BUF using F_GETPIPE_SZ.
25569 2010-07-05  Roland McGrath  <roland@redhat.com>
25571         * manual/arith.texi (Rounding Functions): Fix rint description
25572         implicit in round description.
25574 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
25576         * elf/Makefile: Fix linking for a few tests to make recent linker
25577         happy.
25579 2010-06-30  Andreas Schwab  <schwab@redhat.com>
25581         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25582         $(common-objpfx)libc_nonshared.a.
25584 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
25586         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
25587         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
25588         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
25589         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
25590         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
25591         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
25592         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
25593         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
25594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
25595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
25596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
25597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
25598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
25599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
25600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
25601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
25602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
25603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
25604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
25605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
25606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
25607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
25608         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
25609         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
25610         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
25611         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
25612         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
25613         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
25614         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
25615         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
25616         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
25617         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
25618         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
25619         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
25620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
25621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
25622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
25623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
25624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
25625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
25626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
25627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
25628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
25629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
25630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
25631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
25632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
25633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
25635 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
25637         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
25638         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
25639         * string/memmove.c (memmove): Renamed to ...
25640         (MEMMOVE): ...this.  Default to memmove.
25641         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
25642         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
25643         (END_CHK): Define.
25644         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25645         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
25646         mempcpy-ssse3-back memmove-ssse3-back.
25647         * sysdeps/x86_64/multiarch/bcopy.S: New file .
25648         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
25649         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
25650         * sysdeps/x86_64/multiarch/memcpy.S: New file.
25651         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
25652         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
25653         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
25654         * sysdeps/x86_64/multiarch/memmove.c: New file.
25655         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
25656         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
25657         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
25658         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
25659         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
25660         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
25661         Define.
25662         (index_Fast_Copy_Backward): Define.
25663         (HAS_ARCH_FEATURE): Define.
25664         (HAS_FAST_REP_STRING): Define.
25665         (HAS_FAST_COPY_BACKWARD): Define.
25667 2010-06-21  Andreas Schwab  <schwab@redhat.com>
25669         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25670         Restore proper fallback handling.
25672 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
25674         [BZ #11701]
25675         * posix/group_member.c (__group_member): Correct checking loop.
25677         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
25678         OOM in getpwuid_r correctly.  Return error number when the caller
25679         should return, otherwise -1.
25680         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
25681         call returning > 0 value.
25682         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
25684 2010-06-07  Andreas Schwab  <schwab@redhat.com>
25686         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
25687         libc_nonshared.a from targets in modules-names.
25689 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
25691         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
25692         requires it.
25694 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
25696         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
25697         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
25698         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
25699         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
25701 2010-06-02  Andreas Schwab  <schwab@redhat.com>
25703         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
25705 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
25707         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
25708         and F_GETPIPE_SZ.
25709         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
25710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25711         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25712         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25713         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25714         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
25716 2010-06-14  Roland McGrath  <roland@redhat.com>
25718         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
25720 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
25722         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
25723         __REDIRECT followed by __THROW.
25724         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
25725         * posix/getopt.h (getopt): Likewise.
25727 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
25729         * hurd/lookup-at.c (__file_name_lookup_at): Accept
25730         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
25731         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
25732         in AT_FLAGS.
25733         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
25734         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
25736 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
25738         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
25740 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
25742         [BZ #11640]
25743         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25744         Properly check family and model.
25746 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
25748         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
25750 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
25752         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
25754 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
25756         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
25757         symbol reference.
25759 2010-05-19  Andreas Schwab  <schwab@redhat.com>
25761         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
25762         symbol reference.
25764 2010-05-21  Andreas Schwab  <schwab@redhat.com>
25766         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
25767         and internal_recvmmsg.
25768         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
25769         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
25770         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
25771         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
25773         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
25774         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25775         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25777 2010-05-20  Andreas Schwab  <schwab@redhat.com>
25779         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
25781 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
25783         POWER7 optimizations.
25784         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
25785         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
25787 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
25789         * version.h: Update for 2.13 development version.
25791 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
25793         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
25794         exceptions.  Return 0.
25796 2010-05-07  Roland McGrath  <roland@redhat.com>
25798         * elf/ldconfig.c (main): Add a const.
25800 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
25802         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
25803         (args_options): Add no-idn option.
25804         (ahosts_keys_int): Add idn_flags to ai_flags.
25805         (parse_option): Handle 'i' option to clear idn_flags.
25807         * malloc/malloc.c (_int_free): Possible race in the most recently
25808         added check.  Only act on the data if no current modification
25809         happened.
25811 See ChangeLog.17 for earlier changes.