Remove unused localtime makefile variables.
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2
3         * Makeconfig (localtime): Remove variable.
4         (inst_localtime-file): Likewise.
5
6 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7
8         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9         Update.
10         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11         Update.
12         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
13         Update.
14         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15         Update.
16         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
17         Update.
18         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
19         Update.
20         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21         Update.
22         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
23         Update.
24         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25         Update.
26
27 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
28
29         [BZ #2550]
30         [BZ #2570]
31         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
32         comparisons to determine direction to adjust input.
33         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
35         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
36         Likewise.
37         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38         Likewise.
39         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
40         Likewise.
41         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
42         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
43         Likewise.
44         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
45         Likewise.
46         * math/libm-test.inc (nexttoward_test): Add more tests.
47
48 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
49
50         [BZ #14040]
51         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
52         in version GLIBC_2.1, not GLIBC_2.0.
53         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
54         Likewise.
55
56 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
57
58         [BZ #13942]
59         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
60         (1 - x) * (1 + x).
61         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
62         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
63         * math/libm-test.inc (acos_test): Add more tests.
64         (asin_test): Likewise.
65         * sysdeps/i386/fpu/libm-test-ulps: Update.
66         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67
68         [BZ #14034]
69         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
70         of square root.
71         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
72         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
73         * math/libm-test.inc (acos_test_tonearest): New function.
74         (acos_test_towardzero): Likewise.
75         (acos_test_downward): Likewise.
76         (acos_test_upward): Likewise.
77         (asin_test_tonearest): Likewise.
78         (asin_test_towardzero): Likewise.
79         (asin_test_downward): Likewise.
80         (asin_test_upward): Likewise.
81         (main): Call the new functions.
82         * sysdeps/i386/fpu/libm-test-ulps: Update.
83         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
84
85         [BZ #13884]
86         [BZ #13924]
87         * math/e_exp10.c: Include <float.h>.
88         (__ieee754_exp10): Handle underflow here rather than multiplying
89         large negative argument by M_LN10.
90         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
91         of __ieee754_expf.
92         * math/e_exp10l.c: Include <float.h>.
93         (__ieee754_exp10l): Handle underflow here rather than multiplying
94         large negative argument by M_LN10l.
95         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
96         spurious overflow exception on underflow.
97
98 2012-04-29  Marek Polacek  <polacek@redhat.com>
99
100         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
101         (__fortify_function): New macro.
102         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
103         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
104         __extern_always_inline.
105         * libio/bits/stdio2.h: Likewise.
106         * libio/bits/stdio.h: Likewise.
107         * string/string.h: Likewise.
108         * string/bits/string3.h: Likewise.
109         * include/stdio.h: Likewise.
110         * stdlib/bits/stdlib.h: Likewise.
111         * stdlib/stdlib.h: Likewise.
112         * rt/bits/mqueue2.h: Likewise.
113         * rt/mqueue.h: Likewise.
114         * posix/bits/unistd.h: Likewise.
115         * posix/unistd.h: Likewise.
116         * io/bits/poll2.h: Likewise.
117         * io/bits/fcntl2.h: Likewise.
118         * io/fcntl.h: Likewise.
119         * io/sys/poll.h: Likewise.
120         * misc/bits/syslog.h: Likewise.
121         * misc/bits/syslog-ldbl.h: Likewise.
122         * misc/sys/syslog.h: Likewise.
123         * socket/bits/socket2.h: Likewise.
124         * socket/sys/socket.h: Likewise.
125         * debug/tst-chk1.c: Likewise.
126         * wcsmbs/bits/wchar2.h: Likewise.
127         * wcsmbs/bits/wchar-ldbl.h: Likewise.
128         * wcsmbs/wchar.h: Likewise.
129
130 2012-04-29  Andreas Jaeger  <aj@suse.de>
131
132         * Makerules (tests): Remove enable-check-abi protection.
133         (check-abi-warn): Remove.
134         (check-abi-%): Remove check-abi-warn usage.
135
136         * configure.in: Remove check-abi configure option.
137         * configure: Regenerated.
138         * config.make.in (enable-check-abi): Remove.
139
140 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
141
142         [BZ #14033]
143         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
144         double functions to double *_finite functions.
145
146         [BZ #13941]
147         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
148         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
149         LDBL_MIN_EXP.
150         * stdio-common/Makefile (tests): Add tst-sprintf3.
151         * stdio-common/tst-sprintf3.c: New file.
152
153         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
154         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
155
156 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
157
158         * conform/conformtest.pl: Remove duplicate typed-constant
159         handling.
160
161 2012-04-28  David S. Miller  <davem@davemloft.net>
162
163         * Makerules (%.abilist): Add vpath on sysdep_dirs.
164         (check-abi-%): Remove AWK script prerequisite and explicit
165         abilist directory.
166         (check-abi): Rewrite to just diff the symlist with the abilist.
167         (config-tls, config-abi-config): Delete, no longer used.
168         (update-abi-%): Remove AWK script and explicit abilist directory.
169         (update-abi): Rewrite to simply compare and conditionally copy the
170         symlist and the sysdep abilist file.  Remove update-abi-config
171         checks.
172         * abilist/ld.abilist: Remove.
173         * abilist/libBrokenLocale.abilist: Remove.
174         * abilist/libanl.abilist: Remove.
175         * abilist/libcrypt.abilist: Remove.
176         * abilist/libdl.abilist: Remove.
177         * abilist/librt.abilist: Remove.
178         * abilist/libthread_db.abilist: Remove.
179         * abilist/libutil.abilist: Remove.
180         * scripts/extract-abilist.awk: Remove.
181         * scripts/merge-abilist.awk: Remove.
182         * sysdeps/generic/libcidn.abilist: New file.
183         * sysdeps/generic/libnss_compat.abilist: New file.
184         * sysdeps/generic/libnss_db.abilist: New file.
185         * sysdeps/generic/libnss_dns.abilist: New file.
186         * sysdeps/generic/libnss_files.abilist: New file.
187         * sysdeps/generic/libnss_hesiod.abilist: New file.
188         * sysdeps/generic/libnss_nis.abilist: New file.
189         * sysdeps/generic/libnss_nisplus.abilist: New file.
190         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
191         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
192         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
193         file.
194         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
195         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
196         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
197         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
198         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
199         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
200         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
201         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
202         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
203         file.
204         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
205         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
206         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
207         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
208         file.
209         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
210         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
211         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
212         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
213         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
214         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
215         file.
216         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
217         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
218         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
219         file.
220         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
221         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
222         New file.
223         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
224         New file.
225         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
226         New file.
227         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
228         New file.
229         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
230         New file.
231         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
232         New file.
233         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
234         New file.
235         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
236         New file.
237         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
238         New file.
239         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
240         New file.
241         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
242         New file.
243         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
244         New file.
245         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
246         New file.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
248         file.
249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
250         New file.
251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
252         New file.
253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
254         file.
255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
256         New file.
257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
258         New file.
259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
260         file.
261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
262         New file.
263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
264         New file.
265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
266         New file.
267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
268         New file.
269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
270         New file.
271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
272         New file.
273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
274         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
275         file.
276         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
277         New file.
278         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
279         file.
280         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
281         file.
282         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
283         file.
284         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
285         file.
286         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
287         file.
288         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
289         New file.
290         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
291         file.
292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
293         file.
294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
295         New file.
296         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
297         file.
298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
300         file.
301         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
302         New file.
303         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
304         file.
305         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
306         file.
307         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
308         file.
309         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
310         file.
311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
312         file.
313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
314         New file.
315         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
316         file.
317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
318         file.
319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
320         New file.
321         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
322         file.
323         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
324         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
325         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
326         file.
327         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
328         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
329         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
330         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
331         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
332         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
333         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
334         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
335         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
336         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
338         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
339         file.
340         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
341         New file.
342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
343         file.
344         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
345         file.
346         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
347         file.
348         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
349         file.
350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
351         file.
352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
353         New file.
354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
355         New file.
356         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
357         file.
358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
359         New file.
360         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
361         file.
362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
363         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
364         file.
365         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
366         New file.
367         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
368         file.
369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
370         file.
371         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
372         file.
373         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
374         file.
375         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
376         file.
377         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
378         New file.
379         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
380         New file.
381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
382         file.
383         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
384         New file.
385         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
386         file.
387
388 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
389
390         * conform/conformtest.pl: Fix typo in handling typed-constant from
391         allow-header.
392
393 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
394
395         * README: Cut down references to pre-2.6 Linux kernels and
396         Linuxthreads.  Update lists of configurations in libc and ports
397         and sort alphabetically.  Say "or newer" with Linux kernel version
398         requirements.
399
400         * config.h.in [IS_IN_build]: Allow compiling without optimization.
401
402 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
403
404         [BZ #887]
405         * math/libm-test.inc (logb_test_downward): New test to expose
406         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
407         rounding mode.
408
409 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
410
411         [BZ #14027]
412         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
413         to be done.
414         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
415         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
416
417 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
418
419         * sysdeps/unix/i386/brk.S: Remove file.
420         * sysdeps/unix/i386/dl-brk.S: Likewise.
421         * sysdeps/unix/i386/pipe.S: Likewise.
422         * sysdeps/unix/i386/sigreturn.S: Likewise.
423         * sysdeps/unix/i386/syscall.S: Likewise.
424         * sysdeps/unix/i386/vfork.S: Likewise.
425         * sysdeps/unix/i386/wait.S: Likewise.
426
427         * sysdeps/unix/common/tcsendbrk.c: Move to ...
428         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
429
430         * configure.in (arm*-none*): Do not allow without
431         --enable-hacker-mode.
432         (netbsd*): Remove case setting base_os.
433         (386bsd*): Likewise.
434         (freebsd*): Likewise.
435         (bsdi*): Likewise.
436         (osf*): Likewise.
437         (sunos*): Likewise.
438         (ultrix*): Likewise.
439         (newsos*): Likewise.
440         (dynix*): Likewise.
441         (*bsd*): Likewise.
442         (sysv*): Likewise.
443         (isc*): Likewise.
444         (esix*): Likewise.
445         (sco*): Likewise.
446         (minix*): Likewise.
447         (irix4*): Likewise.
448         (irix6*): Likewise.
449         (solaris[2-9]*): Likewise.
450         (none): Likewise.
451         * configure: Regenerated.
452
453 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
454
455         [BZ #11521]
456         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
457         overflow or cancellation in calculating denominator.
458         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
459         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
460         down expression to avoid unexpected rounding in newer GCCs.
461         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
462
463 2012-04-26  David S. Miller  <davem@davemloft.net>
464
465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
466         long-double compat symbols.
467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
480
481 2012-04-25  David S. Miller  <davem@davemloft.net>
482
483         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
484         HWCAP_* values only after the memory barriers have been defined.
485         (atomic_full_barrier): Define.
486         (atomic_read_barrier): Define.
487         (atomic_write_barrier): Define.
488
489 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
490
491         * shlib-versions: Add libgcc_s version information.
492         * sysdeps/generic/libgcc_s.h: Remove.
493         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
494         libgcc_s.h.
495         * sysdeps/gnu/unwind-resume.c: Likewise.
496         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
497
498 2012-04-25  David S. Miller  <davem@davemloft.net>
499
500         * sysdeps/unix/sparc/brk.S: Delete.
501         * sysdeps/unix/sparc/dl-brk.S: Delete.
502         * sysdeps/unix/sparc/pipe.S: Delete.
503         * sysdeps/unix/sparc/sysdep.S: Delete.
504         * sysdeps/unix/sparc/sysdep.h: Delete.
505         * sysdeps/unix/sparc/vfork.S: Delete.
506         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
507         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
508         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
509         ret_ERRVAL, r0, r1, MOVE): Define.
510         (JUMPTARGET): Remove.
511         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
512         sysdeps/unix/sparc/sysdep.h
513         (ENTRY, END): Remove.
514         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
515
516 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
517
518         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
519         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
520         -DIS_IN_build.
521
522         * timezone/README: Update upstream location and email address for
523         tzcode and tzdata.
524         * timezone/zdump.c: Update from tzcode 2012b.
525         * timezone/zic.c: Likewise.
526
527         * configure.in (libc_cv_as_needed): Remove test.
528         * configure: Regenerated.
529         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
530         conditional definition.
531         [$(have-as-needed) != yes] (no-as-needed): Likewise.
532         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
533         * config.make.in (have-as-needed): Remove variable.
534
535 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
536             Paul Pluzhnikov  <ppluzhnikov@google.com>
537
538         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
539         strings correctly.
540
541 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
542
543         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
544         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
545         * sysdeps/sh/strlen.S: Likewise.
546
547 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
548
549         * sysdeps/unix/fork.S: Remove file.
550         * sysdeps/unix/i386/fork.S: Likewise.
551         * sysdeps/unix/sparc/fork.S: Likewise.
552
553         * sysdeps/unix/system.c: Remove file.
554         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
555
556         * sysdeps/unix/getegid.S: Remove file.
557         * sysdeps/unix/geteuid.S: Likewise.
558
559 2012-04-24  Roland McGrath  <roland@hack.frob.com>
560
561         * scripts/check-localplt.awk: New file.
562         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
563         of diff.
564         * scripts/data/localplt-generic.data: Add a comment.
565
566         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
567         NODE when __dir_mkfile failed.
568         * sysdeps/mach/hurd/symlinkat.c: Likewise.
569         Reported by Ludovic Courtès <ludo@gnu.org>.
570
571 2012-04-24  Andreas Jaeger  <aj@suse.de>
572
573         * Makerules (common-clean): Also remove gen-as-const-headers
574         files.
575
576 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
577
578         * Makerules (native-compile): Do not change working directory for
579         build.  Use $(OUTPUT_OPTION) in command.
580         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
581
582 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
583
584         [BZ #13886]
585         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
586         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
587         * math/libm-test.inc (floor_test): Add more tests.
588         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
589
590 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
591
592         * sysdeps/unix/getdents.c: Remove file.
593         * sysdeps/unix/sysv/getdents.c: Likewise.
594         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
595
596         * sysdeps/unix/syscalls.list (madvise): Add syscall from
597         sysdeps/unix/mman/syscalls.list.
598         (mmap): Likewise.
599         (mprotect): Likewise.
600         (msync): Likewise.
601         (munmap): Likewise.
602         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
603         * sysdeps/unix/mman/syscalls.list: Remove.
604         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
605
606         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
607         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
608         * configure: Regenerated.
609         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
610         $(libgcc_s_suffix).
611         * config.make.in (libgcc_s_suffix): Remove variable.
612
613 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
614
615         * sysdeps/unix/sysv/gethostname.c: Move to ...
616         * sysdeps/posix/gethostname.c: ... here.
617
618         * sysdeps/unix/execve.S: Remove file.
619
620         * sysdeps/unix/_exit.S: Remove file.
621
622 2012-04-23  Andreas Jaeger  <aj@suse.de>
623
624         [BZ #13739]
625         * manual/Makefile: Remove make dist support, there's no
626         need for a stand-alone documentation tar ball.
627         (TEXI2DVI): Define always, it's not in Makeconfig.
628         (dist): Removed.
629         (tar-it): Removed.
630         (edition): Removed.
631         (glibc-doc-$(edition).tar): Removed
632         (%.Z): Removed.
633         (%.gz): Removed.
634         (%.uu): Removed.
635         (ETAGS): Remove, it's in Makeconfig.
636         (move-if-change): Remove, it's in Makeconfig.
637
638 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
639
640         [BZ #13970]
641         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
642         (strtod, strtof, strtold, strtol, strtoul, strtoq)
643         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
644         (strtod_l, strtof_l, strtold_l): Remove __wur.
645         It is not necessarily an error to ignore strtol's return value.
646         One can reliably look at the stored endptr to decide whether
647         the number had valid syntax.
648
649 2012-04-21  Andreas Jaeger  <aj@suse.de>
650
651         [BZ #13739]
652         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
653
654 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
655
656         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
657         * sysdeps/unix/sysv/Versions: Remove file.
658
659 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
660
661         [BZ #13927]
662         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
663
664 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
665
666         [BZ #7064]
667         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
668         version from __vm86.
669
670 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
671
672         * sysdeps/unix/common/lxstat.c: Remove file.
673         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
674
675         * sysdeps/unix/sysv/Makefile: Remove file.
676
677         * sysdeps/unix/sysv/direct.h: Remove file.
678
679         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
680         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
681         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
682         * sysdeps/unix/sysv/bits/signum.h: Likewise.
683         * sysdeps/unix/sysv/bits/stat.h: Likewise.
684         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
685         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
686
687         * sysdeps/unix/sysv/setrlimit.c: Remove file.
688
689         * sysdeps/unix/xmknod.c: Remove file.
690         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
691
692         * sysdeps/unix/sysv/settimeofday.c: Remove file.
693
694         * sysdeps/unix/sysv/i386/time.S: Remove file.
695
696         * sysdeps/unix/fxstat.c: Remove file.
697         * sysdeps/unix/xstat.c: Likewise.
698         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
699
700         * sysdeps/unix/sysv/sigaction.c: Remove file.
701
702         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
703         (sysdep_headers): Remove variable.
704         [termio.h not in sysdep_headers] (generated): Likewise.
705         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
706         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
707         * sysdeps/unix/sysv/tcdrain.c: Likewise.
708         * sysdeps/unix/sysv/tcflow.c: Likewise.
709         * sysdeps/unix/sysv/tcflush.c: Likewise.
710         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
711         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
712         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
713         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
714         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
715
716         * sysdeps/unix/siglist.c: Remove file.
717
718         * sysdeps/unix/getppid.S: Remove file.
719
720         * sysdeps/unix/mkdir.c: Remove file.
721         * sysdeps/unix/rmdir.c: Likewise.
722
723 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
724
725         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
726         ERR_MAX value.
727         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
728         errlist-compat value.
729
730 2012-04-18  David S. Miller  <davem@davemloft.net>
731
732         * sysdeps/generic/memcopy.h (reg_char): Delete.
733         * debug/strcat_chk.c: Use char, not reg_char.
734         * debug/strcpy_chk.c: Likewise.
735         * debug/strncat_chk.c: Likewise.
736         * debug/strncpy_chk.c: Likewise.
737         * string/memchr.c: Likewise.
738         * string/memrchr.c: Likewise.
739         * string/rawmemchr.c: Likewise.
740         * string/strcat.c: Likewise.
741         * string/strchr.c: Likewise.
742         * string/strchrnul.c: Likewise.
743         * string/strcmp.c: Likewise.
744         * string/strcpy.c: Likewise.
745         * string/strncat.c: Likewise.
746         * string/strncmp.c: Likewise.
747         * string/strncpy.c: Likewise.
748
749 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
750
751         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
752         __builtin_memcopy is called when src and dest ranges are known to not
753         overlap.
754
755 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
756
757         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
758         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
759         fwd_align_merge macro call.
760         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
761         bwd_align_merge macro call.
762         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
763
764 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
765
766         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
767         bwd_align_merge macros.
768         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
769         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
770         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
771
772 2012-04-18  David S. Miller  <davem@davemloft.net>
773
774         * sysdeps/sparc/sparc64/memcopy.h: Delete.
775
776 2012-04-18  Andreas Jaeger  <aj@suse.de>
777
778         [BZ# 6794]
779         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
780         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
781         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
782
783         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
784         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
785         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
786
787         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
788         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
789         Adjust for changed ldbl-128 files.
790
791         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
792         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
793         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
794
795 2012-04-17  David S. Miller  <davem@davemloft.net>
796
797         * sysdeps/sparc/sparc32/memcopy.h: Delete.
798
799 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
800
801         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
802         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
803         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
804         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
805         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
806         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
807
808 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
809
810         [BZ #6794]
811         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
812         * math/libm-test.inc: Add ilogb errno and exception tests.
813         * math/w_ilogb.c: New file: ilogb wrapper.
814         * math/w_ilogbf.c: New file: ilogbf wrapper.
815         * math/w_ilogbl.c: New file: ilogbl wrapper.
816         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
817         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
818         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
819         exception being thrown with 0.0 as argument.
820         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
821         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
822         exception being thrown with 0.0 as argument.
823         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
824         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
825         exception being thrown with 0.0 as argument.
826         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
827         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
828         exception being thrown with 0.0 as argument.
829         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
830         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
831         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
832         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
833         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
834         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
835         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
836         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
837         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
838
839 2012-04-17  Petr Baudis  <pasky@ucw.cz>
840
841         * include/sys/uio.h: Change __vector to __iovec to avoid clash
842         with altivec.
843
844 2012-04-16  Marek Polacek  <polacek@redhat.com>
845
846         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
847
848 2012-04-16  Marek Polacek  <polacek@redhat.com>
849
850         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
851         operands of fdivp instruction.
852
853 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
854
855         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
856         * elf/tst-auditmod3b.c: Likewise.
857         * elf/tst-auditmod4b.c: Likewise.
858         * elf/tst-auditmod5b.c: Likewise.
859         * elf/tst-auditmod6b.c: Likewise.
860         * elf/tst-auditmod6c.c: Likewise.
861         * elf/tst-auditmod7b.c: Likewise.
862         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
863         * sysdeps/x86_64/preconfigure.in: Likewise.
864         * sysdeps/x86_64/preconfigure: Regenerated.
865
866 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
867
868         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
869         __ILP32__.
870
871 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
872
873         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
874         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
875
876 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
877
878         [BZ #13973]
879         * locale/iso-639.def: Fix gl language name. Spotted by
880         Yaron Shahrabani.
881
882 2012-04-12  Roland McGrath  <roland@hack.frob.com>
883
884         [BZ #2074]
885         * libio/libio.h (__io_write_fn): Update comment.
886
887 2012-04-12  Petr Baudis  <pasky@ucw.cz>
888
889         [BZ #2074]
890         * stdio.texi (Hook Functions): The user provided writer function
891         is not allowed to return -1.
892
893 2012-04-11  David S. Miller  <davem@davemloft.net>
894
895         * sysdeps/sparc/fpu/libm-test-ulps: Update.
896
897 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
898
899         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
900         Add a leading slash to rtkaio.
901
902 2012-04-11  Jim Meyering  <meyering@redhat.com>
903
904         [BZ #11959]
905         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
906         It is not necessarily an error to ignore fwrite's return
907         value.  One can reliably use ferror to test for errors after
908         the fact.
909
910 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
911
912         * bits/types.h (__snseconds_t): New type.
913         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
914
915         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
916         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
917         (__SNSECONDS_T_TYPE): Likewise.
918         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
919         (__SNSECONDS_T_TYPE): Likewise.
920         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
921         (__SNSECONDS_T_TYPE): Likewise.
922
923 2012-04-10  Andreas Jaeger  <aj@suse.de>
924
925         [BZ #2636]
926         * manual/time.texi (Processor Time): Return type of times is
927         elapsed real time since an arbitrary point in the past.
928         (CPU Time): Move CLK_TCK from here...
929         (Processor Time): ...to here.  Correct description.
930         * manual/conf.texi (Constants for Sysconf): Correct description of
931         _SC_CLK_TCK.
932
933 2012-04-10  David S. Miller  <davem@davemloft.net>
934
935         [BZ #13967]
936         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
937         where the is a gap between DT_REL(A) and DT_JMPREL.
938
939 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
940
941         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
942         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
943         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
944
945 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
946
947         * elf/dl-support.c (_dl_inhibit_cache): New variable.
948         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
949         (dl_main): Handle --inhibit-cache.
950         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
951         _dl_inhibit_cache.
952         * elf/dl-load.c (_dl_map_object): Use it.
953         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
954
955 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
956
957         [BZ #13872]
958         * sysdeps/i386/fpu/e_powl.S (p78): New object.
959         (__ieee754_powl): Saturate large exponents rather than testing for
960         overflow of y*log2(x).
961         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
962         * math/libm-test.inc (pow_test): Do not permit spurious overflow
963         exceptions.
964
965         [BZ #11521]
966         * math/s_ctan.c: Include <float.h>.
967         (__ctan): Avoid internal overflow or cancellation in calculating
968         denominator.
969         * math/s_ctanf.c: Likewise.
970         * math/s_ctanl.c: Likewise.
971         * math/s_ctanh.c: Likewise.
972         * math/s_ctanhf.c: Likewise.
973         * math/s_ctanhl.c: Likewise.
974         * math/libm-test.inc (ctan_test): Add more tests.
975         (ctanh_test): Likewise.
976         * sysdeps/i386/fpu/libm-test-ulps: Update.
977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
978
979 2012-04-09  Andreas Jaeger  <aj@suse.de>
980
981         [BZ #6894]
982         * manual/filesys.texi (Directory Entries): Mention that d_namlen
983         is an optional BSD extension.
984
985         [BZ #10254]
986         * manual/stdio.texi (Opening Streams): Document additional fopen
987         parameters.
988
989 2012-04-09  Roland McGrath  <roland@hack.frob.com>
990
991         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
992         %eax without telling the compiler.
993
994 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
995
996         [BZ # 13963]
997         * manual/install.texi: Use sourceware.org.
998
999 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1000
1001         [BZ #13873]
1002         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
1003         (__ieee754_pow): Generate overflow and underflow using huge*huge
1004         and tiny*tiny rather than just returning constant infinity or zero
1005         for large exponents.
1006         * math/libm-test.inc (pow_test): Require overflow exceptions for
1007         applicable cases of large exponents.
1008
1009         [BZ #706]
1010         * sysdeps/i386/fpu/e_pow.S (p10): New object.
1011         (__ieee754_pow): Use iterative multiplication algorithm only for
1012         integer exponents with absolute value below 1024.  Check for odd
1013         integer exponents when using algorithm for real exponents.
1014         * math/libm-test.inc (pow_test): Add more tests.
1015         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1016
1017 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
1018
1019         [BZ #13705]
1020         * math/libm-test.inc (exp_test): Do not allow overflow exception
1021         on underflow test.
1022
1023 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
1024
1025         [BZ #13705]
1026         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
1027         instead of __kernel_standard_f.
1028
1029 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
1030
1031         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
1032         * sysdeps/x86_64/memset_chk.S: Likewise.
1033
1034 2012-04-08  Andreas Jaeger  <aj@suse.de>
1035
1036         [BZ #10153]
1037         * manual/startup.texi (Environment Access): Describe return value
1038         for putenv and setenv.
1039
1040         [BZ #6895]
1041         * manual/filesys.texi (Directory Entries): Add description for
1042         DT_LNK.
1043
1044         [BZ #6890]
1045         * manual/filesys.texi (Directory Entries): Clarify that it's file
1046         system not operating system in the description of DT_UNKNOWN.
1047
1048         [BZ #6578]
1049         * manual/syslog.texi (closelog): Fix reference, it's openlog.
1050
1051 2012-04-08  Stephen Compall  <s11@member.fsf.org>
1052
1053         [BZ #6649]
1054         * manual/llio.texi (Opening and Closing Files): Add cross
1055         reference to explain mode argument.
1056
1057 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
1058
1059         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
1060         * sysdeps/x86_64/memset_chk.S: Likewise.
1061
1062 2012-04-07  David S. Miller  <davem@davemloft.net>
1063
1064         * elf/elf.h (R_SPARC_WDISP10): Define.
1065         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
1066         R_SPARC_SIZE32.
1067         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
1068         R_SPARC_SIZE64 and R_SPARC_H34.
1069
1070 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
1071
1072         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
1073         conditions and remove no longer applicable assertion.
1074
1075 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1076
1077         * bits/byteswap.h: Include <features.h>.
1078         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1079         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1080
1081 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1082
1083         * bits/byteswap.h (__bswap_16): Removed.
1084         Include <bits/byteswap-16.h> to get __bswap_16.
1085         * sysdeps/i386/bits/byteswap.h: Likewise.
1086         * sysdeps/s390/bits/byteswap.h: Likewise.
1087         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1088         * bits/byteswap-16.h: New file.
1089         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1090         * sysdeps/s390/bits/byteswap-16.h: Likewise.
1091         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
1092         * string/Makefile (headers): Add bits/byteswap-16.h.
1093
1094 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1095
1096         [BZ #13895]
1097         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
1098         extra indirection.
1099         * nss/Makefile (tests-static, tests): Add tst-nss-static.
1100         * nss/tst-nss-static.c: New.
1101
1102 2012-04-06  Robert Millan  <rmh@gnu.org>
1103
1104         [BZ #6486]
1105         * manual/llio.texi (File Position Primitive): lseek
1106         refers to WHENCE when it really means OFFSET.
1107
1108 2012-04-06  Andreas Jaeger  <aj@suse.de>
1109
1110         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
1111         strncmp declarations.
1112
1113         * abilist/libc.abilist: Add __poll and __ppoll.
1114
1115 2012-04-05  David S. Miller  <davem@davemloft.net>
1116
1117         * scripts/check-local-headers.sh: Accept a host triplet in the
1118         path matched by the exclude regexp.
1119
1120         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
1121         definition.
1122         * sysdeps/powerpc/powerpc32/dl-machine.h
1123         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
1124         * sysdeps/s390/s390-32/dl-machine.h
1125         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1126         * sysdeps/sparc/sparc32/dl-machine.h
1127         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1128         * sysdeps/sparc/sparc64/dl-machine.h
1129         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1130
1131         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
1132         lazy binding.
1133         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
1134         undefined symbol errors.
1135
1136         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
1137         DT_NEEDED entries.
1138
1139 2012-04-05  Michael Matz  <matz@suse.de>
1140
1141         [BZ #13592]
1142         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
1143
1144 2012-04-05  Andreas Jaeger  <aj@suse.de>
1145
1146         [BZ #13908]
1147         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
1148         comment.
1149
1150 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1151
1152         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
1153         which ROUND is no valid rounding mode.
1154
1155 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1156
1157         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
1158         read again.
1159         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
1160
1161 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1162
1163         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
1164         an exception using FPU order intentionally.
1165
1166 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1167
1168         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
1169         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
1170         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
1171         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
1172
1173 2012-04-05  Simon Josefsson  <simon@josefsson.org>
1174
1175         [BZ #12340]
1176         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
1177         EINVAL when BUFLEN is too smal.
1178
1179 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1180
1181         [BZ #13553]
1182         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
1183         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1184
1185 2012-04-03  Andreas Jaeger  <aj@suse.de>
1186
1187         [BZ #13938]
1188         * manual/setjmp.texi (System V contexts): Fix sentence.
1189
1190         [BZ #13926]
1191         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
1192         New macro for this case.
1193         [!__GNUC__] (__bswap_64): New inline function for this case.
1194         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1195         * bits/byteswap.h: Likewise.
1196         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
1197         ull, guard with __GLIBC_HAVE_LONG_LONG.
1198
1199         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
1200         __GLIBC_HAVE_LONG_LONG.
1201
1202         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
1203         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
1204
1205 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1206
1207         [BZ #13691]
1208         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
1209         inptr and inend, rather than using last_ch.
1210
1211 2012-04-02  David S. Miller  <davem@davemloft.net>
1212
1213         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
1214         * stdio-common/printf-parse.h (read_int): Change return type to
1215         'int', return -1 on INT_MAX overflow.
1216         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
1217         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
1218         overflows INT_MAX.  Check for overflow of in-format-string precision
1219         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
1220         SIZE_MAX not INT_MAX for integer overflow test.
1221         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
1222         skip the construct in the format string but do not record anything.
1223         * stdio-common/bug22.c: Adjust to test both width/prevision
1224         INT_MAX overflow as well as total length INT_MAX overflow.  Check
1225         explicitly for proper errno values.
1226
1227 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1228
1229         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
1230         CHAR_MAX.
1231         * string/test-strcmp.c [! WIDE]: Likewise.
1232         * time/tst-mktime2.c: Likewise for INT_MAX.
1233         * string/test-string.h: #include <sys/param.h> for MIN.
1234
1235         * csu/init-first.c (__libc_init_first): Call __ctype_init.
1236         * sysdeps/i386/init-first.c (init): Likewise.
1237         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
1238         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
1239         * sysdeps/sh/init-first.c (init): Likewise.
1240
1241 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
1242
1243         * po/ru.po: Update from translation team.
1244         * po/vi.po: Likewise.
1245
1246 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
1247
1248         * resolv/nss_dns/dns-host.c: Merge copyright years.
1249
1250 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1251
1252         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
1253         Optimize memcpy with prefetch if
1254         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
1255         src, dst pointers have unequal 16 byte alignments.
1256
1257 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1258
1259         [BZ #13928]
1260         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
1261         from a CNAME entry and return the minimum ttl for the query.
1262         (gaih_getanswer_slice): Likewise.
1263
1264 2012-03-30  Jeff Law  <law@redhat.com>
1265
1266         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
1267         due to long keys.
1268         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
1269         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1270
1271         * resolv/nss_dns/dns-host.c: Update copyright year.
1272
1273 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
1274
1275         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
1276         requests to save a system call.  Fix check that all bytes are sent.
1277
1278         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
1279         comments for sendmmsg.
1280
1281 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1282
1283         [BZ #13691]
1284         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
1285         with only 1 character between 0x0041 and 0x01b0.
1286         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
1287         * wcsmbs/tst-mbsnrtowcs.c: New file.
1288
1289 2012-03-29  David S. Miller  <davem@davemloft.net>
1290
1291         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
1292         small copies by hand.
1293
1294 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1295
1296         [BZ #13761]
1297         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
1298         _nss_compat_initgroups_dyn): Fall back to malloc/free
1299         for large group memberships.
1300
1301 2012-03-28  David S. Miller  <davem@davemloft.net>
1302
1303         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
1304         that branches into memcpy.
1305         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1306         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
1307         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1308         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
1309         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
1310         bits.
1311         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
1312         implementation too.
1313         * sysdeps/sparc/mempcpy.S: New file.
1314
1315         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
1316         the IFUNC routine in the libc case.
1317         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
1318
1319         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
1320         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
1321         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
1322         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
1323         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
1324         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
1325         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
1326         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
1327
1328         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
1329         loop to 256 bytes instead of 64 bytes and fix test signedness.
1330
1331         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
1332         * sysdeps/sparc/sparc32/Makefile: rather than here...
1333         * sysdeps/sparc/sparc64/Makefile: and here.
1334
1335 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
1336
1337         * malloc/mallocbug.c: Avoid warnings about unused variables.
1338
1339 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1340
1341         [BZ #13760]
1342         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
1343         in the right place. Discard and retry query if response is
1344         larger than input buffer size.
1345
1346 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
1347
1348         [BZ #369]
1349         [BZ #2678]
1350         [BZ #3866]
1351         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
1352         x for large integer exponent.
1353         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
1354         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
1355         sign of result as needed afterwards.
1356         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1357         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
1358         result for underflowing pow the same as for overflow.
1359         (__kernel_standard_l): Handle powl overflow and underflow here
1360         rather than calling __kernel_standard.
1361         * math/libm-test.inc (pow_test): Add more tests.
1362
1363         [BZ #3868]
1364         [BZ #13879]
1365         [BZ #13910]
1366         [BZ #13911]
1367         [BZ #13912]
1368         [BZ #13913]
1369         [BZ #13915]
1370         [BZ #13916]
1371         [BZ #13917]
1372         [BZ #13918]
1373         [BZ #13919]
1374         [BZ #13920]
1375         [BZ #13921]
1376         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
1377         * sysdeps/ieee754/k_standard.c: Include <float.h>.
1378         (__kernel_standard_l): New function.
1379         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
1380         __kernel_standard.
1381         * math/w_acosl.c (__acosl): Likewise.
1382         * math/w_asinl.c (__asinl): Likewise.
1383         * math/w_atan2l.c (__atan2l): Likewise.
1384         * math/w_atanhl.c (__atanhl): Likewise.
1385         * math/w_coshl.c (__coshl): Likewise.
1386         * math/w_exp10l.c (__exp10l): Likewise.
1387         * math/w_exp2l.c (__exp2l): Likewise.
1388         * math/w_fmodl.c (__fmodl): Likewise.
1389         * math/w_hypotl.c (__hypotl): Likewise.
1390         * math/w_j0l.c (__j0l, __y0l): Likewise.
1391         * math/w_j1l.c (__j1l, __y1l): Likewise.
1392         * math/w_jnl.c (__jnl, __ynl): Likewise.
1393         * math/w_lgammal.c (__lgammal): Likewise.
1394         * math/w_log10l.c (__log10l): Likewise.
1395         * math/w_log2l.c (__log2l): Likewise.
1396         * math/w_logl.c (__logl): Likewise.
1397         * math/w_powl.c (__powl): Likewise.
1398         * math/w_remainderl.c (__remainderl): Likewise.
1399         * math/w_scalbl.c (sysv_scalbl): Likewise.
1400         * math/w_sinhl.c (__sinhl): Likewise.
1401         * math/w_sqrtl.c (__sqrtl): Likewise.
1402         * math/w_tgammal.c (__tgammal): Likewise.
1403         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
1404         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
1405         * math/libm-test.inc (acos_test): Add more tests.
1406         (acosh_test): Likewise.
1407         (asin_test): Likewise.
1408         (atanh_test): Likewise.
1409         (exp_test): Likewise.
1410         (exp10_test): Likewise.
1411         (exp2_test): Likewise.
1412         (expm1_test): Likewise.
1413         (lgamma_test): Likewise.
1414         (log_test): Likewise.
1415         (log10_test): Likewise.
1416         (log1p_test): Likewise.
1417         (log2_test): Likewise.
1418         (pow_test): Do not allow some spurious overflow exceptions.
1419         (sqrt_test): Add more tests.
1420         (tgamma_test): Likewise.
1421         (y0_test): Likewise.
1422         (y1_test): Likewise.
1423         (yn_test): Likewise.
1424
1425 2012-03-27  Anton Blanchard  <anton@samba.org>
1426
1427         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
1428         MAP_HUGETLB.
1429         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1430         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1431         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1432
1433 2012-03-27  David S. Miller  <davem@davemloft.net>
1434
1435         * conform/Makefile: Run run-conformtest.sh using $(BASH).
1436
1437         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
1438         have-as-vis3 check.
1439
1440 2012-03-27  Andreas Jaeger  <aj@suse.de>
1441
1442         * sysdeps/x86_64/elf/configure.in: Moved to ...
1443         * sysdeps/x86_64/configure.in: ... here.
1444         * sysdeps/x86_64/elf/start.S: Moved to ...
1445         * sysdeps/x86_64/start.S: ... here.
1446         * sysdeps/x86_64/elf/configure: Delete.
1447
1448         * sysdeps/x86_64/configure.in: Merge contents from
1449         sysdeps/i386/configure.in (without i686 check).
1450
1451         * sysdeps/i386/elf/Versions: Merge into ...
1452         * sysdeps/i386/Versions: ... this.
1453         * sysdeps/i386/elf/Versions: Delete file.
1454         * sysdeps/i386/elf/start.S: Moved to ...
1455         * sysdeps/i386/start.S: ...here.
1456         * sysdeps/i386/elf/configure.in: Merge into...
1457         * sysdeps/i386/configure.in: ...here.
1458         * sysdeps/i386/elf/configure.in: Delete file.
1459         * sysdeps/i386/elf/configure: Delete file.
1460
1461         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
1462         * debug/backtracesyms.c: ... here.
1463         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
1464         * debug/backtracesymsfd.c: ... here.
1465         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
1466         * sysdeps/generic/ifunc-sel.h: ... here.
1467
1468         * sysdeps/unix/i386/start.c: Delete file.
1469         * sysdeps/unix/sparc/start.c: Delete file.
1470         * sysdeps/unix/start.c: Delete file.
1471
1472         * sysdeps/sh/elf/configure.in: Moved to ...
1473         * sysdeps/sh/configure.in: ... here.
1474         * sysdeps/sh/elf/start.S: Moved to ...
1475         * sysdeps/sh/start.S: ... here.
1476         * sysdeps/sh/elf/configure: Delete file.
1477
1478         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
1479         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
1480         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
1481         * sysdeps/powerpc/powerpc64/entry.h: ... here.
1482         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
1483         * sysdeps/powerpc/powerpc64/start.S: here.
1484         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
1485         * sysdeps/powerpc/powerpc64/Makefile: ... this.
1486         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
1487         * sysdeps/powerpc/powerpc64/configure.in: ... this.
1488         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
1489
1490         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
1491         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
1492         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
1493         * sysdeps/powerpc/powerpc32/start.S: ... here.
1494         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
1495         * sysdeps/powerpc/powerpc32/configure.in: ... this.
1496         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
1497
1498         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
1499         * sysdeps/powerpc/ifunc-sel.h: ... here.
1500         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
1501         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
1502
1503         * sysdeps/sparc/elf/configure.in: Moved to ...
1504         * sysdeps/sparc/configure.in: ... here.
1505         * sysdeps/sparc/elf/configure: Delete file.
1506         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
1507         * sysdeps/sparc/sparc32/start.S: ... here.
1508         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
1509         * sysdeps/sparc/sparc64/start.S: ... here.
1510         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
1511         * sysdeps/sparc/sparc32/Makefile: ... this.
1512         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
1513         * sysdeps/sparc/sparc64/Makefile: ... this.
1514
1515         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
1516         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
1517         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
1518         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
1519         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
1520         * sysdeps/s390/s390-32/setjmp.S: ... here.
1521         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
1522         * sysdeps/s390/s390-32/configure.in: ... here.
1523         * sysdeps/s390/s390-32/elf/configure: Delete file.
1524         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
1525         * sysdeps/s390/s390-32/start.S: ... here.
1526
1527         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
1528         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
1529         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
1530         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
1531         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
1532         * sysdeps/s390/s390-64/setjmp.S: ... here.
1533         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
1534         * sysdeps/s390/s390-64/configure.in: ... here
1535         * sysdeps/s390/s390-64/elf/configure: Delete file.
1536         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
1537         * sysdeps/s390/s390-64/start.S: ... here.
1538         * sysdeps/s390/s390-64/elf/configure: Delete.
1539
1540         * configure.in: Remove support for elf directories in sysdeps.
1541
1542         * configure: Regenerated.
1543         * sysdeps/i386/configure: Regenerated.
1544         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1545         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1546         * sysdeps/s390/s390-32/configure: Regenerated.
1547         * sysdeps/s390/s390-64/configure: Regenerated.
1548         * sysdeps/sh/configure: Regenerated.
1549         * sysdeps/sparc/configure: Regenerated.
1550         * sysdeps/x86_64/configure: Regenerated.
1551
1552 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
1553
1554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1555
1556         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
1557         denormal result into account.
1558
1559 2012-03-25  Roland McGrath  <roland@hack.frob.com>
1560
1561         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
1562         Reported by Allan McRae <allan@archlinux.org>.
1563
1564 2012-03-23  Jeff Law  <law@redhat.com>
1565
1566         * nss/getnssent.c (__nss_getent): Fix typo.
1567
1568 2012-03-23  David S. Miller  <davem@davemloft.net>
1569
1570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1571
1572 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1573
1574         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
1575         to pad to uint64_t for each field.
1576         (dl_tls_index): Replace unsigned long with uint64_t.
1577
1578 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
1579         Paul Pluzhnikov  <ppluzhnikov@google.com>
1580
1581         [BZ #6528]
1582         * grp/Makefile (otherlibs): Don't set it.
1583         * inet/Makefile (otherlibs): Likewise.
1584         * login/Makefile (otherlibs): Likewise.
1585         * nscd/Makefile (otherlibs): Likewise.
1586         * posix/Makefile (otherlibs): Likewise.
1587         * pwd/Makefile (otherlibs): Likewise.
1588         * rt/Makefile (otherlibs): Likewise.
1589         * sunrpc/Makefile (otherlibs): Likewise.
1590         * nss/Makefile (otherlibs): Likewise.
1591         Add libnss_files to routines and static-only-routines.
1592         ($(objpfx)getent): Remove rule.
1593         * resolv/Makefile: Add libnss_dns and libresolv to routines and
1594         static-only-routines.
1595
1596 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1597
1598         [BZ #13892]
1599         * math/s_cexp.c: Include <float.h>.
1600         (__cexp): Handle exp result overflowing not necessarily
1601         overflowing both real and imaginary parts of result.
1602         * math/s_cexpf.c: Likewise.
1603         * math/s_cexpl.c: Likewise.
1604         * math/libm-test.inc (cexp_test): Add more tests.
1605         * sysdeps/i386/fpu/libm-test-ulps: Update.
1606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1607
1608 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1609
1610         * include/link.h (ELFW): New macro.
1611         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
1612         Replace ELF64_R_TYPE with ELFW(R_TYPE).
1613
1614 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1615
1616         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
1617         with uint64_t.
1618
1619 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1620
1621         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
1622         declaration.
1623         (struct La_x32_retval): Likewise.
1624
1625 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1626
1627         * sysdeps/x86_64/preconfigure.in: New file.
1628         * sysdeps/x86_64/preconfigure: New generated file.
1629
1630 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1631
1632         [BZ #13824]
1633         * math/e_exp2l.c: Include <float.h>.
1634         (__ieee754_exp2l): Handle overflow and underflow cases
1635         separately.  Only pass fractional part of argument to
1636         __ieee754_expl.
1637         * math/libm-test.inc (exp2_test): Add more tests.
1638
1639         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
1640         negating x to take absolute value.
1641         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1642         Likewise.
1643         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1644         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
1645         Likewise.
1646         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
1647         computing low part if x was negated.
1648         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1649
1650 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1651
1652         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
1653         la_x32_gnu_pltexit.
1654         (pltexit): Cast int_retval to ptrdiff_t.
1655         * elf/tst-auditmod3b.c: Likewise.
1656         * elf/tst-auditmod4b.c: Likewise.
1657         * elf/tst-auditmod5b.c: Likewise.
1658         * elf/tst-auditmod6b.c: Likewise.
1659         * elf/tst-auditmod6c.c: Likewise.
1660         * elf/tst-auditmod7b.c: Likewise.
1661
1662         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
1663         and x32_gnu_pltexit.
1664
1665         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
1666         __ELF_NATIVE_CLASS.
1667         (La_x32_regs): New macro.
1668         (La_x32_retval): Likewise.
1669         (la_x32_gnu_pltenter): New function prototype.
1670         (la_x32_gnu_pltexit): Likewise.
1671
1672 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
1673
1674         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1675         exponent.
1676
1677         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1678
1679         * configure.in (libc_cv_cc_nofma): Check for option to disable
1680         generation of FMA instructions.
1681         * configure: Regenerate.
1682         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1683         * sysdeps/ieee754/dbl-64/Makefile: New file.
1684         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1685         Remove brandred-fma4.
1686         (CFLAGS-brandred-fma4.c): Remove.
1687         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1688         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1689         define.
1690         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1691         define.
1692
1693 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1694
1695         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1696         LLONG_MAX != LONG_MAX.
1697         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1698         (_fitoa_word): Likewise.
1699         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1700         LLONG_MAX != LONG_MAX.
1701         * stdio-common/_itowa.h: Include <_itoa.h>.
1702         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1703         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1704         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1705         only if not defined.
1706         (_ITOA_WORD_TYPE): Likewise.
1707         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1708         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1709
1710 2012-03-21  David S. Miller  <davem@davemloft.net>
1711
1712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1713
1714 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1715
1716         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1717         of x86_64 when setting libc_cv_slibdir, libdir and
1718         libc_cv_localedir.
1719         * sysdeps/unix/sysv/linux/configure: Regenerated.
1720
1721 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1722
1723         * manual/lang.texi (Old Varargs): Remove section.
1724         (How Variadic): Update menu.
1725         (va_start): Do not mention varargs.h.
1726
1727 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1728             Joseph Myers  <joseph@codesourcery.com>
1729
1730         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1731         link test.
1732         * configure: Regenerated.
1733
1734 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1735
1736         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1737         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1738         conformtest.pl
1739
1740 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1741
1742         * NOTES: Remove.
1743         * Makefile (files-for-dist): Remove NOTES.
1744         (NOTES): Remove rule.
1745         * README: Don't refer to NOTES.
1746         * manual/creature.texi: Don't include macros.texi.
1747         * manual/intro.texi (creature.texi): Remove comment referring to
1748         NOTES.
1749
1750         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1751         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1752         * configure: Regenerated.
1753         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1754         LIBC_TRY_CC_OPTION.
1755         (libc_cv_as_i686): Likewise.
1756         (libc_cv_cc_avx): Likewise.
1757         (libc_cv_cc_sse2avx): Likewise.
1758         (libc_cv_cc_fma4): Likewise.
1759         (libc_cv_cc_novzeroupper): Likewise.
1760         * sysdeps/i386/configure: Regenerated.
1761
1762         [BZ #13883]
1763         * sysdeps/i386/fpu/s_cexp.S: Remove.
1764         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1765         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1766         * math/libm-test.inc (cexp_test): Add more tests.
1767         * sysdeps/i386/fpu/libm-test-ulps: Update.
1768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1769
1770 2012-03-21  Allan McRae  <allan@archlinux.org>
1771
1772         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1773
1774 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1775
1776         [BZ #13871]
1777         * math/w_exp2.c: Do not include <float.h>.
1778         (o_threshold, u_threshold): Remove.
1779         (__exp2): Calculate result before checking finiteness and calling
1780         __kernel_standard.
1781         * math/w_exp2f.c: Likewise.
1782         * math/w_exp2l.c: Likewise.
1783         * math/libm-test.inc (exp2_test): Require overflow exception for
1784         1e6 input.
1785
1786         [BZ #3866]
1787         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1788         range of signed 64-bit integers before using fistpll.  Remove
1789         checks for whether integers fit in mantissa bits.
1790         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1791         the range of signed 32-bit integers before using fistpl.  Remove
1792         checks for whether integers fit in mantissa bits.
1793         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1794         (__ieee754_powl): Test for y outside the range of signed 64-bit
1795         integers before using fistpll.  Reduce 64-bit values to 63-bit
1796         ones as needed.
1797         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1798         divide-by-zero is raised for zero to large negative powers.
1799         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1800         (__ieee754_powl): Test for y outside the range of signed 64-bit
1801         integers before using fistpll.  Reduce 64-bit values to 63-bit
1802         ones as needed.
1803         * math/libm-test.inc (pow_test): Add more tests.
1804
1805 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1806
1807         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1808         <stdio-common/_itoa.h>.
1809         * debug/segfault.c: Likewise.
1810         * elf/dl-cache.c: Likewise.
1811         * elf/dl-minimal.c: Likewise.
1812         * elf/dl-misc.c: Likewise.
1813         * elf/dl-sysdep.c: Likewise.
1814         * elf/dl-version.c: Likewise.
1815         * elf/rtld.c: Likewise.
1816         * hurd/hurdsock.c: Likewise.
1817         * hurd/lookup-retry.c: Likewise.
1818         * malloc/malloc.c: Likewise.
1819         * malloc/mtrace.c: Likewise.
1820         * nscd/nscd_getgr_r.c: Likewise.
1821         * nscd/nscd_getpw_r.c: Likewise.
1822         * nscd/nscd_getserv_r.c: Likewise.
1823         * posix/getopt_init.c: Likewise.
1824         * posix/wordexp.c: Likewise.
1825         * stdio-common/_itoa.c: Likewise.
1826         * stdio-common/printf_fphex.c: Likewise.
1827         * stdio-common/vfprintf.c: Likewise.
1828         * string/_strerror.c: Likewise.
1829         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1830         * sysdeps/i386/i686/hp-timing.h: Likewise.
1831         * sysdeps/mach/_strerror.c: Likewise.
1832         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1833         * sysdeps/mach/hurd/sethostid.c: Likewise.
1834         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1835         * sysdeps/mach/xpg-strerror.c: Likewise.
1836         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1837         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1838         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1839         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1840         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1841         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1842         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1843         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1844         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1845         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1846         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1847         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1848         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1849         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1850         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1851         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1852         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1853         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1854         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1855         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1856         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1857
1858         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1859
1860         * stdio-common/_itoa.h: Moved to ...
1861         * sysdeps/generic/_itoa.h: Here.
1862
1863         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1864
1865         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1866         instead of "_itoa.h" and "_itowa.h".
1867         * stdio-common/vfprintf.: Likewise.
1868
1869 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1872         <bits/wordsize.h>.
1873         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1874         (__signbit): Likwise.
1875         (llrintf): Likwise.
1876         (llrint): Likwise.
1877
1878 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1879
1880         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1881         __WORDSIZE != 64.
1882
1883 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1884
1885         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1886         OVERFLOW_EXCEPTION_OK.
1887         * math/libm-test.inc ("Philosophy"): Update comment about
1888         exception testing.
1889         (OVERFLOW_EXCEPTION): Define.
1890         (OVERFLOW_EXCEPTION_OK): Likewise.
1891         (INVALID_EXCEPTION_OK): Renumber.
1892         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1893         (IGNORE_ZERO_INF_SIGN): Likewise.
1894         (test_exceptions): Handle FE_OVERFLOW.
1895         (exp10_test): Expect overflow exceptions.
1896         (exp2_test): Likewise.
1897         (expm1_test): Likewise.
1898         (nextafter_test): Likewise.
1899         (pow_test): Likewise.
1900         (scalbn_test): Likewise.
1901         (scalbln_test): Likewise.
1902
1903 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1904
1905         * sysdeps/x86_64/bits/atomic.h
1906         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1907         64bit integer.
1908         (atomic_exchange_acq): Likewise.
1909         (__arch_exchange_and_add_body): Likewise.
1910         (__arch_add_body): Likewise.
1911         (atomic_add_negative): Likewise.
1912         (atomic_add_zero): Likewise.
1913
1914 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1915
1916         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1917         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1918
1919 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1920
1921         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1922         Check __x86_64__ instead of __WORDSIZE.
1923
1924 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1925
1926         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1927
1928 2012-03-19  David S. Miller  <davem@davemloft.net>
1929
1930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1931
1932         * sysdeps/sparc/fpu/fenv_private.h: New file.
1933         * sysdeps/sparc/fpu/math_private.h: Use it.
1934         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1935         Remove.
1936         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1937         (libc_feholdexcept_setroundl): Remove.
1938         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1939         Remove.
1940         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1941         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1942
1943 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1944
1945         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1946         int64_t instead of long int.
1947         (INSERT_WORDS64): Likwise.
1948
1949 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1950
1951         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1952         _Unwind_GetCFA return to _Unwind_Ptr first.
1953
1954 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1955
1956         [BZ #13629]
1957         * math/s_clog.c: Include <float.h>.
1958         (__clog): Scale large or subnormal inputs.
1959         * math/s_clogf.c: Likewise.
1960         * math/s_clogl.c: Likewise.
1961         * math/s_clog10.c: Include <float.h>.
1962         (M_LOG10_2): Define.
1963         (__clog10): Scale large or subnormal inputs.
1964         * math/s_clog10f.c: Likewise.
1965         * math/s_clog10l.c: Likewise.
1966         * math/libm-test.inc (clog_test): Add more tests.
1967         (clog10_test): Likewise.
1968         * sysdeps/i386/fpu/libm-test-ulps: Update.
1969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1970
1971         [BZ #11451]
1972         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1973         x and y.
1974         * math/libm-test.inc (atan2_test): Add another test.
1975
1976         * Makerules (common-objdir-compile): Remove.
1977         * sysdeps/unix/Makefile (config-generated): Do not add
1978         $(unix-generated) to variable.
1979         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1980         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1981         Remove rule.
1982         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1983         Likewise.
1984         [generic bits/local_lim.h] (before-compile): Do not append to
1985         variable.
1986         [generic bits/local_lim.h] (common-generated): Likewise.
1987         [generic sys/param.h] (before-compile): Do not append to variable.
1988         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1989         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1990         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1991         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1992         include.
1993         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1994         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1995         [generic sys/param.h] ($(addprefix
1996         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1997         [generic sys/param.h] (common-generated): Do not append to
1998         variable.
1999         [generic sys/param.h] (sysdep_headers): Likewise.
2000         [generic bits/errno.h] (before-compile): Do not append to
2001         variable.
2002         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
2003         rule.
2004         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
2005         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
2006         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
2007         [generic bits/errno.h] (common-generated): Do not append to
2008         variable.
2009         [generic bits/ioctls.h] (before-compile): Do not append to
2010         variable.
2011         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
2012         rule.
2013         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
2014         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
2015         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
2016         rule.
2017         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
2018         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
2019         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
2020         [generic bits/ioctls.h] (common-generated): Do not append to
2021         variable.
2022         [generic sys/syscall.h] (syscall.h): Remove variable.
2023         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
2024         rule.
2025         [generic sys/syscall.h] (before-compile): Do not append to
2026         variable.
2027         [generic sys/syscall.h] (common-generated): Likewise.
2028         * sysdeps/unix/errnos-tmpl.c: Remove file.
2029         * sysdeps/unix/errnos.awk: Likewise.
2030         * sysdeps/unix/ioctls-tmpl.c: Likewise.
2031         * sysdeps/unix/ioctls.awk: Likewise.
2032         * sysdeps/unix/mk-local_lim.c: Likewise.
2033         * sysdeps/unix/snarf-ioctls: Likewise.
2034
2035 2012-03-19  Richard Henderson  <rth@twiddle.net>
2036
2037         * sysdeps/i386/fpu/fenv_private.h: New file.
2038         * sysdeps/i386/fpu/math_private.h: Use it.
2039         (math_opt_barrier, math_force_eval): Remove.
2040         (libc_feholdexcept_setround_53bit): Remove.
2041         (libc_feupdateenv_53bit): Remove.
2042         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2043         (math_opt_barrier, math_force_eval): Remove.
2044         (libc_feholdexcept): Remove.
2045         (libc_feholdexcept_setround): Remove.
2046         (libc_fetestexcept, libc_fesetenv): Remove.
2047         (libc_feupdateenv_test): Remove.
2048         (libc_feupdateenv, libc_feholdsetround): Remove.
2049         (libc_feresetround): Remove.
2050
2051         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
2052         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
2053
2054         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
2055         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
2056         (libc_feupdateenv_testl): New.
2057         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
2058         (libc_feupdateenv_testf): New.
2059         (libc_feupdateenv): Use libc_feupdateenv_test.
2060         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
2061         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
2062
2063         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
2064         (libc_feholdsetroundf, libc_feholdsetroundl): New.
2065         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
2066         (libc_feresetround_noex): New.
2067         (libc_feresetround_noexf): New.
2068         (libc_feresetround_noexl): New.
2069         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
2070         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
2071         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
2072         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
2073         SET_RESTORE_ROUND.
2074         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2075         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
2076         (__cos): Likewise.
2077         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
2078         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
2079         SET_RESTORE_ROUND_NOEX.
2080         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
2081         SET_RESTORE_ROUND_NOEXF.
2082         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
2083         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
2084         (libc_feholdsetroundf): New.
2085         (libc_feresetround, libc_feresetroundf): New.
2086
2087         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
2088         (libc_feholdexcept_setround_53bit): Convert from macro to function.
2089         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
2090
2091         * sysdeps/generic/math_private.h: Include <fenv.h>.
2092         (default_libc_feholdexcept): New.
2093         (default_libc_feholdexcept_setround): New.
2094         (default_libc_fesetenv, default_libc_feupdateenv): New.
2095         (libc_feholdexcept): Only define if undefined.
2096         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
2097         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
2098         (libc_feholdexcept_setroundl): Likewise.
2099         (libc_feholdexcept_setround_53bit): Likewise.
2100         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
2101         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
2102         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
2103         (libc_feupdateenv_53bit): Likewise.
2104         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
2105         (libc_feholdexcept): Convert from macro to inline function.
2106         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
2107         (libc_fesetenv, libc_feupdateenv): Likewise.
2108
2109         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
2110         not previously defined.
2111         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
2112         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
2113         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
2114         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
2115         * sysdeps/ieee754/flt-32/math_private.h: New file.
2116         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
2117         math_private.h below SET_FLOAT_WORD.
2118         (__isnan, __isinf_ns, __finite): Remove.
2119         (__isnanf, __isinf_nsf, __finitef): Remove.
2120
2121 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
2122
2123         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2124
2125 2012-03-17  David S. Miller  <davem@davemloft.net>
2126
2127         [BZ #6471]
2128         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
2129         for 2.16.
2130
2131 2012-03-16  David S. Miller  <davem@davemloft.net>
2132
2133         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
2134         warnings.
2135
2136         [BZ #6471]
2137         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
2138         properly.
2139         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
2140         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
2141         sysdep_routines when subdir is sysvipc.
2142         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
2143         __getshmlba helper.
2144
2145         * sysdeps/sparc/fpu/libm-test/ulps: Update.
2146
2147 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2148
2149         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
2150         [__LP64__].
2151
2152 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2153
2154         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
2155         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
2156         (__lround): Renamed to ...
2157         (__llround): This.  Replace long int with long long int.
2158         Define lround functions as aliases of llround functions.
2159         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
2160
2161 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2162
2163         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2164         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
2165         adresses to uintptr_t.  Replace "long int" and "unsigned long
2166         int" with "greg_t" on va_arg.
2167
2168 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2169
2170         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
2171         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
2172
2173         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
2174         Move e_machine check before EI_CLASS check.  Handle x32
2175         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
2176         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
2177         SKIP_EM_IA_64 and include
2178         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
2179
2180         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
2181         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
2182         (add_system_dir): New macro.
2183
2184         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
2185         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
2186
2187 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2188
2189         [BZ #2551]
2190         [BZ #2552]
2191         [BZ #2553]
2192         [BZ #2554]
2193         [BZ #2562]
2194         [BZ #2563]
2195         [BZ #2565]
2196         [BZ #2566]
2197         [BZ #2576]
2198         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
2199         (y0): Likewise.
2200         * math/w_j0f.c (j0f): Likewise.
2201         (y0f): Likewise.
2202         * math/w_j0l.c (__j0l): Likewise.
2203         (__y0l): Likewise.
2204         * math/w_j1.c (j1): Likewise.
2205         (y1): Likewise.
2206         * math/w_j1f.c (j1f): Likewise.
2207         (y1f): Likewise.
2208         * math/w_j1l.c (__j1l): Likewise.
2209         (__y1l): Likewise.
2210         * math/w_jn.c (jn): Likewise.
2211         (yn): Likewise.
2212         * math/w_jnf.c (jnf): Likewise.
2213         (ynf): Likewise.
2214         * math/w_jnl.c (__jnl): Likewise.
2215         (__ynl): Likewise.
2216         * math/libm-test.inc (j0_test): Add more tests.
2217         (j1_test): Likewise.
2218         (jn_test): Likewise.  Add trailing semicolon to existing test.
2219         (y0_test): Likewise.
2220         (y1_test): Likewise.
2221         * sysdeps/i386/fpu/libm-test-ulps: Update.
2222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2223
2224         [BZ #13851]
2225         [BZ #13854]
2226         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
2227         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
2228         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
2229         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
2230         (__tanl): Set errno for infinite argument.
2231         * sysdeps/i386/fpu/mptan.c: Remove.
2232         * sysdeps/i386/fpu/s_tan.S: Likewise.
2233         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2234         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
2235         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2236         * math/libm-test.inc (tan_test): Add more tests and enable more
2237         tests for double and long double.
2238         * sysdeps/i386/fpu/libm-test-ulps: Update.
2239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2240
2241 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2242
2243         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
2244         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
2245
2246 2012-03-16  Roland McGrath  <roland@hack.frob.com>
2247
2248         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
2249         * configure.in: Use it for both main tree and add-ons.
2250         * configure: Regenerated.
2251
2252 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2253
2254         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
2255
2256 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2257
2258         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
2259         in comment.
2260
2261         [BZ #13851]
2262         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
2263         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
2264         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
2265         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
2266         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
2267         infinite argument.
2268         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
2269         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
2270         != 0 for prec == 2.
2271         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
2272         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
2273         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2274         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2275         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2276         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
2277         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
2278         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
2279         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2280         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
2281         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2282         * math/libm-test.inc (cos_test): Add more tests and enable more
2283         tests for long double.
2284         (sin_test): Likewise.
2285         (sincos_test): Likewise.
2286         * sysdeps/i386/fpu/libm-test-ulps: Update.
2287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2288
2289 2012-03-16  David S. Miller  <davem@davemloft.net>
2290
2291         * sysdeps/sparc/fpu/math_private.h: New file.
2292
2293 2012-03-15  David S. Miller  <davem@davemloft.net>
2294
2295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
2296         file.
2297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
2298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
2299         file.
2300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
2301         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
2302         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
2303         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
2304         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
2305         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
2306         sysdep routines.
2307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2308
2309         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
2310         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
2311
2312         * sysdeps/sparc/sparc-ifunc.h: New file.
2313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
2314         sparc-ifunc.h
2315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2317         Likewise.
2318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
2319         Likewise.
2320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
2321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
2322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
2324         Likewise.
2325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
2326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
2327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
2328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
2329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
2330         Likewise.
2331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
2332         Likewise.
2333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
2334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
2335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
2336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
2337         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2338         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2339         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
2340         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
2341         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2342         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2343         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
2344         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
2345         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
2346         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
2347         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
2348         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
2349         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
2350         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
2351         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
2352         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
2353         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
2354         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
2355         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
2356         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
2357
2358 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2359
2360         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
2361         scaling.
2362         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2363
2364 2012-03-15  Andreas Jaeger  <aj@suse.de>
2365
2366         [BZ #13852]
2367         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
2368         ieee754/flt-32 implementation for sin, cos and sincos.
2369         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
2370         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2371         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2372         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2373         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
2374         ieee754/flt-32 implementation for tan.
2375
2376         * math/libm-test.inc (cos_test): Enable some large input tests for
2377         float as well
2378         (sin_test): Likewise.
2379         (sincos_test): Likewise.
2380         (tan_test): Add tests for large input.
2381
2382         * sysdeps/i386/fpu/libm-test-ulps: Update.
2383
2384 2012-03-15  Andreas Jaeger  <aj@suse.de>
2385
2386         [BZ #13658]
2387         * math/libm-test.inc (cos_test): Add more test cases.
2388         (sin_test): Likewise.
2389         (sincos_test): Likewise.
2390
2391 2012-03-15  Andreas Jaeger  <aj@suse.de>
2392
2393         [BZ #13837]
2394         * math/libm-test.inc (cos_test): Add a test case for large input
2395         value.
2396         (sin_test): Likewise.
2397         (sincos_test): Likewise.
2398
2399 2012-03-15  Andreas Jaeger  <aj@suse.de>,
2400         Joseph Myers  <joseph@codesourcery.com>
2401
2402         [BZ #13658]
2403         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
2404         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
2405         * sysdeps/i386/fpu/branred.c: Likewise.
2406         * sysdeps/i386/fpu/dosincos.c: Likewise.
2407         * sysdeps/i386/fpu/mpa.c: Likewise.
2408         * sysdeps/i386/fpu/s_cos.S: Likewise.
2409         * sysdeps/i386/fpu/s_sin.S: Likewise.
2410         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2411         * sysdeps/i386/fpu/sincos32.c: Likewise.
2412
2413         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
2414         Define.
2415         (libc_feupdateenv_53bit): Define.
2416         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
2417         Define.
2418         (libc_feupdateenv_53bit): Define.
2419
2420         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
2421         53 bit (without extend i386 double precision).
2422
2423         * math/libm-test.inc (sincos_test): Add tests for large input.
2424         (sin): Likewise.
2425         (cos): Likewise.
2426
2427         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
2428
2429 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2430
2431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2432
2433 2012-03-15  David S. Miller  <davem@davemloft.net>
2434
2435         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
2436         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
2437         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
2438         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
2439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
2440         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
2441         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
2442         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
2443         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
2444         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
2445         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
2446         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
2447         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
2448         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
2449         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
2450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
2451         file.
2452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
2453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
2454         file.
2455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
2456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
2457         file.
2458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
2459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
2460         file.
2461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
2462         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
2463         fmin/fmax sysdep routines.
2464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2465
2466 2012-03-14  David S. Miller  <davem@davemloft.net>
2467
2468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
2469         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
2470         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
2471         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
2472         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
2473         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
2474         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
2475         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
2476         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
2477         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
2478         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
2479         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
2480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
2481         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
2482         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
2483         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
2484         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
2485         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
2486         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
2487         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
2488         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
2489         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
2490         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
2491         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
2492         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
2493         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
2494         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
2495         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
2496         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
2497         routines.
2498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
2499         file.
2500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
2501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
2502         file.
2503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
2504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
2505         file.
2506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
2507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
2508         file.
2509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
2510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
2511         file.
2512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
2513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
2514         file.
2515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
2516         file.
2517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
2518         file.
2519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
2520         file.
2521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
2522         New file.
2523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
2524         file.
2525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
2526         file.
2527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
2528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
2529         file.
2530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
2531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
2532         file.
2533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
2534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
2535         file.
2536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
2537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
2538         VIS3 routines.
2539
2540         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2541         New file.
2542
2543         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2544
2545         * sysdeps/sparc/configure.in: New file.
2546         * sysdeps/sparc/configure: Generate.
2547         * configure.in (libc_cv_sparc_as_vis3): Substitute.
2548         * configure: Regenerate.
2549         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
2550         * config.make.in (have-as-vis3): New.
2551         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
2552         available use -Av9d instead of -Av9a.
2553         * sysdeps/sparc/sparc64/Makefile: Likewise.
2554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
2555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
2556         New file.
2557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
2558         file.
2559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
2560         New file.
2561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
2562         file.
2563         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
2564         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
2565         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
2566         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
2567         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2568
2569         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
2570         fzeros/fnegs to load 0x80000000 into a float register instead of
2571         using the stack.
2572         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
2573
2574 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2575
2576         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2577         bits/syscall.h.
2578         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
2579         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
2580         ($(inst_includedir)/bits/syscall.h): Remove rule.
2581         ($(objpfx)bits/syscall.d): Include instead of
2582         $(objpfx)syscall-list.d.
2583         (generated): Change syscall-list.h and syscall-list.d to
2584         bits/syscall.h and bits/syscall.d.
2585
2586 2012-03-14  Roland McGrath  <roland@hack.frob.com>
2587
2588         [BZ #13846]
2589         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
2590
2591 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2592
2593         [BZ #13841]
2594         * math/s_csqrt.c: Include <float.h>.
2595         (__csqrt): Scale large or subnormal inputs.
2596         * math/s_csqrtf.c: Likewise.
2597         * math/s_csqrtl.c: Likewise.
2598         * math/libm-test.inc (csqrt_test): Add more tests.
2599         * sysdeps/i386/fpu/libm-test-ulps: Update.
2600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2601
2602         [BZ #13840]
2603         * math/libm-test.inc (hypot_test): Add more tests.
2604
2605 2012-03-13  David S. Miller  <davem@davemloft.net>
2606
2607         [BZ #13840]
2608         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
2609         double-precision for the calculation instead of scaling.
2610
2611 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
2612
2613         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
2614         manipulate bits before adding and subtracting TWO52[sx].
2615         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
2616         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2617         Likewise.
2618         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
2619
2620 2012-03-13  David S. Miller  <davem@davemloft.net>
2621
2622         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
2623         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
2624         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
2625         rtld-global-offsets.h
2626         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2627
2628         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
2629         large parameters.
2630
2631         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2632
2633         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
2634         'err' in the ifdef scope in which it is actually used.
2635
2636         * nss/nss_db/db-init.c: Include string.h
2637
2638 2012-03-12  David S. Miller  <davem@davemloft.net>
2639
2640         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2641         masking out of the most significant byte of random value used.
2642         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2643         Fix coding style in previous change.
2644
2645         * sysdeps/unix/sysv/linux/kernel-features.h
2646         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
2647         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
2648         expression.
2649         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
2650         later.
2651
2652 2012-03-11  David S. Miller  <davem@davemloft.net>
2653
2654         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2655         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
2656         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
2657         for 'resultvar' otherwise things get truncated on 64-bit.
2658
2659         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2660         Fix masking out of the most significant byte of random value used.
2661
2662         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2663
2664 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
2665
2666         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2667
2668 2012-03-09  David S. Miller  <davem@davemloft.net>
2669
2670         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
2671         variables with appropriate CPP guards.
2672         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
2673         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2674         on resulting framesize and the management of the outregs buffer for pltexit.
2675         Preserve floating point return values across _dl_call_pltexit call.
2676         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2677         framesize and the management of the outregs buffer for pltexit.
2678         Preserve floating point return values across _dl_call_pltexit
2679         call.
2680         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2681         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2682         (print_exit): Fix format string for return register value.
2683
2684 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2685
2686         * sunrpc/Makefile (others): Add rpcgen.
2687         ($(objpfx)rpcgen): Remove special build rule and dependency on
2688         libc.
2689         * sunrpc/rpcgen.c: New file.
2690
2691 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2692
2693         [BZ #13673]
2694         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2695         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2696         * sysdeps/i386/crti.S: Likewise.
2697         * sysdeps/i386/crtn.S: Likewise.
2698         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2699         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2700         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2701         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2702         * sysdeps/sh/crti.S: Likewise.
2703         * sysdeps/sh/crtn.S: Likewise.
2704         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2705
2706         [BZ #13673]
2707         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2708         with URL.
2709         * locale/programs/locfile-kw.gperf: Likewise.
2710         * locale/programs/charmap-kw.h: Regenerated.
2711         * locale/programs/locfile-kw.h: Likewise.
2712
2713         [BZ #13673]
2714         * intl/plural.y: Replace FSF snail mail address with URL.
2715         * intl/plural.c: Regenerated.
2716
2717 2012-03-09  Richard Henderson  <rth@twiddle.net>
2718
2719         * include/math_private.h: Remove file.
2720         * math/math_private.h: Move file ...
2721         * sysdeps/generic/math_private.h: ... here.
2722
2723         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2724         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2725         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2726
2727         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2728         and <math_private.h>.
2729         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2730         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2731         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2732         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2733         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2734         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2735         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2736         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2737         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2738         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2739         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2740         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2741         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2742         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2743         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2744         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2745         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2746         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2747         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2748         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2749         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2750         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2751         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2752         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2753         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2754         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2755         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2756         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2757         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2758         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2759         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2760         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2761         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2762         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2763         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2764         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2765         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2766         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2767         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2768         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2769         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2770         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2771         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2772         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2773         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2774         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2775         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2776         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2777         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2778         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2779         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2780         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2781         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2782         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2783         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2784         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2785         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2786         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2787         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2788         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2789         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2790         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2791         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2792         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2793         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2794         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2795         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2796         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2797         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2798         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2799         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2800         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2801         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2802         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2803         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2804         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2805         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2806         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2807         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2808         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2809         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2810         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2811         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2812         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2813         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2814         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2815         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2816         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2817         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2818         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2819         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2820         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2821         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2822         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2823         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2824         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2825         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2826         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2827         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2828         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2829         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2830         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2831         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2832         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2833         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2834         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2835         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2836         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2837         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2838         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2839         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2840         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2841         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2842         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2843         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2844         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2845         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2846         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2847         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2848         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2849         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2850         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2851         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2852         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2853         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2854         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2855         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2856         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2857         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2858         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2859         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2860         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2861         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2862         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2863         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2864         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2865         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2866         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2867         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2868         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2869         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2870         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2871         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2872         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2873         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2874         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2875         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2876         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2877         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2878         * sysdeps/ieee754/k_standard.c: Likewise.
2879         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2880         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2881         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2882         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2883         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2884         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2885         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2886         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2887         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2888         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2889         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2890         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2891         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2892         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2893         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2894         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2895         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2896         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2897         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2898         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2899         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2900         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2901         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2902         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2903         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2904         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2905         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2906         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2907         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2908         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2909         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2910         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2911         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2912         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2913         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2914         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2915         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2916         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2917         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2918         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2919         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2920         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2921         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2922         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2923         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2924         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2925         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2926         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2927         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2928         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2929         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2930         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2931         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2932         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2933         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2934         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2935         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2936         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2937         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2938         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2939         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2940         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2941         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2942         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2943         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2944         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2945         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2946         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2947         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2948         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2949         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2950         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2951         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2952         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2953         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2954         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2955         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2956         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2957         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2958         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2959         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2960         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2961         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2962         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2963         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2964         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2965         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2966         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2967         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2968         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2969         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2970         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2971         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2972         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2973         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2974         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2975         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2976         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2977         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2978         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2979         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2980         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2981         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2982         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2983         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2984         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2985         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2986         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2987         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2988         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2989         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2990         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2991         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2992         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2993         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2994         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2995         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2996         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2997         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2998         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2999         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3000         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3001         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3002         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
3003         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3004         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
3005         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3006         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3007         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3008         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3009         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3010         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3011         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3012         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3013         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
3014         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
3015         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
3016         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3017         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3018         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3019         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3020         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3021         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3022         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3023         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
3024         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3025         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3026         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3027         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
3028         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
3029         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3030         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3031         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
3032         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3033         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
3034         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
3035         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3036         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
3037         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
3038         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3039         * sysdeps/ieee754/s_lib_version.c: Likewise.
3040         * sysdeps/ieee754/s_matherr.c: Likewise.
3041         * sysdeps/ieee754/s_signgam.c: Likewise.
3042         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3043         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3044         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
3045         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
3046         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
3047         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3048         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
3049         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
3050         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3051         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3052         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3053         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
3054         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
3055         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
3056         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
3057         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
3058         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3059         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
3060         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3061         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3062         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3063
3064 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3065
3066         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
3067         * sunrpc/rpc_main.c: Likewise.
3068         * sunrpc/rpc_svcout.c: Likewise.
3069
3070 2012-03-09  David S. Miller  <davem@davemloft.net>
3071
3072         * include/math_private.h: New file.
3073
3074 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3075
3076         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
3077         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
3078         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
3079         from <bits/socket_type.h>.
3080         (enum __socket_type): Don't define here.
3081         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
3082         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3083         bits/socket_type.h.
3084
3085         [BZ #13566]
3086         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
3087         checking __USE_GNU.
3088
3089         * Makerules ($(inst_includedir)/%.h): New rule.
3090         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
3091         (install-others): Remove variable setting.
3092         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
3093
3094 2012-03-08  Richard Henderson  <rth@twiddle.net>
3095
3096         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
3097         from macro to inline function; merge with the
3098         !__LIBC_INTERNAL_MATH_INLINES version.
3099         (__ieee754_sqrtf): Likewise.
3100
3101         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
3102         to inline function.
3103         (__rintf, __floor, __floorf): Likewise.
3104
3105         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
3106         macro to inline function.
3107         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
3108
3109         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
3110         not <math/math_private.h>.
3111
3112 2012-03-08  David S. Miller  <davem@davemloft.net>
3113
3114         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
3115         copyright year.
3116         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
3117
3118 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
3119
3120         * resolv/gai_misc.c (handle_requests): Fix struct timespec
3121         normalization.
3122         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
3123         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
3124
3125 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
3126
3127         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
3128         be defined individually, they must be defined as a block.  Define
3129         S for printing a string instead of hidint the different by using a
3130         macro for adding the 'l'.
3131         * stdio-common/tst-fphex-wide.c: Adjust.
3132
3133 2012-03-07  Marek Polacek  <polacek@redhat.com>
3134
3135         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
3136
3137 2012-03-08  Marek Polacek  <polacek@redhat.com>
3138
3139         [BZ #13806]
3140         * stdio-common/Makefile (tests): Add tst-fphex-wide.
3141         * stdio-common/tst-fphex.c: Define a few macros to make the
3142         test reusable.  Use them.
3143         * stdio-common/tst-fphex-wide.c: New file.
3144
3145 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
3146
3147         [BZ #6911]
3148         * manual/macros.texi (gnusystems): New macro.
3149         (nongnusystems): Likewise.
3150         (gnulinuxhurdsystems): Likewise.
3151         (gnuhurdsystems): Likewise..
3152         (gnulinuxsystems): Likewise.
3153         * manual/charset.texi: Use new macros or @theglibc{} to refer to
3154         variants of the GNU system, not "GNU system".
3155         * manual/conf.texi: Likewise.
3156         * manual/errno.texi: Likewise.  Update example of errno macro
3157         expansion.
3158         * manual/filesys.texi: Likewise.
3159         (getumask): Document as specific to GNU/Hurd.
3160         * manual/install.texi: Likewise.  Reword some references to
3161         GNU/Linux.
3162         * manual/intro.texi: Likewise.
3163         * manual/io.texi: Likewise.
3164         (File Name Portability): Detail which constraints are inapplicable
3165         to all GNU systems and which are only inapplicable to GNU/Hurd.
3166         * manual/job.texi: Likewise.
3167         * manual/llio.texi: Likewise.
3168         (O_NOCTTY): Document as present on GNU/Linux.
3169         * manual/maint.texi: Likewise.
3170         * manual/memory.texi: Likewise.
3171         * manual/pattern.texi: Likewise.
3172         * manual/pipe.texi: Likewise.
3173         * manual/process.texi: Likewise.
3174         * manual/resource.texi: Likewise.
3175         (RUSAGE_CHILDREN): Remove statement about specifying a particular
3176         child on GNU/Hurd.
3177         * manual/setjmp.texi: Likewise.
3178         * manual/signal.texi: Likewise.
3179         * manual/startup.texi: Likewise.
3180         * manual/stdio.texi: Likewise.
3181         * manual/terminal.texi: Likewise.
3182         (ONLCR): Document as POSIX.
3183         (OXTABS): Document availability on GNU/Linux as XTABS.
3184         (ONOEOT): Document availability separately from other bits.
3185         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
3186         * manual/time.texi: Likewise.
3187         * manual/users.texi: Likewise.
3188         * INSTALL: Regenerated.
3189         * sysdeps/gnu/errlist.c: Regenerated.
3190
3191         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
3192         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
3193         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
3194         puts.
3195         * configure: Regenerated.
3196
3197 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
3198
3199         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
3200         default includes instead of AC_HEADER_CHECK.
3201         * sysdeps/i386/configure: Regenerated.
3202
3203         [BZ #10716]
3204         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
3205         * math/s_cacoshf.c (__cacoshf): Likewise.
3206         * math/s_cacoshl.c (__cacoshl): Likewise.
3207         * math/s_casinh.c (__casinh): Set signs of result from argument.
3208         * math/s_casinhf.c (__casinhf): Likewise.
3209         * math/s_casinhl.c (__casinhl): Likewise.
3210         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
3211         (casinh_test): Add more tests.
3212         * sysdeps/i386/fpu/libm-test-ulps: Update.
3213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3214
3215 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
3216
3217         * po/zh_TW.po: Update from translation team.
3218
3219         * login/Makefile (distribute): Remove variable.
3220         * catgets/Makefile: Likewise.
3221         * mach/Makefile: Likewise.
3222         * malloc/Makefile: Likewise.
3223         * misc/Makefile: Likewise.
3224         * iconv/Makefile: Likewise.
3225         * nscd/Makefile: Likewise.
3226         * hurd/Makefile: Likewise.
3227         * manual/Makefile: Likewise.
3228         * locale/Makefile: Likewise.
3229         * intl/Makefile: Likewise.
3230         * conform/Makefile: Likewise.
3231         * nss/Makefile: Likewise.
3232         * time/Makefile: Likewise.
3233         * soft-fp/Makefile: Likewise.
3234         * dirent/Makefile: Likewise.
3235         * gmon/Makefile: Likewise.
3236         * po/Makefile: Likewise.
3237         * rt/Makefile: Likewise.
3238         * socket/Makefile: Likewise.
3239         * math/Makefile: Likewise.
3240         * signal/Makefile: Likewise.
3241         * debug/Makefile: Likewise.
3242         * elf/Makefile: Likewise.
3243         * timezone/Makefile: Likewise.
3244         * stdlib/Makefile: Likewise.
3245         * iconvdata/Makefile: Likewise.
3246         * sunrpc/Makefile: Likewise.
3247         * io/Makefile: Likewise.
3248         * argp/Makefile: Likewise.
3249         * inet/Makefile: Likewise.
3250         * hesiod/Makefile: Likewise.
3251         * grp/Makefile: Likewise.
3252         * csu/Makefile: Likewise.
3253         * wctype/Makefile: Likewise.
3254         * crypt/Makefile: Likewise.
3255         * libio/Makefile: Likewise.
3256         * string/Makefile: Likewise.
3257         * nis/Makefile: Likewise.
3258         * resolv/Makefile: Likewise.
3259         * stdio-common/Makefile: Likewise.
3260         * wcsmbs/Makefile: Likewise.
3261         * dlfcn/Makefile: Likewise.
3262         * posix/Makefile: Likewise.
3263
3264         [BZ #6959]
3265         * timezone/Makefile: Don't install timezone files, just the programs
3266         and scripts.
3267
3268 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
3269
3270         * nss/databases.def: Add missing gshadow entry.
3271
3272         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
3273
3274 2012-03-06  Marek Polacek  <polacek@redhat.com>
3275
3276         [BZ #13726]
3277         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
3278         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
3279         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
3280         * stdio-common/tst-long-dbl-fphex.c: New file.
3281
3282 2012-03-06  David S. Miller  <davem@davemloft.net>
3283
3284         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3285         (set_obp_int): New function.
3286         (get_obp_int): New function.
3287         (__get_clockfreq_via_dev_openprom): Likewise.
3288         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3289         Avoid unused variable warnings on 'val' and use builtin_expect.
3290         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
3291         __builtin_expect.
3292         (INLINE_CLONE_SYSCALL): Likewise.
3293
3294 2012-03-05  David S. Miller  <davem@davemloft.net>
3295
3296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3297
3298 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
3299
3300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3301
3302         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
3303         only for |x| >= 40.
3304         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3305
3306 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3307
3308         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
3309         Replace gettimeofday with __vdso_gettimeofday.
3310
3311         * sysdeps/unix/sysv/linux/x86_64/init-first.c
3312         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
3313         __vdso_clock_gettime and __vdso_getcpu.
3314
3315         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
3316         time with __vdso_time.
3317
3318 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
3319
3320         * manual/lang.texi (size_t): Note types to which size_t may be
3321         equivalent with the GNU C Library, but do not describe when
3322         differences between them are significant.
3323
3324 2012-03-05  Andreas Jaeger  <aj@suse.de>
3325
3326         * sysdeps/i386/fpu/libm-test-ulps: Update.
3327
3328 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
3329
3330         [BZ #3976]
3331         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
3332         (__ieee754_pow): Save and restore rounding mode and use
3333         round-to-nearest for main computations.
3334         * math/libm-test.inc (pow_test_tonearest): New function.
3335         (pow_test_towardzero): Likewise.
3336         (pow_test_downward): Likewise.
3337         (pow_test_upward): Likewise.
3338         (main): Call the new functions.
3339         * sysdeps/i386/fpu/libm-test-ulps: Update.
3340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3341
3342         [BZ #3976]
3343         * math/libm-test.inc (cosh_test_tonearest): New function.
3344         (cosh_test_towardzero): Likewise.
3345         (cosh_test_downward): Likewise.
3346         (cosh_test_upward): Likewise.
3347         (sinh_test_tonearest): Likewise.
3348         (sinh_test_towardzero): Likewise.
3349         (sinh_test_downward): Likewise.
3350         (sinh_test_upward): Likewise.
3351         (main): Call the new functions.
3352         * sysdeps/i386/fpu/libm-test-ulps: Update.
3353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3354
3355 2012-03-05  Tom de Vries  <tom@codesourcery.com>
3356
3357         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
3358         default stack guard is set in last bytes.
3359         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
3360
3361 2012-03-05  Kees Cook  <keescook@chromium.org>
3362
3363         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
3364
3365         [BZ #13656]
3366         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
3367         possibly allocate from heap instead of stack.
3368         * stdio-common/bug-vfprintf-nargs.c: New file.
3369         * stdio-common/Makefile (tests): Add nargs overflow test.
3370
3371 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
3372
3373         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3374
3375 2012-03-03  Marek Polacek  <polacek@redhat.com>
3376
3377         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
3378         * math/math_private.h: Likewise.
3379         * stdlib/tst-strtod.c: Likewise.
3380         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3381         * sysdeps/x86_64/bits/atomic.h: Likewise.
3382
3383 2012-03-02  David S. Miller  <davem@davemloft.net>
3384
3385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
3386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
3387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
3388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
3389         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
3390         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
3391         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
3392         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
3393
3394 2012-03-02  Roland McGrath  <roland@hack.frob.com>
3395
3396         [BZ #13792]
3397         * manual/examples/README: New file, says the example source files
3398         can be used under GPL>=2.
3399         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
3400         line containing just "*/".
3401         * manual/examples/add.c: Add copyright header (GPL>=2).
3402         * manual/examples/argp-ex1.c: Likewise.
3403         * manual/examples/argp-ex2.c: Likewise.
3404         * manual/examples/argp-ex3.c: Likewise.
3405         * manual/examples/argp-ex4.c: Likewise.
3406         * manual/examples/atexit.c: Likewise.
3407         * manual/examples/db.c: Likewise.
3408         * manual/examples/dir.c: Likewise.
3409         * manual/examples/dir2.c: Likewise.
3410         * manual/examples/execinfo.c: Likewise.
3411         * manual/examples/filecli.c: Likewise.
3412         * manual/examples/filesrv.c: Likewise.
3413         * manual/examples/fmtmsgexpl.c: Likewise.
3414         * manual/examples/genpass.c: Likewise.
3415         * manual/examples/inetcli.c: Likewise.
3416         * manual/examples/inetsrv.c: Likewise.
3417         * manual/examples/isockad.c: Likewise.
3418         * manual/examples/longopt.c: Likewise.
3419         * manual/examples/memopen.c: Likewise.
3420         * manual/examples/memstrm.c: Likewise.
3421         * manual/examples/mkfsock.c: Likewise.
3422         * manual/examples/mkisock.c: Likewise.
3423         * manual/examples/mygetpass.c: Likewise.
3424         * manual/examples/pipe.c: Likewise.
3425         * manual/examples/popen.c: Likewise.
3426         * manual/examples/rprintf.c: Likewise.
3427         * manual/examples/search.c: Likewise.
3428         * manual/examples/select.c: Likewise.
3429         * manual/examples/setjmp.c: Likewise.
3430         * manual/examples/sigh1.c: Likewise.
3431         * manual/examples/sigusr.c: Likewise.
3432         * manual/examples/stpcpy.c: Likewise.
3433         * manual/examples/strdupa.c: Likewise.
3434         * manual/examples/strftim.c: Likewise.
3435         * manual/examples/strncat.c: Likewise.
3436         * manual/examples/subopt.c: Likewise.
3437         * manual/examples/swapcontext.c: Likewise.
3438         * manual/examples/termios.c: Likewise.
3439         * manual/examples/testopt.c: Likewise.
3440         * manual/examples/testpass.c: Likewise.
3441         * manual/examples/timeval_subtract.c: Likewise.
3442
3443         [BZ #13792]
3444         * manual/time.texi (Elapsed Time): Move timeval_subtract example
3445         function to ...
3446         * manual/timeval_subtract.c.texi: ... here, new file.
3447
3448 2012-03-02  David S. Miller  <davem@davemloft.net>
3449
3450         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
3451
3452 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
3453
3454         [BZ #3976]
3455         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
3456         (__sin): Save and restore rounding mode and use round-to-nearest
3457         for all computations.
3458         (__cos): Save and restore rounding mode and use round-to-nearest
3459         for all computations.
3460         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
3461         <fenv.h>.
3462         (tan): Save and restore rounding mode and use round-to-nearest for
3463         all computations.
3464         * math/libm-test.inc (cos_test_tonearest): New function.
3465         (cos_test_towardzero): Likewise.
3466         (cos_test_downward): Likewise.
3467         (cos_test_upward): Likewise.
3468         (sin_test_tonearest): Likewise.
3469         (sin_test_towardzero): Likewise.
3470         (sin_test_downward): Likewise.
3471         (sin_test_upward): Likewise.
3472         (tan_test_tonearest): Likewise.
3473         (tan_test_towardzero): Likewise.
3474         (tan_test_downward): Likewise.
3475         (tan_test_upward): Likewise.
3476         (main): Call the new functions.
3477         * sysdeps/i386/fpu/libm-test-ulps: Update.
3478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3479
3480         [BZ #10135]
3481         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
3482         small n, then large n, before computing and testing k+n.
3483         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3484         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3485         Likewise.
3486         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3487         Likewise.
3488         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
3489         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3490         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3491         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3492         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3493         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3494         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3495         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
3496         * math/libm-test.inc (scalbn_test): Add more tests.
3497         (scalbln_test): Likewise.
3498
3499         * manual/filesys.texi (mode_t): Describe constraints on size and
3500         signedness, not exact equivalence to a particular type.
3501         (ino_t): Likewise.
3502         (ino64_t): Likewise.
3503         (dev_t): Likewise.
3504         (nlink_t): Likewise.
3505         (blkcnt_t): Likewise.
3506         (blkcnt64_t): Likewise.
3507         * manual/llio.texi (off_t): Likewise.
3508
3509         [BZ #3976]
3510         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
3511         (__ieee754_exp): Save and restore rounding mode and use
3512         round-to-nearest for all computations.
3513         * math/libm-test.inc (exp_test_tonearest): New function.
3514         (exp_test_towardzero): Likewise.
3515         (exp_test_downward): Likewise.
3516         (exp_test_upward): Likewise.
3517         (main): Call the new functions.
3518         * sysdeps/i386/fpu/libm-test-ulps: Update.
3519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3520
3521 2012-03-01  Chris Demetriou  <cgd@google.com>
3522
3523         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
3524         have predictable order.
3525
3526 2012-03-01  David S. Miller  <davem@davemloft.net>
3527
3528         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
3529
3530         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
3531         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
3532         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
3533         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
3534
3535         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
3536         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
3537         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
3538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
3539         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
3540         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
3541         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
3542         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
3543         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
3544
3545         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3546
3547         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
3548         * sysdeps/sparc/fpu/libm-test-ulps: to here.
3549         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
3550
3551         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
3552         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3553         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3554         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
3555         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
3556         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
3557         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
3558         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3559         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3560         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
3561         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
3562         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3563         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3564         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3565         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3566         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3567         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
3568         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
3569         * sysdeps/sparc/elf/configure: Regenerated.
3570
3571 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
3572
3573         * configure.in (AS, LD): Require binutils 2.20 or later.
3574         * configure: Regenerated.
3575         * manual/install.texi (Tools for Compilation): Give binutils 2.20
3576         as required minimum version.
3577         * INSTALL: Regenerated.
3578
3579         [BZ #2541]
3580         [BZ #4108]
3581         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
3582         before squaring exponent.
3583         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
3584         bottom long double and 27 bits of top long double before squaring
3585         exponent.
3586         * math/libm-test.inc (erfc_test): Add more tests.
3587         * sysdeps/i386/fpu/libm-test-ulps: Update.
3588         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3590
3591 2012-03-01  Kai Tietz  <ktietz@redhat.com>
3592
3593         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
3594         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
3595         containing bit-fields.
3596         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3597         * soft-fp/single.h (_FP_UNION_S): Likewise.
3598         * soft-fp/double.h (_FP_UNION_D): Likewise.
3599
3600 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3601
3602         [BZ #13786]
3603         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
3604         not include ../strcmp.S.
3605         [USE_AS_STRNCASECMP_L]: Likewise.
3606         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
3607         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
3608         * sysdeps/i386/i686/multiarch/strncase_l-c.c
3609         (__strncasecmp_l_ia32): Define as alias to
3610         __strncasecmp_l_nonascii.
3611
3612         [BZ #5794]
3613         * math/libm-test.inc (expm1_test): Add test for bug 5794.
3614         * sysdeps/i386/fpu/libm-test-ulps: Update.
3615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3616
3617         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
3618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3619
3620 2012-02-29  Jeff Law  <law@redhat.com>
3621
3622         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
3623         out of bounds read.
3624
3625 2012-02-29  Marek Polacek  <polacek@redhat.com>
3626
3627         [BZ #13706]
3628         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
3629         * elf/Makefile: Add rules to run tst-unused-dep.out.
3630
3631 2012-02-28  David S. Miller  <davem@davemloft.net>
3632
3633         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
3634         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
3635         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
3636         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
3637         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
3638         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
3639
3640 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3641
3642         * math/libm-test.inc (llround_test): Move one test from
3643         lround_test.  Use TEST_f_L in moved test.
3644         (lround_test): Move misplaced test to llround_test.  Add testcase
3645         from bug 2561.
3646
3647 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
3648
3649         * sysdeps/x86_64/fpu/e_expf.S: New file.
3650         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
3651
3652 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
3653
3654         [BZ #13637]
3655         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
3656         of remain_len that may cause incomplete multi-byte character and
3657         false match.
3658         * posix/bug-regex33.c: New file.
3659         * posix/Makefile (tests): Add bug-regex33.
3660
3661 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * manual/macros.texi: New file.
3664         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
3665         * manual/libc.texinfo: Include macros.texi.
3666         * manual/creatute.texi: Likewise.
3667         * manual/install.texi: Likewise.
3668         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
3669         @glibcadj{} in references to the GNU C Library.
3670         * manual/charset.texi: Likewise.
3671         * manual/conf.texi: Likewise.
3672         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
3673         when not using those macros.
3674         * manual/creature.texi: Likewise.
3675         * manual/crypt.texi: Likewise.
3676         * manual/errno.texi: Likewise.
3677         * manual/filesys.texi: Likewise.
3678         * manual/header.texi: Likewise.
3679         * manual/install.texi: Likewise.
3680         * manual/intro.texi: Likewise.
3681         * manual/io.texi: Likewise.
3682         * manual/job.texi: Likewise.
3683         * manual/lang.texi: Likewise.
3684         * manual/libc.texiinfo: Likewise.
3685         * manual/llio.texi: Likewise.
3686         * manual/locale.texi: Likewise.
3687         * manual/maint.texi: Likewise.
3688         * manual/math.texi: Likewise.
3689         * manual/memory.texi: Likewise.
3690         * manual/message.texi: Likewise.
3691         * manual/nss.texi: Likewise.
3692         * manual/pattern.texi: Likewise.
3693         * manual/process.texi: Likewise.
3694         * manual/resource.texi: Likewise.
3695         * manual/search.texi: Likewise.
3696         * manual/setjmp.texi: Likewise.
3697         * manual/signal.texi: Likewise.
3698         * manual/socket.texi: Likewise.
3699         * manual/startup.texi: Likewise.
3700         * manual/stdio.texi: Likewise.
3701         * manual/string.texi: Likewise.
3702         * manual/sysinfo.texi: Likewise.
3703         * manual/syslog.texi: Likewise.
3704         * manual/terminal.texi: Likewise.
3705         * manual/time.texi: Likewise.
3706         * manual/users.texi: Likewise.
3707         * INSTALL: Regenerated.
3708         * NOTES: Regenerated.
3709         * sysdeps/gnu/errlist.c: Regenerated.
3710
3711 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3712
3713         * include/dirent.h: Include <dirstream.h> before
3714         <dirent/dirent.h>.
3715
3716 2012-02-28  David S. Miller  <davem@davemloft.net>
3717
3718         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3719         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3720         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3721         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3722
3723 2012-02-27  David S. Miller  <davem@davemloft.net>
3724
3725         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3726         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3727         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3728         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3729
3730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3731         frame pointer instead of stack pointer relative arg slot.
3732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3733         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3734         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3735
3736 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3737
3738         [BZ #3992]
3739         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3740
3741 2012-02-27  David S. Miller  <davem@davemloft.net>
3742
3743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3747         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3748         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3749         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3750         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3751
3752 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3753
3754         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3755         later.  Allow versions 5-9.
3756         * configure: Regenerated.
3757         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3758         required minimum version and 4.6 as recommended version.  Do not
3759         mention bugs in GCC 2.7 and 2.8.
3760         * INSTALL: Regenerated.
3761
3762 2012-02-27  David S. Miller  <davem@davemloft.net>
3763
3764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3768         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3769         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3770         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3771         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3772
3773         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3774         manipulate bits before adding and subtracting TWO112[sx].
3775         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3776
3777 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3778
3779         [BZ #13775]
3780         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3781         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3782         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3783         being in POSIX, because they are in 1003.1-2008.
3784
3785         * rt/tst-aio.c: Include <fcntl.h>.
3786         * rt/tst-aio7.c: Likewise.
3787         * rt/tst-aio64.c: Likewise.
3788
3789         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3790
3791 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3792
3793         * manual/install.texi (--with-headers): Describe headers as
3794         interface headers, not private headers.
3795         (Specific advice for GNU/Linux systems): Describe use of headers
3796         from "make headers_install", not private headers from older
3797         kernels.
3798         * INSTALL: Regenerated.
3799         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3800         Change to 2.6.19.
3801         * sysdeps/unix/sysv/linux/configure: Regenerated.
3802
3803         * manual/llio.texi (fclean): Remove documentation.
3804
3805         * manual/Makefile (libc-texi-generated): New variable.  Include
3806         version.texi.
3807         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3808         $(libc-texi-generated), not duplicated list of files.
3809         (version.texi, stamp-version): New rules.
3810         (realclean): Remove $(libc-texi-generated), not individual files
3811         from that list.  Do not remove dir-add.texinfo.
3812         * manual/libc.texinfo: Comment out uses of edition numbers and
3813         references to printed manual.  Remove last-updated dates.
3814         (EDITION): Comment out.
3815         (ISBN): Likewise.
3816         (VERSION, UPDATED): Remove.
3817         (version.texi): Include.
3818
3819 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3820
3821         * sysdeps/posix/spawni.c: Include <signal.h>.
3822         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3823         * sysdeps/pthread/aio_fsync.c: Likewise.
3824
3825 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3826
3827         * conform/Makefile (tests): Run only when not cross-compiling and
3828         when fast-check is not defined.
3829
3830         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3831         * conform/data/limits.h-data: Fixes for POSIX2008.
3832         * conform/run-conformtest.sh: Run all tests.
3833         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3834         headers.
3835         * include/bits/dlfcn.h: Likewise.
3836         * include/langinfo.h: Likewise.
3837         * include/monetary.h: Likewise.
3838         * include/sys/poll.h: Likewise.
3839
3840         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3841         for __USE_GNU.
3842         * posix/spawn.h: Define __need_sigset_t.
3843         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3844         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3845         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3846         to get sigevent_t only.
3847         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3848         only for __USE_GNU.
3849         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3850         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3851         process_vm_writev only for __USE_GNU.
3852         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3853
3854         * conform/Makefile: For now ignore errors from run-conformtest.
3855         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3856         POSIX to avoid namespace pollution.  Don't prepend headers.
3857         * conform/data/aio.h-data: Fixes for POSIX testing.
3858         * conform/data/fcntl.h-data: Likewise.
3859         * conform/data/glob.h-data: Likewise.
3860         * conform/data/grp.h-data: Likewise.
3861         * conform/data/pthread.h-data: Likewise.
3862         * conform/data/pwd.h-data: Likewise.
3863         * conform/data/signal.h-data: Likewise.
3864         * conform/data/spawn.h-data: Likewise.
3865         * conform/data/stdio.h-data: Likewise.
3866         * conform/data/stdlib.h-data: Likewise.
3867         * conform/data/stropts.h-data: Likewise.
3868         * conform/data/sys/mman.h-data: Likewise.
3869         * conform/data/sys/stat.h-data: Likewise.
3870         * conform/data/sys/types.h-data: Likewise.
3871         * conform/data/sys/wait.h-data: Likewise.
3872         * conform/data/time.h-data: Likewise.
3873         * conform/data/unistd.h-data: Likewise.
3874         * conform/data/utime.h-data: Likewise.
3875
3876         * io/sys/stat.h: fchmod was always in POSIX.
3877         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3878         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3879         * rt/aio.h: Define __need_timespec before including <time.h>.
3880         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3881         struct.  Add forward declaration of pthread_attr_t and use it in
3882         sigevent.
3883         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3884         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3885         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3886         always remove CLK_TCK definition.
3887
3888 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3889
3890         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3891
3892 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3893
3894         * conform/run-conformtest.sh: New file.
3895         * conform/Makefile: Run run-conformtest for tests.
3896         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3897         support.
3898
3899         * conform/data/uchar.h-data: New file.
3900         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3901         * conform/data/arpa/inet.h-data: Likewise.
3902         * conform/data/assert.h-data: Likewise.
3903         * conform/data/complex.h-data: Likewise.
3904         * conform/data/cpio.h-data: Likewise.
3905         * conform/data/ctype.h-data: Likewise.
3906         * conform/data/dirent.h-data: Likewise.
3907         * conform/data/dlfcn.h-data: Likewise.
3908         * conform/data/errno.h-data: Likewise.
3909         * conform/data/fcntl.h-data: Likewise.
3910         * conform/data/float.h-data: Likewise.
3911         * conform/data/fmtmsg.h-data: Likewise.
3912         * conform/data/fnmatch.h-data: Likewise.
3913         * conform/data/ftw.h-data: Likewise.
3914         * conform/data/glob.h-data: Likewise.
3915         * conform/data/grp.h-data: Likewise.
3916         * conform/data/iconv.h-data: Likewise.
3917         * conform/data/inttypes.h-data: Likewise.
3918         * conform/data/langinfo.h-data: Likewise.
3919         * conform/data/libgen.h-data: Likewise.
3920         * conform/data/limits.h-data: Likewise.
3921         * conform/data/locale.h-data: Likewise.
3922         * conform/data/math.h-data: Likewise.
3923         * conform/data/monetary.h-data: Likewise.
3924         * conform/data/mqueue.h-data: Likewise.
3925         * conform/data/ndbm.h-data: Likewise.
3926         * conform/data/net/if.h-data: Likewise.
3927         * conform/data/netdb.h-data: Likewise.
3928         * conform/data/netinet/in.h-data: Likewise.
3929         * conform/data/nl_types.h-data: Likewise.
3930         * conform/data/poll.h-data: Likewise.
3931         * conform/data/pthread.h-data: Likewise.
3932         * conform/data/pwd.h-data: Likewise.
3933         * conform/data/regex.h-data: Likewise.
3934         * conform/data/sched.h-data: Likewise.
3935         * conform/data/search.h-data: Likewise.
3936         * conform/data/semaphore.h-data: Likewise.
3937         * conform/data/setjmp.h-data: Likewise.
3938         * conform/data/signal.h-data: Likewise.
3939         * conform/data/spawn.h-data: Likewise.
3940         * conform/data/stdarg.h-data: Likewise.
3941         * conform/data/stdio.h-data: Likewise.
3942         * conform/data/stdlib.h-data: Likewise.
3943         * conform/data/string.h-data: Likewise.
3944         * conform/data/strings.h-data: Likewise.
3945         * conform/data/stropts.h-data: Likewise.
3946         * conform/data/sys/ipc.h-data: Likewise.
3947         * conform/data/sys/mman.h-data: Likewise.
3948         * conform/data/sys/msg.h-data: Likewise.
3949         * conform/data/sys/resource.h-data: Likewise.
3950         * conform/data/sys/select.h-data: Likewise.
3951         * conform/data/sys/sem.h-data: Likewise.
3952         * conform/data/sys/shm.h-data: Likewise.
3953         * conform/data/sys/socket.h-data: Likewise.
3954         * conform/data/sys/stat.h-data: Likewise.
3955         * conform/data/sys/statvfs.h-data: Likewise.
3956         * conform/data/sys/time.h-data: Likewise.
3957         * conform/data/sys/timeb.h-data: Likewise.
3958         * conform/data/sys/times.h-data: Likewise.
3959         * conform/data/sys/types.h-data: Likewise.
3960         * conform/data/sys/uio.h-data: Likewise.
3961         * conform/data/sys/un.h-data: Likewise.
3962         * conform/data/sys/utsname.h-data: Likewise.
3963         * conform/data/sys/wait.h-data: Likewise.
3964         * conform/data/syslog.h-data: Likewise.
3965         * conform/data/tar.h-data: Likewise.
3966         * conform/data/termios.h-data: Likewise.
3967         * conform/data/utime.h-data: Likewise.
3968         * conform/data/utmpx.h-data: Likewise.
3969         * conform/data/varargs.h-data: Likewise.
3970         * conform/data/wchar.h-data: Likewise.
3971         * conform/data/wctype.h-data: Likewise.
3972         * conform/data/wordexp.h-data: Likewise.
3973
3974         * include/stropts.h: New file.
3975         * include/uchar.h: New file.
3976         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3977         * include/assert.h: Likewise.
3978         * include/ctype.h: Likewise.
3979         * include/dirent.h: Likewise.
3980         * include/dlfcn.h: Likewise.
3981         * include/fcntl.h: Likewise.
3982         * include/fnmatch.h: Likewise.
3983         * include/glob.h: Likewise.
3984         * include/grp.h: Likewise.
3985         * include/libio.h: Likewise.
3986         * include/locale.h: Likewise.
3987         * include/math.h: Likewise.
3988         * include/net/if.h: Likewise.
3989         * include/netdb.h: Likewise.
3990         * include/netinet/in.h: Likewise.
3991         * include/pthread.h: Likewise.
3992         * include/pwd.h: Likewise.
3993         * include/regex.h: Likewise.
3994         * include/sched.h: Likewise.
3995         * include/search.h: Likewise.
3996         * include/setjmp.h: Likewise.
3997         * include/signal.h: Likewise.
3998         * include/stdio.h: Likewise.
3999         * include/stdlib.h: Likewise.
4000         * include/string.h: Likewise.
4001         * include/sys/cdefs.h: Likewise.
4002         * include/sys/mman.h: Likewise.
4003         * include/sys/msg.h: Likewise.
4004         * include/sys/resource.h: Likewise.
4005         * include/sys/select.h: Likewise.
4006         * include/sys/socket.h: Likewise.
4007         * include/sys/stat.h: Likewise.
4008         * include/sys/statvfs.h: Likewise.
4009         * include/sys/time.h: Likewise.
4010         * include/sys/times.h: Likewise.
4011         * include/sys/uio.h: Likewise.
4012         * include/sys/utsname.h: Likewise.
4013         * include/sys/wait.h: Likewise.
4014         * include/termios.h: Likewise.
4015         * include/time.h: Likewise.
4016         * include/ulimit.h: Likewise.
4017         * include/unistd.h: Likewise.
4018         * include/utime.h: Likewise.
4019         * include/wchar.h: Likewise.
4020         * include/wctype.h: Likewise.
4021         * include/wordexp.h: Likewise.
4022
4023         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
4024
4025         * time/time.h: TIME_UTC must be a macro.
4026         Make timespec_get available for ISO C11 only as well.
4027
4028 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
4029
4030         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
4031         Reported by Peng Haitao <penght@cn.fujitsu.com>.
4032
4033 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4034
4035         * configure.in: Use -o not -a in test for unsupported multi-arch.
4036
4037 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4038
4039         * manual/texinfo.tex: Update to version 2012-01-19.16.
4040
4041 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4042
4043         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
4044
4045 2012-02-24  Roland McGrath  <roland@hack.frob.com>
4046
4047         [BZ #13738]
4048         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
4049         * manual/fdl-1.3.texi: New file.
4050         * manual/fdl-1.1.texi: File removed.
4051
4052         [BZ #13738]
4053         * manual/libc.texinfo (FDL_VERSION): New @set.
4054         Use it for mention of FDL in cover text.
4055         (Documentation License): Use it in @include file name.
4056
4057 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4058             Roland McGrath  <roland@hack.frob.com>
4059
4060         [BZ #5461]
4061         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
4062         not LONG_LONG_MAX and LONG_LONG_MIN.
4063         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
4064         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
4065         name.
4066         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
4067
4068 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4069
4070         [BZ #2547]
4071         [BZ #11365]
4072         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
4073         manipulate bits before adding and subtracting TWO23[sx].
4074         * math/libm-test.inc (nearbyint_test): Add more tests.
4075
4076 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4077
4078         [BZ #2548]
4079         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
4080         bits before adding and subtracting TWO23[sx].
4081         * math/libm-test.inc (rint_test): Add more tests.
4082         (rint_test_tonearest): Likewise.
4083         (rint_test_towardzero): Likewise.
4084         (rint_test_downward): Likewise.
4085         (rint_test_upward: Likewise.
4086
4087 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4088
4089         [BZ #10110]
4090         * include/stdc-predef.h: New file.  Extracted from features.h.
4091         * include/features.h: Include stdc-predef.h.
4092         * Makefile (headers): Add stdc-predef.h.
4093         * CONFORMANCE (Compiler limitations): Update.
4094
4095 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4096
4097         * manual/libc.texinfo (VERSION, UPDATED): Revert.
4098
4099 2012-02-21  David S. Miller  <davem@davemloft.net>
4100
4101         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
4102         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4103
4104 2012-02-20  David S. Miller  <davem@davemloft.net>
4105
4106         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
4107         using a normal save/restore sequence, rather than allocating a
4108         dummy stack frame just to store a frame pointer and restore.
4109         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4110
4111 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4112
4113         * manual/install.texi: Fix stray word in line-wrapped comment.
4114
4115 2012-02-20  David S. Miller  <davem@davemloft.net>
4116
4117         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
4118         both binutils and gcc support GOTDATA.
4119
4120         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
4121         "rd %pc" in the PIC register setup sequences.
4122
4123         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
4124         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
4125         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4126         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
4127         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4128         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4129         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4130         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4131         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4132         (SYSCALL_ERROR_HANDLER): Likewise.
4133         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4134         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4135         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4136         (SYSCALL_ERROR_HANDLER): Likewise.
4137
4138         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
4139         (HAVE_GCC_GOTDATA): New.
4140         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
4141         relocation support in both binutils and gcc.
4142         * sysdeps/sparc/elf/configure: Regenerate.
4143
4144         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
4145         * sysdeps/sparc/sparc32/elf/configure: Delete.
4146         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
4147         * sysdeps/sparc/sparc64/elf/configure: Delete.
4148         * sysdeps/sparc/elf/configure.in: New file.
4149         * sysdeps/sparc/elf/configure: Generate.
4150
4151         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
4152         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
4153         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
4154         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
4155         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
4156
4157 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4158
4159         * manual/install.texi: Do not mention specific glibc version
4160         numbers.
4161         * manual/libc.texinfo (VERSION, UPDATED): Update.
4162         (@copying): Use @copyright{} and range of years.
4163
4164 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4165
4166         [BZ #13695]
4167         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
4168         [crti.S not in sysdirs] (generated): Do not append.
4169         [crti.S not in sysdirs] (omit-deps): Likewise.
4170         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
4171         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
4172         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
4173         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
4174         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
4175         Likewise.
4176         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
4177         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
4178         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
4179         * csu/defs.awk: Remove file.
4180         * sysdeps/generic/initfini.c: Likewise.
4181         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
4182         variable.
4183         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
4184         Likewise.
4185
4186 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4187
4188         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
4189         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
4190         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
4191         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
4192         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4193         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
4194         <bits/epoll.h>.
4195         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
4196         (__EPOLL_PACKED): Define to empty if not defined by
4197         <bits/epoll.h>.
4198         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
4199         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4200         bits/epoll.h.
4201
4202 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4203
4204         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
4205         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
4206         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
4207         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
4208         <bits/timerfd.h>.
4209         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
4210         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4211         bits/timerfd.h.
4212
4213 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4214
4215         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
4216         in C locale.
4217         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4218         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4219         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
4220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4221
4222 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
4223
4224         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4225         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4226
4227 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
4228
4229         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
4230         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
4231         defined.
4232         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
4233         Likewise.
4234         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
4235         entry for 2.16.
4236
4237 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
4238
4239         * math/w_acos.c: Use non-signaling floating-point comparisons.
4240         * math/w_acosf.c: Likewise.
4241         * math/w_acosh.c: Likewise.
4242         * math/w_acoshf.c: Likewise.
4243         * math/w_acoshl.c: Likewise.
4244         * math/w_acosl.c: Likewise.
4245         * math/w_asin.c: Likewise.
4246         * math/w_asinf.c: Likewise.
4247         * math/w_asinl.c: Likewise.
4248         * math/w_atanh.c: Likewise.
4249         * math/w_atanhf.c: Likewise.
4250         * math/w_atanhl.c: Likewise.
4251         * math/w_exp2.c: Likewise.
4252         * math/w_exp2f.c: Likewise.
4253         * math/w_exp2l.c: Likewise.
4254         * math/w_j0.c: Likewise.
4255         * math/w_j0f.c: Likewise.
4256         * math/w_j0l.c: Likewise.
4257         * math/w_j1.c: Likewise.
4258         * math/w_j1f.c: Likewise.
4259         * math/w_j1l.c: Likewise.
4260         * math/w_jn.c: Likewise.
4261         * math/w_jnf.c: Likewise.
4262         * math/w_log.c: Likewise.
4263         * math/w_log10.c: Likewise.
4264         * math/w_log10f.c: Likewise.
4265         * math/w_log10l.c: Likewise.
4266         * math/w_log2.c: Likewise.
4267         * math/w_log2f.c: Likewise.
4268         * math/w_log2l.c: Likewise.
4269         * math/w_logf.c: Likewise.
4270         * math/w_logl.c: Likewise.
4271         * math/w_sqrt.c: Likewise.
4272         * math/w_sqrtf.c: Likewise.
4273         * math/w_sqrtl.c: Likewise.
4274         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4275         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
4276         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4277         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
4278         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
4279
4280 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4281
4282         [BZ #9739]
4283         * manual/string.texi (strnlen): Use correct parameter name in
4284         equivalent expression.
4285
4286 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4287
4288         [BZ #11174]
4289         * manual/users.texi (seteuid): Consistently use neweuid for
4290         argument name.
4291
4292 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
4293
4294         [BZ #13704]
4295         * manual/nss.texi (Services in the NSS configuration): Correct
4296         list of services in example configuration file.
4297
4298 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
4299
4300         [BZ #11322]
4301         * manual/arith.texi: Remove statements about negative zero
4302         behaving identically to zero.
4303
4304 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
4305
4306         [BZ #5993]
4307         * manual/install.texi: Do not document upgrading from libc5.
4308
4309 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
4310
4311         [BZ #4596]
4312         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
4313
4314 2012-02-18  David S. Miller  <davem@davemloft.net>
4315
4316         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
4317         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
4318         %o7 across the call.
4319         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
4320         instead.
4321         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
4322         SETUP_PIC_REG_LEAF.
4323         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4324         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
4325         * sysdeps/sparc/crtn.S: Likewise.
4326
4327 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
4328
4329         * aout/Makefile: Remove.
4330
4331 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
4332
4333         [BZ #13058]
4334         * manual/examples/argp-ex1.c (main): Format definition in GNU
4335         style.
4336         * manual/examples/argp-ex2.c (main): Likewise.
4337         * manual/examples/argp-ex3.c (main): Likewise.
4338         * manual/examples/argp-ex4.c (main): Likewise.
4339         * manual/examples/longopt.c (main): Use new-style prototype
4340         definition.
4341         * manual/examples/strncat.c (main): Specify return type and use
4342         (void) for arguments.
4343         * manual/examples/subopt.c (main): Use char **argv argument.
4344
4345 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4346
4347         [BZ #5077]
4348         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
4349         rounding modes.
4350
4351 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
4352
4353         [BZ #6907]
4354         * manual/string.texi (strchr): Change when strchrnul is
4355         recommended.
4356
4357 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
4358
4359         [BZ #174]
4360         * manual/locale.texi (setlocale): Document LOCPATH.
4361
4362 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4363
4364         [BZ #10210]
4365         * manual/process.texi (execle): Move @dots{} before last argument.
4366
4367 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
4368
4369         [BZ #12047]
4370         * manual/charset.texi (Generic Charset Conversion): Fix typo
4371         (LC_TYPE -> LC_CTYPE).
4372
4373 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
4374
4375         [BZ #5805]
4376         * manual/arith.texi (scalbn): Use @var{} on parameter names.
4377         (scalbnf): Likewise.
4378         (scalbnl): Likewise.
4379         (scalbln): Likewise.
4380         (scalblnf): Likewise.
4381         (scalblnl): Likewise.
4382         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
4383         (vwarnx): Likewise.
4384         (verr): Likewise.
4385         (verrx): Likewise.
4386         * manual/filesys.texi (telldir): Use braces around return type.
4387         * manual/llio.texi (mmap): Add space after comma.
4388         (mmap64): Likewise.
4389         * manual/math.texi (jn): Use @var{} on parameter names.
4390         (jnf): Likewise.
4391         (jnl): Likewise.
4392         (yn): Likewise.
4393         (ynf): Likewise.
4394         (ynl): Likewise.
4395         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
4396         line.
4397         * manual/resource.texi (ulimit): Use @dots{} instead of literal
4398         "...".
4399         (sched_get_priority_min): Remove semicolon on @deftypefun line.
4400         (sched_get_priority_max): Likewise.
4401         * manual/signal.texi (sigvec): Add space after comma.
4402         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
4403         names.
4404         (if_indextoname): Likewise.
4405         (if_freenameindex): Likewise.
4406         (sendto): Use ',' instead of '.' in prototype.
4407         * manual/startup.texi (syscall): Use @dots{} instead of literal
4408         "...".
4409         * manual/stdio.texi (__fpending): Separate initial words of
4410         paragraph from @deftypefun line.
4411         * manual/syslog.texi (syslog): Use @dots{} instead of literal
4412         "...".
4413         (vsyslog): Use @var{} on parameter names.
4414         * manual/terminal.texi (stty): Use @var{} on parameter names.
4415         * manual/users.texi (getutmp): Use @var{} on parameter names.
4416         (getutmpx): Likewise.
4417
4418 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4419
4420         [BZ #6884]
4421         * manual/stdio.texi (fopen): Fix typos in description of
4422         ",ccs=STRING".
4423
4424 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
4425
4426         [BZ #4026]
4427         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
4428         get clock_id definition.
4429
4430 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
4431
4432         [BZ #4822]
4433         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
4434         (madvise): Cast every argument to void on its own.
4435
4436 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4437
4438         [BZ #9902]
4439         * manual/startup.texi (Exit Status): Fix typo.
4440
4441 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4442
4443         [BZ #10140]
4444         * manual/examples/argp-ex1.c: Include <stdlib.h>.
4445         * manual/examples/argp-ex2.c: Likewise.
4446         * manual/examples/argp-ex3.c: Likewise.
4447
4448 2012-02-16  Richard Henderson  <rth@redhat.com>
4449
4450         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
4451         * sysdeps/s390/s390-32/initfini.c: Remove.
4452         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
4453         * sysdeps/s390/s390-64/initfini.c: Remove.
4454
4455 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4456
4457         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
4458         compiler output for sysdeps/generic/initfini.c.
4459         * sysdeps/sh/elf/initfini.c: Remove file.
4460
4461 2012-02-16  David S. Miller  <davem@davemloft.net>
4462
4463         [BZ #11494]
4464         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
4465
4466         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
4467         * sysdeps/sparc/crti.S: New file.
4468         * sysdeps/sparc/crtn.S: New file.
4469         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
4470         * sysdeps/sparc/sparc64/Makefile: Likewise.
4471
4472 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
4473
4474         [BZ #3335]
4475         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
4476
4477 2012-02-15  Roland McGrath  <roland@hack.frob.com>
4478
4479         [BZ #4822]
4480         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
4481
4482         * mach/devstream.c (cookie_io_functions_t): Macro removed.
4483         (write, read, close): Likewise.
4484         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4485
4486 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
4487
4488         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
4489         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
4490         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
4491         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
4492         <bits/signalfd.h>.
4493         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
4494         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4495         bits/signalfd.h.
4496
4497 2012-02-14  Marek Polacek  <polacek@redhat.com>
4498
4499         * sysdeps/x86_64/crti.S: New file.
4500         * sysdeps/x86_64/crtn.S: New file.
4501         * sysdeps/x86_64/elf/initfini.c: Remove file.
4502
4503 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4504
4505         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
4506         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
4507         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
4508         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
4509         <bits/inotify.h>.
4510         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
4511         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4512         bits/inotify.h.
4513
4514 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4515
4516         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
4517         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
4518         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
4519         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
4520         <bits/eventfd.h>.
4521         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
4522         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4523         bits/eventfd.h.
4524
4525 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
4526
4527         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
4528         __feraiseexcept instead of feraiseexcept.
4529
4530         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
4531         nanosleep invocations.
4532         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
4533         strings, and add error checking for a nanosleep invocations.
4534
4535 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4536
4537         Replace FSF snail mail address with URLs, as per GNU coding standards.
4538         Most of the snail mail addresses were wrong anyway, and omitting
4539         them makes the source code easier to maintain.  Almost all of the
4540         changes are to license notices and to locale LC_IDENTIFICATION
4541         addresses, except for this one:
4542         * manual/libc.texinfo: In "Published by", give the FSF's URL,
4543         not its snail mail address.
4544
4545 2012-02-09  Richard Henderson  <rth@twiddle.net>
4546
4547         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
4548         of kernel-features.h.
4549
4550         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
4551
4552 2012-02-08  Marek Polacek  <polacek@redhat.com>
4553
4554         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
4555         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
4556         * sysdeps/gnu/_G_config.h: Likewise.
4557         * sysdeps/generic/_G_config.h: Likewise.
4558
4559 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
4560
4561         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
4562         tests.
4563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4564
4565         * sysdeps/powerpc/powerpc32/crti.S: New file.
4566         * sysdeps/powerpc/powerpc32/crtn.S: New file.
4567         * sysdeps/powerpc/powerpc64/crti.S: New file.
4568         * sysdeps/powerpc/powerpc64/crtn.S: New file.
4569
4570         * Makeconfig (have-initfini): Don't set.
4571         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
4572         * configure.in (nopic_initfini): Don't substitute.
4573         * config.h.in (HAVE_INITFINI): Don't #undef.
4574         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
4575         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
4576
4577 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
4578
4579         Support crti.S and crtn.S provided directly by architectures.
4580         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
4581         [crti.S in sysdirs] (omit-deps): Likewise.
4582         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
4583         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
4584         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
4585         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
4586         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
4587         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
4588         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
4589         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
4590         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
4591         compiler output for sysdeps/generic/initfini.c.
4592         * sysdeps/i386/elf/Makefile: Remove file.
4593         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
4594
4595 2012-02-07  Marek Polacek  <polacek@redhat.com>
4596
4597         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
4598         * sysdeps/gnu/_G_config.h: Likewise.
4599         * sysdeps/mach/hurd/_G_config.h: Likewise.
4600
4601 2012-02-07  Marek Polacek  <polacek@redhat.com>
4602
4603         * math/Makefile (tests): Add tst-CMPLX2.
4604         * math/tst-CMPLX2.c: New file.
4605
4606 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
4607
4608         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4609
4610         * math/libm-test.inc (jn_test): Add missing L suffix.
4611
4612 2012-02-06  Marek Polacek  <polacek@redhat.com>
4613
4614         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
4615         * sysdeps/i386/fpu/e_powf.S: Likewise.
4616         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4617         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4618         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4619         * sysdeps/i386/fpu/e_pow.S: Likewise.
4620         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4621         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4622         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4623         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4624         * sysdeps/i386/fpu/e_log2.S: Likewise.
4625         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4626         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4627         * sysdeps/i386/fpu/e_powl.S: Likewise.
4628         * sysdeps/i386/fpu/s_log1p.S: Likewise.
4629         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4630         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4631         * sysdeps/i386/fpu/e_logl.S: Likewise.
4632         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4633         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
4634         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4635         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4636         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4637         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4638         * sysdeps/i386/fpu/e_log.S: Likewise.
4639         * sysdeps/i386/fpu/s_cexp.S: Likewise.
4640         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4641         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
4642         * sysdeps/i386/fpu/e_logf.S: Likewise.
4643         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4644         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4645         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
4646         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4647         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4648         * sysdeps/i386/fpu/e_log10.S: Likewise.
4649         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4650         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4651         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4652         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4653         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4654         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4655         * sysdeps/i386/asm-syntax.h: Likewise.
4656         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4657         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4658         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4659         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4660         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
4661         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4662         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4663         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4664         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4665         * sysdeps/powerpc/sysdep.h: Likewise.
4666         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4667         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4668
4669 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4670
4671         [BZ #411]
4672         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
4673
4674 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4675
4676         * sysdeps/i386/sysdep.h: Include <features.h>.
4677         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4678         version.
4679
4680 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4681
4682         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4683         Define.
4684         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4685         LOAD_PIC_REG_STR.
4686
4687 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4688
4689         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4690         (SETUP_PIC_REG): Use GET_PC_THUNK.
4691         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4692         macro.
4693
4694 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4695
4696         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4697         for non-PIC compilation.
4698         (SETUP_PIC_REG): Add .p2align directive.
4699         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4700         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4701         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4702         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4703         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4704         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4705         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4706         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4707         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4708         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4709         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4710         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4711         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4712         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4713         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4714         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4715         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4716         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4717         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4718         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4719         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4720         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4721         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4722         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4723         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4724         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4725         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4726         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4727         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4728         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4729         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4730         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4731         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4732         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4733         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4734         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4735         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4736         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4737         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4738         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4739         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4740
4741 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4742
4743         * math/tst-CMPLX.c: Include <stdio.h>.
4744
4745 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4746
4747         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4748         float.
4749         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4750         * sysdeps/sparc/bits/mathdef.h: Likewise.
4751
4752 2012-01-31  Marek Polacek  <polacek@redhat.com>
4753
4754         * libio/libio.h: Don't define _PARAMS.
4755         * locale/programs/config.h: Don't define PARAMS.
4756         * stdlib/strtol_l.c: Likewise.
4757         (__strtol_l): Remove PARAMS from the prototype.
4758
4759 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4760
4761         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4762         names.  Just use the correct names.  Remove unnecessary wrapper
4763         functions.
4764         * malloc/arena.c: Likewise.
4765         * malloc/hooks.c: Likewise.
4766
4767         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4768         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4769         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4770
4771 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4772
4773         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4774         into tail calls.
4775         (update_get_addr): New function.
4776         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4777         GET_ADDR_MODULE parameter.
4778
4779 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4780
4781         * crypt/cert.c: Remove __STDC__ conditionals.
4782         * crypt/crypt-entry.c: Likewise.
4783         * crypt/crypt_util.c: Likewise.
4784         * libio/filedoalloc.c: Likewise.
4785         * libio/fileops.c: Likewise.
4786         * libio/genops.c: Likewise.
4787         * libio/iofclose.c: Likewise.
4788         * libio/iofdopen.c: Likewise.
4789         * libio/iofopen.c: Likewise.
4790         * libio/iofopen64.c: Likewise.
4791         * libio/iogetdelim.c: Likewise.
4792         * libio/iopopen.c: Likewise.
4793         * libio/obprintf.c: Likewise.
4794         * libio/oldfileops.c: Likewise.
4795         * libio/oldiofclose.c: Likewise.
4796         * libio/oldiofdopen.c: Likewise.
4797         * libio/oldiofopen.c: Likewise.
4798         * libio/oldiopopen.c: Likewise.
4799         * libio/wfiledoalloc.c: Likewise.
4800         * libio/wgenops.c: Likewise.
4801         * locale/programs/xmalloc.c: Likewise.
4802         * misc/syslog.c: Likewise.
4803         * stdio-common/xbug.c: Likewise.
4804         * string/memchr.c: Likewise.
4805         * string/memcmp.c: Likewise.
4806         * string/memrchr.c: Likewise.
4807         * string/rawmemchr.c: Likewise.
4808         * sysdeps/posix/getcwd.c: Likewise.
4809         * time/strftime_l.c: Likewise.
4810
4811 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4812
4813         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4814         * config.make.in (config-cflags-sse2avx): Define.
4815         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4816         Fix typo.
4817
4818 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4819
4820         * scripts/config.guess: Update from upstream config git repository.
4821         * scripts/config.sub: Likewise.
4822
4823 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4824
4825         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4826         (EM_NUM): Update.
4827         (R_TILEPRO_*, R_TILEGX_*): New macros.
4828
4829         * scripts/firstversions.awk: Fix bug in version range handling.
4830
4831         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4832
4833         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4834
4835         * include/sys/epoll.h: New file.
4836         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4837         libc_hidden_def.
4838
4839 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4840
4841         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4842         Avoid unnecessary __WORDSIZE == 64 test.
4843         (fmaxf): Use VEX format if possible.
4844         (fmax): Likewise.
4845         (fminf): Likewise.
4846         (fmin): Likewise.
4847
4848         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4849         * math/math_private.h: Remove libc_fegetround* and
4850         libc_fesetround*.
4851         * sysdeps/i386/configure.in: Check for -msse2avx.
4852         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4853         also if SSE2AVX is defined.
4854         Remove libc_fegetround* and libc_fesetround*.
4855         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4856         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4857         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4858         of HAS_YMM_USABLE.
4859         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4860         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4861         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4862         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4863         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4864
4865         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4866
4867 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4868
4869         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4870         size is not set.
4871         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4872
4873 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4874
4875         [BZ #13618]
4876         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4877         relocation.
4878         * Makeconfig (libm): Define.
4879         * elf/Makefile: Add rules to build and run tst-relsort1.
4880         * elf/tst-relsort1.c: New file.
4881         * elf/tst-relsort1mod1.c: New file.
4882         * elf/tst-relsort1mod2.c: New file.
4883
4884 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4885
4886         * math/s_ldexp.c: Remove __STDC__ conditionals.
4887         * math/s_ldexpf.c: Likewise.
4888         * math/s_ldexpl.c: Likewise.
4889         * math/s_nextafter.c: Likewise.
4890         * math/s_nexttowardf.c: Likewise.
4891         * math/s_significand.c: Likewise.
4892         * math/s_significandf.c: Likewise.
4893         * math/s_significandl.c: Likewise.
4894         * math/w_jnl.c: Likewise.
4895         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4896         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4897         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4898         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4899         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4900         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4901         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4902         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4903         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4904         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4905         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4906         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4907         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4908         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4909         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4910         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4911         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4912         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4913         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4914         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4915         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4916         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4917         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4918         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4919         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4920         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4921         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4922         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4923         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4924         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4925         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4926         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4927         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4928         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4929         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4930         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4931         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4932         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4933         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4934         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4935         * sysdeps/ieee754/k_standard.c: Likewise.
4936         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4937         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4938         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4939         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4940         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4941         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4942         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4943         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4944         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4945         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4946         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4947         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4948         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4949         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4950         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4951         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4952         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4953         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4954         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4955         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4956         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4957         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4958         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4959         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4960         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4961         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4962         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4963         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4964         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4965         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4966         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4967         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4968         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4969         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4970         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4971         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4972         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4973         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4974         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4975         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4976         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4977         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4978         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4979         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4980         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4981         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4982         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4983         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4984         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4985         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4986         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4987         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4988         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4989         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4990         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4991         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4992         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4993         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4994         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4995         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4996         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4997         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4998         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4999         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5000         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5001         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5002         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5003         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5004         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5005         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5006         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5007         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5008         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5009         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5010         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5011         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5012         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5013         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5014         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5015         * sysdeps/ieee754/s_matherr.c: Likewise.
5016         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5017         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5018         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5019         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5020
5021 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5022
5023         * crypt/md5.h: Remove __STDC__ conditionals.
5024         * libio/libioP.h: Likewise.
5025         * locale/programs/config.h: Likewise.
5026         * sysdeps/generic/sysdep.h: Likewise.
5027         * sysdeps/i386/asm-syntax.h: Likewise.
5028         * sysdeps/s390/asm-syntax.h: Likewise.
5029         * sysdeps/unix/sysdep.h: Likewise.
5030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5032
5033 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5034
5035         * libio/libio.h: Remove __STDC__ conditionals.
5036         * malloc/obstack.h: Likewise.
5037         * math/complex.h: Likewise.
5038         * math/math.h: Likewise.
5039         * sysdeps/generic/_G_config.h: Likewise.
5040         * sysdeps/gnu/_G_config.h: Likewise.
5041         * sysdeps/mach/hurd/_G_config.h: Likewise.
5042         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5043         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5044         * sysdeps/sparc/bits/mathdef.h: Likewise.
5045
5046 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
5047
5048         [BZ #13583]
5049         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
5050         Clean up HAS_* macros.
5051         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
5052         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
5053         possible.
5054         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
5055         HAS_AVX.
5056         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5057         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5058         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5059         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5060         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5061
5062 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
5063
5064         * elf/tst-unique3.cc (gets): Remove declaration.
5065         * elf/tst-unique3lib.cc (gets): Likewise.
5066         * elf/tst-unique3lib2.cc (gets): Likewise.
5067         * elf/tst-unique4.cc (gets): Likewise.
5068
5069 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
5070
5071         * include/stdio.h: Add C++ protection.  Add gets declarations and
5072         definitions.
5073         * debug/tst-chk1.c: Don't declare gets here.
5074         * stdio-common/tst-gets.c: Likewise.
5075
5076 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5077
5078         * posix/glob: Remove directory.
5079
5080 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5081
5082         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
5083
5084 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
5085
5086         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
5087         of the non-standard EPFNOSUPPORT.
5088
5089 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5090
5091         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
5092         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
5093         ANYWHERE set to 1 only on KERN_NO_SPACE error.
5094
5095 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
5096
5097         * wcsmbs/uchar.h: Test __STDC_VERSION__.
5098
5099 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
5100
5101         * nscd/aicache.c (addhstaiX): Do not cache negative results of
5102         transient errors.
5103         * nscd/grpcache.c (cache_addgr): Likewise.
5104         * nscd/hstcache.c (cache_addhst): Likewise.
5105         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5106         * nscd/pwdcache.c (cache_addpw): Likewise.
5107         * nscd/servicescache.c (cache_addserv): Likewise.
5108
5109 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
5110
5111         * malloc/malloc.c: Various cleanups.
5112         * malloc/hooks.c: Likewise.
5113
5114         * stdlib/Makefile (tests): Add bug-fmtmsg1.
5115         * stdlib/bug-fmtmsg1.c: New file.
5116
5117         * stdlib/fmtmsg.c (init): Add missing unlock.
5118         Patch by Peng Haitao <penght@cn.fujitsu.com>.
5119
5120 2012-01-12  Marek Polacek  <polacek@redhat.com>
5121
5122         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
5123         and _GNU_SOURCE.
5124
5125 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
5126
5127         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
5128         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
5129         macro to ensure uniqueness of label name.
5130         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5131         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5132
5133 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
5134
5135         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
5136
5137         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
5138         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5139         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5140         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
5141
5142 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
5143
5144         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
5145
5146         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
5147         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5148         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5149
5150         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
5151
5152         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
5153         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5154         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5155         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5156
5157         * math/bits/math-finite.h: Add ldexp support.
5158
5159 2012-01-10  Marek Polacek  <polacek@redhat.com>
5160
5161         * locale/programs/localedef.h (show_archive_content): Add noreturn
5162         attribute.
5163
5164 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
5165
5166         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
5167
5168 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5169
5170         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
5171
5172         * io/Makefile (headers): Add bits/poll2.h.
5173
5174 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
5175
5176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
5177         typo #include statement.
5178
5179 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5180
5181         * include/sys/cdefs.h: Define __attribute_alloc_size.
5182         * catgets/gencat.c: Add alloc_size attribute and apply consistently
5183         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
5184         * elf/pldd.c: Likewise.
5185         * iconv/iconv_charmap.c: Likewise.
5186         * iconv/iconvconfig.c: Likewise.
5187         * iconv/strtab.c: Likewise.
5188         * locale/programs/locale.c: Likewise.
5189         * locale/programs/localedef.h: Likewise.
5190         * locale/programs/simple-hash.c: Likewise.
5191         * nscd/nscd.h: Likewise.
5192         * nss/makedb.c: Likewise.
5193         * sysdeps/generic/ldconfig.h: Likewise.
5194         * locale/programs/localedef.c: Remove xmalloc prototype.
5195         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
5196
5197 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5198
5199         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
5200         appropriate.
5201
5202 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5203
5204         * math/Makefile (tests): Add tst-CMPLX.
5205         * math/tst-CMPLX.c: New file.
5206
5207         * math/complex.h (CMPLXL): Fix typo.
5208
5209         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
5210         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
5211         GLIBC_2.16.
5212         * debug/tst-chk1.c: Add poll and ppoll tests.
5213         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
5214         * include/sys/poll.h: Add hidden proto for ppoll.
5215         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
5216         * sysdeps/mach/hurd/ppoll.c: Likewise.
5217         * io/ppoll.c: Likewise.
5218         * debug/poll_chk.c: New file.
5219         * debug/ppoll_chk.c: New file.
5220         * include/bits/poll2.h: New file.
5221         * io/bits/poll2.h: New file.
5222
5223         [BZ #1350]
5224         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
5225
5226         * configure.in: static is always set to yes.  Remove.
5227         * config.make.in: Don't set build-static.
5228         * Makeconfig: Remove use of build-static.
5229         * dlfcn/Makefile: Likewise.
5230         * elf/Makefile: Likewise.
5231         * math/Makefile: Likewise.
5232         * misc/Makefile: Likewise.
5233         * nptl/Makefile: Likewise.
5234         * sysdeps/mach/hurd/Makefile: Likewise.
5235
5236         * configure.in: PWD_P is not used anymore.
5237         * config.make.in: Remove PWD_P entry.
5238
5239         * configure.in: Remove last remnants of RANLIB.
5240         No need to check for signed size_t anymore.
5241         Don't set libc_commonpagesize and libc_relro_required here for Alpha
5242         and IA-64.
5243         Remove __builtin_expect test because we require at least gcc 3.4.
5244         * aclocal.m4: Likewise.
5245
5246         * wcsmbs/mbrtoc16.c: Implement using towc function.
5247         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
5248         * wcsmbs/wcsmbsload.c: Likewise.
5249         * iconv/gconv_simple.c: Likewise.
5250         * iconv/gconv_int.h: Likewise.
5251         * iconv/gconv_builtin.h: Likewise.
5252         * iconv/iconv_prog.c: Remove CHAR16 handling.
5253
5254         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
5255
5256         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
5257
5258         * configure.in: Remove --with-elf and --enable-bounded options.
5259         Dont set base_machine for ia64.  More non-ELF conditions removed.
5260         Remove testing and setting of leading underscore information.
5261         * config.make.in (build-bounded): Set to no.
5262         * config.h.in: Remove NO_UNDERSCORES entry.
5263         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
5264         them.
5265         * csu/start.c: Remove !NO_UNDERSCORE code.
5266         * locale/localeinfo.h: Likewise.
5267         * sysdeps/generic/machine-gmon.h: Likewise.
5268         * sysdeps/generic/sysdep.h: Likewise.
5269         * sysdeps/i386/sysdep.h: Likewise.
5270         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5271         * sysdeps/mach/sysdep.h: Likewise.
5272         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5273         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5274         * sysdeps/sh/sysdep.h: Likewise.
5275         * sysdeps/sparc/sparc32/alloca.S: Likewise.
5276         * sysdeps/unix/i386/sysdep.S: Likewise.
5277         * sysdeps/unix/sparc/start.c: Likewise.
5278         * sysdeps/unix/sparc/sysdep.S: Likewise.
5279         * sysdeps/unix/sparc/sysdep.h: Likewise.
5280         * sysdeps/unix/start.c: Likewise.
5281         * sysdeps/unix/x86_64/sysdep.S: Likewise.
5282         * sysdeps/x86_64/sysdep.h: Likewise.
5283
5284 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
5285
5286         [BZ #13553]
5287         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
5288         for non-gcc.
5289         * argp/argp-fmtstream.h: Use const instead __const.
5290         * argp/argp.h: Likewise.
5291         * assert/assert.h: Likewise.
5292         * bits/fenv.h: Likewise.
5293         * bits/sched.h: Likewise.
5294         * bits/sigset.h: Likewise.
5295         * bits/sigthread.h: Likewise.
5296         * catgets/nl_types.h: Likewise.
5297         * conform/data/pthread.h-data: Likewise.
5298         * crypt/crypt-private.h: Likewise.
5299         * crypt/crypt.h: Likewise.
5300         * crypt/crypt_util.c: Likewise.
5301         * ctype/ctype.h: Likewise.
5302         * debug/execinfo.h: Likewise.
5303         * debug/mbsnrtowcs_chk.c: Likewise.
5304         * debug/mbsrtowcs_chk.c: Likewise.
5305         * debug/wcsnrtombs_chk.c: Likewise.
5306         * debug/wcsrtombs_chk.c: Likewise.
5307         * debug/wcstombs_chk.c: Likewise.
5308         * dirent/dirent.h: Likewise.
5309         * dlfcn/dlfcn.h: Likewise.
5310         * elf/neededtest4.c: Likewise.
5311         * grp/grp.h: Likewise.
5312         * gshadow/gshadow.h: Likewise.
5313         * iconv/gconv.h: Likewise.
5314         * iconv/gconv_int.h: Likewise.
5315         * iconv/gconv_simple.c: Likewise.
5316         * iconv/iconv.h: Likewise.
5317         * iconv/loop.c: Likewise.
5318         * iconv/skeleton.c: Likewise.
5319         * include/aio.h: Likewise.
5320         * include/aliases.h: Likewise.
5321         * include/argz.h: Likewise.
5322         * include/arpa/inet.h: Likewise.
5323         * include/assert.h: Likewise.
5324         * include/dirent.h: Likewise.
5325         * include/dlfcn.h: Likewise.
5326         * include/execinfo.h: Likewise.
5327         * include/fcntl.h: Likewise.
5328         * include/fenv.h: Likewise.
5329         * include/glob.h: Likewise.
5330         * include/grp.h: Likewise.
5331         * include/libintl.h: Likewise.
5332         * include/mntent.h: Likewise.
5333         * include/netdb.h: Likewise.
5334         * include/pwd.h: Likewise.
5335         * include/rpc/netdb.h: Likewise.
5336         * include/sched.h: Likewise.
5337         * include/search.h: Likewise.
5338         * include/shadow.h: Likewise.
5339         * include/signal.h: Likewise.
5340         * include/stdio.h: Likewise.
5341         * include/stdlib.h: Likewise.
5342         * include/string.h: Likewise.
5343         * include/sys/socket.h: Likewise.
5344         * include/sys/stat.h: Likewise.
5345         * include/sys/statfs.h: Likewise.
5346         * include/sys/statvfs.h: Likewise.
5347         * include/sys/syslog.h: Likewise.
5348         * include/sys/time.h: Likewise.
5349         * include/sys/uio.h: Likewise.
5350         * include/time.h: Likewise.
5351         * include/unistd.h: Likewise.
5352         * include/utmp.h: Likewise.
5353         * include/wchar.h: Likewise.
5354         * include/wctype.h: Likewise.
5355         * inet/aliases.h: Likewise.
5356         * inet/arpa/inet.h: Likewise.
5357         * inet/netinet/ether.h: Likewise.
5358         * inet/netinet/in.h: Likewise.
5359         * intl/libintl.h: Likewise.
5360         * io/bits/fcntl2.h: Likewise.
5361         * io/fcntl.h: Likewise.
5362         * io/ftw.h: Likewise.
5363         * io/sys/poll.h: Likewise.
5364         * io/sys/stat.h: Likewise.
5365         * io/sys/statfs.h: Likewise.
5366         * io/sys/statvfs.h: Likewise.
5367         * io/utime.h: Likewise.
5368         * libio/bits/stdio.h: Likewise.
5369         * libio/bits/stdio2.h: Likewise.
5370         * libio/libio.h: Likewise.
5371         * libio/libioP.h: Likewise.
5372         * libio/stdio.h: Likewise.
5373         * locale/lc-ctype.c: Likewise.
5374         * locale/locale.h: Likewise.
5375         * login/utmp.h: Likewise.
5376         * malloc/arena.c: Likewise.
5377         * malloc/malloc.c: Likewise.
5378         * malloc/malloc.h: Likewise.
5379         * malloc/mcheck.c: Likewise.
5380         * malloc/mtrace.c: Likewise.
5381         * math/bits/mathcalls.h: Likewise.
5382         * math/fenv.h: Likewise.
5383         * math/math_private.h: Likewise.
5384         * misc/bits/error.h: Likewise.
5385         * misc/bits/syslog.h: Likewise.
5386         * misc/err.h: Likewise.
5387         * misc/error.h: Likewise.
5388         * misc/fstab.h: Likewise.
5389         * misc/mntent.h: Likewise.
5390         * misc/regexp.h: Likewise.
5391         * misc/search.h: Likewise.
5392         * misc/sgtty.h: Likewise.
5393         * misc/sys/mman.h: Likewise.
5394         * misc/sys/syslog.h: Likewise.
5395         * misc/sys/uio.h: Likewise.
5396         * misc/sys/xattr.h: Likewise.
5397         * misc/ttyent.h: Likewise.
5398         * nis/rpcsvc/ypclnt.h: Likewise.
5399         * nss/nss.h: Likewise.
5400         * posix/bits/unistd.h: Likewise.
5401         * posix/fnmatch.h: Likewise.
5402         * posix/glob.h: Likewise.
5403         * posix/sched.h: Likewise.
5404         * posix/spawn.h: Likewise.
5405         * posix/sys/wait.h: Likewise.
5406         * posix/unistd.h: Likewise.
5407         * posix/wordexp.h: Likewise.
5408         * pwd/pwd.h: Likewise.
5409         * resolv/netdb.h: Likewise.
5410         * resource/sys/resource.h: Likewise.
5411         * rt/aio.h: Likewise.
5412         * rt/bits/mqueue2.h: Likewise.
5413         * rt/mqueue.h: Likewise.
5414         * shadow/shadow.h: Likewise.
5415         * signal/signal.h: Likewise.
5416         * socket/send.c: Likewise.
5417         * socket/sendto.c: Likewise.
5418         * socket/sys/socket.h: Likewise.
5419         * stdio-common/printf.h: Likewise.
5420         * stdlib/bits/stdlib.h: Likewise.
5421         * stdlib/fmtmsg.h: Likewise.
5422         * stdlib/monetary.h: Likewise.
5423         * stdlib/stdlib.h: Likewise.
5424         * stdlib/ucontext.h: Likewise.
5425         * streams/stropts.h: Likewise.
5426         * string/argz.h: Likewise.
5427         * string/bits/string2.h: Likewise.
5428         * string/string.h: Likewise.
5429         * string/strings.h: Likewise.
5430         * sunrpc/rpc/auth.h: Likewise.
5431         * sunrpc/rpc/auth_des.h: Likewise.
5432         * sunrpc/rpc/clnt.h: Likewise.
5433         * sunrpc/rpc/netdb.h: Likewise.
5434         * sunrpc/rpc/pmap_clnt.h: Likewise.
5435         * sunrpc/rpc/xdr.h: Likewise.
5436         * sysdeps/generic/inttypes.h: Likewise.
5437         * sysdeps/generic/net/if.h: Likewise.
5438         * sysdeps/generic/sys/swap.h: Likewise.
5439         * sysdeps/gnu/net/if.h: Likewise.
5440         * sysdeps/gnu/utmpx.h: Likewise.
5441         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
5442         * sysdeps/i386/i486/bits/string.h: Likewise.
5443         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
5444         * sysdeps/s390/bits/string.h: Likewise.
5445         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
5446         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
5447         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5448         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
5449         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5450         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5451         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5452         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
5453         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
5454         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5455         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
5456         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5457         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
5458         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5459         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5460         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
5461         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
5462         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5463         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5464         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5465         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5466         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
5467         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
5468         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5469         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
5470         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
5471         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
5472         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5473         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
5474         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
5475         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
5476         * sysvipc/sys/ipc.h: Likewise.
5477         * sysvipc/sys/msg.h: Likewise.
5478         * sysvipc/sys/sem.h: Likewise.
5479         * sysvipc/sys/shm.h: Likewise.
5480         * termios/termios.h: Likewise.
5481         * time/sys/time.h: Likewise.
5482         * time/time.h: Likewise.
5483         * wcsmbs/bits/wchar2.h: Likewise.
5484         * wcsmbs/uchar.h: Likewise.
5485         * wcsmbs/wchar.h: Likewise.
5486         * wctype/wctype.h: Likewise.
5487
5488         [BZ #13551]
5489         * Makeconfig: Remove all but ELF support including AIX support.
5490         * Makerules: Likewise.
5491         * config.h.in: Likewise.
5492         * config.make.in: Likewise.
5493         * configure: Likewise.
5494         * configure.in: Likewise.
5495         * csu/Makefile: Likewise.
5496         * csu/version.c: Likewise.
5497         * debug/Makefile: Likewise.
5498         * dlfcn/Makefile: Likewise.
5499         * elf/Makefile: Likewise.
5500         * extra-lib.mk: Likewise.
5501         * iconv/Makefile: Likewise.
5502         * include/libc-symbols.h: Likewise.
5503         * include/shlib-compat.h: Likewise.
5504         * resolv/Makefile: Likewise.
5505         * resolv/res_libc.c: Likewise.
5506         * rt/Makefile: Likewise.
5507         * sysdeps/i386/asm-syntax.h: Likewise.
5508         * sysdeps/i386/sysdep.h: Likewise.
5509         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5510         * sysdeps/mach/sysdep.h: Likewise.
5511         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
5512         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
5513         * sysdeps/s390/asm-syntax.h: Likewise.
5514         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5515         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5516         * sysdeps/sh/sysdep.h: Likewise.
5517         * sysdeps/unix/sparc/sysdep.h: Likewise.
5518         * sysdeps/wordsize-32/divdi3.c: Likewise.
5519         * sysdeps/x86_64/sysdep.h: Likewise.
5520
5521         * argp/Versions: Remove _argp_unlock_xxx.
5522
5523         [BZ #13559]
5524         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
5525         * abilist/libBrokenLocale.abilist: Likewise.
5526         * abilist/libanl.abilist: Likewise.
5527         * abilist/libc.abilist: Likewise.
5528         * abilist/libcrypt.abilist: Likewise.
5529         * abilist/libdl.abilist: Likewise.
5530         * abilist/libm.abilist: Likewise.
5531         * abilist/libnsl.abilist: Likewise.
5532         * abilist/libpthread.abilist: Likewise.
5533         * abilist/libresolv.abilist: Likewise.
5534         * abilist/librt.abilist: Likewise.
5535         * abilist/libthread_db.abilist: Likewise.
5536         * abilist/libutil.abilist: Likewise.
5537         * abilist/libnss_db.abilist: New file.
5538
5539         * scripts/abilist.awk: Add support for indirect functions.
5540
5541         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
5542
5543         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
5544
5545         * shlib-versions: Remove entries for ports architectures.
5546
5547         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
5548         files in ports.
5549         * elf/stackguard-macros.h: Remove support for IA-64.
5550         * elf/tst-auditmod1.c: Likewise.
5551         * sysdeps/generic/ldsodefs.h: Likewise.
5552
5553         * sysdeps/unix/sysv/linux/configure.in: Ports should define
5554         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
5555         configure files.
5556
5557         [BZ #13552]
5558         * configure.in: Remove --enable-omitfp support.
5559         * FAQ.in: Adjust.
5560         * config.make.in: Likewise.
5561         * Makeconfig: Likewise.
5562         * manual/install.texi: Likewise.
5563
5564         In case anyone cares, the IA-64 architecture could move to ports.
5565         * sysdeps/ia64/*: Removed.
5566         * sysdeps/unix/sysv/linux/ia64/*: Removed.
5567         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
5568
5569         [BZ #13555]
5570         * configure.in: Remove entries for unsupported architectures.
5571
5572         [BZ #13533]
5573         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
5574         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
5575         routines.
5576         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
5577         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
5578         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
5579         fall back to using wcrtomb.
5580         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
5581         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
5582         renaming.
5583         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
5584         * wcsmbs/tst-c16c32-1.c: New file.
5585
5586         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
5587         local variable.
5588
5589         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
5590
5591         * elf/tst-unique3.cc: Add explicit declaration of gets.
5592         * elf/tst-unique3lib.cc: Likewise.
5593         * elf/tst-unique3lib2.cc: Likewise.
5594         * elf/tst-unique4.cc: Likewise.
5595
5596         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
5597
5598 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
5599
5600         [BZ #13566]
5601         * assert/assert.h (static_assert): Don't define for C++.
5602         * libio/stdio.h (gets): Do declare for C++ <= C++11.
5603         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
5604
5605 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
5606
5607         * iconv/loop.c (single loop): Fix assertion in storing of
5608         remaining bytes.
5609
5610         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
5611
5612 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
5613
5614         * posix/getconf.c: Update copyright year.
5615         * nss/getent.c: Likewise.
5616         * nss/makedb.c: Likewise.
5617         * iconv/iconvconfig.c: Likewise.
5618         * iconv/iconv_prog.c: Likewise.
5619         * elf/ldconfig.c: Likewise.
5620         * elf/pldd.c: Likewise.
5621         * elf/sotruss.ksh: Likewise.
5622         * catgets/gencat.c: Likewise.
5623         * csu/version.c: Likewise.
5624         * elf/ldd.bash.in: Likewise.
5625         * elf/sprof.c (print_version): Likewise.
5626         * locale/programs/locale.c: Likewise.
5627         * locale/programs/localedef.c: Likewise.
5628         * login/programs/pt_chown.c: Likewise.
5629         * nscd/nscd.c (print_version): Likewise.
5630         * debug/xtrace.sh: Likewise.
5631         * malloc/memusage.sh: Likewise.
5632         * malloc/mtrace.pl: Likewise.
5633         * debug/catchsegv.sh: Likewise.
5634
5635 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
5636
5637         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
5638         pure attribute.
5639
5640 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
5641
5642         [BZ #13533]
5643         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
5644         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
5645         transformations.
5646         * iconv/gconv_int.h: Likewise.
5647         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
5648         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
5649         from libc for GLIBC_2.16.
5650         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
5651         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
5652         * wcsmbs/uchar.h: Really define mbstate_t.
5653         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
5654         * wcsmbs/c16rtomb.c: New file.
5655         * wcsmbs/mbrtoc16.c: New file.
5656         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
5657         for C/POSIX locale.
5658         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
5659         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
5660
5661         * wcsmbs/wchar.h: Add missing __restrict.
5662
5663 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5664
5665         [BZ #13532]
5666         * time/Makefile (routines): Add timespec_get.
5667         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
5668         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
5669         timespec for ISO C11.
5670         * time/timespec_get.c: New file.
5671         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
5672         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
5673
5674         [BZ #13531]
5675         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5676         * stdlib/stdlib.h: Declare aligned_alloc.
5677         * Versions.def: Add GLIBC_2.16 for libc.
5678         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5679
5680         [BZ 13527]
5681         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5682         ISO C11.
5683
5684         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5685         code.
5686
5687         [BZ #13528]
5688         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5689
5690         [BZ #13529]
5691         * assert/assert.h (static_assert): Define.
5692
5693         * version.h: Update for 2.16 development version.
5694
5695         [BZ #13526]
5696         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5697         _ISOC11_SOURCE.
5698
5699         * version.h (RELEASE): Bump for 2.15 release.
5700         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5701
5702         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5703         Patch by Marek Polacek <mpolacek@redhat.com>.
5704
5705         * bits/byteswap.h: Protect long long constants with __extension__.
5706         * sysdeps/i386/bits/byteswap.h: Likewise.
5707         * sysdeps/ia64/bits/byteswap.h: Likewise.
5708         * sysdeps/s390/bits/byteswap.h: Likewise.
5709         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5710
5711 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5712
5713         [BZ #13540]
5714         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5715         destination buffer.
5716         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5717
5718 2011-12-23  Marek Polacek  <polacek@redhat.com>
5719
5720         * elf/dl-addr.c (determine_info): Add inline keyword.
5721         * elf/tst-auditmod4b.c (check_avx): Likewise.
5722         * elf/tst-auditmod6b.c (check_avx): Likewise.
5723         * elf/tst-auditmod6c.c (check_avx): Likewise.
5724         * elf/tst-auditmod7b.c (check_avx): Likewise.
5725
5726 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5727
5728         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5729         !__SSE_MATH__.
5730
5731 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5732
5733         [BZ #13540]
5734         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5735         processing for last bytes.
5736
5737 2011-08-06  Bruno Haible  <bruno@clisp.org>
5738
5739         [BZ #13061]
5740         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5741         U+0385, not to U+1FEE.
5742
5743         [BZ #13062]
5744         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5745         entry for U+00A5 U+0301.
5746
5747 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5748
5749         [BZ #13166]
5750         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5751         buffer for the output is too small.
5752
5753         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5754         optimization.
5755
5756         [BZ #13185]
5757         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5758         SSE flags if possible.
5759
5760 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5761
5762         [BZ #13540]
5763         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5764         processing for last bytes.
5765
5766 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5767
5768         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5769         (syscall-list-default-options, syscall-list-default-condition)
5770         (syscall-list-includes): Define.
5771         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5772         list of ABIs and options and #if conditions for each ABI.  Do not
5773         handle common syscalls between ABIs specially.
5774         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5775         Remove.
5776         (syscall-list-variants, syscall-list-32bit-options)
5777         (syscall-list-32bit-condition, syscall-list-64bit-options)
5778         (syscall-list-64bit-condition): Define.
5779         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5780         (syscall-list-variants, syscall-list-32bit-options)
5781         (syscall-list-32bit-condition, syscall-list-64bit-options)
5782         (syscall-list-64bit-condition): Define.
5783         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5784         Remove.
5785         (syscall-list-variants, syscall-list-32bit-options)
5786         (syscall-list-32bit-condition, syscall-list-64bit-options)
5787         (syscall-list-64bit-condition): Define.
5788         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5789         Remove.
5790         (syscall-list-variants, syscall-list-32bit-options)
5791         (syscall-list-32bit-condition, syscall-list-64bit-options)
5792         (syscall-list-64bit-condition): Define.
5793
5794 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5795
5796         * locale/iso-639.def: Add brx entry.
5797
5798         [BZ #13328]
5799         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5800         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5801
5802         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5803         __feraiseexcept_renamed.
5804
5805 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5806
5807         [BZ #13538]
5808         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5809         EPOLLET with unsigned values.
5810         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5811         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5812
5813         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5814         to large cancellation.
5815         * math/s_cacoshf.c: Likewise.
5816         * math/s_cacoshl.c: Likewise.
5817
5818 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5819
5820         [BZ #13305]
5821         [BZ #12786]
5822         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5823         * math/s_cacoshf.c: Likewise.
5824         * math/s_cacoshl.c: Likewise.
5825
5826 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5827
5828         [BZ #13439]
5829         * iconv/gconv.h: Define __GCONV_SWAP.
5830         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5831         * iconvdata/utf-16.c: Likewise.
5832         * iconvdata/utf-32.c: Likewise.
5833
5834 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5835
5836         [BZ #13524]
5837         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5838         numerator after shifting it by one limb.
5839
5840 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5841
5842         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5843         under [__USE_EXTERN_INLINES].
5844
5845 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5846
5847         [BZ #13446]
5848         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5849
5850 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5851
5852         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5853         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5854         optimized code.
5855         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5856         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5857         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5858         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5859         for strncasecmp/strncasecmp_l compilation.
5860         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5861         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5862
5863 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5864
5865         [BZ #13484]
5866         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5867         of __asm__.
5868
5869 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5870
5871         [BZ #13506]
5872         * time/tzfile.c (__tzfile_read): Check values from file header.
5873
5874 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5875
5876         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5877         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5878         * powerpc/powerpc32/dl-start.S: Likewise.
5879         * powerpc/powerpc32/elf/start.S: Likewise.
5880         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5881         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5882         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5883         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5884         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5885         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5886         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5887         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5888         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5889         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5890         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5891         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5892         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5893         * powerpc/powerpc32/memset.S: Likewise.
5894         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5895         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5896         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5897         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5898         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5899         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5900         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5901         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5902         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5903         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5904         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5905         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5906         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5907
5908 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5909
5910         * math/libm-test.inc: Added more nearbyint tests.
5911         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5912         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5913         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5914         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5915
5916 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5917
5918         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5919         FD_CLOEXEC.
5920
5921 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5922
5923         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5924         Add wcscpy-ssse3 wcscpy-c.
5925         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5926         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5927         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5928         * sysdeps/x86_64/wcschr.S: New file.
5929         * sysdeps/x86_64/wcsrchr.S: New file.
5930         * string/test-strcmp.c: Remove checking of wcscmp function for
5931         wrong alignments.
5932         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5933         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5934         wcsrchr-sse2 wcsrchr-c.
5935         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5936         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5937         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5938         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5939         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5940         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5941         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5942         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5943         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5944         * wcsmbc/wcschr.c (WCSCHR): New macro.
5945
5946 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5947
5948         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5949         * wcsmbs/test-wcsrchr.c: New file.
5950         * string/test-strrchr.c: Add wcsrchr support.
5951         (WIDE): New macro.
5952         * wcsmbs/test-wcscpy.c: New file.
5953         * string/test-strcpy.c: Add wcscpy support.
5954         (WIDE): New macro.
5955
5956 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5957
5958         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5959         the inner loop.
5960
5961 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5962
5963         [BZ #13472]
5964         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5965
5966 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5967
5968         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5969         Minor optimizations.
5970
5971         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5972         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5973         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5974
5975 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5976
5977         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5978         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5979         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5980         for gcc to avoid warnings.
5981         * inet/Makefile (tests): Add tst-checks.
5982         * inet/tst-checks.c: New file.
5983
5984         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5985         warning.
5986
5987         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5988         __wmemcmp_sse2.
5989
5990         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5991         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5992
5993         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5994
5995 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5996
5997         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5998         problem.
5999
6000         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
6001
6002 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
6003
6004         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
6005         conditional on GCC version.
6006         (__arch_compare_and_exchange_val_8_acq)
6007         (__arch_compare_and_exchange_val_16_acq)
6008         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
6009         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
6010         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
6011
6012 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
6013
6014         * sysdeps/sh/backtrace.c: New file.
6015
6016 2011-12-02  Andreas Schwab  <schwab@redhat.com>
6017
6018         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
6019         parenthesis.
6020
6021 2011-12-01  Andreas Schwab  <schwab@redhat.com>
6022
6023         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
6024         falling back to utime.
6025
6026 2011-11-30  Andreas Schwab  <schwab@redhat.com>
6027
6028         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
6029         expectations for float.
6030
6031 2011-11-29  Andreas Schwab  <schwab@redhat.com>
6032
6033         * locale/weight.h (findidx): Add parameter len.
6034         * locale/weightwc.h (findidx): Likewise.
6035         * posix/fnmatch_loop.c (FCT): Adjust caller.
6036         * posix/regcomp.c (build_equiv_class): Likewise.
6037         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
6038         * posix/regexec.c (check_node_accept_bytes): Likewise.
6039         * string/strcoll_l.c (STRCOLL): Likewise.
6040         * string/strxfrm_l.c (STRXFRM): Likewise.
6041
6042 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
6043
6044         * Makefile.in: Remove CVSOPT handling.
6045         * configure.in: Remove use of AC_REVISION.
6046         * iconvdata/Makefile (distribute): No need to filter out CVS.
6047         * scripts/list-sources.sh: Remove CVS, subversion and monotone
6048         handling.
6049
6050 2011-11-16  Andreas Schwab  <schwab@redhat.com>
6051
6052         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
6053         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
6054         [USE_AS_STRNCASECMP_L]: Likewise.
6055         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
6056         NO_TLS_DIRECT_SEG_REFS.
6057         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
6058         Fix argument offsets for non-PIC.
6059         [USE_AS_STRNCASECMP_L]: Likewise.
6060         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
6061         NO_TLS_DIRECT_SEG_REFS.
6062
6063 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6064
6065         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
6066         O_CLOEXEC.
6067         * locale/loadlocale.c (_nl_load_locale): Likewise.
6068
6069 2011-11-15  Andreas Schwab  <schwab@redhat.com>
6070
6071         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
6072         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
6073         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
6074         (SYSCALL_GETTIME): Set errno on error.
6075
6076         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
6077         count references to noai6ai_cached.
6078
6079 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6080
6081         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
6082
6083         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
6084         FD_CLOEXEC for /proc/self/maps.
6085
6086         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
6087         FD_CLOEXEC for /proc/meminfo.
6088
6089         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
6090         gai.conf.
6091
6092         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
6093         FD_CLOEXEC for given file.
6094
6095         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
6096
6097         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
6098         FD_CLOEXEC for /etc/hosts.
6099         (_gethtent): Likewise.
6100
6101         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
6102
6103         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
6104         cancellation and set FD_CLOEXEC for /etc/netgroup.
6105
6106         * nss/nss_files/files-key.c (search): Don't allow cancellation when
6107         reading /etc/publickey.
6108
6109         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
6110         allow cancellation when reading /etc/group.
6111
6112         * nss/nss_files/files-alias.c (internal_setent): Don't allow
6113         cancellation.
6114         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
6115
6116         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
6117         when using data file.
6118
6119         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
6120
6121         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
6122         (write_nis_obj): Use "c" and "e" in fopen.
6123
6124         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
6125
6126         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
6127
6128         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
6129
6130         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
6131
6132         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
6133         locale.alias.
6134
6135         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
6136
6137         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
6138
6139         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
6140
6141         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
6142         file parsing and set FD_CLOEXEC.
6143
6144 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6145
6146         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
6147
6148 2011-11-14  Andreas Schwab  <schwab@redhat.com>
6149
6150         * malloc/arena.c (arena_get2): Don't call reused_arena when
6151         _int_new_arena failed.
6152
6153 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6154
6155         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
6156         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
6157         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
6158         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6159         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6160         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
6161         to compile strcasecmp and strncasecmp.
6162         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
6163         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
6164
6165         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
6166
6167 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
6168
6169         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
6170         locale-defines.sym to gen-as-const-headers.
6171         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
6172         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
6173         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
6174         to compile strcasecmp and strncasecmp.
6175         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
6176         strcasecmp_l and strncasecmp_l.
6177         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
6178         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
6179         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
6180         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
6181         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
6182         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
6183         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
6184         * sysdeps/i386/i686/multiarch/strncase.S: New file.
6185         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
6186         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
6187         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
6188
6189 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
6190
6191         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
6192         result of SYSDEP_GETTIME_CPU to retval.
6193         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
6194         parameter list to macro.  Remove trailing semicolon.  Adjust users.
6195
6196         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
6197         variable.
6198
6199         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
6200         mantissa words.
6201         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6202
6203         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
6204         from unused variable.
6205
6206         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
6207         DWARF definitions.
6208         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
6209         for assembling.
6210
6211         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
6212         over namespaces.
6213
6214         * sunrpc/rpc_prot.c (rejected): Fix case value.
6215
6216         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
6217         unsigned long long int to avoid warnings in shift.
6218
6219         * posix/regex_internal.c (re_string_reconstruct): Actually use result
6220         of use of trans.
6221         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
6222         variable tmp.
6223
6224         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
6225         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
6226         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
6227
6228         * nis/nis_table.c (nis_list): Use variable of correct type for
6229         result of __follow_path call.
6230
6231 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6232
6233         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
6234         of math functions ceil, trunc, floor, round, and sqrt, when
6235         avaliable on the platform.
6236         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
6237         name clash.
6238         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6239         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6240         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6241
6242 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
6243
6244         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
6245         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
6246
6247 2011-11-11  Roland McGrath  <roland@hack.frob.com>
6248
6249         * include/unistd.h: Fix __readlink return type.
6250         Reported by Chris Metcalf <cmetcalf@tilera.com>.
6251
6252 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
6253
6254         * stdlib/ucontext.h: Undo last change for makecontext.
6255
6256 2011-11-11  Andreas Schwab  <schwab@redhat.com>
6257
6258         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
6259
6260         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
6261         * setjmp/setjmp.h: Mark functions as non-leaf.
6262         * setjmp/bits/setjmp2.h: Likewise.
6263         * stdlib/ucontext.h: Likewise.
6264
6265 2011-11-10  Andreas Schwab  <schwab@redhat.com>
6266
6267         * malloc/arena.c (_int_new_arena): Don't increment narenas.
6268         (reused_arena): Don't check arena limit.
6269         (arena_get2): Atomically check arena limit.
6270
6271 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
6272
6273         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
6274         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
6275
6276         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
6277         instructions.
6278
6279 2011-11-07  Andreas Schwab  <schwab@redhat.com>
6280
6281         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
6282         handler when locking.
6283
6284         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6285         Fix size of allocated buffer.
6286
6287 2011-11-04  Andreas Schwab  <schwab@redhat.com>
6288
6289         [BZ #10103]
6290         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
6291         declarations for long double functions.
6292         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
6293
6294         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
6295
6296 2011-11-03  Andreas Schwab  <schwab@redhat.com>
6297
6298         * nscd/nscd.c (main): Don't start AVC thread until credentials are
6299         installed.
6300
6301         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
6302         is disabled.
6303
6304 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6305
6306         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
6307
6308 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6309
6310         * include/alloca.h (stackinfo_alloca_round): Define.
6311         (extend_alloca): Use it.
6312         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
6313         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
6314         here.
6315
6316         * scripts/check-local-headers.sh: Ignore libaudit.h.
6317
6318         * nscd/Makefile (extra-objs): Make recursively expanded.
6319
6320 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
6321
6322         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
6323         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6324
6325         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
6326         * posix/tst-rfc3484-2.c: Likewise.
6327         * posix/tst-rfc3484-3.c: Likewise.
6328
6329         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6330         process_vm_writev.
6331         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
6332         process_vm_writev.
6333         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
6334         process_vm_writev from libc using GLIBC_2.15 version.
6335
6336         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
6337
6338 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
6339
6340         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
6341         stack usage.
6342
6343 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
6344
6345         [BZ #13367]
6346         * nss/getent.c (initgroups_keys): Show error message in case no group
6347         names are given.
6348
6349         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
6350         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
6351         __bump_nl_timestamp.
6352         * nscd/connections (nscd_init): When host database is served open
6353         netlink socket and request notification about configuration changes.
6354         (main_loop_poll): Track netlink file descriptor and bump timestamp
6355         in case data becomes available.
6356         (main_loop_epoll): Likewise.
6357         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
6358         (database_pers_head): Add extra_data fileds.
6359         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
6360         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
6361         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
6362         Adjust caller.
6363         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
6364         in6ai data, call __free_in6ai.
6365         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
6366         Add -DHAVE_NETLINK.
6367         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
6368         interface information.  Reuse previous data if netlink timestamp
6369         is not changed.
6370         (__bump_nl_timestamp): New function.
6371         (__free_in6ai): New function.
6372
6373 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
6374
6375         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
6376         close_not_cancel_no_status here.
6377         (__check_pf): Reorganize code a bit to not call close twice if OOM.
6378
6379 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6380
6381         [BZ #13276]
6382         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
6383         return value.
6384
6385         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
6386         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
6387         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
6388
6389 2011-07-03  Andreas Jaeger  <aj@suse.de>
6390
6391         [BZ #10709]
6392         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
6393         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
6394         * math/libm-test.inc (sin_test): Add test case.
6395
6396 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6397
6398         [BZ #13337]
6399         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
6400         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6401
6402         * elf/chroot_canon.c (chroot_canon): Cleanups.
6403
6404         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
6405
6406         [BZ #13335]
6407         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
6408         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6409
6410         * string/test-strchr.c: Make usable for strchrnul testing.
6411         * string/test-strchrnul.c: New file.
6412         * string/Makefile (strop-tests): Add strchrnul.
6413
6414         * po/it.po: Update from translation team.
6415         * po/es.po: Likewise.
6416
6417 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
6418
6419         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
6420         the three constants needed as parameters.  Drop the others.
6421         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
6422         __m128i_strloadu_tolower.
6423         Create and initialize variable zero and use it in all the places
6424         where _mm_setzero_si128 was used.
6425
6426         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
6427         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
6428         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
6429         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
6430         anymore.
6431         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
6432         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
6433         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
6434         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
6435         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
6436         __mpranred, __mptan.
6437         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
6438         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
6439         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
6440         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
6441         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
6442         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
6443         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
6444         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
6445         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
6446
6447 2011-10-28  Andreas Schwab  <schwab@redhat.com>
6448
6449         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
6450         redefine if SHARED.
6451         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
6452
6453         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
6454         wide char related routines to wcsmbs subdir.
6455
6456 2011-10-27  Andreas Schwab  <schwab@redhat.com>
6457
6458         [BZ #13344]
6459         * misc/sys/cdefs.h (__THROWNL): Define.
6460         * posix/unistd.h: Use __THREADNL instead of __THREAD
6461         for memory synchronization functions.
6462
6463 2011-10-26  Roland McGrath  <roland@hack.frob.com>
6464
6465         [BZ #13349]
6466         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
6467         doesn't exist.
6468         * manual/stdio.texi (Obstack Streams): Node removed.
6469
6470 2011-10-26  Andreas Schwab  <schwab@redhat.com>
6471
6472         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
6473         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6474         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6475
6476         * math/math_private.h (math_force_eval): Allow non-addressable
6477         arguments.
6478         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
6479
6480 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6481
6482         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
6483         file is not needed.
6484
6485         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
6486         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6487         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6488         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6489         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6490         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6491         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6492         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
6493         Add AVX variants.
6494         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
6495         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
6496         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
6497         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
6498         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
6499         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
6500         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
6501         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
6502         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
6503         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
6504         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
6505         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
6506         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
6507         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
6508         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
6509         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
6510         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
6511         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
6512         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
6513
6514         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
6515         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
6516
6517         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
6518         place.  Use VEX encoding when compiling for AVX.
6519
6520 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6521
6522         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
6523         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6524
6525         * string/test-strchr.c (do_test): Don't generate NUL bytes.
6526
6527 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6528
6529         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
6530         useless if() expression.
6531         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6532         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6533         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6534         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6535         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6536         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6537         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6538         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6539         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6540         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6541         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6542         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6543         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6544         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6545         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6546         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6547         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6548         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6549         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6550
6551         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
6552
6553 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6554
6555         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
6556         condition.
6557         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6558
6559 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6560
6561         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
6562         .text section.  Avoid duplicate constants.
6563         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6564         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6565         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6566         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6567         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6568         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6569         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6570         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6571         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6572         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
6573         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6574         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6575         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6576         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6577         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6578         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6579         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6580         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6581         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6582         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6583         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6584         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6585         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6586         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
6587         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
6588         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
6589         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
6590         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
6591         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
6592         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
6593         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
6594         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
6595         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6596         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
6597         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
6598         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
6599         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
6600         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
6601         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
6602         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
6603         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
6604         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
6605         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
6606         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
6607         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
6608
6609 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
6610
6611         * sysdeps/x86_64/dla.h: Move to ...
6612         * sysdeps/x86_64/fpu/dla.h: ...here.
6613         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
6614         situations.  Use __builtin_fma only for gcc 4.6 and up.
6615
6616         * config.make.in: Add have-mfma4 entry.
6617         * configure.in: Substitute libc_cv_cc_fma4.
6618         * math/Makefile (dbl-only-routines): Add sincostab.
6619         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
6620         Use __sincostab not sincos.
6621         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
6622         name is a macro.
6623         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6624         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6625         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6626         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
6627         using __copysign.
6628         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
6629         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
6630         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
6631         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
6632         and __inv.
6633         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
6634         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
6635         __copysign.
6636         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
6637         define aliases when function name is a macro.
6638         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
6639         sysdeps/ieee754/dbl-64/sincos.tbl.
6640         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
6641         fma4-enabled routines.
6642         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
6643         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
6644         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
6645         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
6646         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
6647         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
6648         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
6649         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
6650         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
6651         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
6652         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
6653         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
6654         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
6655         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
6656         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
6657         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
6658         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
6659         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
6660         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
6661         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
6662         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
6663         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
6664         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
6665         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
6666         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
6667         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
6668         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
6669         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
6670         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
6671         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
6672
6673         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
6674         rename.
6675         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6676         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6677         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6678         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6679         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6680         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6681         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6682         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6683
6684 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6685
6686         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6687
6688 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6689
6690         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6691
6692         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6693         prediction.
6694         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6695
6696         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6697         Remove unused variable magic_bits.
6698         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6699
6700         * string/strnlen.c: Define and use STRNLEN macro.
6701         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6702         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6703         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6704         * wcsmbs/wcslen.c: Define and use WCSLEN.
6705         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6706         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6707         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6708         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6709         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6710         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6711         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6712
6713 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6714
6715         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6716         strnlen-sse2-no-bsf.
6717         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6718         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6719         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6720         Add strnlen support.
6721         (USE_AS_STRNLEN): New macro.
6722         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6723         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6724         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6725         * sysdeps/x86_64/wcslen.S: New file.
6726
6727 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6728
6729         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6730         XMM-moves are used for copying on small sizes.
6731
6732 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6733
6734         * wcsmbs/Makefile (strop-tests): Add wcschr.
6735         * wcsmbs/test-wcschr.c: New file.
6736         * string/test-strchr.c: Update.
6737         Add wcschr support.
6738         (WIDE): New macro.
6739
6740 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6741
6742         * wcsmbs/Makefile (strop-tests): Add wcslen.
6743         * wcsmbs/test-wcslen.c: New file.
6744         * string/test-strlen.c: Update.
6745         Add wcslen support.
6746         (WIDE): New macro.
6747
6748 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6749
6750         * po/it.po: Update from translation team.
6751
6752 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6753
6754         * sysdeps/x86_64/wcscmp.S: Update.
6755         Fix wrong comparison semantics.
6756         wcscmp shall use signed comparison not unsigned.
6757         Don't use substraction to avoid overflow bug.
6758         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6759         * wcsmbc/wcscmp.c: Likewise.
6760         * string/test-strcmp.c: Likewise.
6761         Add new tests to check cases with negative values.
6762
6763 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6764
6765         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6766         * sysdeps/x86_64/dla.h: ...here.  New file.
6767         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6768         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6769         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6770         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6771         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6772         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6773         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6774         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6775         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6776
6777 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6778
6779         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6780         __ynl_finite aliases.
6781
6782 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6783
6784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6785
6786         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6787         define DLA_FMA.
6788         [DLA_FMA] (EMULV): Use DLA_FMA.
6789         [DLA_FMA] (MUL12): Use EMULV.
6790         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6791         that are not needed.
6792         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6793         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6794         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6795         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6796         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6797         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6798         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6799
6800 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6801
6802         * math/s_nan.c: Undef __nan.
6803         * math/s_nanf.c: Undef __nanf.
6804         * math/s_nanl.c: Undef __nanl.
6805         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6806         "math_private.h".
6807
6808 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6809
6810         * math/s_catan.c: Add branch predictions.
6811         * math/s_catanf.c: Likewise.
6812         * math/s_catanh.c: Likewise.
6813         * math/s_catanhf.c: Likewise.
6814         * math/s_catanhl.c: Likewise.
6815         * math/s_catanl.c: Likewise.
6816         * math/s_cexp.c: Likewise.
6817         * math/s_cexpf.c: Likewise.
6818         * math/s_cexpl.c: Likewise.
6819         * math/s_clog.c: Likewise.
6820         * math/s_clog10.c: Likewise.
6821         * math/s_clog10f.c: Likewise.
6822         * math/s_clog10l.c: Likewise.
6823         * math/s_clogf.c: Likewise.
6824         * math/s_clogl.c: Likewise.
6825         * math/s_csqrt.c: Likewise.
6826         * math/s_csqrtf.c: Likewise.
6827         * math/s_csqrtl.c: Likewise.
6828         * math/s_ctanf.c: Likewise.
6829         * math/s_ctanh.c: Likewise.
6830         * math/s_ctanhf.c: Likewise.
6831         * math/s_ctanhl.c: Likewise.
6832         * math/s_ctanl.c: Likewise.
6833
6834         * math/math_private.h: Define __nan, __nanf, __nanl.
6835         * math/s_cacosh.c: Include <math_private.h>.
6836         * math/s_cacoshl.c: Likewise.
6837         * math/s_casinh.c: Likewise.
6838         * math/s_casinhf.c: Likewise.
6839         * math/s_casinhl.c: Likewise.
6840         * math/s_ccos.c: Rely entire on ccosh.
6841         * math/s_ccosf.c: Rely entire on ccoshf.
6842         * math/s_ccosl.c: Rely entirely on ccoshl.
6843         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6844         Remove tests for FE_INVALID.
6845         * math/s_ccoshf.c: Likewise.
6846         * math/s_ccoshl.c: Likewise.
6847         * math/s_csin.c: Likewise.
6848         * math/s_csinf.c: Likewise.
6849         * math/s_csinh.c Likewise.
6850         * math/s_csinhf.c: Likewise.
6851         * math/s_csinhl.c: Likewise.
6852         * math/s_csinl.c: Likewise.
6853         * math/s_ctan.c: Likewise.
6854         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6855         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6856         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6857
6858 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6859
6860         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6861         compilation problems.
6862
6863         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6864         __builtin_expect.
6865
6866 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6867
6868         * sysdeps/i386/configure.in: Test for -mfma4 option.
6869         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6870         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6871         COMMON_CPUID_INDEX_80000001.
6872         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6873         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6874         use it if FMA3 is not supported.
6875         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6876
6877         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6878         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6879
6880 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6881
6882         [BZ #12892]
6883         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6884         it would create a cycle with a link time dependency.
6885
6886 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6887
6888         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6889         instruction.
6890         * string/Makefile (strop-tests): Add rawmemchr.
6891         * string/test-rawmemchr.c: New file.
6892
6893         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6894         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6895         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6896         when compiling str{,n}casecmp and when AVX is available.  Hook up
6897         new optimized code in initializers.
6898
6899 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6900
6901         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6902         __feraiseexcept instead of feraiseexcept.
6903
6904 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6905
6906         * math/math_private.h: Define defaults for libc_fetestexcept and
6907         libc_feupdateenv.
6908         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6909         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6910         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6911         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6912         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6913         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6914         libc_fetestexcept and libc_feupdateenv.
6915
6916         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6917         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6918         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6919         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6920         libc_feholdexcept_setround.
6921
6922         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6923         Add s_nearbyint-c and s_nearbyintf-c.
6924         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6925         nearbyintf inlines.
6926         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6927         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6928         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6929         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6930
6931         * math/math_private.h: Define defaults for libc_fegetround,
6932         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6933         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6934         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6935         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6936         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6937         standard functions.
6938         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6939         Remove comments and hacks for old compiler versions.
6940         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6941         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6942         libc_feholdexceptl.
6943
6944 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6945
6946         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6947         (__feraiseexcept_renamed): Add __NTH.
6948         (feraiseexcept): Add __NTH.  Rename local variables to fix
6949         namespace violations.
6950
6951 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6952
6953         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6954
6955         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6956
6957         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6958         recently added interfaces.
6959         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6960
6961         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6962         about macro parameter expansion.
6963
6964         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6965         __NO_MATH_INLINES is defined.  Cleanups.
6966
6967         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6968         and __floorf is target has SSE4.1.
6969         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6970         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6971         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6972         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6973
6974         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6975         name.
6976         (floorf): Likewise.
6977
6978         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6979
6980 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6981
6982         * misc/sys/cdefs.h: Fix last change.
6983
6984         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6985         database lookup.
6986
6987 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6988
6989         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6990
6991         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6992         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6993         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6994         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6995         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6996         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6997         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6998         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6999         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7000         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
7001         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
7002         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
7003         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
7004         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
7005         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
7006         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
7007         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
7008         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
7009         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
7010         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
7011         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
7012         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
7013
7014         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
7015         ceil, ceilf, floor, floorf.
7016
7017         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
7018         Perform IRELATIVE relocations last.
7019
7020         * elf/do-rel.h: Add another parameter nrelative, replacing the
7021         local variable with the same name.  Change name of the function
7022         to end in Rel or Rela (uppercase).
7023         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
7024         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
7025         elf_dynamic_do_##reloc function.
7026
7027 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7028
7029         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
7030         is sufficient, at least on modern CPUs.
7031
7032         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
7033
7034         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
7035         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
7036
7037         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
7038         __expl_finite.
7039         * math/bits/math-finite.h: Add entries for exp.
7040         * math/e_expl.c: Add __*_finite alias.
7041         * sysdeps/i386/fpu/e_exp.S: Likewise.
7042         * sysdeps/i386/fpu/e_expf.S: Likewise.
7043         * sysdeps/i386/fpu/e_expl.c: Likewise.
7044         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7045         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7046         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7047         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7048         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
7049         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7050         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7051
7052         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
7053         is sufficient, at least on modern CPUs.
7054
7055         * ctype/ctype-info.c (__ctype_init): Define.
7056         * include/ctype.h (__ctype_init): Declare.
7057         (__ctype_b_loc): The variable is always initialized.
7058         (__ctype_toupper_loc): Likewise.
7059         (__ctype_tolower_loc): Likewise.
7060         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
7061         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
7062
7063 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
7064
7065         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
7066
7067         * configure.in: Also look in $cxxmachine/include for C++ system
7068         headers.
7069
7070 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7071
7072         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
7073         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
7074         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
7075         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
7076         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
7077         (USE_AS_WMEMCMP): New macro.
7078         Fixing indents.
7079         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
7080         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
7081         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
7082         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
7083         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7084         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
7085         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
7086         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
7087         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
7088         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
7089         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
7090         (USE_AS_WMEMCMP): New macro.
7091         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
7092         * sysdeps/string/test-memcmp.c: Update.
7093         Fix simple_wmemcmp.
7094         Add new tests.
7095         * wcsmbs/wmemcmp.c: Update.
7096         (WMEMCMP): New macro.
7097         Fix overflow bug.
7098
7099 2011-10-12  Andreas Jaeger  <aj@suse.de>
7100
7101         [BZ #13268]
7102         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
7103
7104 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7105
7106         * libio/iofwide.c (do_length): Avoid warning.
7107
7108         * ctype/ctype.h (__isctype_f): Add missing __THROW.
7109
7110 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
7111
7112         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
7113
7114         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
7115         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
7116         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
7117         * sysdeps/i386/i686/fpu/e_log.S: New file.
7118         * sysdeps/i386/i686/fpu/e_logf.S: New file.
7119         * sysdeps/i386/i686/fpu/e_logl.S: New file.
7120
7121         * ctype/ctype.h: Add support for inlined isXXX functions when
7122         compiling C++ code.
7123
7124 2011-10-14  Andreas Schwab  <schwab@redhat.com>
7125
7126         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7127
7128         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
7129
7130 2011-10-13  Roland McGrath  <roland@hack.frob.com>
7131
7132         [BZ #13291]
7133         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
7134
7135 2011-10-13  Andreas Schwab  <schwab@redhat.com>
7136
7137         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
7138         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
7139         feraiseexcept.
7140
7141         * sysdeps/x86_64/memrchr.S: Check for zero size.
7142
7143         * string/stratcliff.c: Add memrchr tests.
7144
7145 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7146
7147         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7148         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
7149         rawmemchr-sse2 rawmemchr-sse2-bsf.
7150         * sysdeps/i386/i686/multiarch/memchr.S: New file.
7151         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
7152         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
7153         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
7154         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
7155         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
7156         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
7157         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
7158         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
7159         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
7160         * string/memrchr.c (MEMRCHR): New macro.
7161
7162 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
7163
7164         Add integration with gcc's -ffinite-math-only and optimize wrapper
7165         functions in libm.
7166         * Versions.def: Define GLIBC_2.15 version for libm.
7167         * math/Makefile (headers): Add bits/math-finite.h.
7168         * math/bits/math-finite.h: New file.
7169         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
7170         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
7171         * math/e_acoshl.c: Add __*_finite alias.
7172         * math/e_acosl.c: Likewise.
7173         * math/e_asinl.c: Likewise.
7174         * math/e_atan2l.c: Likewise.
7175         * math/e_atanhl.c: Likewise.
7176         * math/e_coshl.c: Likewise.
7177         * math/e_exp10.c: Likewise.
7178         * math/e_exp10f.c: Likewise.
7179         * math/e_exp10l.c: Likewise.
7180         * math/e_exp2l.c: Likewise.
7181         * math/e_fmodl.c: Likewise.
7182         * math/e_gammal_r.c: Likewise.
7183         * math/e_hypotl.c: Likewise.
7184         * math/e_j0l.c: Likewise.
7185         * math/e_j1l.c: Likewise.
7186         * math/e_jnl.c: Likewise.
7187         * math/e_lgammal_r.c: Likewise.
7188         * math/e_log10l.c: Likewise.
7189         * math/e_log2l.c: Likewise.
7190         * math/e_logl.c: Likewise.
7191         * math/e_powl.c: Likewise.
7192         * math/e_sinhl.c: Likewise.
7193         * math/e_sqrtl.c: Likewise.
7194         * math/e_scalb.c: Completely rewritten and optimized.
7195         * math/e_scalbf.c: Likewise.
7196         * math/e_scalbl.c: Likewise.
7197         * math/w_acos.c: Likewise.
7198         * math/w_acosf.c: Likewise.
7199         * math/w_acosl.c: Likewise.
7200         * math/w_acosh.c: Likewise.
7201         * math/w_acoshf.c: Likewise.
7202         * math/w_acoshl.c: Likewise.
7203         * math/w_asin.c: Likewise.
7204         * math/w_asinf.c: Likewise.
7205         * math/w_asinl.c: Likewise.
7206         * math/w_atan2.c: Likewise.
7207         * math/w_atan2f.c: Likewise.
7208         * math/w_atan2l.c: Likewise.
7209         * math/w_atanh.c: Likewise.
7210         * math/w_atanhf.c: Likewise.
7211         * math/w_atanhl.c: Likewise.
7212         * math/w_exp10.c: Likewise.
7213         * math/w_exp10f.c: Likewise.
7214         * math/w_exp10l.c: Likewise.
7215         * math/w_fmod.c: Likewise.
7216         * math/w_fmodf.c: Likewise.
7217         * math/w_fmodl.c: Likewise.
7218         * math/w_j0.c: Likewise.
7219         * math/w_j0f.c: Likewise.
7220         * math/w_j0l.c: Likewise.
7221         * math/w_j1.c: Likewise.
7222         * math/w_j1f.c: Likewise.
7223         * math/w_j1l.c: Likewise.
7224         * math/w_jn.c: Likewise.
7225         * math/w_jnf.c: Likewise.
7226         * math/w_log.c: Likewise.
7227         * math/w_logf.c: Likewise.
7228         * math/w_logl.c: Likewise.
7229         * math/w_log10.c: Likewise.
7230         * math/w_log10f.c: Likewise.
7231         * math/w_log10l.c: Likewise.
7232         * math/w_log2.c: Likewise.
7233         * math/w_log2f.c: Likewise.
7234         * math/w_log2l.c: Likewise.
7235         * math/w_pow.c: Likewise.
7236         * math/w_powf.c: Likewise.
7237         * math/w_powl.c: Likewise.
7238         * math/w_remainder.c: Likewise.
7239         * math/w_remainderf.c: Likewise.
7240         * math/w_remainderl.c: Likewise.
7241         * math/w_scalb.c: Likewise.
7242         * math/w_scalbf.c: Likewise.
7243         * math/w_scalbl.c: Likewise.
7244         * math/w_sqrt.c: Likewise.
7245         * math/w_sqrtf.c: Likewise.
7246         * math/w_sqrtl.c: Likewise.
7247         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
7248         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
7249         used.
7250         * math/math_private.h: Declare __kernel_standard_f.
7251         * math/w_cosh.c: Remove cruft and optimize a bit.
7252         * math/w_coshf.c: Likewise.
7253         * math/w_coshl.c: Likewise.
7254         * math/w_exp2.c: Likewise.
7255         * math/w_exp2f.c: Likewise.
7256         * math/w_exp2l.c: Likewise.
7257         * math/w_hypot.c: Likewise.
7258         * math/w_hypotf.c: Likewise.
7259         * math/w_hypotl.c: Likewise.
7260         * math/w_lgamma.c: Likewise.
7261         * math/w_lgamma_r.c: Likewise.
7262         * math/w_lgammaf.c: Likewise.
7263         * math/w_lgammaf_r.c: Likewise.
7264         * math/w_lgammal.c: Likewise.
7265         * math/w_lgammal_r.c: Likewise.
7266         * math/w_sinh.c: Likewise.
7267         * math/w_sinhf.c: Likewise.
7268         * math/w_sinhl.c: Likewise.
7269         * math/w_tgamma.c: Likewise.
7270         * math/w_tgammaf.c: Likewise.
7271         * math/w_tgammal.c: Likewise.
7272         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7273         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7274         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
7275         Minor optimizations.  Pretty printing.  Remove cruft.
7276         * sysdeps/i386/fpu/e_acosf.S: Likewise.
7277         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7278         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7279         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7280         * sysdeps/i386/fpu/e_acosl.c: Likewise.
7281         * sysdeps/i386/fpu/e_asin.S: Likewise.
7282         * sysdeps/i386/fpu/e_asinf.S: Likewise.
7283         * sysdeps/i386/fpu/e_atan2.S: Likewise.
7284         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
7285         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
7286         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7287         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7288         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7289         * sysdeps/i386/fpu/e_exp10.S: Likewise.
7290         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
7291         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
7292         * sysdeps/i386/fpu/e_exp2.S: Likewise.
7293         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
7294         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
7295         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7296         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
7297         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7298         * sysdeps/i386/fpu/e_hypot.S: Likewise.
7299         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
7300         * sysdeps/i386/fpu/e_log.S: Likewise.
7301         * sysdeps/i386/fpu/e_log10.S: Likewise.
7302         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7303         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7304         * sysdeps/i386/fpu/e_log2.S: Likewise.
7305         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7306         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7307         * sysdeps/i386/fpu/e_logf.S: Likewise.
7308         * sysdeps/i386/fpu/e_logl.S: Likewise.
7309         * sysdeps/i386/fpu/e_pow.S: Likewise.
7310         * sysdeps/i386/fpu/e_powf.S: Likewise.
7311         * sysdeps/i386/fpu/e_powl.S: Likewise.
7312         * sysdeps/i386/fpu/e_remainder.S: Likewise.
7313         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
7314         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
7315         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7316         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7317         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7318         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
7319         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
7320         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
7321         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7322         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7323         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7324         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7325         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7326         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
7327         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7328         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7329         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7330         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7331         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7332         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7333         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7334         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
7335         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
7336         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7337         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7338         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7339         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7340         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7341         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7342         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
7343         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7344         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7345         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
7346         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7347         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7348         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
7349         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7350         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
7351         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7352         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7353         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7354         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7355         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
7356         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
7357         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
7358         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
7359         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
7360         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7361         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
7362         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7363         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7364         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7365         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7366         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7367         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7368         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7369         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7370         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7371         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7372         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7373         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7374         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7375         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7376         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7377         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7378         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7379         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7380         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7381         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7382         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7383         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7384         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7385         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7386         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7387         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7388         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7389         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7390         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7391         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7392         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7393         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7394         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7395         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7396         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7397         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
7398         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7399         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7400         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7401         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7402         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7403         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7404         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7405         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7406         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7407         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7408         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7409         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7410         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7411         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7412         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7413         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7414         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7415         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7416         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7417         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7418         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7419         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7420         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7421         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
7422         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
7423         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
7424         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
7425         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7426         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7427         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7428         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7429         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
7430         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7431         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
7432         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
7433         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
7434         (__isnanf): Likewise.
7435         (__isinf_ns): Likewise.
7436         (__isinf_nsf): Likewise.
7437         (__finite): Likewise.
7438         (__finitef): Likewise.
7439         (__ieee754_sqrt): Define as macro.
7440         (__ieee754_sqrtf): Define as macro.
7441         (__ieee754_sqrtl): Define as macro.
7442         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
7443         inlined copy.
7444         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
7445         __FINITE_MATH_ONLY__ consistent.
7446         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
7447
7448 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
7449
7450         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
7451         of rawmemchr.
7452
7453         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
7454
7455 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
7456
7457         * po/ja.po: Update from translation team.
7458
7459 2011-10-08  Roland McGrath  <roland@hack.frob.com>
7460
7461         * locale/programs/locarchive.c (prepare_address_space): New function.
7462         (create_archive, enlarge_archive, open_archive): Use it.
7463
7464         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
7465         inside [SHARED], where it is used.
7466
7467         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
7468
7469         * nss/getent.c (netgroup_keys): Remove unused variable.
7470         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7471
7472 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
7473
7474         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
7475         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
7476         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
7477         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
7478         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
7479         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
7480         * math/Makefile (libm-calls): Add s_isinf_ns.
7481         * math/divtc3.c: Use __isinf_nsl instead of isinf.
7482         * math/multc3.c: Likewise.
7483         * math/s_casin.c: Likewise.
7484         * math/s_casinf.c: Likewise.
7485         * math/s_casinl.c: Likewise.
7486         * math/s_ccos.c: Likewise.
7487         * math/s_ccosf.c: Likewise.
7488         * math/s_ccosl.c: Likewise.
7489         * math/s_ctan.c: Likewise.
7490         * math/s_ctanf.c: Likewise.
7491         * math/s_ctanh.c: Likewise.
7492         * math/s_ctanhf.c: Likewise.
7493         * math/s_ctanhl.c: Likewise.
7494         * math/s_ctanl.c: Likewise.
7495         * math/w_fmod.c: Likewise.
7496         * math/w_fmodf.c: Likewise.
7497         * math/w_fmodl.c: Likewise.
7498         * math/w_remainder.c: Likewise.
7499         * math/w_remainderf.c: Likewise.
7500         * math/w_remainderl.c: Likewise.
7501         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
7502         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
7503         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
7504         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
7505         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
7506         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
7507         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
7508         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
7509
7510         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
7511         of the number.
7512         * stdio-common/printf_fphex.c: Likewise.
7513         * stdio-common/printf_size.c: Likewise.
7514
7515         * math/e_exp10.c: Include math_private.h using <...> not "...".
7516         * math/e_exp10f.c: Likewise.
7517         * math/e_exp10l.c: Likewise.
7518         * math/e_exp2l.c: Likewise.
7519         * math/e_j0l.c: Likewise.
7520         * math/e_j1l.c: Likewise.
7521         * math/e_jnl.c: Likewise.
7522         * math/e_lgammal_r.c: Likewise.
7523         * math/e_rem_pio2l.c: Likewise.
7524         * math/e_scalb.c: Likewise.
7525         * math/e_scalbf.c: Likewise.
7526         * math/e_scalbl.c: Likewise.
7527         * math/k_cosl.c: Likewise.
7528         * math/k_sinl.c: Likewise.
7529         * math/k_tanl.c: Likewise.
7530         * math/s_cacoshf.c: Likewise.
7531         * math/s_catan.c: Likewise.
7532         * math/s_catanf.c: Likewise.
7533         * math/s_catanh.c: Likewise.
7534         * math/s_catanhf.c: Likewise.
7535         * math/s_catanhl.c: Likewise.
7536         * math/s_catanl.c: Likewise.
7537         * math/s_ccosh.c: Likewise.
7538         * math/s_ccoshf.c: Likewise.
7539         * math/s_ccoshl.c: Likewise.
7540         * math/s_cexp.c: Likewise.
7541         * math/s_cexpf.c: Likewise.
7542         * math/s_cexpl.c: Likewise.
7543         * math/s_clog.c: Likewise.
7544         * math/s_clog10.c: Likewise.
7545         * math/s_clog10f.c: Likewise.
7546         * math/s_clog10l.c: Likewise.
7547         * math/s_clogf.c: Likewise.
7548         * math/s_clogl.c: Likewise.
7549         * math/s_csin.c: Likewise.
7550         * math/s_csinf.c: Likewise.
7551         * math/s_csinh.c: Likewise.
7552         * math/s_csinhf.c: Likewise.
7553         * math/s_csinhl.c: Likewise.
7554         * math/s_csinl.c: Likewise.
7555         * math/s_csqrt.c: Likewise.
7556         * math/s_csqrtf.c: Likewise.
7557         * math/s_csqrtl.c: Likewise.
7558         * math/s_ctan.c: Likewise.
7559         * math/s_ctanf.c: Likewise.
7560         * math/s_ctanh.c: Likewise.
7561         * math/s_ctanhf.c: Likewise.
7562         * math/s_ctanhl.c: Likewise.
7563         * math/s_ctanl.c: Likewise.
7564         * math/s_ldexp.c: Likewise.
7565         * math/s_ldexpf.c: Likewise.
7566         * math/s_ldexpl.c: Likewise.
7567         * math/s_significand.c: Likewise.
7568         * math/s_significandf.c: Likewise.
7569         * math/s_significandl.c: Likewise.
7570         * math/w_acos.c: Likewise.
7571         * math/w_acosf.c: Likewise.
7572         * math/w_acosh.c: Likewise.
7573         * math/w_acoshf.c: Likewise.
7574         * math/w_acoshl.c: Likewise.
7575         * math/w_acosl.c: Likewise.
7576         * math/w_asin.c: Likewise.
7577         * math/w_asinf.c: Likewise.
7578         * math/w_asinl.c: Likewise.
7579         * math/w_atan2.c: Likewise.
7580         * math/w_atan2f.c: Likewise.
7581         * math/w_atan2l.c: Likewise.
7582         * math/w_atanh.c: Likewise.
7583         * math/w_atanhf.c: Likewise.
7584         * math/w_atanhl.c: Likewise.
7585         * math/w_cosh.c: Likewise.
7586         * math/w_coshf.c: Likewise.
7587         * math/w_coshl.c: Likewise.
7588         * math/w_dremf.c: Likewise.
7589         * math/w_exp10.c: Likewise.
7590         * math/w_exp10f.c: Likewise.
7591         * math/w_exp10l.c: Likewise.
7592         * math/w_exp2.c: Likewise.
7593         * math/w_exp2f.c: Likewise.
7594         * math/w_fmod.c: Likewise.
7595         * math/w_fmodf.c: Likewise.
7596         * math/w_fmodl.c: Likewise.
7597         * math/w_hypot.c: Likewise.
7598         * math/w_hypotf.c: Likewise.
7599         * math/w_hypotl.c: Likewise.
7600         * math/w_j0.c: Likewise.
7601         * math/w_j0f.c: Likewise.
7602         * math/w_j0l.c: Likewise.
7603         * math/w_j1.c: Likewise.
7604         * math/w_j1f.c: Likewise.
7605         * math/w_j1l.c: Likewise.
7606         * math/w_jn.c: Likewise.
7607         * math/w_jnf.c: Likewise.
7608         * math/w_jnl.c: Likewise.
7609         * math/w_lgamma.c: Likewise.
7610         * math/w_lgamma_r.c: Likewise.
7611         * math/w_lgammaf.c: Likewise.
7612         * math/w_lgammaf_r.c: Likewise.
7613         * math/w_lgammal.c: Likewise.
7614         * math/w_lgammal_r.c: Likewise.
7615         * math/w_log.c: Likewise.
7616         * math/w_log10.c: Likewise.
7617         * math/w_log10f.c: Likewise.
7618         * math/w_log10l.c: Likewise.
7619         * math/w_log2.c: Likewise.
7620         * math/w_log2f.c: Likewise.
7621         * math/w_log2l.c: Likewise.
7622         * math/w_logf.c: Likewise.
7623         * math/w_logl.c: Likewise.
7624         * math/w_pow.c: Likewise.
7625         * math/w_powf.c: Likewise.
7626         * math/w_powl.c: Likewise.
7627         * math/w_remainder.c: Likewise.
7628         * math/w_remainderf.c: Likewise.
7629         * math/w_remainderl.c: Likewise.
7630         * math/w_scalb.c: Likewise.
7631         * math/w_scalbf.c: Likewise.
7632         * math/w_scalbl.c: Likewise.
7633         * math/w_sinh.c: Likewise.
7634         * math/w_sinhf.c: Likewise.
7635         * math/w_sinhl.c: Likewise.
7636         * math/w_sqrt.c: Likewise.
7637         * math/w_sqrtf.c: Likewise.
7638         * math/w_sqrtl.c: Likewise.
7639         * math/w_tgamma.c: Likewise.
7640         * math/w_tgammaf.c: Likewise.
7641         * math/w_tgammal.c: Likewise.
7642
7643         * po/ja.po: Update from translation team.
7644
7645 2011-09-29  Andreas Jaeger  <aj@suse.de>
7646
7647         [BZ #13179]
7648         * sunrpc/netname.c (netname2host): Fix logic.
7649
7650         [BZ #6779]
7651         [BZ #6783]
7652         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
7653         correctly.
7654         * math/w_remainder.c (__remainder): Likewise.
7655         * math/w_remainderf.c (__remainderf): Likewise.
7656         * math/libm-test.inc (remainder_test): Add test cases.
7657
7658 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7659
7660         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
7661         sdiv_qrnnd.
7662
7663 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7664
7665         * string/test-memcmp.c: Avoid unncessary #defines.
7666         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7667
7668 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7669
7670         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
7671         Use new sse2 version for core i3 - i7 as it's faster
7672         than sse42 version.
7673         (bit_Prefer_PMINUB_for_stringop): New.
7674         * sysdeps/x86_64/rawmemchr.S: Update.
7675         Replace with faster SSE2 version.
7676         * sysdeps/x86_64/memrchr.S: New file.
7677         * sysdeps/x86_64/memchr.S: Update.
7678         Replace with faster SSE2 version.
7679
7680 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7681
7682         * elf/dl-load.c (lose): Add cast to avoid warning.
7683
7684 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7685
7686         * po/ca.po: Update from translation team.
7687
7688         * inet/getnetgrent_r.c: Hook up nscd.
7689         * nscd/Makefile (routines): Add nscd_netgroup.
7690         (nscd-modules): Add netgroupcache.
7691         (CFLAGS-netgroupcache.c): Define.
7692         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7693         (cache_search): Add const to second parameter.
7694         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7695         INNETGR.
7696         (dbs): Add netgrdb entry.
7697         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7698         (verify_persistent_db): Handle netgrdb.
7699         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7700         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7701         GETFDNETGR.
7702         (netgroup_response_header): Define.
7703         (innetgroup_response_header): Define.
7704         (datahead): Add netgroup_response_header and innetgroup_response_header
7705         elements.
7706         * nscd/nscd.conf: Add entries for netgroup cache.
7707         * nscd/nscd.h (dbtype): Add netgrdb.
7708         (_PATH_NSCD_NETGROUP_DB): Define.
7709         (netgroup_iov_disabled): Declare.
7710         (xmalloc, xcalloc, xrealloc): Move declarations here.
7711         (cache_search): Adjust prototype.
7712         Add netgroup-related prototypes.
7713         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7714         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7715         (__nscd_innetgr): Declare.
7716         * nscd/selinux.c (perms): Use access_vector_t as element type and
7717         add netgroup-related initializers.
7718         * nscd/netgroupcache.c: New file.
7719         * nscd/nscd_netgroup.c: New file.
7720         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7721         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7722         For four parameters use innetgr.
7723         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7724         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7725         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7726         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7727
7728         * nscd/connections.c (register_traced_file): Don't register file
7729         for disabled databases.
7730
7731 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7732
7733         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7734
7735         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7736         from tree and freeing node.
7737
7738 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7739
7740         * nss/nsswitch.c (__nss_database_lookup): Handle
7741         nss_parse_service_list out of memory case.
7742
7743 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7744
7745         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7746         out of memory case.
7747
7748 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7749
7750         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7751         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7752         pass it down.
7753         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7754         elf_machine_rela, elf_machine_lazy_rel.
7755         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7756         (ELF_DYNAMIC_DO_REL): Likewise.
7757         (ELF_DYNAMIC_DO_RELA): Likewise.
7758         (ELF_DYNAMIC_RELOCATE): Likewise.
7759         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7760         to ELF_DYNAMIC_DO_REL.
7761         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7762         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7763         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7764         elf_machine_rela.
7765         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7766         skip_ifunc, don't call ifunc function if non-zero.
7767         (elf_machine_rela): Likewise.
7768         (elf_machine_lazy_rel): Likewise.
7769         (elf_machine_lazy_rela): Likewise.
7770         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7771         (elf_machine_lazy_rel): Likewise.
7772         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7773         Likewise.
7774         (elf_machine_lazy_rel): Likewise.
7775         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7776         Likewise.
7777         (elf_machine_lazy_rel): Likewise.
7778         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7779         (elf_machine_lazy_rel): Likewise.
7780         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7781         (elf_machine_lazy_rel): Likewise.
7782         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7783         (elf_machine_lazy_rel): Likewise.
7784         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7785         (elf_machine_lazy_rel): Likewise.
7786         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7787         (elf_machine_lazy_rel): Likewise.
7788         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7789         (elf_machine_lazy_rel): Likewise.
7790
7791 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7792
7793         * nss/nss_files/files-init.c (_nss_files_init): Use static
7794         initialization for all the *_traced_file variables.
7795
7796 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7797
7798         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7799
7800 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7801
7802         [BZ #13226]
7803         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7804
7805 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7806
7807         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7808         Reread the line before reparsing it.
7809
7810 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7811
7812         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7813
7814 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7815             Maxim Kuvyrkov  <maxim@codesourcery.com>
7816             Joseph Myers  <joseph@codesourcery.com>
7817
7818         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7819         if needed for __stack_chk_guard.
7820
7821 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7822
7823         * sysdeps/posix/spawni.c (script_execute): Always define it.
7824         It will be optimized away if unused.
7825         (maybe_script_execute): New function.
7826         (__spawni): Call it.
7827
7828         * Makerules: Don't include tls.make.
7829         (config-tls): Always set to thread.
7830         * tls.make.c: File removed.
7831
7832 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7833
7834         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7835         * config.make.in (CPPFLAGS-config): New substituted variable.
7836
7837 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7838
7839         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7840
7841         [BZ #13192]
7842         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7843         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7844
7845 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7846
7847         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7848         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7849         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7850         (CALL_FAIL): Likewise.
7851         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7852         (CALL_FAIL): Macro removed.
7853         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7854
7855 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7856
7857         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7858         for __FINITE_MATH_ONLY__ == 1.
7859
7860 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7861
7862         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7863         __ieee754_sqrt instead of sqrt.
7864         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7865         __ieee754_sqrtf instead of sqrtf.
7866         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7867         __floorf instead of floorf.
7868         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7869         __floorf, __truncf instead of floorf, truncf.
7870
7871 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7872
7873         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7874
7875         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7876         __extern_always_inline.
7877         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7878         32-bit.
7879
7880 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7881
7882         * elf/rtld.c (dl_main): Also relocate in dependency order when
7883         doing symbol dependency testing.
7884
7885 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7886
7887         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7888         Always define `refsym'.
7889
7890 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7891
7892         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7893         (__FD_ELT): Renamed from __FDELT.
7894         * misc/bits/select2.h (__FD_ELT): Likewise.
7895         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7896         __FD_MASK instead of __FDELT, __FDMASK.
7897         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7898         Likewise.
7899         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7900         Likewise.
7901
7902         * elf/Makefile (gen-ldd): Fix pattern.
7903
7904         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7905         (init_tls): Likewise.
7906
7907 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7908
7909         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7910
7911 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7912
7913         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7914         `struct cmsghdr *' instead of `void *'.
7915         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7916         Likewise.
7917
7918 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7919
7920         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7921         if non-absolute.
7922         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7923         ldd_rewrite_script.
7924
7925 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7926
7927         * configure.in: Remove --with-tls option.
7928         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7929         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7930         out in case it is missing.
7931         * sysdeps/ia64/elf/configure.in: Likewise.
7932         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7933         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7934         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7935         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7936         * sysdeps/sh/elf/configure.in: Likewise.
7937         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7938         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7939         * sysdeps/x86_64/elf/configure.in: Likewise.
7940         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7941         * sysdeps/mach/hurd/tls.h: Likewise.
7942
7943         [BZ #13067]
7944         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7945
7946         [BZ #13090]
7947         * configure.in: Fix use of AC_INIT.
7948
7949         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7950
7951 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7952
7953         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7954         __set_errno.
7955         * malloc/hooks.c: Likewise.
7956
7957         [BZ #11929]
7958         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7959         variables statically.
7960         (narenas): Initialize.
7961         (list_lock): Initialize.
7962         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7963         initializtion of main_arena and list_lock.  Small cleanups.
7964         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7965         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7966         Add initializers to main_arena and mp_.
7967         (malloc_state): Remove pagesize member.  Change all users to use
7968         GLRO(dl_pagesize).
7969
7970         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7971         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7972         is always initialized.
7973
7974         * malloc/malloc.c: Removed unused configurations and dead code.
7975         * malloc/arena.c: Likewise.
7976         * malloc/hooks.c: Likewise.
7977         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7978
7979         * include/tls.h: Removed.  USE___THREAD must always be defined.
7980         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7981         * elf/dl-libc.c: Likewise.
7982         * elf/dl-tsd.c: Likewise.
7983         * include/errno.h: Likewise.
7984         * include/netdb.h: Likewise.
7985         * include/resolv.h: Likewise.
7986         * inet/herrno-loc.c: Likewise.
7987         * inet/herrno.c: Likewise.
7988         * malloc/arena.c: Likewise.
7989         * malloc/hooks.c: Likewise.
7990         * malloc/malloc.c: Likewise.
7991         * resolv/res-state.c: Likewise.
7992         * resolv/res_libc.c: Likewise.
7993         * sysdeps/i386/dl-machine.h: Likewise.
7994         * sysdeps/ia64/dl-machine.h: Likewise.
7995         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7996         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7997         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7998         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7999         * sysdeps/sh/dl-machine.h: Likewise.
8000         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8001         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8002         * sysdeps/unix/i386/sysdep.S: Likewise.
8003         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8004         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8005         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8006         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8007         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8008         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8009         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
8010         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8011         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8012         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8013         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8014         * sysdeps/x86_64/dl-machine.h: Likewise.
8015         * tls.make.c: Likewise.
8016
8017         * configure.in: Remove --with-__thread option.  Make tests for
8018         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
8019         tls_model attribute fail if no support is available.  Remove
8020         USE_IN_LIBIO.
8021         * Makeconfig: Adjust for dropped configure option.  All features are
8022         now mandatory.
8023         * Makerules: Likewise.
8024         * Versions.def: Likewise.
8025         * argp/argp-fmtstream.c: Likewise.
8026         * argp/argp-fmtstream.h: Likewise.
8027         * argp/argp-help.c: Likewise.
8028         * assert/assert.c: Likewise.
8029         * config.h.in: Likewise.
8030         * config.make.in: Likewise.
8031         * configure: Likewise.
8032         * configure.in: Likewise.
8033         * csu/Versions: Likewise.
8034         * csu/init.c: Likewise.
8035         * elf/tst-audit2.c: Likewise.
8036         * elf/tst-tls10.c: Likewise.
8037         * elf/tst-tls10.h: Likewise.
8038         * elf/tst-tls11.c: Likewise.
8039         * elf/tst-tls12.c: Likewise.
8040         * elf/tst-tls14.c: Likewise.
8041         * elf/tst-tlsmod11.c: Likewise.
8042         * elf/tst-tlsmod12.c: Likewise.
8043         * elf/tst-tlsmod13.c: Likewise.
8044         * elf/tst-tlsmod13a.c: Likewise.
8045         * elf/tst-tlsmod14a.c: Likewise.
8046         * elf/tst-tlsmod15b.c: Likewise.
8047         * elf/tst-tlsmod16a.c: Likewise.
8048         * elf/tst-tlsmod16b.c: Likewise.
8049         * elf/tst-tlsmod7.c: Likewise.
8050         * elf/tst-tlsmod8.c: Likewise.
8051         * elf/tst-tlsmod9.c: Likewise.
8052         * gmon/gmon.c: Likewise.
8053         * grp/fgetgrent_r.c: Likewise.
8054         * grp/putgrent.c: Likewise.
8055         * hurd/fopenport.c: Likewise.
8056         * include/libc-symbols.h: Likewise.
8057         * include/tls.h: Likewise.
8058         * intl/gettextP.h: Likewise.
8059         * intl/loadinfo.h: Likewise.
8060         * locale/global-locale.c: Likewise.
8061         * locale/localeinfo.h: Likewise.
8062         * mach/devstream.c: Likewise.
8063         * malloc/arena.c: Likewise.
8064         * malloc/set-freeres.c: Likewise.
8065         * misc/err.c: Likewise.
8066         * misc/getttyent.c: Likewise.
8067         * misc/mntent_r.c: Likewise.
8068         * posix/getopt.c: Likewise.
8069         * posix/wordexp.c: Likewise.
8070         * pwd/fgetpwent_r.c: Likewise.
8071         * resolv/Versions: Likewise.
8072         * resolv/res_hconf.c: Likewise.
8073         * shadow/fgetspent_r.c: Likewise.
8074         * shadow/putspent.c: Likewise.
8075         * stdio-common/printf_fphex.c: Likewise.
8076         * stdio-common/tmpfile.c: Likewise.
8077         * stdlib/abort.c: Likewise.
8078         * stdlib/fmtmsg.c: Likewise.
8079         * sunrpc/auth_unix.c: Likewise.
8080         * sunrpc/clnt_perr.c: Likewise.
8081         * sunrpc/clnt_tcp.c: Likewise.
8082         * sunrpc/clnt_udp.c: Likewise.
8083         * sunrpc/clnt_unix.c: Likewise.
8084         * sunrpc/openchild.c: Likewise.
8085         * sunrpc/svc_simple.c: Likewise.
8086         * sunrpc/svc_tcp.c: Likewise.
8087         * sunrpc/svc_udp.c: Likewise.
8088         * sunrpc/svc_unix.c: Likewise.
8089         * sunrpc/xdr.c: Likewise.
8090         * sunrpc/xdr_array.c: Likewise.
8091         * sunrpc/xdr_rec.c: Likewise.
8092         * sunrpc/xdr_ref.c: Likewise.
8093         * sunrpc/xdr_stdio.c: Likewise.
8094
8095 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8096
8097         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8098
8099 2011-07-03  Andreas Jaeger  <aj@suse.de>
8100
8101         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
8102         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
8103         regenerate with gen-libm-tests.pl.
8104
8105 2010-05-12  Petr Baudis  <pasky@suse.cz>
8106
8107         [BZ #11589]
8108         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
8109         around j0() zero points by switching to j1().
8110         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8111         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8112         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8113         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8114
8115 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8116
8117         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
8118         instead of 0.
8119         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
8120         instead of 0.                              .
8121         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8122         Patch in part by Pavel Roskin <proski@gnu.org>.
8123
8124         [BZ #13138]
8125         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
8126         realloc.
8127         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
8128         Free memory block if necessary.
8129
8130         [BZ #12847]
8131         * libio/genops.c (INTDEF): For string streams the _lock pointer can
8132         be NULL.  Don't lock in this case.
8133
8134 2011-09-09  Roland McGrath  <roland@hack.frob.com>
8135
8136         * elf/elf.h (ELFOSABI_GNU): New macro.
8137         (ELFOSABI_LINUX): Define to that.
8138
8139 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
8140
8141         * string/strncat.c (strncat): Undef the symbol in case it has been
8142         defined in bits/string.h.
8143
8144 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8145
8146         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
8147
8148         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
8149         link map.
8150
8151 2011-08-17  Andreas Jaeger  <aj@suse.de>
8152
8153         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
8154
8155 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8156             Ian Lance Taylor  <iant@google.com>
8157
8158         * math/libm-test.inc (lround_test): New testcase.
8159         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
8160
8161 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
8162
8163         * Makefile: Remove support for automatic cvs check-ins.
8164         * Makerules: Likewise.
8165         * config.make.in: Likewise.
8166         * configure.in: Likewise.
8167         * intl/Makefile: Likewise.
8168         * locale/Makefile: Likewise.
8169         * po/Makefile: Likewise.
8170         * posix/Makefile: Likewise.
8171         * sysdeps/gnu/Makefile: Likewise.
8172         * sysdeps/mach/hurd/Makefile: Likewise.
8173         * sysdeps/sparc/sparc32/Makefile: Likewise.
8174
8175         [BZ #13118]
8176         * posix/Makefile (bug-regex32-ENV): Define.
8177         Patch by John Stanley <jpsinthemix@verizon.net>.
8178
8179         * misc/Makefile (headers): Add bits/select2.h.
8180         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
8181         * misc/bits/select2.h: New file.
8182         * include/bits/select2.h: New file.
8183         * debug/Makefile (routines): Add fdelt_chk.
8184         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
8185         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
8186         FD_ISSET.
8187         * debug/fdelt_chk.c: New file.
8188
8189         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
8190         * wcsmbs/test-wmemcmp.c: Likewise.
8191         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
8192         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
8193
8194 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8195
8196         * string/Makefile (strop-tests): Add memcmp.
8197         * string/test-wmemcmp.c: New file.
8198         * string/test-memcmp.c: Add wmemcmp support.
8199
8200 2011-09-08  Roland McGrath  <roland@hack.frob.com>
8201
8202         [BZ #13153]
8203         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
8204         2011-07-19 change.
8205
8206         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
8207         garbage value in a __mach_port_mod_refs call in the cases of the
8208         task-self and thread-self ports.
8209
8210 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8211
8212         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
8213
8214 2011-09-08  Andreas Schwab  <schwab@redhat.com>
8215
8216         * elf/dl-load.c (lose): Check for non-null L.
8217
8218 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8219
8220         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
8221
8222         * elf/dl-libc.c (dlerror_run): Pass back error code from
8223         dl_catch_error.
8224
8225         [BZ #13123]
8226         * elf/dl-load.c (lose): Free l_origin if it is valid.
8227
8228         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
8229         names.
8230         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
8231         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8232         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8233         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8234         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
8235         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
8236
8237 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8238
8239         * sysdeps/powerpc/fpu/e_hypot.c: New file.
8240         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
8241         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
8242         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
8243         * sysdeps/powerpc/fpu/k_cosf.c: New file.
8244         * sysdeps/powerpc/fpu/k_sinf.c: New file.
8245         * sysdeps/powerpc/fpu/s_cosf.c: New file.
8246         * sysdeps/powerpc/fpu/s_sinf.c: New file.
8247         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
8248         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
8249
8250 2011-08-15  Alan Modra  <amodra@gmail.com>
8251
8252         [BZ #13092]
8253         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
8254         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
8255         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
8256         ppc_mcount to static-only-routines.
8257         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
8258         __mcount_internal.
8259         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
8260         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
8261
8262 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
8263
8264         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
8265         for finite and infinity parameters.
8266
8267 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
8268
8269         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
8270         and add nop instructions for throughput optimization.
8271         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
8272
8273 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
8274
8275         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
8276         aligned copy for power7 with vector-scalar instructions.
8277         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
8278
8279 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
8280
8281         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
8282         AVX check.
8283
8284 2011-09-07  Andreas Schwab  <schwab@redhat.com>
8285
8286         [BZ #13144]
8287         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
8288         last change.
8289
8290 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8291
8292         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8293         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
8294         syscall wrapper around clock_gettime in __vdso_clock_gettime.
8295         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
8296         clock_gettime.
8297
8298 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
8299
8300         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
8301         Forgot to demangle the pointer.
8302
8303         * sysdeps/i386/sysdep.h: Define atom_text_section.
8304         * sysdeps/x86_64/sysdep.h: Likewise.
8305         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
8306         section with atom_text_section.
8307         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8308         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8309         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
8310         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8311         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
8312
8313         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
8314         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
8315         already be defined.  Change to take two parameters and don't assign
8316         result to variable.  Adjust all users.
8317         Define INTERNAL_GETTIME if not already defined.
8318         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
8319         call.
8320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
8321         HAVE_CLOCK_GETTIME_VSYSCALL.
8322         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
8323
8324         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
8325         gettimeofday vsyscall, just use time.
8326
8327 2011-09-06  Andreas Schwab  <schwab@redhat.com>
8328
8329         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
8330         <errno.h>.
8331
8332 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
8333
8334         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
8335         syscall on x86-64.
8336         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
8337         syscall.
8338         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
8339         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
8340         syscall if possible.
8341
8342 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8343
8344         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
8345         e_ident.  Don't pass to find_mapsXX.
8346         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
8347
8348 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8349
8350         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8351         strchr-sse2-no-bsf strrchr-sse2-no-bsf
8352         * sysdeps/x86_64/multiarch/strchr.S: Update.
8353         Check bit_slow_BSF bit.
8354         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8355         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
8356         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
8357
8358 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8359
8360         [BZ #13134]
8361         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
8362         before glibc 2.15.
8363         (tryshell): Define.
8364         (__spawni): Change last parameter to be flag.  Test
8365         SPAWN_XFLAGS_USE_PATH flag to use path or not.
8366         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
8367         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
8368         * posix/spawni.c: Likewise.
8369         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
8370         * posix/spawnp.c: Likewise.  Change normal version to use
8371         SPAWN_XFLAGS_USE_PATH.
8372         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
8373         SPAWN_XFLAGS_TRY_SHELL.
8374
8375         [BZ #13150]
8376         * posix/glob.h: Remove gcc 1.x support.
8377
8378         [BZ #13068]
8379         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
8380
8381 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8382
8383         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8384         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
8385         strrchr-sse2-bsf
8386         * sysdeps/i386/i686/multiarch/strchr.S: New file.
8387         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
8388         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
8389         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
8390         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
8391         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
8392
8393 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8394
8395         * sysdeps/x86_64/wcscmp.S: New file.
8396
8397         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
8398         wcscmp-c wcscmp-sse2
8399         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
8400         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
8401         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
8402         * wcsmbs/wcscmp.c: Allow renaming.
8403
8404 2011-09-05  David S. Miller  <davem@davemloft.net>
8405
8406         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
8407         stack slot, rather than the struct return pointer slot.
8408         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
8409         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
8410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
8411         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
8412
8413 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8414
8415         * po/ja.po: Update from translation team.
8416
8417         [BZ #13144]
8418         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
8419         kernel in 64-bit binaries.
8420
8421 2011-09-01  David S. Miller  <davem@davemloft.net>
8422
8423         * elf/elf.h (HWCAP_SPARC_*): Move to..
8424         * sysdeps/sparc/sysdep.h: this new file and add new values.
8425         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
8426         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
8427         _DL_HWCAP_COUNT to 24.
8428         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8429         entries.
8430         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
8431         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
8432         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
8433         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
8434         instead of magic constants.
8435         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8436
8437 2011-08-31  David S. Miller  <davem@davemloft.net>
8438
8439         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
8440         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
8441         Reimplement to do errno handling inline.
8442         (SYSCALL_ERROR_HANDLER): New macro.
8443         (__SYSCALL_STRING): Do not do errno handling in asm.
8444         (__CLONE_SYSCALL_STRING): Delete.
8445         (__INTERNAL_SYSCALL_STRING): Delete.
8446         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8447         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
8448         (PSEUDO): Reimplement to do errno handling inline.
8449         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
8450         (SYSCALL_ERROR_HANDLER): New macro.
8451         (__SYSCALL_STRING): Do not do errno handling in asm.
8452         (__CLONE_SYSCALL_STRING): Delete.
8453         (__INTERNAL_SYSCALL_STRING): Delete.
8454         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
8455         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
8456         i386.
8457         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
8458         (inline_syscall*): Add 'err' argument.
8459         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
8460         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
8461         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
8462         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
8463
8464         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
8465         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8466
8467 2011-08-30  Andreas Schwab  <schwab@redhat.com>
8468
8469         * elf/rtld.c (dl_main): Relocate objects in dependency order.
8470
8471 2011-08-29  Jiri Olsa <jolsa@redhat.com>
8472
8473         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
8474         directive.
8475
8476 2011-08-24  David S. Miller  <davem@davemloft.net>
8477
8478         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
8479
8480 2011-08-24  Andreas Schwab  <schwab@redhat.com>
8481
8482         * elf/Makefile: Add rules to build and run unload8 test.
8483         * elf/unload8.c: New file.
8484         * elf/unload8mod1.c: New file.
8485         * elf/unload8mod1x.c: New file.
8486         * elf/unload8mod2.c: New file.
8487         * elf/unload8mod3.c: New file.
8488
8489         * elf/dl-close.c (_dl_close_worker): Reset private search list if
8490         it wasn't used.
8491
8492 2011-08-23  David S. Miller  <davem@davemloft.net>
8493
8494         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
8495         subtract stack bias.
8496         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
8497         %sp not %fp in calculations.
8498         (_JMPBUF_UNWINDS_ADJ): Likewise.
8499
8500         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
8501         (aio_suspend): Call it to force an exception region around the
8502         AIO_MISC_WAIT() invocation.
8503
8504 2011-08-23  Andreas Schwab  <schwab@redhat.com>
8505
8506         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
8507         backslash.
8508
8509 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
8510
8511         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
8512         protection macro.
8513         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
8514         and <dl-machine.h>.
8515         (Elf64_FuncDesc): Remove.
8516
8517 2011-08-22  David S. Miller  <davem@davemloft.net>
8518
8519         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
8520         sigaltstack check, add missing cfi directives.
8521         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
8522         missing cfi directives, and sigaltstack handling.
8523
8524 2011-08-16  Andreas Schwab  <schwab@redhat.com>
8525
8526         [BZ #11724]
8527         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
8528         object is seen twice.
8529         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8530
8531         * elf/Makefile (distribute): Add tst-initorder2.c.
8532         (tests): Add tst-initorder2.
8533         (modules-names): Add tst-initorder2a tst-initorder2b
8534         tst-initorder2c tst-initorder2d.  Add rules to build them.
8535         ($(objpfx)tst-initorder2.out): New rule.
8536         * elf/tst-initorder2.c: New file.
8537         * elf/tst-initorder2.exp: New file.
8538
8539 2011-08-22  Andreas Schwab  <schwab@redhat.com>
8540
8541         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
8542
8543         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
8544         dependencies back to end of function.
8545
8546         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8547         $(elfobjdir)/ld.so.
8548
8549 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
8550
8551         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
8552         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
8553         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8554         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8555         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
8556         of __vdso_gettimeofday.
8557         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
8558         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
8559         attribute_hidden.
8560         (_libc_vdso_platform_setup): Remove initialization of
8561         __vdso_gettimeofday and __vdso_time.
8562
8563 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8564
8565         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
8566         and fgetc_unlocked.
8567         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
8568         getc_unlocked.
8569
8570         * elf/dl-open.c (add_to_global): Report additions to the global scope
8571         for LD_DEBUG=scopes.
8572         (dl_open_worker): Also print scope of newly loaded dependencies.
8573         (_dl_show_scope): Indicate if there is no scope.
8574
8575         [BZ #13114]
8576         * stdio-common/Makefile (tests): Add bug24.
8577         * stdio-common/bug24.c: New file.
8578
8579 2011-08-19  Andreas Jaeger  <aj@suse.de>
8580
8581         [BZ #13114]
8582         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
8583         non-existant file when using close-on-exec mode.
8584
8585 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8586
8587         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
8588         the very first instruction.
8589
8590         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
8591         the CFI state in the end.
8592         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
8593         inclusion of dl-trampoline.h.
8594         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
8595
8596 2011-08-19  Andreas Schwab  <schwab@redhat.com>
8597
8598         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
8599         expectations for long double.
8600
8601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
8602         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
8603
8604 2011-08-14  David S. Miller  <davem@davemloft.net>
8605
8606         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
8607         artificual limit depends upon the system page size.
8608
8609 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8610
8611         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
8612         * resolv/Makefile: Define CFLAGS-libresolv.
8613
8614 2011-08-17  Andreas Schwab  <schwab@redhat.com>
8615
8616         * nss/makedb.c (compute_tables): Make variables used in nested
8617         function static.
8618
8619 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8620
8621         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
8622         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
8623         if buffer was too small.
8624
8625         * elf/pldd.c (main): Attach to all threads in the process.
8626         Rewrite /proc handling to use *at functions.
8627
8628 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
8629
8630         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
8631         specifies first scope to show.
8632         (dl_open_worker): Update callers.  Move printing scope of new
8633         object to before the relocation.
8634         * elf/rtld.c (dl_main): Update _dl_show_scope call.
8635         * sysdeps/generic/ldsodefs.h: Update declaration.
8636
8637         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
8638         string for the scope number.
8639
8640 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
8641
8642         * nscd/servicescache.c (cache_addserv): Make sure written is always
8643         initialized.
8644
8645 2011-08-14  Roland McGrath  <roland@hack.frob.com>
8646
8647         * sysdeps/i386/i486/bits/atomic.h
8648         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
8649         statement expression, so as to suppress "set but not used" warning.
8650         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
8651
8652         * string/strncat.c (STRNCAT): Use prototype definition.
8653
8654         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
8655         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
8656         -Iprograms here.
8657         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
8658         (localedef-modules): Add localedef.
8659         (locale-modules): Add locale.
8660
8661         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
8662         * elf/rtld.c (dl_main): Invert order of assignment in last change,
8663         to avoid a warning.
8664
8665 2011-08-14  David S. Miller  <davem@davemloft.net>
8666
8667         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
8668         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
8669
8670 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
8671
8672         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
8673         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
8674         * elf/rtld.c (dl_main): Set l_name of vDSO.
8675         Call _dl_show_scope when DL_DEBUG_SCOPES.
8676         (process_dl_debug): Recognize scopes flag and also set it for all.
8677         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8678         Declare _dl_show_scope.
8679
8680         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8681         (do_dlopen): Pass caller_dlopen to dl_open.
8682         (__libc_dlopen_mode): Initialize caller_dlopen.
8683
8684         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8685         of libc.  Make tolower call locale-independent.  Optimize a bit by
8686         using isdigit instead of isalnum.
8687         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8688
8689 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8690
8691         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8692         was a dependency or dynamically loaded.
8693
8694 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8695
8696         * intl/l10nflist.c: Allow architecture-specific pop function.
8697         * sysdeps/x86_64/l10nflist.c: New file.
8698
8699         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8700         classification.
8701
8702 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8703
8704         * include/dirent.h: Add libc_hidden_proto for scandirat and
8705         scandirat64.  Don't declare __scandirat64.
8706         * dirent/scandirat.c: Add libc_hidden_def.
8707         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8708         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8709
8710 2011-08-10  David S. Miller  <davem@davemloft.net>
8711
8712         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8713         enum.
8714         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8715         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8716         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8717
8718 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8719
8720         * Versions.def [libc]: Add GLIBC_2.15.
8721         * dirent/Makefile (routines): Add scandirat and scandirat64.
8722         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8723         GLIBC_2.15.
8724         * dirent/dirent.h: Declare scandirat and scandirat64.
8725         * dirent/scandirat.c: New file.
8726         * dirent/scandirat64.c: New file.
8727         * sysdeps/wordsize-64/scandirat.c: New file.
8728         * sysdeps/wordsize-64/scandirat64.c: New file.
8729         * dirent/opendir.c: Define opendirat.
8730         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8731         using scandirat.
8732         * dirent/scandir64.c: Adjust for scandir.c change.
8733         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8734         __scandirat64, and __scandir_cancel_handler.
8735         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8736         additional parameter and use openat instead of open (outside of ld.so).
8737         Add new __opendir as wrapper around __opendirat.
8738         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8739         here without requiring old scandirat implementation.
8740
8741 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8742
8743         * dirent/scandir.c (cancel_handler): Renamed to
8744         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8745         defined.  Adjust users.
8746         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8747         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8748
8749 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8750
8751         * string/test-string.h (IMPL): Use __STRING to expand name and then
8752         stringify it.
8753
8754         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8755         of cleanups.
8756
8757 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8758
8759         * string/Makefile: Update.
8760         (strop-tests): Append strncat.
8761         * string/test-wcscmp.c: New file.
8762         New comprehensive test for wcscmp.
8763         * string/test-strcmp.c: Update.
8764         (WIDE): New define.
8765
8766 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8767
8768         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8769         line.
8770
8771 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8772
8773         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8774         encoding to ACE if AI_IDN.
8775
8776 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8777
8778         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8779         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8780
8781 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8782
8783         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8784         Fix overflow bug in strncat.
8785         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8786
8787         * string/test-strncat.c: Update.
8788         Add new tests for checking overflow bugs.
8789
8790 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8791
8792         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8793         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8794         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8795         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8796         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8797         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8798         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8799         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8800         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8801
8802         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8803         (USE_AS_STRCAT): Define.
8804         Add strcat and strncat support.
8805         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8806
8807 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8808
8809         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8810         __n bigger than INT_MAX+1.
8811         (__strncmp_g): Likewise.
8812
8813 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8814
8815         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8816         * libio/stido.h: Likewise.
8817
8818         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8819         (AF_NFC): Define.
8820         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8821         (AF_NFC): Define.
8822
8823         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8824         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8825         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8826         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8827         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8828
8829         [BZ #13021]
8830         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8831         installed.
8832
8833         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8834         typo.
8835         (_dl_x86_64_save_sse): Likewise.
8836
8837 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8838
8839         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8840         OSXSAVE.
8841         (_dl_x86_64_save_sse): Likewise.
8842
8843         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8844
8845         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8846
8847 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8848
8849         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8850         change.
8851         (_dl_x86_64_save_sse): Use correct AVX check.
8852
8853 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8854
8855         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8856         bug in strncpy/strncat.
8857         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8858
8859 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8860
8861         * string/tester.c (test_strcat): Add tests for different alignments
8862         of source and destination.
8863         (test_strncat): Likewise.
8864
8865 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8866
8867         [BZ #12852]
8868         * posix/glob.c (glob): Check passed in values before using them in
8869         expressions to avoid some overflows.
8870         (glob_in_dir): Likewise.
8871
8872         [BZ #13007]
8873         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8874         check for AVX enablement so that we don't crash with old kernels and
8875         new hardware.
8876         * elf/tst-audit4.c: Add same checks here.
8877         * elf/tst-audit6.c: Likewise.
8878
8879         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8880
8881 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8882
8883         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8884
8885 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8886
8887         * po/cs.po: Update from translation team.
8888         * po/bg.po: Likewise.
8889
8890 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8891
8892         * misc/sys/cdefs.h: Add support for const attribute.
8893         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8894         to gnu_dev_{major,minor,makedev} functions.
8895
8896 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8897
8898         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8899
8900 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8901
8902         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8903         strlen results.
8904
8905 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8906
8907         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8908         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8909         register in order to avoid conflicts with the soft frame pointer
8910         being held in r11 when necessary.
8911         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8912         (INTERNAL_VSYSCALL_NCS): Likewise.
8913
8914 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8915
8916         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8917         * elf/dl-fini.c (_dl_fini): Adjust caller.
8918         * elf/dl-close.c (_dl_close_worker): Likewise.
8919         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8920
8921 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8922
8923         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8924         "aux_cache->nlibs < 0".
8925
8926         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8927         in the reload-count case.
8928
8929 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8930
8931         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8932         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8933         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8934         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8935         * sysdeps/x86_64/multiarch/strcat.S: New file.
8936         * sysdeps/x86_64/multiarch/strncat.S: New file.
8937         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8938         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8939         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8940         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8941         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8942         (USE_AS_STRCAT): Define.
8943         Add strcat and strncat support.
8944         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8945         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8946         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8947         * string/strncat.c: Update.
8948         (USE_AS_STRNCAT): Define.
8949         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8950         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8951         and i7.
8952         * sysdeps/x86_64/multiarch/init-arch.h
8953         (bit_Prefer_PMINUB_for_stringop): New.
8954         (index_Prefer_PMINUB_for_stringop): Likewise.
8955         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8956         bit_Prefer_PMINUB_for_stringop.
8957
8958 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8959
8960         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8961         buffer64.
8962         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8963         of casting of buffer.
8964         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8965         buffer32 and buffer64.
8966         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8967         writes instead of casting of buffer.
8968         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8969         buffer32.
8970         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8971         casting of buffer.
8972
8973 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8974
8975         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8976
8977 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8978
8979         * nscd/nscd.c (termination_handler): Don't do anything for a database
8980         if it has not yet been initialized.
8981
8982 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8983
8984         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8985
8986 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8987
8988         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8989
8990 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8991
8992         * po/nl.po: Update from translation team.
8993         * po/sv.po: Likewise.
8994
8995 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8996
8997         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8998         now disallowed by GCC.
8999
9000         * configure.in (use-default-link): Default to yes if a test -shared
9001         link meets our qualifications.
9002         * configure: Regenerated.
9003
9004         * config.make.in (output-format): New variable.
9005         * configure.in: Check for ld --print-output-format support.
9006         * configure: Regenerated.
9007         * Makerules ($(common-objpfx)format.lds)
9008         [$(output-format) != unknown]: Just use $(output-format),
9009         instead of the linker-script munging.
9010
9011 2011-07-14  Roland McGrath  <roland@hack.frob.com>
9012
9013         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
9014         of $(common-objpfx)shlib.lds.
9015         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
9016
9017         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
9018         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
9019
9020         * configure.in (-z relro check): Adjust test code to add a large
9021         writable data section after it.
9022         * configure: Regenerated.
9023
9024 2011-07-11  Roland McGrath  <roland@hack.frob.com>
9025
9026         * configure.in (-z relro check): Fix test code to make the variable
9027         truly const.
9028         * configure: Regenerated.
9029
9030 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
9031
9032         * nscd/nscd.h (struct traced_file): Define.
9033         (struct database_dyn): Remove inotify_descr, reset_res, and filename
9034         elements.  Add traced_files.
9035         (inotify_fd): Declare.
9036         (register_traced_file): Declare.
9037         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
9038         (inotify_fd): Export.
9039         (resolv_conf_descr): Remove.
9040         (nscd_init): Move inotify descriptor creation to main.
9041         Don't register files for notification here.
9042         (register_traced_file): New function.
9043         (invalidate_cache): Don't use reset_res to determine whether to call
9044         res_init, go through the list of registered files.
9045         (main_loop_poll): The inotify descriptors are now stored in the
9046         structures for the traced files.
9047         (main_loop_epoll): Likewise
9048         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
9049         to __nss_disable_nscd.
9050         * nscd/cache.c (prune_cache): There is no single inotify descriptor
9051         for a database anymore.  Check the records for all the registered
9052         files instead.
9053         * nss/Makefile (libnss_files-routines): Add files-init.
9054         (libnss_db-routines): Add db-init.
9055         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
9056         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
9057         * nss/nss_db/db-init.c: New file.
9058         * nss/nss_files/files-init.c: New file.
9059         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
9060         __nss_lookup_function.
9061         (__nss_lookup_function): Call nss_load_library.
9062         (nss_load_all_libraries): New function.
9063         (__nss_disable_nscd): Take parameter with callback function for files
9064         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
9065         used for the cached services.
9066         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
9067         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
9068         options for features to all the files in nscd.
9069
9070         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
9071
9072 2011-07-10  Roland McGrath  <roland@hack.frob.com>
9073
9074         * csu/elf-init.c (__libc_csu_init): Comment typo.
9075
9076 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
9077
9078         * po/pl.po: Update from translation team.
9079         * po/ja.po: Likewise.
9080         * po/ru.po: Likewise.
9081         * po/ko.po: Likewise.
9082         * po/fr.po: Likewise.
9083
9084 2011-07-09  Roland McGrath  <roland@hack.frob.com>
9085
9086         * configure.in (.ctors/.dtors header and trailer check):
9087         Use an empirical test on a built program.
9088         * configure: Regenerated.
9089
9090         * configure.in (-z relro check): Use an empirical test on a built DSO.
9091         Detect, but do not require, on ia64.
9092         * configure: Regenerated.
9093
9094         * configure.in (READELF): Find it with AC_CHECK_TOOL.
9095         Update tests that use readelf to use $READELF instead.
9096         * configure: Regenerated.
9097
9098 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
9099
9100         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
9101         if the result is not used.
9102
9103 2011-07-05  Andreas Jaeger  <aj@suse.de>
9104
9105         [BZ#9696]
9106         * stdlib/tst-strtod.c: Add testcase.
9107
9108 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9109
9110         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
9111         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
9112         The latter has a higher limit.  Take additional parameter to pass to
9113         the new function.
9114         (__pathconf): Pass file to __statfs_link_max.
9115         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
9116         __statfs_link_max.
9117         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
9118         __statfs_link_max.
9119
9120         [BZ #12868]
9121         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
9122         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9123         Handle Lustre.
9124         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
9125         (__statfs_filesize_max): Likewise.
9126         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
9127
9128 2011-07-05  Andreas Jaeger  <aj@suse.de>
9129
9130         * resolv/res_comp.c (dn_skipname): Remove unused variable.
9131
9132 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
9133
9134         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
9135         `status' variable.
9136         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
9137         Likewise.
9138
9139 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9140
9141         * Makefile (strop-tests): Add strncat.
9142         * string/test-strncat.c: New file.
9143
9144 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
9145
9146         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
9147
9148 2011-06-21  Andreas Jaeger  <aj@suse.de>
9149
9150         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
9151         Copy rule from iconvdata/Makefile.
9152
9153 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9154
9155         [BZ #12922]
9156         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
9157         but no long options are defined, just return 'W'.
9158
9159 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
9160
9161         [BZ #9696]
9162         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
9163
9164 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9165
9166         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
9167         netgroups to read.
9168         (innetgr): Likewise.
9169
9170 2011-07-05  Roland McGrath  <roland@hack.frob.com>
9171
9172         * config.make.in (install_root): Default to $(DESTDIR).
9173
9174 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
9175
9176         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
9177
9178 2011-07-02  Roland McGrath  <roland@hack.frob.com>
9179
9180         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
9181
9182         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
9183         containing directory rather than embedding absolute directory names.
9184
9185         * scripts/check-local-headers.sh: Rewritten using awk.
9186         Match by word, not by line.  Print error messages for matches.
9187         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
9188
9189         * Makerules [shlib-lds-flags empty]:
9190         ($(common-objpfx)libc_pic.opts): New target.
9191         ($(common-objpfx)libc_pic.os.clean): New target.
9192         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
9193
9194         * config.make.in (OBJCOPY): New variable.
9195         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
9196         * configure: Regenerated.
9197
9198         * config.make.in (use-default-link): New variable.
9199         * configure.in (use_default_link): Grok --with-default-link to set it.
9200         * configure: Regenerated.
9201         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
9202         (shlib-lds, shlib-lds-flags): Define to empty.
9203
9204         * Makerules (shlib-lds): New variable.
9205         (shlib-lds-flags): New variable.
9206         (build-shlib, build-moduile, build-module-asneeded): Use it.
9207         ($(common-objpfx)libc.so): Use $(shlib-lds).
9208         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
9209         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
9210
9211         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
9212         DT_FLAGS/DT_FLAGS_1 with zero flags.
9213
9214         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
9215         linker script munging.
9216
9217 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
9218
9219         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
9220         as 128-bit value.
9221         * crypt/sha512.c (sha512_process_block): Perform total addition using
9222         128-bit if possible.
9223         (__sha512_finish_ctx): Likewise.
9224         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
9225         as 64-bit value.
9226         * crypt/sha256.c (SWAP64): Define.
9227         (sha256_process_block): Perform total addition using 64-bit if
9228         possible.
9229         (__sha256_finish_ctx): Likewise.
9230
9231 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
9232
9233         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
9234         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9235         * nscd/hstcache.c (cache_addhst): Likewise.
9236         * nscd/grpcache.c (cache_addgr): Likewise.
9237         * nscd/aicache.c (addhstaiX): Likewise
9238         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
9239
9240 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
9241
9242         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
9243         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9244         * nscd/hstcache.c (cache_addhst): Likewise.
9245         * nscd/grpcache.c (cache_addgr): Likewise.
9246         * nscd/aicache.c (addhstaiX): Likewise
9247
9248 2011-07-01  Andreas Schwab  <schwab@redhat.com>
9249
9250         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
9251         domain only when needed.
9252
9253 2011-06-30  Andreas Schwab  <schwab@redhat.com>
9254
9255         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
9256         is always restored.
9257
9258 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
9259
9260         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
9261         are re-adding the entry.
9262         * nscd/servicescache.c (cache_addserv): Likewise.
9263
9264 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
9265
9266         * sysdeps/generic/dl-irel.h: fix protection against multiple
9267         inclusions.
9268         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
9269
9270 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
9271
9272         [BZ #12935]
9273         * malloc/memusage.sh: Fix quoting in message.
9274         * debug/xtrace.sh: Likewise.
9275
9276         * configure.in: Remove support for --experimental-malloc option, make
9277         it the default.
9278         * config.make.in: Likewise.
9279         * malloc/Makefile: Likewise.
9280
9281 2011-06-27  Andreas Schwab  <schwab@redhat.com>
9282
9283         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
9284         two-byte characters.
9285
9286 2011-06-27  Roland McGrath  <roland@hack.frob.com>
9287
9288         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
9289         AC_CACHE_CHECK invocation.
9290         * configure: Regenerated.
9291
9292         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
9293
9294 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
9295
9296         [BZ #12350]
9297         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
9298         bit from old_res_options.
9299
9300         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
9301
9302         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
9303         value type for setfct.
9304
9305 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9306
9307         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
9308         __gettimeofday instead of gettimeofday.
9309
9310 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
9311
9312         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
9313
9314 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9315
9316         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
9317
9318         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
9319         info.
9320
9321 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9322
9323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9324         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
9325         strcpy-sse2-unaligned strncpy-sse2-unaligned
9326         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
9327         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
9328         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
9329         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
9330         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
9331         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
9332         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
9333         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
9334         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
9335         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
9336         (STRCPY): Support SSE2 and SSSE3 versions.
9337
9338 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
9339
9340         [BZ #12874]
9341         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
9342         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
9343         kernels which artificially limit size of requests.
9344
9345 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9346
9347         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9348         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
9349         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
9350         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
9351         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
9352         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
9353         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
9354         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
9355         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
9356         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
9357         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
9358         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
9359         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
9360         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
9361         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
9362         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9363         Enable unaligned load optimization for Intel Core i3, i5 and i7
9364         processors.
9365         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
9366         Define.
9367         (index_Fast_Unaligned_Load): Define.
9368         (HAS_FAST_UNALIGNED_LOAD): Define.
9369
9370 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
9371
9372         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
9373
9374 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
9375
9376         [BZ #12907]
9377         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
9378         until it is clear that the information is realy needed.
9379         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
9380
9381 2011-06-22  Andreas Schwab  <schwab@redhat.com>
9382
9383         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
9384
9385 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
9386
9387         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
9388         /sys/devices/system/cpu/online if it is usable.
9389
9390         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
9391         reading the information from the /proc filesystem to once a second.
9392
9393 2011-06-21  Andreas Jaeger  <aj@suse.de>
9394
9395         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
9396         NULL after inclusion of kernel headers.
9397
9398 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
9399
9400         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
9401         calls to internal_setent.
9402
9403         [BZ #12885]
9404         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
9405         addresses using gethostbyname4_r ignore IPv4 addresses.
9406
9407         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
9408         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
9409
9410         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
9411
9412 2011-06-20  David S. Miller  <davem@davemloft.net>
9413
9414         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
9415         inclusions.
9416         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
9417
9418         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
9419         (elf_irel): Use it.
9420         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
9421         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
9422         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
9423         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
9424         * sysdeps/x86_64/dl-irel.h: Likewise.
9425
9426         * elf/dl-runtime.c: Use elf_ifunc_invoke.
9427         * elf/dl-sym.c: Likewise.
9428
9429 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9430
9431         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
9432         need to dereference resplen2.
9433
9434 2011-06-14  Andreas Schwab  <schwab@redhat.com>
9435
9436         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
9437
9438 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9439
9440         * Makeconfig: Define vardbdir and inst_vardbdir.
9441         * nss/Makefile: Add rules to install db-Makefile.
9442
9443         * nss/nss_db/db-XXX.c: Cleanup.
9444
9445         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
9446         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
9447         GLIBC_PRIVATE.
9448         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
9449         * nss/makedb.c: Implement -g option to specify that value strings
9450         are generated and should not be added to table iterated over for
9451         get*ent calls.
9452         * nss/nss_db/db-initgroups.c: New file.
9453
9454         * nss/getent.c: Add support for initgroups lookups through getgrouplist
9455         interface.
9456
9457         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
9458         (internal_getgrouplist): Adjust to name change.
9459         Update use_initgroups_entry if this is not the first call.
9460         * nss/databases.def: Add initgroups entry.
9461
9462         * nss/makedb.c (compute_tables): Check result of multiple hash table
9463         sizes to minimize maximum chain length.
9464
9465 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
9466
9467         * Versions.def: Add entry for libnss_db.
9468         * shlib-versions: Likewise.
9469         * nss/Makefile: Add rules to build libnss_db.
9470         * nss/Versions: Add libnss_db information.  Organize libnss_files
9471         entries better.
9472         * nss/db-Makefile: Add gshadow support.  Change rules for the new
9473         makedb progra.  Some minor improvements to generate smaller files.
9474         * nss/nss_db/nss_db.h: Move NSS database header data structures to
9475         here from...
9476         * nss/makedb.c: ...here.
9477         Improve database format to be smaller and require less memory at
9478         runtime.
9479         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
9480         db anymore.
9481         * nss/nss_db/db-netgrp.c: Likewise.
9482         * nss/nss_db/db-open.c: Likewise.
9483         * nss/nss_files/flies-XXX.x: Adjust comments.
9484         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
9485         * nss/nss_files/files-grp.c: Likewise.
9486         * nss/nss_files/files-hosts.c: Likewise.
9487         * nss/nss_files/files-network.c: Likewise.
9488         * nss/nss_files/files-proto.c: Likewise.
9489         * nss/nss_files/files-pwd.c: Likewise.
9490         * nss/nss_files/files-rpc.c: Likewise.
9491         * nss/nss_files/files-service.c: Likewise.
9492         * nss/nss_files/files-sgrp.c: Likewise.
9493         * nss/nss_files/files-spwd.c: Likewise.
9494         * nss/nss_db/db-alias.c: Removed.
9495         * nss/nss_db/dummy-db.h: Removed.
9496
9497 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
9498
9499         * nss/makedb.c: Rewritten to not use database library.
9500         * nss/Makefile: Update to build new makedb program.
9501
9502 2011-06-14  Andreas Jaeger  <aj@suse.de>
9503
9504         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
9505         memset declaration.
9506
9507 2011-06-10  Andreas Schwab  <schwab@redhat.com>
9508
9509         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
9510         tmpbuf.
9511
9512 2011-06-10  Roland McGrath  <roland@hack.frob.com>
9513
9514         * Makerules (shlib.lds): Fail if the linker script comes out empty.
9515         * elf/Makefile ($(objpfx)ld.so): Likewise.
9516
9517         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
9518         Don't list ld.so twice in dependencies.
9519
9520         * posix/bug-regex31.c: Include <stdlib.h>.
9521
9522         * nscd/hstcache.c (cache_addhst): Remove unused variable.
9523
9524         * nis/nss_compat/compat-spwd.c
9525         (getspent_next_nss_netgr): Remove unused variable.
9526         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
9527
9528         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
9529         nonmembers" output to use the right array.
9530
9531         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
9532
9533         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
9534
9535         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
9536         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
9537         * catgets/gencat.c (read_input_file): Likewise.
9538         * locale/programs/locarchive.c (enlarge_archive): Likewise.
9539
9540         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
9541         variable definition inside #if's controlling its use.
9542
9543         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
9544
9545         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
9546
9547         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
9548
9549         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
9550         unreachable code.
9551
9552         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
9553
9554         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
9555         * configure: Regenerated.
9556
9557         * Makerules: Revert last change.
9558         * elf/Makefile: Likewise.
9559
9560 2011-06-09  Roland McGrath  <roland@hack.frob.com>
9561
9562         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
9563         * elf/Makefile ($(objpfx)librtld.os): Likewise.
9564         (reloc-link): Likewise.
9565
9566 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
9567
9568         * elf/Makefile: Add rules to build pldd.
9569         * elf/pldd.c: New file.
9570         * elf/pldd-xx.c: New file.
9571
9572 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
9573
9574         * version.h: Update for 2.15 development version.
9575
9576 2011-06-07  David S. Miller  <davem@davemloft.net>
9577
9578         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
9579         ifuncs.
9580         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
9581         elf_machine_lazy_rel): Likewise.
9582         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9583         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
9584         elf_machine_lazy_rel): Likewise.
9585         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
9586         dl_hwcap via passed in argument.
9587         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
9588         Likewise.
9589
9590 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9591
9592         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
9593
9594 2011-06-06  Roland McGrath  <roland@hack.frob.com>
9595
9596         [BZ #12849]
9597         * manual/fdl-1.1.texi: New file, verbatim from:
9598         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
9599         * manual/lgpl-2.1.texi: New file, verbatim from:
9600         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
9601         * manual/Makefile (licenses): New variable, list those new file names.
9602         (texis): Use it.
9603         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
9604
9605         * manual/fdl.texi: File removed.
9606         * manual/lesser.texi: File removed.
9607         * manual/libc.texinfo (Copying, Documentation License):
9608         Use new @include file names, put @appendix directive before @include.
9609
9610 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9611
9612         [BZ #12841]
9613         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
9614         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
9615         (mq_open): Add __NTH.
9616
9617 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
9618
9619         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9620         Assume Intel Core i3/i5/i7 processor if AVX is available.
9621
9622 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9623
9624         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9625         typo.
9626
9627 2011-05-31  Andreas Schwab  <schwab@redhat.com>
9628
9629         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
9630         memory.  Use alloca_account.  Fix memory leak when retrying.
9631
9632 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9633
9634         * version.h (RELEASE): Bump for 2.14 release.
9635         * include/features.h (__GLIBC_MINOR__): Bump to 14.
9636
9637         * config.make.in (RANLIB): Remove entry.
9638
9639 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
9640
9641         * po/Makefile (po-sed-cmd): Add ksh to extensions.
9642         (libc.pot): Work around missing support for .ksh extension in xgettext.
9643
9644         [BZ #12684]
9645         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
9646         if both request failed.
9647         (send_dg): In case of server errors clear resplen or *resplen2.
9648
9649         [BZ #12454]
9650         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
9651         when there are multiple maps.
9652         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
9653         (_dl_fini): Remove test here.
9654
9655         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
9656
9657 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
9658
9659         [BZ #12350]
9660         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9661         bit from old_res_options.
9662         (gaih_inet): Likewise.
9663
9664         [BZ #11099]
9665         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
9666         as signed.
9667
9668         * resolv/res_init.c (res_setoptions): Make the code more compact.
9669
9670         [BZ #11558]
9671         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
9672         set RES_USEVC.
9673
9674         [BZ #11634]
9675         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9676
9677         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9678
9679         [BZ #11781]
9680         * malloc/malloc.h: Declare malloc hook variables as volatile.
9681
9682         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9683         in last patch.
9684
9685         [BZ #11799]
9686         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9687         raise in the comment.
9688         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9689         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9690         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9691
9692 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9693
9694         [BZ #12811]
9695         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9696         grow the buffers more if it already has to be sufficient.
9697         (build_wcs_upper_buffer): Likewise.
9698         * posix/regexec.c (check_matching): Likewise.
9699         (clean_state_log_if_needed): Likewise.
9700         (extend_buffers): Don't enlarge buffers beyond size of the input
9701         buffer.
9702         Patches mostly by Emil Wojak <emil@wojak.eu>.
9703         * posix/bug-regex32.c: New file.
9704         * posix/Makefile (tests): Add bug-regex32.
9705
9706         * locale/findlocale.c (_nl_find_locale): Return right away if
9707         _nl_explode_name failed.
9708         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9709
9710         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9711
9712         * debug/xtrace.sh: Unify messages.
9713         * malloc/memusage.sh: Likewise.
9714
9715         [BZ #12813]
9716         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9717         time symbol from vDSO.  Substitute with vsyscall if not available.
9718         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9719         __vdso_time.
9720
9721         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9722         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9723         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9724         Add sendmmsg and internal_sendmmsg.
9725         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9726         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9727         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9728
9729         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9730         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9731         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9732
9733 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9734
9735         [BZ #12813]
9736         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9737         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9738         available.
9739         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9740         __vdso_getcpu.
9741
9742         [BZ #12814]
9743         * iconvdata/Makefile (tests): Add bug-iconv9.
9744         * iconvdata/bug-iconv9.c: New file.
9745
9746 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9747
9748         [BZ #12814]
9749         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9750
9751 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9752
9753         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9754         (struct user_regs_struct): Change intcs field back to cs.
9755
9756 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9757
9758         * po/ja.po: Update from translation team.
9759
9760 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9761
9762         [BZ #12795]
9763         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9764         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9765
9766 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9767
9768         * stdlib/longlong.h: Update from GCC.
9769
9770 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9771
9772         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9773         parameter name.
9774         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9775         Add parameter name.
9776         (__sysconf): Pass it down.
9777
9778 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9779
9780         [BZ #12671]
9781         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9782         some situations.
9783         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9784         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9785         add in in __libc_use_alloca calls.  Adjust callers.
9786         (glob): Use malloc in some situations.
9787
9788         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9789         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9790         pltexit.
9791
9792 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9793
9794         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9795         and CLOCK_BOOTTIME_ALARM.
9796
9797         [BZ #12782]
9798         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9799         is returned.
9800
9801         * string/_strerror.c (__strerror_r): Print negative errors as signed
9802         numbers.
9803
9804         [BZ #12777]
9805         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9806         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9807         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9808
9809         * configure.in: Fix typo in redirection and correct removal of test
9810         files in two cases.
9811
9812         [BZ #12788]
9813         * locale/setlocale.c (new_composite_name): Fix test to check for
9814         identical name of all categories.
9815
9816         [BZ #12792]
9817         * libio/filedoalloc.c (local_isatty): New function.
9818         (_IO_file_doallocate): Use local_isatty.
9819         * stdio-common/perror.c (perror): In case a new stream is used
9820         forward the stream error.
9821         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9822         error flag.
9823
9824 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9825
9826         [BZ #11869]
9827         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9828         alloca.
9829         * include/alloca.h (extend_alloca_account): Define.
9830
9831         [BZ #11857]
9832         * posix/regex.h: Fix comments with documentation of user-accessible
9833         fields after compilation and describe correct free'ing of pattern
9834         after re_compile_pattern.
9835         Patch by Reuben Thomas <rrt@sc3d.org>.
9836
9837 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9838
9839         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9840         and -mno-altivec to prevent the compiler from using Altivec and/or
9841         VSX instructions when the corresponding registers are not available.
9842
9843 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9844
9845         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9846
9847 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9848
9849         * libio/freopen.c (freopen): Use __dup2, not dup2.
9850         * libio/freopen64.c (freopen64): Likewise.
9851
9852 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9853
9854         [BZ #12775]
9855         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9856         * math/Makefile (tests): Add test-powl.
9857         (CFLAGS-test-powl.c): Define.
9858         * math/test-powl.c: New file.
9859
9860 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9861
9862         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9863
9864 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9865
9866         [BZ #11837]
9867         * iconvdata/gb18030.c: Update to GB18020-2005.
9868
9869 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9870
9871         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9872         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9873         Patch by Aharon Robbins <arnold@skeeve.com>.
9874
9875         [BZ #11892]
9876         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9877         on the stack.
9878
9879         [BZ #11895]
9880         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9881         through underflows.
9882
9883         [BZ #12766]
9884         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9885         point to strings before performing equality test for error_one_per_line
9886         mode.
9887
9888         [BZ #11697]
9889         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9890
9891         [BZ #11820]
9892         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9893         (struct user_fpregs_struct): Avoid __uint*_t types.
9894
9895         [BZ #6420]
9896         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9897         symbol info.  Use it instead of calling _dl_addr locally.
9898         (lock_and_info): New function.
9899         (tr_freehook): Call lock_and_info and pass symbol info as additional
9900         parameter to tr_where.
9901         (tr_mallochook): Likewise.
9902         (tr_reallochook): Likewise.
9903         (tr_memalignhook): Likewise.
9904
9905         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9906         used and couldn't be at all thread-safe.
9907
9908 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9909
9910         * libio/freopen.c (freopen): Don't close old file descriptor
9911         before the new one is opened.  Instead dup the new file descriptor
9912         to the old one after the new stream is created.
9913         * libio/freopen64.c (freopen64): Likewise.
9914         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9915         * libio/fileops.c (_IO_new_file_close_it): Handle new
9916         _IO_FLAGS2_NOCLOSE flag.
9917         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9918         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9919         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9920         _IO_FLAGS2_NOCLOSE flag.
9921         * include/unistd.h: Add hidden_proto for dup3.
9922         Define __have_dup3.
9923         * io/dup3.c: Define hidden symbol.
9924         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9925
9926         [BZ #7101]
9927         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9928         when an incomplete long option is used.
9929         * posix/tst-getopt_long1.c: New file.
9930         * posix/Makefile (tests): Add tst-getopt_long1.
9931
9932         [BZ #10138]
9933         * scripts/config.guess: Update from autoconf-2.68.
9934         * scripts/config.sub: Likewise.
9935
9936         [BZ #10157]
9937         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9938         tests into ...
9939         (has_cpuclock): ...this.  New function.
9940         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9941         macro here based on has_cpuclock code.
9942
9943         [BZ #10149]
9944         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9945         First byte (not low byte) is now always NUL.
9946         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9947
9948         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9949         Use non-cancelable interfaces.
9950
9951         [BZ #9809]
9952         * locale/iso-639.def: Add entry for Sorani.
9953
9954         [BZ #11901]
9955         * include/stdlib.h: Move include protection to the right place.
9956         Define abort_msg_s.  Declare __abort_msg with it.
9957         * stdlib/abort.c (__abort_msg): Adjust type.
9958         * assert/assert.c (__assert_fail_base): New function.  Majority
9959         of code from __assert_fail.  Allocate memory for __abort_msg with
9960         mmap.
9961         (__assert_fail): Now call __assert_fail_base.
9962         * assert/assert-perr.c: Remove bulk of implementation.  Use
9963         __assert_fail_base.
9964         * include/assert.hL Declare __assert_fail_base.
9965         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9966         mmap.
9967         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9968
9969 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9970
9971         [BZ #11952]
9972         [BZ #12453]
9973         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9974         until all modules are registered in the DTV.
9975         * elf/Makefile: Add rules to build and run tst-tls19.
9976         * elf/tst-tls19.c: New file.
9977         * elf/tst-tls19mod1.c: New file.
9978         * elf/tst-tls19mod2.c: New file.
9979         * elf/tst-tls19mod3.c: New file.
9980         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9981
9982         [BZ #12083]
9983         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9984         correctly.
9985
9986         [BZ #12601]
9987         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9988         two-byte sequence errors.
9989         * iconvdata/Makefile (tests): Add bug-iconv8.
9990         * iconvdata/bug-iconv8.c: New file.
9991
9992         [BZ #12626]
9993         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9994         buf2 definition.
9995
9996         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9997
9998         [BZ #12432]
9999         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
10000         (dummy_getcfa): New function.
10001         (init): Get _Unwind_GetCFA address, use dummy if not found.
10002         (backtrace_helper): In recursion check, also check whether CFA changes.
10003         (__backtrace): Completely initialize arg.
10004
10005         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
10006         storing incomplete byte sequence in state object.  Avoid testing for
10007         guaranteed too small input if we know there is enough data available.
10008
10009 2011-05-11  Andreas Schwab  <schwab@redhat.com>
10010
10011         * Makeconfig (+link-pie): Indent.
10012         * Rules (binaries-pie): Define if $(have-fpie) and
10013         $(build-shared).
10014         (binaries-shared): Also filter out $(binaries-pie).
10015         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
10016         * nscd/Makefile (others-pie): Add nscd.
10017         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
10018         ($(objpfx)nscd): Remove command override.
10019         * login/Makefile (others-pie): Add pt_chown.
10020         ($(objpfx)pt_chown): Remove command override.
10021         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
10022         remove command overrides.
10023
10024 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
10025
10026         * libio/tst_putwc.c: Fix error messages.
10027
10028         [BZ #12724]
10029         * libio/fileops.c (_IO_new_file_close_it): Always flush when
10030         currently writing and seek to current position when not.
10031         * libio/Makefile (tests): Add bug-fclose1.
10032         * libio/bug-fclose1.c: New file.
10033
10034 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
10035
10036         [BZ #12511]
10037         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
10038         don't set DF_1_NODELETE here.
10039         (do_lookup_x): When entering new entry test for copy relocation
10040         and if necessary set DF_1_NODELETE flag.
10041         * elf/tst-unique4.cc: New file.
10042         * elf/tst-unique4.h: New file.
10043         * elf/tst-unique4lib.cc: New file.
10044         * elf/Makefile: Add rules to build and run tst-unique4.
10045         Patch by Piotr Bury <pbury@goahead.com>.
10046
10047 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10048
10049         [BZ #12052]
10050         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
10051
10052         [BZ #12625]
10053         * misc/mntent_r.c (addmntent): Flush the stream after the output
10054
10055         [BZ #12393]
10056         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
10057         (is_trusted_path_normalize): Skip initial colon.  Append slash
10058         to empty buffer.  Duplicate is_trusted_path code but allow
10059         constructed patch to be prefix.
10060         (is_dst): Allow $ORIGIN followed by /.
10061         (_dl_dst_substitute): Correct clearing of check_for_trusted.
10062         Correct testing of result of is_trusted_path_normalize
10063         (decompose_rpath): Fix warning.
10064
10065 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
10066
10067         [BZ #11257]
10068         * grp/initgroups.c (internal_getgrouplist): When we found the service
10069         list through the initgroups entry in nsswitch.conf do not always
10070         continue on a successful lookup.  Don't always use the
10071         __nss_group_database value if it is set.
10072         * nss/nsswitch.conf (initgroups): Change action for successful db
10073         lookup to continue for compatibility.
10074
10075 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
10076
10077         [BZ #11532]
10078         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
10079         and CP774 modules.
10080         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
10081         and CP774 modules.
10082         * iconvdata/tst-tables.sh: Likewise.
10083         * iconvdata/cp770.c: New file.
10084         * iconvdata/cp771.c: New file.
10085         * iconvdata/cp772.c: New file.
10086         * iconvdata/cp773.c: New file.
10087         * iconvdata/cp774.c: New file.
10088         * iconvdata/testdata/CP770: New file.
10089         * iconvdata/testdata/CP770..UTF8: New file.
10090         * iconvdata/testdata/CP771: New file.
10091         * iconvdata/testdata/CP771..UTF8: New file.
10092         * iconvdata/testdata/CP772: New file.
10093         * iconvdata/testdata/CP772..UTF8: New file.
10094         * iconvdata/testdata/CP773: New file.
10095         * iconvdata/testdata/CP773..UTF8: New file.
10096         * iconvdata/testdata/CP774: New file.
10097         * iconvdata/testdata/CP774..UTF8: New file.
10098
10099         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
10100         END CHARMAP line.
10101         * iconvdata/gen-8bit-gap.sh: Likewise.
10102         * iconvdata/gen-8bit.sh: Likewise.
10103
10104         * locale/iso-639.def: Add ary entry.
10105
10106         [BZ #11258]
10107         * locale/C-translit.h.in: Add U20A1 transliteration.
10108
10109         [BZ #12178]
10110         * locale/iso-639.def: Add wae entry.
10111         Patch by Kevin Bortis <bortis@translate-wae.ch>.
10112
10113         [BZ #12545]
10114         * locale/programs/localedef.c (construct_output_path): Use ssize_t
10115         for n.
10116
10117         [BZ #12711]
10118         * locale/C-translit.h.in: Add entry for U20B9.
10119         Patch by pravin.d.s@gmail.com.
10120
10121 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
10122
10123         [BZ #12713]
10124         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
10125         ENAMETOOLONG use generic getcwd.
10126         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
10127         in rtld.  Use *stat64.
10128         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
10129         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
10130         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
10131         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
10132         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
10133         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
10134         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
10135         __fstatat64 macros.
10136         * include/dirent.h: Add libc_hidden_proto for rewinddir.
10137         * dirent/rewinddir.c: Add libc_hidden_def.
10138         * sysdeps/mach/hurd/rewinddir.c: Likewise.
10139         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
10140
10141         * include/dirent.h (__alloc_dir): Add flags parameter.
10142         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
10143         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
10144         __alloc_dir.
10145         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
10146         from fdopendir if O_CLOEXEC is already set.
10147
10148 2011-03-15  Alan Modra  <amodra@gmail.com>
10149
10150         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
10151         l_tls_firstbyte_offset non-zero.  Save padding offset in
10152         l_tls_firstbyte_offset for later use.
10153         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
10154         freeing static tls block.
10155
10156 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
10157
10158         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
10159         where #ifdef was intended.  The intent is to prevent ARG_MAX from
10160         being defined by the kernel headers.
10161
10162 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
10163
10164         [BZ #12734]
10165         * resolv/resolv.h: Define RES_NOTLDQUERY.
10166         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
10167         no-tld-query and set RES_NOTLDQUERY.
10168         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
10169         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
10170         modern BIND to search name as TLD unless forbidden.
10171
10172 2011-05-07  Petr Baudis  <pasky@suse.cz>
10173             Ulrich Drepper  <drepper@gmail.com>
10174
10175         [BZ #12393]
10176         * elf/dl-load.c (fillin_rpath): Move trusted path check...
10177         (is_trusted_path): ...to here.
10178         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
10179         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
10180         using is_trusted_path_normalize() in setuid scripts.
10181
10182 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10183
10184         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
10185         __BEGIN/__END_DECLS.
10186
10187 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
10188
10189         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
10190         NSS_STATUS_NOTFOUND if no record was found.
10191
10192 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10193
10194         * sunrpc/Makefile (headers): Add rpc/netdb.h.
10195         (headers-not-in-tirpc): Remove rpc/netdb.h
10196         * resolv/netdb.h: Revert last change.
10197
10198 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10199
10200         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
10201         circular dependency between libgcc.a and libc.a.
10202
10203 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10204
10205         * resolv/netdb.h: Don't include <rpc/netdb.h>.
10206         * nis/Makefile: Don't install rpcsvc/*.
10207         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
10208         instead of <rpc/types.h>.
10209         (MAXHOSTNAMELEN): Define.
10210
10211 2011-05-03  Andreas Schwab  <schwab@redhat.com>
10212
10213         * elf/ldconfig.c (add_dir): Don't crash on empty path.
10214
10215 2011-04-28  Maciej Babinski  <mbabinski@google.com>
10216
10217         [BZ #12714]
10218         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
10219         gethostbyname4_r when IPv6 results are possible.
10220
10221 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
10222
10223         [BZ #12723]
10224         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
10225         _PC_PIPE_BUF handling.
10226
10227 2011-04-30  Bruno Haible  <bruno@clisp.org>
10228
10229         [BZ #12717]
10230         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
10231         * resolv/netdb.h (getnameinfo): Change type of flags parameter
10232         to 'int'.
10233         * inet/getnameinfo.c (getnameinfo): Likewise.
10234
10235 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
10236
10237         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
10238         to groups setting in database lookup.
10239         * nss/nsswitch.conf: Add initgroups entry.
10240
10241 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
10242
10243         [BZ #12685]
10244         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
10245         mode string.
10246         Patch by Eric Blake <eblake@redhat.com>.
10247
10248 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
10249
10250         * sunrpc/Makefile (need-export-routines): Add svc_run.
10251         (routines): Remove svc_run.
10252         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
10253         * sunrpc/clnt_perr.c (clnt_perrno): Export.
10254         * sunrpc/svc_run.c (svc_run): Likewise.
10255         * sunrpc/svc_udp.c (svcudp_create): Likewise.
10256
10257 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
10258
10259         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
10260         problem in reallocation in last patch.
10261
10262 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
10263
10264         * sunrpc/Makefile: Move inclusion of Rules.
10265
10266 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
10267
10268         * nss/nss_files/files-initgroups.c: New file.
10269         * nss/Makefile (libnss_files-routines): Add files-initgroups.
10270         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
10271         _nss_files_initgroups_dyn.
10272
10273 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
10274
10275         * elf/elf.h (R_ARM_IRELATIVE): Define.
10276
10277 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
10278
10279         * po/ru.po: Update from translation team.
10280
10281 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
10282
10283         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
10284         dependencies.
10285
10286 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
10287
10288         [BZ #12653]
10289         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
10290         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
10291         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10292         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10293         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10294
10295 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
10296
10297         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
10298         differing bytes.
10299         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10300         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10301         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10302
10303 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
10304
10305         [BZ #12420]
10306         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
10307         storing it.
10308         * stdlib/bug-getcontext.c: New file.
10309         * stdlib/Makefile: Add rules to build and run bug-getcontext.
10310
10311 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10312
10313         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
10314         instructions into .machine "z9-109".
10315         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
10316         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
10317
10318 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10319
10320         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
10321         between environment variables and auxiliary vector.
10322
10323 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
10324
10325         * Makefile: Add rules to build linkobj/libc.so.
10326         * include/libc-symbols.h: Define libc_hidden_nolink.
10327         * include/rpc/auth.h: Mark functions which are to be hidden.
10328         * include/rpc/auth_des.h: Likewise.
10329         * include/rpc/auth_unix.h: Likewise.
10330         * include/rpc/clnt.h: Likewise.
10331         * include/rpc/des_crypt.h: Likewise.
10332         * include/rpc/key_prot.h: Likewise.
10333         * include/rpc/pmap_clnt.h: Likewise.
10334         * include/rpc/pmap_prot.h: Likewise.
10335         * include/rpc/pmap_rmt.h: Likewise.
10336         * include/rpc/rpc_msg.h: Likewise.
10337         * include/rpc/svc.h: Likewise.
10338         * include/rpc/svc_auth.h: Likewise.
10339         * include/rpc/xdr.h: Likewise.
10340         * nis/Makefile: Link all DSOs against linkobj/libc.so.
10341         * nss/Makefile: Likewise.
10342         * sunrpc/Makefile: Don't install headers.  Build library with normal
10343         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
10344         * sunrpc/auth_des.c: Hide exported symbols by default, export some
10345         for the compat linking library.  Remove use of INTDEF/INTUSE.
10346         * sunrpc/auth_none.c: Likewise.
10347         * sunrpc/auth_unix.c: Likewise.
10348         * sunrpc/authdes_prot.c: Likewise.
10349         * sunrpc/authuxprot.c: Likewise.
10350         * sunrpc/clnt_gen.c: Likewise.
10351         * sunrpc/clnt_perr.c: Likewise.
10352         * sunrpc/clnt_raw.c: Likewise.
10353         * sunrpc/clnt_simp.c: Likewise.
10354         * sunrpc/clnt_tcp.c: Likewise.
10355         * sunrpc/clnt_udp.c: Likewise.
10356         * sunrpc/clnt_unix.c: Likewise.
10357         * sunrpc/des_crypt.c: Likewise.
10358         * sunrpc/des_soft.c: Likewise.
10359         * sunrpc/get_myaddr.c: Likewise.
10360         * sunrpc/key_call.c: Likewise.
10361         * sunrpc/key_prot.c: Likewise.
10362         * sunrpc/netname.c: Likewise.
10363         * sunrpc/pm_getmaps.c: Likewise.
10364         * sunrpc/pm_getport.c: Likewise.
10365         * sunrpc/pmap_clnt.c: Likewise.
10366         * sunrpc/pmap_prot.c: Likewise.
10367         * sunrpc/pmap_prot2.c: Likewise.
10368         * sunrpc/pmap_rmt.c: Likewise.
10369         * sunrpc/publickey.c: Likewise.
10370         * sunrpc/rpc_cmsg.c: Likewise.
10371         * sunrpc/rpc_common.c: Likewise.
10372         * sunrpc/rpc_dtable.c: Likewise.
10373         * sunrpc/rpc_prot.c: Likewise.
10374         * sunrpc/rpc_thread.c: Likewise.
10375         * sunrpc/rtime.c: Likewise.
10376         * sunrpc/svc.c: Likewise.
10377         * sunrpc/svc_auth.c: Likewise.
10378         * sunrpc/svc_authux.c: Likewise.
10379         * sunrpc/svc_raw.c: Likewise.
10380         * sunrpc/svc_run.c: Likewise.
10381         * sunrpc/svc_simple.c: Likewise.
10382         * sunrpc/svc_tcp.c: Likewise.
10383         * sunrpc/svc_udp.c: Likewise.
10384         * sunrpc/svc_unix.c: Likewise.
10385         * sunrpc/svcauth_des.c: Likewise.
10386         * sunrpc/xcrypt.c: Likewise.
10387         * sunrpc/xdr.c: Likewise.
10388         * sunrpc/xdr_array.c: Likewise.
10389         * sunrpc/xdr_float.c: Likewise.
10390         * sunrpc/xdr_intXX_t.c: Likewise.
10391         * sunrpc/xdr_mem.c: Likewise.
10392         * sunrpc/xdr_rec.c: Likewise.
10393         * sunrpc/xdr_ref.c: Likewise.
10394         * sunrpc/xdr_sizeof.c: Likewise.
10395         * sunrpc/xdr_stdio.c: Likewise.
10396
10397 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
10398
10399         [BZ #12650]
10400         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
10401         * sysdeps/ia64/dl-tls.h: Likewise.
10402         * sysdeps/powerpc/dl-tls.h: Likewise.
10403         * sysdeps/s390/dl-tls.h: Likewise.
10404         * sysdeps/sh/dl-tls.h: Likewise.
10405         * sysdeps/sparc/dl-tls.h: Likewise.
10406         * sysdeps/x86_64/dl-tls.h: Likewise.
10407         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
10408
10409 2011-03-14  Andreas Schwab  <schwab@redhat.com>
10410
10411         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
10412         rpath element also skip the following colon.
10413         (expand_dynamic_string_token): Add is_path parameter and pass
10414         down to DL_DST_REQUIRED and _dl_dst_substitute.
10415         (decompose_rpath): Call expand_dynamic_string_token with
10416         non-zero is_path.  Ignore empty rpaths.
10417         (_dl_map_object_from_fd): Call expand_dynamic_string_token
10418         with zero is_path.
10419
10420 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
10421
10422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
10423         Make cancelable.
10424
10425 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
10426
10427         [BZ #12655]
10428         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
10429         Patch by Filipe David Manana <fdmanana@apache.org>.
10430
10431 2011-04-07  Andreas Schwab  <schwab@redhat.com>
10432
10433         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
10434         Maintain aligned stack.
10435         (CHECK_RSP): Remove unused macro.
10436
10437 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
10438
10439         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
10440         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10441
10442 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
10443
10444         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
10445
10446         * include/features.h: Mention __USE_XOPEN2K8 in comment.
10447
10448 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10449
10450         [BZ #12518]
10451         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
10452         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
10453         * sysdeps/x86_64/memmove.c: New file.
10454         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
10455         (memcpy): Renamed to ...
10456         (__new_memcpy): This.
10457         (memcpy): Provide GLIBC_2_14 memcpy.
10458         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
10459         (memcpy): Provide GLIBC_2_2_5 memcpy.
10460
10461 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10462
10463         [BZ #12631]
10464         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
10465
10466 2011-03-30  Andreas Schwab  <schwab@redhat.com>
10467
10468         * misc/syncfs.c: New file.
10469         * misc/Makefile (routines): Add syncfs.
10470         * posix/unistd.h: Declare syncfs.
10471         * sysdeps/unix/syscalls.list: Add syncfs.
10472
10473 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10474
10475         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
10476         open_by_handle_at.
10477         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10478         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10479         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10480         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10481         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10482         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10483         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10484
10485 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10486
10487         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
10488         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10489         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10490         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10491         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10492         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10493         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10494
10495         * io/Makefile: Compile fallocate.c, fallocate64.c, and
10496         sync_file_range.c with -fexceptions.
10497         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
10498         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
10499         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
10500         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
10501         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10502         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10503         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
10504         sync_file_range as cancellation point
10505         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
10506         now a wrapper around __call_sync_file_range with cancellation handling.
10507         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
10508         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
10509         function name to __call_sync_file_range.
10510         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
10511         Add call_sync_file_range.
10512
10513 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10514
10515         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10516         bits/timex.h.
10517
10518 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10519
10520         * iconv/iconv.h: Fix typo in comment.
10521         * io/fcntl.h: Likewise.
10522         * libio/stdio.h: Likewise.
10523         * posix/spawn.h: Likewise.
10524         * posix/unistd.h: Likewise.
10525         * stdlib/stdlib.h: Likewise.
10526         * time/time.h: Likewise.
10527         * wcsmbs/wchar.h: Likewise.
10528
10529         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
10530         open_by_handle): Add.
10531         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
10532         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
10533         Augment a few comments.
10534         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10535         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10536         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10537         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10538         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10539         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
10540         open_by_handle.
10541
10542         * io/fcntl.h (AT_EMPTY_PATH): Define.
10543
10544 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
10545
10546         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
10547         * sysdeps/unix/sysv/linux/bits/time.h: New file.
10548         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
10549         to...
10550         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
10551         * Versions.def: Add GLIBC_2.14.
10552         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
10553         Export.
10554
10555 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
10556
10557         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
10558         round counter.
10559         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10560
10561 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10562
10563         [BZ #12597]
10564         * string/test-strncmp.c (do_page_test): New function.
10565         (check2): Likewise.
10566         (test_main): Call check2.
10567         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
10568
10569 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
10570
10571         [BZ #12587]
10572         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10573         Handle cache information in CPU leaf 4.
10574         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10575
10576 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
10577
10578         [BZ #12583]
10579         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
10580         character representation.
10581         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
10582
10583 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
10584
10585         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
10586         END(__isnan) to END(__isnanf) to match function entry point/label
10587         EALIGN(__isnanf,...).
10588
10589 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10590
10591         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
10592
10593 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
10594
10595         [BZ #12510]
10596         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
10597         copy from the symbol referenced in the relocation to initialize the
10598         used variable.
10599         Patch by Piotr Bury <pbury@goahead.com>.
10600         * elf/Makefile: Add rules to build and tst-unique3.
10601         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
10602         * elf/tst-unique3.cc: New file.
10603         * elf/tst-unique3.h: New file.
10604         * elf/tst-unique3lib.cc: New file.
10605         * elf/tst-unique3lib2.cc: New file.
10606
10607         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
10608
10609 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
10610
10611         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
10612         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
10613         to _start.
10614
10615 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
10616
10617         * elf/dl-load.c (_dl_map_object): If we are looking for the first
10618         to-be-loaded object along a path to loader is ld.so.
10619
10620 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10621             Ulrich Drepper  <drepper@gmail.com>
10622
10623         * sysdeps/x86_64/memset.S: After aligning destination, code
10624         branches to different locations depending on the value of
10625         misalignment, when multiarch is enabled. Fix this.
10626
10627 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10628
10629         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
10630         Set _x86_64_preferred_memory_instruction for AMD processsors.
10631         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10632         Set bit_Prefer_SSE_for_memop for AMD processors.
10633
10634 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
10635
10636         * libio/fmemopen.c (fmemopen): Optimize a bit.
10637
10638 2011-03-03  Andreas Schwab  <schwab@redhat.com>
10639
10640         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
10641
10642 2011-03-03  Roland McGrath  <roland@redhat.com>
10643
10644         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
10645
10646 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
10647
10648         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
10649         __bzero_ultra1 instead of __memset_ultra1.
10650
10651 2011-02-23  Andreas Schwab  <schwab@redhat.com>
10652             Ulrich Drepper  <drepper@gmail.com>
10653
10654         [BZ #12509]
10655         * include/link.h (struct link_map): Add l_orig_initfini.
10656         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
10657         returning unsuccessfully.
10658         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
10659         close of a file loaded at startup, restore the original l_initfini
10660         list.
10661         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
10662         list, store the pointer.
10663         * elf/Makefile ($(objpfx)noload-mem): New rule.
10664         (noload-ENV): Define.
10665         (tests): Add $(objpfx)noload-mem.
10666         * elf/noload.c: Include <memcheck.h>.
10667         (main): Call mtrace.  Close all opened handles.
10668
10669 2011-02-17  Andreas Schwab  <schwab@redhat.com>
10670
10671         [BZ #12454]
10672         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
10673         dependencies are missing.
10674
10675 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10676
10677         Fix __if_freereq crash: Unlike the generic version which uses free,
10678         Hurd needs munmap.
10679         * sysdeps/mach/hurd/ifreq.h: New file.
10680
10681 2011-01-27  Petr Baudis  <pasky@suse.cz>
10682             Ulrich Drepper  <drepper@gmail.com>
10683
10684         [BZ 12445]#
10685         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10686         to extend_alloca().
10687         * stdio-common/bug23.c: New file.
10688         * stdio-common/Makefile (tests): Add bug23.
10689
10690 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10691             Ulrich Drepper  <drepper@gmail.com>
10692
10693         [BZ #12489]
10694         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10695         before performing relro protection.  At old place add assertion
10696         to make sure nothing changed.
10697
10698 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10699             Glauber de Oliveira Costa  <glommer@gmail.com>
10700
10701         * elf/elf.h: Add new ARM TLS relocs.
10702
10703 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10704
10705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10706         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10707         cast from r3.
10708         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10709         'tests' variable.
10710         * sysdeps/wordsize-64/tst-writev.c: New file.
10711
10712 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10713
10714         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10715         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10716         insns in _dl_start to prevent a TOC reference before relocs are
10717         resolved.
10718
10719 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10720
10721         [BZ #12469]
10722         * Makeconfig: Remove RANLIB definition.
10723         * Makerules: Don't use RANLIB.
10724         * aclocal.m4: Remove ranlib test.
10725         * configure.in: No need to check for ranlib.
10726         * elf/rtld-Rules: Don't use RANLIB.
10727
10728 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10729
10730         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10731         protection macro.
10732         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10733         inclusion protection macro.
10734
10735         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10736         SIGRTMIN and SIGRTMAX and print information in that case only when
10737         SIGRTMIN is defined.
10738
10739 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10740
10741         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10742         arginfo fn returning -1.
10743
10744         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10745         and thousands string is zero terminated.
10746
10747 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10748
10749         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10750         sysdeps/unix/sysv/linux/bits/socket.h.
10751
10752 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10753
10754         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10755         (__CPU_COUNT): Remove old macros.
10756         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10757         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10758         (__CPU_ALLOC, __CPU_FREE): Add macros.
10759         (__sched_cpualloc, __sched_cpufree): Add declarations.
10760
10761 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10762
10763         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10764         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10765         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10766         (readdhstai): Return value of addhstaiX call.
10767         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10768         (addgrbyX): Return value returned by cache_addgr.
10769         (readdgrbyname): Return value returned by addgrbyX.
10770         (readdgrbygid): Likewise.
10771         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10772         (addpwbyX): Return value returned by cache_addpw.
10773         (readdpwbyname): Return value returned by addhstbyX.
10774         (readdpwbyuid): Likewise.
10775         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10776         (addservbyX): Return value returned by cache_addserv.
10777         (readdservbyname): Return value returned by addservbyX:
10778         (readdservbyport): Likewise.
10779         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10780         (addhstbyX): Return value returned by cache_addhst.
10781         (readdhstbyname): Return value returned by addhstbyX.
10782         (readdhstbyaddr): Likewise.
10783         (readdhstbynamev6): Likewise.
10784         (readdhstbyaddrv6): Likewise.
10785         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10786         (readdinitgroups): Return value returned by addinitgroupsX.
10787         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10788         (prune_cache): Keep track of timeout value of re-added entries.
10789         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10790         * nscd/nscd.h: Adjust prototypes of readd* functions.
10791
10792 2011-02-04  Roland McGrath  <roland@redhat.com>
10793
10794         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10795         (nis_stats): Likewise.
10796         * nis/nis_modify.c (nis_modify): Likewise.
10797         * nis/nis_remove.c (nis_remove): Likewise.
10798         * nis/nis_add.c (nis_add): Likewise.
10799
10800         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10801
10802         * posix/fnmatch_loop.c: Add some consts.
10803
10804         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10805
10806 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10807
10808         [BZ #12460]
10809         * config.make.in (config-cflags-novzeroupper): Define.
10810         * configure.in: Substitute libc_cv_cc_novzeroupper.
10811         * elf/Makefile (AVX-CFLAGS): Define.
10812         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10813         (CFLAGS-tst-auditmod4a.c): Likewise.
10814         (CFLAGS-tst-auditmod4b.c): Likewise.
10815         (CFLAGS-tst-auditmod6b.c): Likewise.
10816         (CFLAGS-tst-auditmod6c.c): Likewise.
10817         (CFLAGS-tst-auditmod7b.c): Likewise.
10818         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10819
10820 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10821
10822         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10823         function to the callback.
10824         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10825
10826 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10827
10828         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10829         of errno.
10830
10831 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10832
10833         [BZ #11724]
10834         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10835         of constructors.
10836         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10837         of destructors.
10838         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10839
10840         [BZ #11724]
10841         * elf/Makefile: Add rules to build and run new test.
10842         * elf/tst-initorder.c: New file.
10843         * elf/tst-initorder.exp: New file.
10844         * elf/tst-initordera1.c: New file.
10845         * elf/tst-initordera2.c: New file.
10846         * elf/tst-initordera3.c: New file.
10847         * elf/tst-initordera4.c: New file.
10848         * elf/tst-initorderb1.c: New file.
10849         * elf/tst-initorderb2.c: New file.
10850         * elf/tst-order-a1.c: New file.
10851         * elf/tst-order-a2.c: New file.
10852         * elf/tst-order-a3.c: New file.
10853         * elf/tst-order-a4.c: New file.
10854         * elf/tst-order-b1.c: New file.
10855         * elf/tst-order-b2.c: New file.
10856         * elf/tst-order-main.c: New file.
10857         New test case by George Gensure <werkt0@gmail.com>.
10858
10859 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10860
10861         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10862         decoding ACE if AI_CANONIDN.
10863
10864 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10865
10866         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10867
10868 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10869
10870         * version.h (RELEASE): Bump for 2.13 release.
10871         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10872
10873         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10874
10875         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10876         MADV_NOHUGEPAGE.
10877         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10878         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10879         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10880         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10881         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10882         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10883
10884         * posix/getconf.c: Update copyright year.
10885         * catgets/gencat.c: Likewise.
10886         * csu/version.c: Likewise.
10887         * debug/catchsegv.sh: Likewise.
10888         * debug/xtrace.sh: Likewise.
10889         * elf/ldconfig.c: Likewise.
10890         * elf/ldd.bash.in: Likewise.
10891         * elf/sprof.c (print_version): Likewise.
10892         * iconv/iconv_prog.c: Likewise.
10893         * iconv/iconvconfig.c: Likewise.
10894         * locale/programs/locale.c: Likewise.
10895         * locale/programs/localedef.c: Likewise.
10896         * malloc/memusage.sh: Likewise.
10897         * malloc/mtrace.pl: Likewise.
10898         * nscd/nscd.c (print_version): Likewise.
10899         * nss/getent.c: Likewise.
10900
10901         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10902         PF_CAIF, and PF_ALG.
10903         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10904
10905 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10906
10907         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10908         (modules-names): Use them.
10909         (ifunc-test-modules, ifunc-pie-tests): Define.
10910         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10911         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10912         (test-extras): Likewise.
10913         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10914         $(compile-command.c).
10915         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10916         (all-built-dso): Define.
10917         (check-textrel.out, check-execstack.out): Depend on it.
10918
10919         * configure.in: Don't override --enable-multi-arch.
10920
10921 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10922
10923         [BZ #6812]
10924         * nscd/hstcache.c (tryagain): Define.
10925         (cache_addhst): Return tryagain not notfound for temporary errors.
10926         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10927         failed.
10928
10929 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10930
10931         [BZ #10563]
10932         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10933         to make the syscall.
10934         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10935
10936         [BZ #12378]
10937         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10938         and fall back to matching as normal character if the string ends before
10939         the matching ']' is found.  This is what POSIX requires.
10940         * posix/testfnm.c: Adjust test result.
10941         * posix/globtest.sh: Adjust test result.  Add new test.
10942         * posix/tst-fnmatch.input: Likewise.
10943         * posix/tst-fnmatch2.c: Add new test.
10944
10945 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10946
10947         * elf/Makefile (check-execstack): Revert last change.  Depend on
10948         check-execstack.h.
10949         (check-execstack.h): New target.
10950         (generated): Add check-execstack.h.
10951         * elf/check-execstack.c: Include "check-execstack.h".
10952         (main): Revert last change.
10953         (handle_file): Return zero if GNU_STACK is absent and
10954         DEFAULT_STACK_PERMS doesn't include PF_X.
10955
10956 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10957
10958         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10959         in child fails because the descriptor is already closed.
10960         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10961         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10962         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10963
10964         [BZ #12397]
10965         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10966         syscall.
10967
10968         [BZ #10484]
10969         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10970         temporary buffer used to handle multi lookups locally.
10971         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10972
10973 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10974
10975         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10976         loader is ld.so.
10977
10978 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10979
10980         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10981         alignment for SSE2.
10982
10983 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10984
10985         [BZ #12394]
10986         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10987         characters.  When rounding increased number of integer digits recompute
10988         number of groups.
10989         * stdio-common/tst-grouping.c: New file.
10990         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10991
10992 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10993
10994         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10995         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10996
10997         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10998         void.
10999         * bits/select.h: Likewise.
11000
11001 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
11002
11003         * po/ja.po: Update from translation team.
11004
11005 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
11006
11007         [BZ #11155]
11008         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
11009         implementation just like for lxstat, fxstatat, et al.
11010
11011 2010-12-27  Jim Meyering  <meyering@redhat.com>
11012
11013         [BZ #12348]
11014         * posix/regexec.c (build_trtable): Return failure indication upon
11015         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11016
11017 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
11018
11019         [BZ #12201]
11020         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
11021         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
11022         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
11023         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
11024
11025         [BZ #12207]
11026         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
11027
11028         [BZ #12204]
11029         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
11030         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
11031
11032 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
11033
11034         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
11035         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
11036         script has SORT_BY_INIT_PRIORITY.
11037         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
11038         NO_CTORS_DTORS_SECTIONS is defined.
11039         * elf/soinit.c: Likewise.
11040         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
11041         NO_CTORS_DTORS_SECTIONS is defined.
11042         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
11043         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
11044         * sysdeps/sh/init-first.c: Likewise.
11045         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
11046
11047 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
11048
11049         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
11050         always use the slow path.
11051
11052 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
11053
11054         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
11055         similar rule which adds the sysdep directories to the header search in
11056         order to pick up the correct platform stackinfo.h.
11057         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
11058         perform test if it is, otherwise return successfully without testing.
11059         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
11060         DEFAULT_STACK_PERMS define in stackinfo.h.
11061         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
11062         defined in stackinfo.h.
11063         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
11064         DEFAULT_STACK_PERMS defined in stackinfo.h.
11065         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
11066         * sysdeps/ia64/stackinfo.h: Likewise.
11067         * sysdeps/s390/stackinfo.h: Likewise.
11068         * sysdeps/sh/stackinfo.h: Likewise.
11069         * sysdeps/sparc/stackinfo.h: Likewise.
11070         * sysdeps/x86_64/stackinfo.h: Likewise.
11071         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
11072         PF_X for powerpc64.  Retain PF_X for powerpc32.
11073
11074 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
11075
11076         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
11077         accurately.
11078         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
11079         GETDENTS_64BIT_ALIGNED.
11080
11081 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
11082
11083         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
11084
11085 2010-12-10  Andreas Schwab  <schwab@redhat.com>
11086
11087         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
11088         _GNU_SOURCE.
11089
11090         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
11091         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
11092         Remove __restrict.
11093         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
11094         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
11095
11096 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
11097
11098         [BZ #11655]
11099         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
11100         are initialized.
11101
11102 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
11103
11104         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
11105
11106 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
11107
11108         * po/it.po: Update from translation team.
11109
11110 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
11111
11112         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
11113         unused codes.
11114
11115 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
11116
11117         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
11118
11119 2010-11-24  Andreas Schwab  <schwab@redhat.com>
11120
11121         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
11122         specially.
11123         (gaih_getanswer_slice): Likewise.
11124
11125 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
11126
11127         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
11128
11129 2010-05-31  Petr Baudis  <pasky@suse.cz>
11130
11131         [BZ #11149]
11132         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
11133         silently even in the chroot mode.
11134
11135 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
11136
11137         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
11138         last patch a bit.  Pretty printing
11139
11140 2010-05-31  Petr Baudis <pasky@suse.cz>
11141
11142         [BZ #10085]
11143         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
11144         initialization of skip_initgroups_dyn.
11145
11146 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
11147
11148         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
11149         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11150
11151 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
11152
11153         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
11154
11155 2010-11-11  Andreas Schwab  <schwab@redhat.com>
11156
11157         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
11158         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
11159         (tst-fnmatch-ENV): Set MALLOC_TRACE.
11160         ($(objpfx)tst-fnmatch-mem): New rule.
11161         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
11162         * posix/tst-fnmatch.c (main): Call mtrace.
11163
11164 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
11165
11166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11167         Support Intel processor model 6 and model 0x2c.
11168
11169 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
11170
11171         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
11172           signed comparison.
11173
11174 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
11175
11176         [BZ #12205]
11177         * string/test-strncasecmp.c (check_result): New function.
11178         (do_one_test): Use it.
11179         (check1): New function.
11180         (test_main): Use it.
11181         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
11182         Support strcasecmp and strncasecmp.
11183
11184 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
11185
11186         [BZ #12194]
11187         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
11188         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11189
11190 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11191
11192         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
11193         IFUNC support.
11194         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11195         memset-x86-64.
11196         * sysdeps/x86_64/multiarch/bzero.S: New file.
11197         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
11198         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
11199         * sysdeps/x86_64/multiarch/memset.S: New file.
11200         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
11201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11202         Set bit_Prefer_SSE_for_memop for Intel processors.
11203         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
11204         Define.
11205         (index_Prefer_SSE_for_memop): Define.
11206         (HAS_PREFER_SSE_FOR_MEMOP): Define.
11207
11208 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
11209
11210         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
11211         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
11212
11213 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
11214
11215         [BZ #12191]
11216         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11217         (__x86_64_raw_data_cache_size_half): Likewise.
11218         (__x86_64_raw_shared_cache_size): Likewise.
11219         (__x86_64_raw_shared_cache_size_half): Likewise.
11220
11221         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11222         (__x86_64_raw_data_cache_size_half): Likewise.
11223         (__x86_64_raw_shared_cache_size): Likewise.
11224         (__x86_64_raw_shared_cache_size_half): Likewise.
11225         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
11226         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
11227         and __x86_64_raw_shared_cache_size_half.  Round
11228         __x86_64_data_cache_size_half, __x86_64_data_cache_size
11229         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
11230         to multiple of 256 bytes.
11231
11232 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
11233
11234         [BZ #12167]
11235         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
11236         of inacessible symlinks.  Verify result of symlink before returning it.
11237         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
11238         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
11239
11240 2010-10-28  Erich Ritz  <erichritz@gmail.com>
11241
11242         * math/math.h (isinf): Fix typo in comment.
11243
11244 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
11245
11246         * po/da.po: Update from translation team.
11247
11248 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
11249
11250         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
11251         is added to the list.
11252
11253 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11254             Ulrich Drepper  <drepper@gmail.com>
11255
11256         * elf/dl-object.c (_dl_new_object): Don't append the new object to
11257         the global list here.  Move code to...
11258         (_dl_add_to_namespace_list): ...here.  New function.
11259         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
11260         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
11261         * elf/dl-load.c (lose): Don't remove the element from the list.
11262         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
11263         (_dl_map_object): Likewise.
11264
11265 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
11266
11267         [BZ #12159]
11268         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
11269         into all bytes of SSE register.
11270         Patch by Richard Li <richardpku@gmail.com>.
11271
11272 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
11273
11274         [BZ #12140]
11275         * malloc/malloc.c (_int_free): Fill correct number of bytes when
11276         perturbing.
11277
11278 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
11279
11280         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
11281         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
11282         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
11283         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
11285         submachine.
11286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
11287
11288 2010-10-22  Andreas Schwab  <schwab@redhat.com>
11289
11290         * include/dlfcn.h (__RTLD_SECURE): Define.
11291         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
11292         mode & __RTLD_SECURE instead.
11293         (open_path): Rename preloaded parameter to secure.
11294         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
11295         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
11296         * elf/dl-deps.c (openaux): Likewise.
11297         * elf/rtld.c (struct map_args): Remove is_preloaded.
11298         (map_doit): Don't use it.
11299         (dl_main): Likewise.
11300         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
11301         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
11302
11303 2010-09-09  Andreas Schwab  <schwab@redhat.com>
11304
11305         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
11306         (sysd-rules-targets): Remove duplicates.
11307         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
11308         rtld-%.$o dependency.
11309
11310 2010-10-18  Andreas Schwab  <schwab@redhat.com>
11311
11312         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
11313         _dl_map_object do it.
11314
11315 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
11316
11317         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
11318         fast fma builtins, define the macros in the C99 standard.
11319         (FP_FAST_FMAF): Likewise.
11320         (FP_FAST_FMAL): Likewise.
11321         * sysdeps/x86_64/bits/mathdef.h: Likewise.
11322
11323         * bits/mathdef.h: Update copyright year.
11324         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11325
11326 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11327
11328         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
11329         builtins, define the macros in the C99 standard.
11330         (FP_FAST_FMAF): Likewise.
11331         (FP_FAST_FMAL): Likewise.
11332         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
11333         multiply/add.
11334         (FP_FAST_FMAF): Likewise.
11335
11336 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
11337
11338         [BZ #3268]
11339         * math/libm-test.inc (fma_test): Some new testcases.
11340         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
11341         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
11342         y and infinite z.  Do multiplication by C already in long double.
11343         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
11344         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
11345         y and infinite z.  Do bitwise or of inexact bit into u.d.
11346         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
11347         * sysdeps/i386/fpu/s_fmaf.S: Removed.
11348         * sysdeps/i386/fpu/s_fma.S: Removed.
11349         * sysdeps/i386/fpu/s_fmal.S: Removed.
11350
11351 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
11352
11353         [BZ #3268]
11354         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
11355         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
11356         computation is not scheduled after fetestexcept.  Fix value
11357         of minimum denormal long double.
11358
11359 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
11360
11361         [BZ #3268]
11362         * math/libm-test.inc (fma_test): Add some more tests.
11363         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
11364         correctly.
11365
11366 2010-10-15  Andreas Schwab  <schwab@redhat.com>
11367
11368         * scripts/data/localplt-s390-linux-gnu.data: New file.
11369         * scripts/data/localplt-s390x-linux-gnu.data: New file.
11370
11371 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
11372
11373         [BZ #3268]
11374         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
11375         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
11376         instead of dbl-64.
11377         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
11378         inlines.
11379         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
11380         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
11381         if one of x and y is very large and the other is subnormal.
11382         * sysdeps/s390/fpu/s_fmaf.c: New file.
11383         * sysdeps/s390/fpu/s_fma.c: New file.
11384         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
11385         * sysdeps/powerpc/fpu/s_fma.S: New file.
11386         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
11387         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
11388         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
11389
11390 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
11391
11392         [BZ #3268]
11393         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
11394         fma tests.
11395         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
11396         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
11397         * sysdeps/i386/i686/multiarch/s_fma.c: Include
11398         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
11399         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
11400         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
11402
11403 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
11404
11405         [BZ #12078]
11406         * posix/regcomp.c (parse_branch): One more memory leak plugged.
11407         * posix/bug-regex31.input: Add test case.
11408
11409 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11410
11411         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
11412         * posix/bug-regex31.input: New file.
11413
11414         [BZ #12078]
11415         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
11416         (parse_sub_exp): Fix last change, use postorder.
11417
11418         * posix/bug-regex31.c: New file.
11419         * posix/Makefile: Add rules to build and run bug-regex31.
11420
11421         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
11422
11423         [BZ #12078]
11424         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
11425
11426         [BZ #12108]
11427         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
11428         to have entries in sys_siglist.
11429
11430         [BZ #12093]
11431         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
11432         be NULL.
11433
11434 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
11435
11436         [BZ #3268]
11437         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
11438         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
11439         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
11440         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
11441         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11442         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
11443         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
11444         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
11445         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
11446         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
11447         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
11448         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
11449         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
11450         * math/ftestexcept.c (fetestexcept): Likewise.
11451         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
11452         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
11453         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
11454         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
11455         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
11456         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
11457         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11458
11459 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11460
11461         [BZ #12107]
11462         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
11463         newline.
11464
11465 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
11466
11467         * string/bug-strstr1.c: New file.
11468         * string/Makefile: Add rules to build and run bug-strstr1.
11469
11470 2010-10-05  Eric Blake  <eblake@redhat.com>
11471
11472         [BZ #12092]
11473         * string/str-two-way.h (two_way_long_needle): Always clear memory
11474         when skipping input due to the shift table.
11475
11476 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
11477
11478         [BZ #12005]
11479         * malloc/mcheck.c: Handle large requests.
11480
11481         [BZ #12077]
11482         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
11483         for strncmp and strncasecmp.
11484         * string/stratcliff.c: Add tests for strcmp and strncmp.
11485         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
11486
11487 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11488
11489         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
11490         __set_fpscr.
11491
11492 2010-09-30  Andreas Jaeger  <aj@suse.de>
11493
11494         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
11495         (CGROUP_SUPER_MAGIC): Define.
11496         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11497         Handle btrfs and cgroup file systems.
11498         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11499         Likewise.
11500
11501 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
11502
11503         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
11504         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
11505
11506 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11507
11508         [BZ #12067]
11509         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
11510         trying to locate the ELF header.
11511
11512 2010-09-27  Andreas Schwab  <schwab@redhat.com>
11513
11514         [BZ #11611]
11515         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
11516         Mask out sign-bit copies when constructing f_fsid.
11517
11518 2010-09-24  Petr Baudis <pasky@suse.cz>
11519
11520         * debug/stack_chk_fail_local.c: Add missing licence exception.
11521         * debug/warning-nop.c: Likewise.
11522
11523 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11524
11525         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
11526         implementing getdents64 using getdents syscall, set d_type if
11527         __ASSUME_GETDENTS32_D_TYPE.
11528
11529 2010-09-16  Andreas Schwab  <schwab@redhat.com>
11530
11531         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
11532         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
11533
11534 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
11535
11536         [BZ #12037]
11537         * posix/unistd.h: Undo change of feature selection for ftruncate from
11538         2010-01-11.
11539
11540 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
11541
11542         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
11543         detection.
11544
11545 2010-09-20  Andreas Schwab  <schwab@redhat.com>
11546
11547         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
11548         fanotify_mark.
11549         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11550
11551 2010-09-14  Andreas Schwab  <schwab@redhat.com>
11552
11553         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
11554         variables after CHECK_SP call.
11555         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
11556
11557 2010-09-13  Andreas Schwab  <schwab@redhat.com>
11558             Ulrich Drepper  <drepper@redhat.com>
11559
11560         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
11561         re-relocationg ld.so.
11562         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
11563         _dl_init_paths call.
11564         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
11565         here anymore.
11566
11567 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
11568
11569         * resolv/res_init.c (__res_vinit): Count the default server we added.
11570
11571 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
11572             Ulrich Drepper  <drepper@redhat.com>
11573
11574         [BZ #11968]
11575         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11576         (____longjmp_chk): Use %ebx for saving value across system call.
11577         Add unwind info.
11578
11579 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11580
11581         * manual/Makefile: Don't mix pattern rules with normal rules.
11582
11583 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11584
11585         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
11586         operation.
11587         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
11588         * libio/iofopncook.c (_IO_cookie_init): Likewise.
11589         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
11590         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
11591         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11592         Likewise.
11593
11594 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
11595
11596         [BZ #11979]
11597         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
11598         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
11599
11600 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
11601
11602         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
11603         * sysdeps/x86_64/addmul_1.S: Likewise.
11604         * sysdeps/x86_64/lshift.S: Likewise.
11605         * sysdeps/x86_64/mul_1.S: Likewise.
11606         * sysdeps/x86_64/rshift.S: Likewise.
11607         * sysdeps/x86_64/sub_n.S: Likewise.
11608         * sysdeps/x86_64/submul_1.S: Likewise.
11609
11610 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11611
11612         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
11613         Define __sched_param instead of SCHED_* and sched_param when
11614         <bits/sched.h> is included with __need_schedparam defined.
11615         * bits/sched.h [__need_schedparam]
11616         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
11617         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
11618         (__defined_schedparam): Define to 1.
11619         (__sched_param): New structure, identical to sched_param.
11620         (__need_schedparam): Undefine.
11621
11622 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
11623
11624         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
11625         (epoll_create1): Declare.
11626
11627         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
11628
11629 2010-08-31  Andreas Schwab  <schwab@redhat.com>
11630
11631         [BZ #7066]
11632         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
11633         shifting retval into place.
11634
11635 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
11636
11637         * nis/rpcsvc/nis.h: Update copyright notice.
11638         * nis/rpcsvc/nis.x: Likewise.
11639         * nis/rpcsvc/nis_callback.h: Likewise.
11640         * nis/rpcsvc/nis_callback.x: Likewise.
11641         * nis/rpcsvc/nis_object.x: Likewise.
11642         * nis/rpcsvc/nis_tags.h: Likewise.
11643         * nis/rpcsvc/yp.h: Likewise.
11644         * nis/rpcsvc/yp.x: Likewise.
11645         * nis/rpcsvc/ypupd.h: Likewise.
11646         * nis/yp_xdr.c: Likewise.
11647         * nis/ypupdate_xdr.c: Likewise.
11648
11649         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
11650         mainly the body of pmap_getport.  Add parameters to specify timeouts.
11651         (pmap_getport): Use __libc_rpc_getport.
11652         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
11653         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
11654         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
11655
11656 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
11657
11658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
11659         fanotify_mark.
11660
11661 2010-08-27  Roland McGrath  <roland@redhat.com>
11662
11663         * sysdeps/i386/i686/multiarch/Makefile
11664         (CFLAGS-varshift.c): New variable.
11665
11666 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
11667
11668         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
11669         * sysdeps/i386/i686/multiarch/varshift.c: New file.
11670
11671         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
11672
11673         * sysdeps/x86_64/strlen.S: Minimal code improvement.
11674
11675 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11676
11677         * sysdeps/x86_64/strlen.S: Unroll the loop.
11678         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11679         strlen-sse2 strlen-sse2-bsf.
11680         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11681         __strlen_no_bsf if bit_Slow_BSF is set.
11682         (__strlen_sse42): Removed.
11683         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11684         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11685
11686 2010-08-25  Roland McGrath  <roland@redhat.com>
11687
11688         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11689         * sysdeps/x86_64/multiarch/varshift.c: New file.
11690         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11691         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11692         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11693         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11694
11695 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11696
11697         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11698         strlen-sse2 strlen-sse2-bsf.
11699         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11700         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11701         (__strlen_sse2): Removed.
11702         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11703         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11704         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11705         bit_Slow_BSF for Atom.
11706         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11707         (index_Slow_BSF): Define.
11708         (HAS_SLOW_BSF): Define.
11709
11710 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11711
11712         [BZ #10851]
11713         * resolv/res_init.c (__res_vinit): When no server address at all
11714         is given default to loopback.
11715
11716 2010-08-24  Roland McGrath  <roland@redhat.com>
11717
11718         * configure.in: Remove config-name.h generation.
11719         * configure: Regenerated.
11720         * config-name.in: File removed.
11721         * scripts/config-uname.sh: New file.
11722         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11723         ($(objdir)config-name.h): New target.
11724
11725         * sunrpc/rpc_parse.h: Avoid nested comment.
11726
11727 2010-08-24  Richard Henderson  <rth@redhat.com>
11728             Ulrich Drepper  <drepper@redhat.com>
11729             H.J. Lu  <hongjiu.lu@intel.com>
11730
11731         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11732         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11733         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11734         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11735         _mm_alignr_epi8 with _mm_loadu_si128.
11736         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11737         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11738         (__m128i_shift_right): Removed.
11739         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11740         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11741         * sysdeps/x86_64/multiarch/varshift.h: New file.
11742         * sysdeps/x86_64/multiarch/varshift.S: New file.
11743
11744 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11745
11746         * configure.in: Move assembler checks to before sysdep dir checking.
11747
11748 2010-08-20  Petr Baudis  <pasky@suse.cz>
11749
11750         * LICENSES: Sync the sunrpc license.
11751
11752 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11753
11754         * sunrpc/auth_des.c: Update copyright notice once again.
11755         * sunrpc/auth_none.c: Likewise.
11756         * sunrpc/auth_unix.c: Likewise.
11757         * sunrpc/authdes_prot.c: Likewise.
11758         * sunrpc/authuxprot.c: Likewise.
11759         * sunrpc/bindrsvprt.c: Likewise.
11760         * sunrpc/clnt_gen.c: Likewise.
11761         * sunrpc/clnt_perr.c: Likewise.
11762         * sunrpc/clnt_raw.c: Likewise.
11763         * sunrpc/clnt_simp.c: Likewise.
11764         * sunrpc/clnt_tcp.c: Likewise.
11765         * sunrpc/clnt_udp.c: Likewise.
11766         * sunrpc/clnt_unix.c: Likewise.
11767         * sunrpc/des_crypt.c: Likewise.
11768         * sunrpc/des_soft.c: Likewise.
11769         * sunrpc/get_myaddr.c: Likewise.
11770         * sunrpc/getrpcport.c: Likewise.
11771         * sunrpc/key_call.c: Likewise.
11772         * sunrpc/key_prot.c: Likewise.
11773         * sunrpc/openchild.c: Likewise.
11774         * sunrpc/pm_getmaps.c: Likewise.
11775         * sunrpc/pm_getport.c: Likewise.
11776         * sunrpc/pmap_clnt.c: Likewise.
11777         * sunrpc/pmap_prot.c: Likewise.
11778         * sunrpc/pmap_prot2.c: Likewise.
11779         * sunrpc/pmap_rmt.c: Likewise.
11780         * sunrpc/rpc/auth.h: Likewise.
11781         * sunrpc/rpc/auth_unix.h: Likewise.
11782         * sunrpc/rpc/clnt.h: Likewise.
11783         * sunrpc/rpc/des_crypt.h: Likewise.
11784         * sunrpc/rpc/key_prot.h: Likewise.
11785         * sunrpc/rpc/netdb.h: Likewise.
11786         * sunrpc/rpc/pmap_clnt.h: Likewise.
11787         * sunrpc/rpc/pmap_prot.h: Likewise.
11788         * sunrpc/rpc/pmap_rmt.h: Likewise.
11789         * sunrpc/rpc/rpc.h: Likewise.
11790         * sunrpc/rpc/rpc_des.h: Likewise.
11791         * sunrpc/rpc/rpc_msg.h: Likewise.
11792         * sunrpc/rpc/svc.h: Likewise.
11793         * sunrpc/rpc/svc_auth.h: Likewise.
11794         * sunrpc/rpc/types.h: Likewise.
11795         * sunrpc/rpc/xdr.h: Likewise.
11796         * sunrpc/rpc_clntout.c: Likewise.
11797         * sunrpc/rpc_cmsg.c: Likewise.
11798         * sunrpc/rpc_common.c: Likewise.
11799         * sunrpc/rpc_cout.c: Likewise.
11800         * sunrpc/rpc_dtable.c: Likewise.
11801         * sunrpc/rpc_hout.c: Likewise.
11802         * sunrpc/rpc_main.c: Likewise.
11803         * sunrpc/rpc_parse.c: Likewise.
11804         * sunrpc/rpc_parse.h: Likewise.
11805         * sunrpc/rpc_prot.c: Likewise.
11806         * sunrpc/rpc_sample.c: Likewise.
11807         * sunrpc/rpc_scan.c: Likewise.
11808         * sunrpc/rpc_scan.h: Likewise.
11809         * sunrpc/rpc_svcout.c: Likewise.
11810         * sunrpc/rpc_tblout.c: Likewise.
11811         * sunrpc/rpc_util.c: Likewise.
11812         * sunrpc/rpc_util.h: Likewise.
11813         * sunrpc/rpcinfo.c: Likewise.
11814         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11815         * sunrpc/rpcsvc/key_prot.x: Likewise.
11816         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11817         * sunrpc/rpcsvc/mount.x: Likewise.
11818         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11819         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11820         * sunrpc/rpcsvc/rex.x: Likewise.
11821         * sunrpc/rpcsvc/rstat.x: Likewise.
11822         * sunrpc/rpcsvc/rusers.x: Likewise.
11823         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11824         * sunrpc/rpcsvc/spray.x: Likewise.
11825         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11826         * sunrpc/rtime.c: Likewise.
11827         * sunrpc/svc.c: Likewise.
11828         * sunrpc/svc_auth.c: Likewise.
11829         * sunrpc/svc_authux.c: Likewise.
11830         * sunrpc/svc_raw.c: Likewise.
11831         * sunrpc/svc_run.c: Likewise.
11832         * sunrpc/svc_simple.c: Likewise.
11833         * sunrpc/svc_tcp.c: Likewise.
11834         * sunrpc/svc_udp.c: Likewise.
11835         * sunrpc/svc_unix.c: Likewise.
11836         * sunrpc/svcauth_des.c: Likewise.
11837         * sunrpc/xcrypt.c: Likewise.
11838         * sunrpc/xdr.c: Likewise.
11839         * sunrpc/xdr_array.c: Likewise.
11840         * sunrpc/xdr_float.c: Likewise.
11841         * sunrpc/xdr_mem.c: Likewise.
11842         * sunrpc/xdr_rec.c: Likewise.
11843         * sunrpc/xdr_ref.c: Likewise.
11844         * sunrpc/xdr_sizeof.c: Likewise.
11845         * sunrpc/xdr_stdio.c: Likewise.
11846
11847         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11848         handling.
11849
11850 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11851
11852         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11853
11854 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11855
11856         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11857         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11858         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11859         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11860         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11861         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11862         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11863         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11864         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11865         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11866         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11867         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11868         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11869         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11870
11871 2010-07-26  Anton Blanchard  <anton@samba.org>
11872
11873         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11874         * malloc/arena.c (heap_trim): Likewise.
11875
11876 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11877
11878         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11879         here.  Not...
11880         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11881         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11882
11883 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11884
11885         * sysdeps/i386/elf/Makefile: New file.
11886
11887 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11888
11889         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11890         from fanotify_init.
11891         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11892         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11893
11894 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11895
11896         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11897         of strncasecmp_l.
11898         * sysdeps/multiarch/strcmp.S: Likewise.
11899
11900 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11901
11902         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11903         strncase_l-nonascii.
11904         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11905         Add strncase_l-ssse3.
11906         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11907         * sysdeps/x86_64/strcmp.S: Likewise.
11908         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11909         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11910         * sysdeps/x86_64/strncase.S: New file.
11911         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11912         * sysdeps/x86_64/strncase_l.S: New file.
11913         * string/Makefile (strop-tests): Add strncasecmp.
11914         * string/test-strncasecmp.c: New file.
11915
11916         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11917         warning.
11918
11919         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11920         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11921
11922 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11923
11924         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11925
11926 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11927
11928         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11929         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11930         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11931
11932 2010-05-01  Alan Modra  <amodra@gmail.com>
11933
11934         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11935         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11936         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11937         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11938         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11939         tidying.  Don't tail-call __sigjmp_save for static lib.
11940         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11941         save location.
11942         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11943         (CALL_MCOUNT): Add eh info, and nop after bl.
11944         (TAIL_CALL_SYSCALL_ERROR): New macro.
11945         (PSEUDO_RET): Use it.
11946         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11947         Correct save location of integer regs and cr.
11948         (_dl_profile_resolve): Correct cr save location.  Delete nops
11949         after bl when SHARED.  Reduce cfi size a little by better
11950         placement of cfi directives.
11951         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11952         make a stack frame.  Instead use parm save area as a temp.
11953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11954         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11956         Don't make a stack frame for parent, use parm save area.
11957         Increase child stack frame to 112 bytes.  Don't save unused reg,
11958         and adjust reg usage.  Set up cfi on error recovery and
11959         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11961         (__makecontext): Add dummy nop after jump to exit.
11962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11963         Use correct parm save area and cr save, reduce stack frame.
11964         Correct cfi for possible PSEUDO_RET frame setup.
11965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11966         Branch to local label emitted by PSEUDO_RET rather than
11967         __syscall_error.
11968
11969 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11970
11971         [BZ #11904]
11972         * locale/programs/locale.c (print_assignment): New function.
11973         (show_locale_vars): Use it.
11974
11975 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11976
11977         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11978         field.
11979         (struct statfs64): Likewise.
11980         (_STATFS_F_FLAGS): Define.
11981         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11982         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11983         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11984         (ST_VALID): Define locally.
11985         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11986         __statvfs_getflags, use the provided value.
11987         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11988         __ASSUME_STATFS_F_FLAGS.
11989
11990         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11991
11992         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11993         Add sys/fanotify.h.
11994         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11995         fanotify_mask for GLIBC_2.13.
11996         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11997         fanotify_init and fanotify_mark.
11998         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11999         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
12000
12001         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
12002         Add prlimit.
12003         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
12004         prlimit64 for GLIBC_2.13.
12005         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
12006         prlimit64.
12007         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
12008         syscall.
12009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12010         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12011         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
12012         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
12013         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
12014         add prlimit alias.
12015         * sysdeps/unix/sysv/linux/prlimit.c: New file.
12016
12017         [BZ #11903]
12018         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
12019         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
12020
12021         * nss/Makefile: Add rules to build and run tst-nss-test1.
12022         * shlib-versions: Add entry for libnss_test1.
12023         * nss/nss_test1.c: New file.
12024         * nss/tst-nss-test1.c: New file.
12025
12026         * nss/nsswitch.c (__nss_database_custom): Define new variable.
12027         (__nss_configure_lookup): Set appropriate entry in
12028         __nss_configure_lookup to true.
12029         * nss/nsswitch.h: Define enum with indeces of databases in
12030         databases and __nss_database_custom arrays.  Declare
12031         __nss_database_custom.
12032         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
12033         to avoid using nscd when custom rules are installed.
12034         * nss/getXXbyYY_r.c: Likewise.
12035         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12036
12037         * nss/nss_files/files-parse.c: Whitespace fixes.
12038
12039 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
12040
12041         [BZ #11883]
12042         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
12043         * posix/fnmatch_loop.c: Likewise.
12044
12045 2010-07-17  Andi Kleen  <ak@linux.intel.com>
12046
12047         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
12048         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
12049         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
12050         * Versions.def [GLIBC_2.13]: Add.
12051
12052 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
12053
12054         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12055         Also fail if tpwd after pwuid call is NULL.
12056
12057 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12058
12059         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
12060         when converting to ms.
12061
12062 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12063
12064         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
12065         EOPNOTSUPP errors with ENOTTY.
12066         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
12067         EOPNOTSUPP errors with ENOTTY.
12068
12069 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
12070
12071         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12072         Add strcasecmp_l-ssse3.
12073         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
12074         strcasecmp.
12075         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
12076         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
12077         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
12078
12079 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
12080
12081         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
12082
12083         * string/Makefile (strop-tests): Add strcasecmp.
12084         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12085         strcasecmp_l-nonascii.
12086         (gen-as-const-headers): Add locale-defines.sym.
12087         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
12088         * sysdeps/x86_64/strcasecmp.S: New file.
12089         * sysdeps/x86_64/strcasecmp_l.S: New file.
12090         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
12091         * sysdeps/x86_64/locale-defines.sym: New file.
12092         * string/test-strcasecmp.c: New file.
12093
12094         * string/test-strcasestr.c: Test both ends of the range of characters.
12095         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
12096
12097 2010-07-29  Roland McGrath  <roland@redhat.com>
12098
12099         [BZ #11856]
12100         * manual/locale.texi (Yes-or-No Questions): Fix example code.
12101
12102 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
12103
12104         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
12105         for ld.so.
12106
12107 2010-07-27  Andreas Schwab  <schwab@redhat.com>
12108
12109         * manual/memory.texi (Malloc Tunable Parameters): Document
12110         M_PERTURB.
12111
12112 2010-07-26  Roland McGrath  <roland@redhat.com>
12113
12114         [BZ #11840]
12115         * configure.in (-fgnu89-inline check): Set and substitute
12116         gnu89_inline, not libc_cv_gnu89_inline.
12117         * configure: Regenerated.
12118         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
12119
12120 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
12121
12122         * string/test-strnlen.c: New file.
12123         * string/Makefile (strop-tests): Add strnlen.
12124         * string/tester.c (test_strnlen): Add a few more test cases.
12125         * string/tst-strlen.c: Better error reporting.
12126
12127         * sysdeps/x86_64/strnlen.S: New file.
12128
12129 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
12130
12131         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
12132         lower-latency instructions.
12133
12134 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
12135
12136         * string/test-strcasestr.c: New file.
12137         * string/test-strstr.c: New file.
12138         * string/Makefile (strop-tests): Add strstr and strcasestr.
12139         * string/str-two-way.h: Don't undefine MAX.
12140         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
12141
12142 2010-07-21  Andreas Schwab  <schwab@redhat.com>
12143
12144         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12145         strcasestr-nonascii.
12146         (CFLAGS-strcasestr-nonascii.c): Define.
12147         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
12148         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
12149         Remove unused attribute.
12150
12151 2010-07-20  Roland McGrath  <roland@redhat.com>
12152
12153         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
12154         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
12155         ld.so.cache was broken.  With it, there is no way to disable dsocaps
12156         like LD_HWCAP_MASK can disable hwcaps.
12157
12158 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12159
12160         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
12161
12162 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
12163
12164         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
12165         call in strcasestr.
12166         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
12167         __strcasestr_sse42_nonascii.
12168         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
12169         strcasestr-nonascii.c.
12170         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
12171
12172 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
12173
12174         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
12175         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
12176         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
12177         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
12178
12179 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
12180
12181         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
12182         fcntl.
12183
12184 2010-07-06  Andreas Schwab  <schwab@redhat.com>
12185
12186         [BZ #11577]
12187         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
12188         dl_signal_cerror.
12189
12190 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
12191
12192         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
12193         _PC_PIPE_BUF using F_GETPIPE_SZ.
12194
12195 2010-07-05  Roland McGrath  <roland@redhat.com>
12196
12197         * manual/arith.texi (Rounding Functions): Fix rint description
12198         implicit in round description.
12199
12200 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
12201
12202         * elf/Makefile: Fix linking for a few tests to make recent linker
12203         happy.
12204
12205 2010-06-30  Andreas Schwab  <schwab@redhat.com>
12206
12207         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12208         $(common-objpfx)libc_nonshared.a.
12209
12210 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
12211
12212         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
12213         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
12214         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12215         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12216         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
12217         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
12218         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12219         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
12221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
12222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
12223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
12225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
12227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
12228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
12229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
12230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
12232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
12234         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
12235         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
12236         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
12237         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
12238         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
12239         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
12240         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
12241         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
12242         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
12243         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
12244         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
12245         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
12246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
12247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
12248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
12249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
12250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
12251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
12252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
12253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
12254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
12255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
12256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
12257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
12258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
12259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
12260
12261 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12262
12263         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
12264         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
12265         * string/memmove.c (memmove): Renamed to ...
12266         (MEMMOVE): ...this.  Default to memmove.
12267         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
12268         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
12269         (END_CHK): Define.
12270         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12271         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
12272         mempcpy-ssse3-back memmove-ssse3-back.
12273         * sysdeps/x86_64/multiarch/bcopy.S: New file .
12274         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
12275         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
12276         * sysdeps/x86_64/multiarch/memcpy.S: New file.
12277         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
12278         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
12279         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
12280         * sysdeps/x86_64/multiarch/memmove.c: New file.
12281         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
12282         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
12283         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
12284         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
12285         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
12286         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
12287         Define.
12288         (index_Fast_Copy_Backward): Define.
12289         (HAS_ARCH_FEATURE): Define.
12290         (HAS_FAST_REP_STRING): Define.
12291         (HAS_FAST_COPY_BACKWARD): Define.
12292
12293 2010-06-21  Andreas Schwab  <schwab@redhat.com>
12294
12295         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12296         Restore proper fallback handling.
12297
12298 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
12299
12300         [BZ #11701]
12301         * posix/group_member.c (__group_member): Correct checking loop.
12302
12303         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
12304         OOM in getpwuid_r correctly.  Return error number when the caller
12305         should return, otherwise -1.
12306         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
12307         call returning > 0 value.
12308         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
12309
12310 2010-06-07  Andreas Schwab  <schwab@redhat.com>
12311
12312         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
12313         libc_nonshared.a from targets in modules-names.
12314
12315 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
12316
12317         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
12318         requires it.
12319
12320 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
12321
12322         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
12323         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
12324         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
12325         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
12326
12327 2010-06-02  Andreas Schwab  <schwab@redhat.com>
12328
12329         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
12330
12331 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
12332
12333         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
12334         and F_GETPIPE_SZ.
12335         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12336         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12337         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12338         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12339         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12340         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
12341
12342 2010-06-14  Roland McGrath  <roland@redhat.com>
12343
12344         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
12345
12346 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
12347
12348         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
12349         __REDIRECT followed by __THROW.
12350         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
12351         * posix/getopt.h (getopt): Likewise.
12352
12353 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12354
12355         * hurd/lookup-at.c (__file_name_lookup_at): Accept
12356         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
12357         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
12358         in AT_FLAGS.
12359         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
12360         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
12361
12362 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
12363
12364         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
12365
12366 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12367
12368         [BZ #11640]
12369         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12370         Properly check family and model.
12371
12372 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
12373
12374         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
12375
12376 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
12377
12378         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
12379
12380 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
12381
12382         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
12383         symbol reference.
12384
12385 2010-05-19  Andreas Schwab  <schwab@redhat.com>
12386
12387         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
12388         symbol reference.
12389
12390 2010-05-21  Andreas Schwab  <schwab@redhat.com>
12391
12392         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
12393         and internal_recvmmsg.
12394         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
12395         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
12396         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
12397         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
12398
12399         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
12400         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12401         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12402
12403 2010-05-20  Andreas Schwab  <schwab@redhat.com>
12404
12405         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
12406
12407 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
12408
12409         POWER7 optimizations.
12410         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
12411         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
12412
12413 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
12414
12415         * version.h: Update for 2.13 development version.
12416
12417 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
12418
12419         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
12420         exceptions.  Return 0.
12421
12422 2010-05-07  Roland McGrath  <roland@redhat.com>
12423
12424         * elf/ldconfig.c (main): Add a const.
12425
12426 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
12427
12428         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
12429         (args_options): Add no-idn option.
12430         (ahosts_keys_int): Add idn_flags to ai_flags.
12431         (parse_option): Handle 'i' option to clear idn_flags.
12432
12433         * malloc/malloc.c (_int_free): Possible race in the most recently
12434         added check.  Only act on the data if no current modification
12435         happened.
12436
12437 See ChangeLog.17 for earlier changes.